if (document.images) 
	{

  navhomeon = new Image();
  navhomeon.src = "images/active_1.gif";
  nav1radioon = new Image();
  nav1radioon.src = "images/active_1radio.gif";
  nav2on = new Image();
  nav2on.src = "images/active_2.gif";
  nav3on = new Image();
  nav3on.src = "images/active_3.gif";
  nav4on = new Image();
  nav4on.src = "images/active_tips.gif";
  nav5on = new Image();
  nav5on.src = "images/active_5.gif";
  navgson = new Image();
  navgson.src = "images/active_gs.gif";
  navathomeon = new Image();
  navathomeon.src = "images/active_athome.gif";
  navathomeblon = new Image();
  navathomeblon.src = "/images/active_athome.gif";
  navblogon = new Image();
  navblogon.src = "images/active_blog.gif";

  homeon = new Image();
  homeon.src = "images/active_home.gif";
  foodon = new Image();
  foodon.src = "images/active_food.gif";
  beautyon = new Image();
  beautyon.src = "images/active_beauty.gif";
  peopleon = new Image();
  peopleon.src = "images/active_people.gif";
  
  nav1off = new Image();
  nav1off.src = "images/inactive_1.gif";
  nav1radiooff = new Image();
  nav1radiooff.src = "images/inactive_1radio.gif";
  nav2off = new Image();
  nav2off.src = "images/inactive_2.gif";
  nav3off = new Image();
  nav3off.src = "images/inactive_3.gif";
  nav4off = new Image();
  nav4off.src = "images/inactive_tips.gif";
  nav5off = new Image();
  nav5off.src = "images/inactive_5.gif";
  navgsoff = new Image();
  navgsoff.src = "images/inactive_gs.gif";
  navathomeoff = new Image();
  navathomeoff.src = "images/inactive_athome.gif";
  navathomebloff = new Image();
  navathomebloff.src = "/images/inactive_athome.gif";
  navblogoff = new Image();
  navblogoff.src = "images/inactive_blog.gif";

  homeoff = new Image();
  homeoff.src = "images/inactive_home.gif";
  foodoff = new Image();
  foodoff.src = "images/inactive_food.gif";
  beautyoff = new Image();
  beautyoff.src = "images/inactive_beauty.gif";
  peopleoff = new Image();
  peopleoff.src = "images/inactive_people.gif";

}

function turnOn(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "on.src");
  }
}
function turnOff(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "off.src");
  }
}

function lastmod()
{
document.write(date_lastmodified());
}

function date_mmmddyy(date)
{
  var d = date.getDate();
  var m = date.getMonth() + 1;
  var y = date.getYear();

  // handle different year values 
  // returned by IE and NS in 
  // the year 2000.
  if(y >= 2000)
  {
    y -= 2000;
  }
  if(y >= 100)
  {
    y -= 100;
  }

  var mmm = 
    ( 1==m)?'Jan':( 2==m)?'Feb':(3==m)?'Mar':
    ( 4==m)?'Apr':( 5==m)?'May':(6==m)?'Jun':
    ( 7==m)?'Jul':( 8==m)?'Aug':(9==m)?'Sep':
    (10==m)?'Oct':(11==m)?'Nov':'Dec';

  return "" + mmm + " " +
    (d<10?"0"+d:d) + ", " + "20" +
    (y<10?"0"+y:y);
}

function date_lastmodified()
{
  var lmd = document.lastModified;
  var s   = "Unknown";
  var d1;

  // check if we have a valid date
  // before proceeding
  if(0 != (d1=Date.parse(lmd)))
  {
    s = "" + date_mmmddyy(new Date(d1));
  }

  return s;
}

function redcross()
{
	var sStr = ",scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no";
	if (window.screen)
	{
		var aw = screen.availWidth;
		var ah = screen.availHeight - 50;
		var height = 430;
		var width = 750;
		if (ah > 480) height = 500;
		if (ah > 600) height = 557;
		if (ah > 800) height = 557;
		if (aw < 641) width = 600;
		sStr = "width=" + width + ",height=" + height + sStr;
		sStr += ",left=" + ( (aw - width) / 2 );
//alert( sStr );
		var nTop = (ah - height) / 2;
		if ( nTop < 0 )
			nTop = 0;
		sStr += ",top=" + nTop;
	}
	window.open("http://www.redcross.org","RedCross",sStr);
}

function date_mmmddyy(date)
{
  var d = date.getDate();
  var m = date.getMonth() + 1;
  var y = date.getYear();

  // handle different year values 
  // returned by IE and NS in 
  // the year 2000.
  if(y >= 2000)
  {
    y -= 2000;
  }
  if(y >= 100)
  {
    y -= 100;
  }

  var mmm = 
    ( 1==m)?'Jan':( 2==m)?'Feb':(3==m)?'Mar':
    ( 4==m)?'Apr':( 5==m)?'May':(6==m)?'Jun':
    ( 7==m)?'Jul':( 8==m)?'Aug':(9==m)?'Sep':
    (10==m)?'Oct':(11==m)?'Nov':'Dec';

  return "" + mmm + " " +
    (d<10?"0"+d:d) + ", " + "20" +
    (y<10?"0"+y:y);
}

function date_lastmodified()
{
  var lmd = document.lastModified;
  var s   = "Unknown";
  var d1;

  // check if we have a valid date
  // before proceeding
  if(0 != (d1=Date.parse(lmd)))
  {
    s = "" + date_mmmddyy(new Date(d1));
  }

  return s;
}

function selupdate(form_name,area,feature_name)
{
	var sel_name = "sel" + area;
	if(feature_name == "")
	{
	eval('document.' + form_name + '.feature_name.value = document.' + form_name + '.' + sel_name + '.value');
	}
	else
	{
//	eval('document.' + form_name + '.feature_name.value = feature_name');
	eval('document.' + form_name + '.feature_name.value = document.' + form_name + '.' + sel_name + '.value');
	}
	eval('document.' + form_name + '.feature_area.value = area');
//	alert('submitting' + eval('document.' + form_name + '.action.value'));
	eval('document.' + form_name + '.submit()'); 
	return false;
}

function mmLoadMenus(t) {
  if (window.mm_menu_nav_0) return;

window.mm_video_0 = new Menu("rootvid",92,17,"Arial",11,"#900900","#f6d999","#f6d999","#900900","center","middle",3,0,500,-5,7,true,true,true,0,true,true);
/*  mm_video_0.addMenuItem("At&nbsp;Home","location='http://www.bsmith.com/video_athome.php'");
*/  mm_video_0.addMenuItem("TV&nbsp;Appearances","location='http://www.bsmith.com/video_tv.php'");
  mm_video_0.addMenuItem("B.&nbsp;Smith&nbsp;Pillsbury","location='http://www.bsmith.com/video_pillsbury.php'");
/*  mm_video_0.addMenuItem("Giving&nbsp;Back","location='http://www.bsmith.com/video_giving.php'");
*/
mm_video_0.addMenuItem("Holiday&nbsp;Specials","location='http://www.bsmith.com/video_specials.php'"); 
   mm_video_0.bgImageUp="http://www.bsmith.com/images/video_up.gif";
   mm_video_0.bgImageOver="http://www.bsmith.com/images/video_over.gif";
   mm_video_0.hideOnMouseOut=true;
   mm_video_0.bgColor='#900900';

window.mm_videobc_0 = new Menu("rootvid",92,17,"Arial",11,"#900900","#f6d999","#f6d999","#900900","center","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_videobc_0.addMenuItem("At&nbsp;Home","location='http://www.bsmith.com/video_athome_bc.php'");
  mm_videobc_0.addMenuItem("TV&nbsp;Appearances","location='http://www.bsmith.com/video_tv_bc.php'");
  mm_videobc_0.addMenuItem("Giving&nbsp;Back","location='http://www.bsmith.com/video_giving_bc.php'");
  mm_videobc_0.addMenuItem("Holiday&nbsp;Specials","location='http://www.bsmith.com/video_specials_bc.php'"); 
   mm_videobc_0.bgImageUp="http://www.bsmith.com/images/video_up.gif";
   mm_videobc_0.bgImageOver="http://www.bsmith.com/images/video_over.gif";
   mm_videobc_0.hideOnMouseOut=true;
   mm_videobc_0.bgColor='#900900';


window.mm_shop_0 = new Menu("root",196,17,"Arial",11,"#900900","#f6d999","#f6d999","#900900","center","middle",3,0,500,-5,7,true,true,true,0,true,true);
	if(t == "Y")
	{
		mm_shop_0.addMenuItem("B.&nbsp;Smith&nbsp;Merchandise","location='http://www.bsmith.com/purchase.php'");
	}

mm_shop_0.addMenuItem("B.Smith&nbsp;@&nbsp;BedBath&amp;Beyond","window.open('http://www.bedbathandbeyond.com/searchSKU.asp?order_num=-1&brand=8&go=1&brand_name=B.+Smith', 'shop');");
/*
mm_shop_0.addMenuItem("B.Smith&nbsp;Home&nbsp;@&nbsp;BedBath&amp;Beyond","window.open('http://www.bedbathandbeyond.com/searchSKU.asp?order_num=-1&SSTR=B.+Smith&go=1&', 'shop');");
  mm_shop_0.addMenuItem("B.Smith&nbsp;Bedding&nbsp;@&nbsp;BedBath&amp;Beyond","window.open('http://www.bedbathandbeyond.com/searchSKU.asp?order_num=-1&SSTR=B.+Smith&go=1&', 'shop');");
  mm_shop_0.addMenuItem("B.Smith&nbsp;Bath&nbsp;@&nbsp;BedBath&amp;Beyond","window.open('http://www.bedbathandbeyond.com/searchSKU.asp?order_num=-1&SSTR=B.+Smith&go=1&', 'shop');");
*/
/*  mm_shop_0.addMenuItem("B.Smith&nbsp;Jewelry&nbsp;@&nbsp;QVC","window.open('http://www.qvc.com/asp/frameset.asp?nest=/asp/isItemNumberRedirect.asp&search=SQ&frames=y&referrer=QVC&txtDesc=b.+smith&SearchClass=', 'shop');"); */
mm_shop_0.addMenuItem("B.&nbsp;Smith&nbsp;Home","location='http://www.bsmith.com/furniture.php'");
mm_shop_0.addMenuItem("B.&nbsp;Smith&nbsp;Pillsbury","location='http://www.bsmith.com/pillsbury.php'");
/*
mm_shop_0.addMenuItem("B.&nbsp;Smith&nbsp;Home","location='http://www.bsmith.com/about_us.php?topic=athome'");
*/

mm_shop_0.addMenuItem("B.&nbsp;Smith&nbsp;Jewelry","location='http://www.bsmithjewelry.net'");

/*
mm_shop_0.addMenuItem("B.&nbsp;Smith&nbsp;Jewelry","location='http://www.gemstv.com/home.htm'");
  */  
mm_shop_0.addMenuItem("B.&nbsp;Smith&nbsp;Books","location='http://www.bsmith.com/books.php'");
mm_shop_0.addMenuItem("B.&nbsp;Olive&nbsp;Oil","location='http://www.bsmith.com/olive_oil.php'");
   mm_shop_0.bgImageUp="http://www.bsmith.com/images/shop_up.gif";
   mm_shop_0.bgImageOver="http://www.bsmith.com/images/shop_over.gif";
   mm_shop_0.hideOnMouseOut=true;
   mm_shop_0.bgColor='#900900';

  window.mm_menu_nav4_0 = new Menu("root4",183,17,"Arial",11,"#900900","#f6d999","#f6d999","#900900","center","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_nav4_0.addMenuItem("Entertaining&nbsp;and&nbsp;Cooking&nbsp;for&nbsp;Friends","window.open('http://www.amazon.com/gp/product/1885183062/ref=ed_oe_h/002-5932161-5672808?st=%2A&v=glance&n=283155', 'book');");
  mm_menu_nav4_0.addMenuItem("Rituals&nbsp;and&nbsp;Celebrations","window.open('http://www.amazon.com/gp/product/037550236X/002-5932161-5672808?_encoding=UTF8', 'book');");
   mm_menu_nav4_0.bgImageUp="http://www.bsmith.com/images/books_up.gif";
   mm_menu_nav4_0.bgImageOver="http://www.bsmith.com/images/books_over.gif";
   mm_menu_nav4_0.hideOnMouseOut=true;
   mm_menu_nav4_0.bgColor='#900900';

  window.mm_style_0 = new Menu("root",99,17,"Arial",11,"#900900","#f6d999","#f6d999","#900900","center","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_style_0.addMenuItem("Food&nbsp;and&nbsp;Recipes","location='http://www.bsmith.com/food.php'");
  mm_style_0.addMenuItem("Decor&nbsp;and&nbsp;Garden","location='http://www.bsmith.com/home.php'");
  mm_style_0.addMenuItem("Health&nbsp;and&nbsp;Beauty","location='http://www.bsmith.com/beauty.php'");
  mm_style_0.addMenuItem("People&nbsp;and&nbsp;Places","location='http://www.bsmith.com/people.php'");
   mm_style_0.bgImageUp="http://www.bsmith.com/images/tips_up.gif";
   mm_style_0.bgImageOver="http://www.bsmith.com/images/tips_over.gif";
   mm_style_0.hideOnMouseOut=true;
   mm_style_0.bgColor='#900900';


window.mm_about_0 = new Menu("root7",83,17,"Arial",11,"#900900","#f6d999","#f6d999","#900900","center","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_about_0.addMenuItem("About&nbsp;B.","location='http://www.bsmith.com/about_b.php'");
  mm_about_0.addMenuItem("About&nbsp;Dan","location='http://www.bsmith.com/about_dan.php'");
  mm_about_0.addMenuItem("In&nbsp;The&nbsp;News","location='http://www.bsmith.com/press.php'");
  mm_about_0.addMenuItem("On&nbsp;The&nbsp;Air","location='http://www.bsmith.com/on_the_air.php'");
  mm_about_0.addMenuItem("Contacts","location='http://www.bsmith.com/about_us.php'");
   mm_about_0.bgImageUp="http://www.bsmith.com/images/about_up.gif";
   mm_about_0.bgImageOver="http://www.bsmith.com/images/about_over.gif";
   mm_about_0.hideOnMouseOut=true;
   mm_about_0.bgColor='#900900';

window.mm_restaurants_0 = new Menu("root3",83,17,"Arial",11,"#900900","#f6d999","#f6d999","#900900","center","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_restaurants_0.addMenuItem("New&nbsp;York&nbsp;City","location='http://www.bsmith.com/restaurant_ny_home.php'");
  mm_restaurants_0.addMenuItem("Washington&nbsp;DC","location='http://www.bsmith.com/restaurant_dc_home.php'");
  mm_restaurants_0.addMenuItem("Sag&nbsp;Harbor","location='http://www.bsmith.com/restaurant_sh_home.php'");
   mm_restaurants_0.bgImageUp="http://www.bsmith.com/images/restaurants_up.gif";
   mm_restaurants_0.bgImageOver="http://www.bsmith.com/images/restaurants_over.gif";
   mm_restaurants_0.hideOnMouseOut=true;
   mm_restaurants_0.bgColor='#900900';

  mm_restaurants_0.writeMenus();
} 

function opennyipix() 
{
window.open('ipix/ipix_ny.html','ipix','scrollbars=yes,width=350,height=280,left=50,top=50');
}

function opendcipix() 
{
window.open('ipix/ipix_dc.html','ipix','scrollbars=yes,width=350,height=280,left=50,top=50');
}

function pressdetail(dtl)
{
	var sStr = ",scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no";
	if (window.screen)
	{
		var aw = screen.availWidth;
		var ah = screen.availHeight - 50;
		var height = 430;
		var width = 750;
		if (ah > 480) height = 500;
		if (ah > 600) height = 557;
		if (ah > 800) height = 557;
		if (aw < 641) width = 600;
		sStr = "width=" + width + ",height=" + height + sStr;
		sStr += ",left=" + ( (aw - width) / 2 );
//alert( sStr );
		var nTop = (ah - height) / 2;
		if ( nTop < 0 )
			nTop = 0;
		sStr += ",top=" + nTop;
	}
	window_handle = window.open("press_detail.php?item="+dtl,"pressdtl",sStr);
//	document.newwindow.open();
	window_handle.focus();
}

function mediapopup(mediafile)
{
	var sStr = ",scrollbars=no,resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no";
	if (window.screen)
	{
		sStr = "width=300,height=200,left=200,top=100";
	}
	window_handle = window.open("popup_media.php?item="+mediafile,"pressdtl",sStr);
	window_handle.focus();
	
}

function gsdetail(dtl)
{
	var sStr = ",scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no";
	if (window.screen)
	{
		var aw = screen.availWidth;
		var ah = screen.availHeight - 50;
		var height = 430;
		var width = 650;
		if (ah > 480) height = 500;
		if (ah > 600) height = 557;
		if (ah > 800) height = 557;
		if (aw < 641) width = 600;
		sStr = "width=" + width + ",height=" + height + sStr;
		sStr += ",left=" + ( (aw - width) / 2 );
//alert( sStr );
		var nTop = (ah - height) / 2;
		if ( nTop < 0 )
			nTop = 0;
		sStr += ",top=" + nTop;
	}
	window_handle = window.open("global_style_detail.php?item="+dtl,"gsdtl",sStr);
//	document.newwindow.open();
	window_handle.focus();
}

function createlink(form_name,area,feature_name)
{
	var sel_name = "sel" + area;
	if(feature_name == "")
	{
	eval('document.' + form_name + '.feature_name.value = document.' + form_name + '.' + sel_name + '.value');
	}
	else
	{
	eval('document.' + form_name + '.feature_name.value = feature_name');
	}
	eval('document.' + form_name + '.feature_area.value = area');
//	alert('submitting' + eval('document.' + form_name + '.action.value'));
	eval('document.' + form_name + '.submit()'); 
	return false;
}

function termspopup()
{
	var sStr = ",scrollbars=no,resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no";
	if (window.screen)
	{
		sStr = "width=300,height=250,left=200,top=100";
	}
	window_handle = window.open("terms.php","merch",sStr);
	window_handle.focus();
	
}

function itemdtlpopup(itemid)
{
	var sStr = ",scrollbars=no,resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no";
	if (window.screen)
	{
		sStr = "width=500,height=380,left=200,top=100";
	}
	window_handle = window.open("popup_item_detail.php?item="+itemid,"merch",sStr);
	window_handle.focus();
	
}

function showrooms(property)
{
	var sStr = ",scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no";
	if (window.screen)
	{
		var aw = screen.availWidth;
		var ah = screen.availHeight - 50;
		var height = 500;
		var width = 550;
		sStr = "width=" + width + ",height=" + height + sStr;
		sStr += ",left=" + ( (aw - width) / 2 );
//alert( sStr );
		var nTop = (ah - height) / 2;
		if ( nTop < 0 )
			nTop = 0;
		sStr += ",top=" + nTop;
	}
	window_handle = window.open("rest_rooms.php?p="+property,"pressdtl",sStr);
//	document.newwindow.open();
	window_handle.focus();
}
