if (document.images) 
	{

  nav1on = new Image();
  nav1on.src = "images/active_1.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_4.gif";
  nav5on = new Image();
  nav5on.src = "images/active_5.gif";
  navgson = new Image();
  navgson.src = "images/active_gs.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";
  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_4.gif";
  nav5off = new Image();
  nav5off.src = "images/inactive_5.gif";
  navgsoff = new Image();
  navgsoff.src = "images/inactive_gs.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_area.value = area');
//	alert('submitting' + eval('document.' + form_name + '.action.value'));
	eval('document.' + form_name + '.submit()'); 
	return false;
}

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

window.mm_menu_nav2_0 = new Menu("root",256,17,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#661100","#006633","#ccccff","center","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_nav2_0.addMenuItem("Enterprise&nbsp;Resource&nbsp;Planning&nbsp;(ERP)","location='core_solutions_erp.php'");
  mm_menu_nav2_0.addMenuItem("Customer&nbsp;Relationship&nbsp;Management&nbsp;(CRM)","location='core_solutions_crm.php'");
  mm_menu_nav2_0.addMenuItem("Warehouse&nbsp;Management&nbsp;(WMS)","location='core_solutions_wms.php'");
   mm_menu_nav2_0.hideOnMouseOut=true;
   mm_menu_nav2_0.menuBorder=0;
   mm_menu_nav2_0.menuLiteBgColor='#ffffff';
   mm_menu_nav2_0.menuBorderBgColor='#555555';
   mm_menu_nav2_0.bgColor='#900900';

window.mm_menu_nav3_0 = new Menu("root",189,17,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#661100","#006633","#ccccff","center","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_nav3_0.addMenuItem("eCommerce","location='extensions_ecommerce.php'");
  mm_menu_nav3_0.addMenuItem("Data&nbsp;Warehouse&nbsp;and&nbsp;Reporting","location='extensions_reporting.php'");
  mm_menu_nav3_0.addMenuItem("eMarketing","location='extensions_emarketing.php'");
   mm_menu_nav3_0.hideOnMouseOut=true;
   mm_menu_nav3_0.menuBorder=0;
   mm_menu_nav3_0.menuLiteBgColor='#ffffff';
   mm_menu_nav3_0.menuBorderBgColor='#555555';
   mm_menu_nav3_0.bgColor='#900900';

  mm_menu_nav3_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 casestudy(casenum)
{
	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 = 760;
		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("case_study.php?casenum="+casenum,"casestudy",sStr);
//	document.newwindow.open();
	window_handle.focus();
}

function video(casenum)
{
	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 = 760;
		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 );
		var nTop = (ah - height) / 2;
		if ( nTop < 0 )
			nTop = 0;
		sStr += ",top=" + nTop;
	}
	window_handle = window.open("media/video.php?casenum="+casenum,"casestudy",sStr);
/*<a href="javascript:window.open('mediav3/demo_<%=currdemosuffix%>_<%=currdemolanguage%>.html', 'pop_win2', 'toolbar=0, location=0, status=1, menubar=0, scrollbars=yes, resizable=1, width=850, height=670').focus();" class="noncurrentlinksm">*/
	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=250,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;
}

