// JavaScript Document
var canClose=true;
var canHide=true;
var returnPlace="http:\\\\www.wbsus.com\\";
var currentDivToPlay="";

function displayUpperNavHighlight(location) {
      if (location != thisPage){
          canHide=false;
	      if (location == "home") {
             document.getElementById("UpperNavMovingHighlight").style.left = "275px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "7px";
			 sendTo="Index.aspx";
		  }
		  if (location == "profile") {
             //document.getElementById("UpperNavMovingHighlight").style.left = "343px";
             document.getElementById("UpperNavMovingHighlight").style.left = "375px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "7px";
			 sendTo="CompanyProfile.aspx";
		  }
		  if (location == "clientele") {
             document.getElementById("UpperNavMovingHighlight").style.left = "468px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "7px";
			 sendTo="Clientele.aspx";
		  }
		  if (location == "partners") {
             //document.getElementById("UpperNavMovingHighlight").style.left = "464px";
             document.getElementById("UpperNavMovingHighlight").style.left = "485px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "7px";
			 sendTo="Partnerships.aspx";
		  }
		  if (location == "tools") {
		     document.getElementById("UpperNavMovingHighlight").style.left = "634px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "7px";
             sendTo="Tools.aspx";
		  }
		  if (location == "press") {
             document.getElementById("UpperNavMovingHighlight").style.left = "570px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "7px";
			 sendTo="Press.aspx";
		  }
		  if (location == "contact") {
             document.getElementById("UpperNavMovingHighlight").style.left = "715px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "7px";
			 sendTo="Contact.aspx";
		  }
		   if (location == "track") {
             document.getElementById("UpperNavMovingHighlight").style.left = "616px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "70px";
			 sendTo="Track.aspx";
		  }
		  if (location == "pack") {
             document.getElementById("UpperNavMovingHighlight").style.left = "616px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "112px";
			 sendTo="Pack.aspx";
		  }
		  if (location == "RF") {
             document.getElementById("UpperNavMovingHighlight").style.left = "616px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "146px";
			 sendTo="RF.aspx";
		  }
		  if (location == "return") {
             document.getElementById("UpperNavMovingHighlight").style.left = "616px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "187px";
			 sendTo="Return.aspx";
		  }
		  if (location == "yard") {
             document.getElementById("UpperNavMovingHighlight").style.left = "616px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "225px";
			 sendTo="Yard.aspx";
		  }
		  if (location == "view") {
             document.getElementById("UpperNavMovingHighlight").style.left = "616px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "262px";
			 sendTo="View.aspx";
		  }
		  if (location == "bill") {
             document.getElementById("UpperNavMovingHighlight").style.left = "616px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "298px";
			 sendTo="Bill.aspx";
		  }
		  if (location == "link") {
             document.getElementById("UpperNavMovingHighlight").style.left = "616px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "333px";
			 sendTo="Link.aspx";
		  }
		   if (location == "project") {
             document.getElementById("UpperNavMovingHighlight").style.left = "574px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "43px";
			 sendTo="ProjectManagement.aspx";
		  }
		  if (location == "vendor") {
             document.getElementById("UpperNavMovingHighlight").style.left = "574px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "87px";
			 sendTo="VendorSelection.aspx";
		  }
		  if (location == "systems") {
             document.getElementById("UpperNavMovingHighlight").style.left = "574px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "128px";
			 sendTo="SystemsIntegration.aspx";
		  }
		  if (location == "quality") {
             document.getElementById("UpperNavMovingHighlight").style.left = "574px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "165px";
			 sendTo="QualityAssurance.aspx";
		  }
		  if (location == "operations") {
             document.getElementById("UpperNavMovingHighlight").style.left = "574px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "205px";
			 sendTo="OperationsSupport.aspx";
		  }
		  if (location == "documentation") {
             document.getElementById("UpperNavMovingHighlight").style.left = "574px";
			 document.getElementById("UpperNavMovingHighlight").style.top = "250px";
			 sendTo="Documentation.aspx";
		  }
		  
		  
		  document.getElementById("UpperNavMovingHighlight").style.visibility = "visible";
	  }
}
function displayUpperNavCurrentLocHighlight(location) {
          whereAreWe();
          if (location == "home") {
             document.getElementById("UpperNavHighlight").style.left = "275px";
             document.getElementById("UpperNavHighlight").style.top = "7px";
		 }
		  if (location == "profile") {
             //document.getElementById("UpperNavHighlight").style.left = "343px";
             document.getElementById("UpperNavHighlight").style.left = "375px";
             document.getElementById("UpperNavHighlight").style.top = "7px";
		 }
		  if (location == "clientele") {
             document.getElementById("UpperNavHighlight").style.left = "468px";
             document.getElementById("UpperNavHighlight").style.top = "7px";
		 }
		  if (location == "partners") {
             //document.getElementById("UpperNavHighlight").style.left = "464px";
             document.getElementById("UpperNavHighlight").style.left = "485px";
             document.getElementById("UpperNavHighlight").style.top = "7px";
		 }
		  if (location == "tools") {
             document.getElementById("UpperNavHighlight").style.left = "634px";
             document.getElementById("UpperNavHighlight").style.top = "7px";
		 }
		 
		   if (location == "pressDetail") {
		      document.getElementById("UpperNavHighlight").style.left = "570px";
             document.getElementById("UpperNavHighlight").style.top = "7px";
             
		 }
		
		  if (location == "contact") {
             document.getElementById("UpperNavHighlight").style.left = "715px";
             document.getElementById("UpperNavHighlight").style.top = "7px";
		 }
		 if (location == "tools") {
             document.getElementById("UpperNavHighlight").style.left = "634px";
			 document.getElementById("UpperNavHighlight").style.top = "7px";
		 }
		  if (location == "press") {
             document.getElementById("UpperNavHighlight").style.left = "570px";
             document.getElementById("UpperNavHighlight").style.top = "7px";
		 }
		  if (location == "contact") {
             document.getElementById("UpperNavHighlight").style.left = "715px";
			 document.getElementById("UpperNavHighlight").style.top = "7px";
		 }
		   if (location == "track") {
             document.getElementById("UpperNavHighlight").style.left = "616px";
			 document.getElementById("UpperNavHighlight").style.top = "70px";
		 }
		  if (location == "pack") {
             document.getElementById("UpperNavHighlight").style.left = "616px";
			 document.getElementById("UpperNavHighlight").style.top = "112px";
		 }
		  if (location == "RF") {
             document.getElementById("UpperNavHighlight").style.left = "616px";
			 document.getElementById("UpperNavHighlight").style.top = "146px";
		 }
		  if (location == "return") {
             document.getElementById("UpperNavHighlight").style.left = "616px";
			 document.getElementById("UpperNavHighlight").style.top = "187px";
		 }
		  if (location == "yard") {
		     document.getElementById("UpperNavHighlight").style.left = "616px";
			 document.getElementById("UpperNavHighlight").style.top = "225px";
		 }
		  if (location == "view") {
             document.getElementById("UpperNavHighlight").style.left = "616px";
			 document.getElementById("UpperNavHighlight").style.top = "261px";
		}
		  if (location == "bill") {
             document.getElementById("UpperNavHighlight").style.left = "616px";
			 document.getElementById("UpperNavHighlight").style.top = "298px";
		 }
		  if (location == "link") {
             document.getElementById("UpperNavHighlight").style.left = "616px";
			 document.getElementById("UpperNavHighlight").style.top = "333px";
		 }
		    if (location == "project") {
             document.getElementById("UpperNavHighlight").style.left = "574px";
			 document.getElementById("UpperNavHighlight").style.top = "43px";
		}
		  if (location == "vendor") {
             document.getElementById("UpperNavHighlight").style.left = "574px";
			 document.getElementById("UpperNavHighlight").style.top = "87px";
		 }
		  if (location == "systems") {
             document.getElementById("UpperNavHighlight").style.left = "574px";
			 document.getElementById("UpperNavHighlight").style.top = "128px";
		 }
		  if (location == "quality") {
             document.getElementById("UpperNavHighlight").style.left = "574px";
			 document.getElementById("UpperNavHighlight").style.top = "165px";
		 }
		  if (location == "operations") {
             document.getElementById("UpperNavHighlight").style.left = "574px";
			 document.getElementById("UpperNavHighlight").style.top = "205px";
		 }
		  if (location == "documentation") {
             document.getElementById("UpperNavHighlight").style.left = "574px";
			 document.getElementById("UpperNavHighlight").style.top = "250px";
		}
		  
		  document.getElementById("UpperNavHighlight").style.visibility = "visible";
	
}
function displayUpperNavHighlightOff(location) {
      canHide=true;
      setTimeout('hideTheUpperNav()',500);
}
function hideTheUpperNav() {
     if (canHide){
         document.getElementById("UpperNavMovingHighlight").style.visibility = "hidden";
     }
}
function displayDemoMenu(){
     hidePopClick();
     //whereAreWe();
     //alert(returnPlace);
     document.getElementById("DemoMenu").style.visibility = "visible";
}
function displayRecievingDemo(){
     hidePopClick();
     document.getElementById("DemoMenu").style.visibility = "hidden";
     document.getElementById("ReceivingDemo").style.visibility = "visible";
}
function closeReceivingDemo(){
     hidePopClick(); 
     document.getElementById("ReceivingDemo").style.visibility = "hidden";
}
function displayOrderFulfillmentDemo(){
     hidePopClick();
     document.getElementById("DemoMenu").style.visibility = "hidden";
     document.getElementById("OrderFulfillment").style.visibility = "visible";
}
function closeOrderFulfillmentDemo(){
     hidePopClick();
     document.getElementById("OrderFulfillment").style.visibility = "hidden";
}

function displayInventoryManagementDemo(){
     hidePopClick();
     document.getElementById("DemoMenu").style.visibility = "hidden";
     document.getElementById("InventoryManagement").style.visibility = "visible";
}
function closeInventoryManagementDemo(){
     document.getElementById("InventoryManagement").style.visibility = "hidden";
}

function displayYardManagementDemo(){
     hidePopClick();
     document.getElementById("DemoMenu").style.visibility = "hidden";
     document.getElementById("YardManagement").style.visibility = "visible";
}
function closeYardManagementDemo(){
     document.getElementById("YardManagement").style.visibility = "hidden";
}

function displayThirdPartyBillingDemo(){
     hidePopClick();
     document.getElementById("DemoMenu").style.visibility = "hidden";
     document.getElementById("ThirdPartyBillingDemo").style.visibility = "visible";
}
function closeThirdPartyBillingDemo(){
     document.getElementById("ThirdPartyBillingDemo").style.visibility = "hidden";
}

function displayGeneralApplicationOverviewDemo(){
     hidePopClick();
     document.getElementById("DemoMenu").style.visibility = "hidden";
     document.getElementById("GeneralApplicationOverview").style.visibility = "visible";
}
function closeGeneralApplicationOverviewDemo(){
     document.getElementById("GeneralApplicationOverview").style.visibility = "hidden";
}

function displayVendorComplianceDemo(){
     hidePopClick();
     document.getElementById("DemoMenu").style.visibility = "hidden";
     document.getElementById("VendorCompliance").style.visibility = "visible";
}
function closeVendorComplianceDemo(){
     document.getElementById("VendorCompliance").style.visibility = "hidden";
}

function addReceivingDiv(){
     document.getElementById("DemoMenu").style.visibility = "hidden";
     sendTo = returnPlace + "Demo_Receiving.html";
     window.open(sendTo,'Receiving_Demo','width=1100,height=850,scrollbars=yes');
}

function addReceivingDivOld(){

document.getElementById("DemoMenu").style.visibility = "hidden";
var newdiv = document.createElement('div');
   newdiv.setAttribute('id', 'ReceivingDemoII');
   newdiv.style.zIndex = 820;
   newdiv.display = "block";
   newdiv.style.position="absolute";
   newdiv.style.top="0px";
   newdiv.style.left="30px";
   newdiv.style.visibility="hidden";
   newdiv.style.backgroundColor="#FFFFFF";
   
   
   
   document.body.appendChild(newdiv);
   html="<input type='button' value='Close' onclick='closeReceivingDemoII()' />";
   html+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; May take up to 90 seconds to load demonstration.<br/>";
   html+=" <OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' WIDTH='1024' HEIGHT='790'>";   html+="<PARAM NAME=movie VALUE='" + returnPlace + "Demos/wbsreceiving.swf'>";   html+="<PARAM NAME=quality VALUE='high'>";   html+="<PARAM NAME=wmode  VALUE='opaque'>";   html+="<EMBED src='" + returnPlace + "Demos/wbsreceiving.swf' wmode='opaque' quality='high' WIDTH='1024' HEIGHT='790' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>"   html+="</OBJECT>";
   html+="<br /><br />";
   html+="<input type='button' value='Close' onclick='closeReceivingDemoII()' />";
   newdiv.innerHTML = html;
   document.getElementById('ReceivingDemoII').innerHTML = html;
   currentDivToPlay = "ReceivingDemoII";
   setTimeout('turnOnGeneralDemo()', 2700);
}
function addOrderFulfillmentDiv(){
     document.getElementById("DemoMenu").style.visibility = "hidden";
     sendTo = returnPlace + "Demo_OrderFulfillment.html";
     window.open(sendTo,'OrderFulfillment_Demo','width=1100,height=850,scrollbars=yes');
     }
function addOrderFulfillmentDivOld(){
document.getElementById("DemoMenu").style.visibility = "hidden";
var newdivA = document.createElement('div');
   newdivA.setAttribute('id', 'OrderFulfillment');
   newdivA.style.zIndex = 902;
   newdivA.display = "block";
   newdivA.style.position="absolute";
   newdivA.style.top="0px";
   newdivA.style.left="30px";
   newdivA.style.visibility="hidden";
   newdivA.style.backgroundColor="#FFFFFF";
   
   
   document.body.appendChild(newdivA);
   html="<input type='button' value='Close' onclick='closeOrderFulfillment()' />";
   html+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; May take up to 90 seconds to load demonstration.<br/>";
   html+=" <OBJECT classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' WIDTH='1024' HEIGHT='790'>";   html+="<PARAM NAME=movie VALUE='" + returnPlace + "Demos/wbsOrderFulfillment.swf'>";   html+="<PARAM NAME=quality VALUE='high'>";   html+="<PARAM NAME=wmode  VALUE='opaque'>";   html+="<EMBED src='" + returnPlace + "Demos/wbsOrderFulfillment.swf' wmode='opaque' quality='high' WIDTH='1024' HEIGHT='790' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' >"   html+="</OBJECT>";
   html+="<br /><br />";
   html+="<input type='button' value='Close' onclick='closeOrderFulfillment()' />";
   currentDivToPlay = "OrderFulfillment";
   document.getElementById('OrderFulfillment').innerHTML = html;
   currentDivToPlay = "OrderFulfillment";
   setTimeout('turnOnGeneralDemo()', 2700);
   
}

function addInventoryManagementDiv(){
     document.getElementById("DemoMenu").style.visibility = "hidden";
     sendTo = returnPlace + "Demo_InventoryManagement.html";
     window.open(sendTo,'InventoryManagement_Demo','width=1100,height=850,scrollbars=yes');

}
function addInventoryManagementDivOld(){
document.getElementById("DemoMenu").style.visibility = "hidden";
var newdiv = document.createElement('div');
   newdiv.setAttribute('id', 'InventoryManagement');
   newdiv.style.zIndex = 820;
   newdiv.display = "block";
   newdiv.style.position="absolute";
   newdiv.style.top="0px";
   newdiv.style.left="30px";
   newdiv.style.visibility="hidden";
   newdiv.style.backgroundColor="#FFFFFF";
   
   
   document.body.appendChild(newdiv);
   html="<input type='button' value='Close' onclick='closeInventoryManagement()' />";
   html+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; May take up to 90 seconds to load demonstration.<br/>";
   html+=" <OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' WIDTH='1024' HEIGHT='790'>";   html+="<PARAM NAME=movie VALUE='" + returnPlace + "Demos/wbsInventoryManagement.swf'>";   html+="<PARAM NAME=quality VALUE='high'>";   html+="<PARAM NAME=wmode  VALUE='opaque'>";   html+="<EMBED src='" + returnPlace + "Demos/wbsInventoryManagement.swf' wmode='opaque' quality='high' WIDTH='1024' HEIGHT='790' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>"   html+="</OBJECT>";
   html+="<br /><br />";
   html+="<input type='button' value='Close' onclick='closeInventoryManagement()' />";
   document.getElementById('InventoryManagement').innerHTML = html;
   currentDivToPlay = "InventoryManagement";
   setTimeout('turnOnGeneralDemo()', 2700);
   
}

function addYardManagementDiv(){
     document.getElementById("DemoMenu").style.visibility = "hidden";
     sendTo = returnPlace + "Demo_YardManagement.html";
     window.open(sendTo,'YardManagement_Demo','width=1100,height=850,scrollbars=yes');

}

function addYardManagementDivOld(){
document.getElementById("DemoMenu").style.visibility = "hidden";
var newdiv = document.createElement('div');
   newdiv.setAttribute('id', 'YardManagement');
   newdiv.style.zIndex = 820;
   newdiv.display = "block";
   newdiv.style.position="absolute";
   newdiv.style.top="0px";
   newdiv.style.left="30px";
   newdiv.style.visibility="hidden";
   newdiv.style.backgroundColor="#FFFFFF";
   
   
   document.body.appendChild(newdiv);
   html="<input type='button' value='Close' onclick='closeYardManagement()' />";
   html+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; May take up to 90 seconds to load demonstration.<br/>";
   html+=" <OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' WIDTH='1024' HEIGHT='790'>";   html+="<PARAM NAME=movie VALUE='" + returnPlace + "Demos/wbsYardManagement.swf'>";   html+="<PARAM NAME=quality VALUE='high'>";   html+="<PARAM NAME=wmode  VALUE='opaque'>";   html+="<EMBED src='" + returnPlace + "Demos/wbsYardManagement.swf' wmode='opaque' quality='high' WIDTH='1024' HEIGHT='790' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>"   html+="</OBJECT>";
   html+="<br /><br />";
   html+="<input type='button' value='Close' onclick='closeYardManagement()' />";
   document.getElementById('YardManagement').innerHTML = html;
   currentDivToPlay = "YardManagement";
   setTimeout('turnOnGeneralDemo()', 2700);
   
}

function addThirdPartyBillingDiv(){
     document.getElementById("DemoMenu").style.visibility = "hidden";
     sendTo = returnPlace + "Demo_ThirdPartyBilling.html";
     window.open(sendTo,'ThirdPartyBilling_Demo','width=1100,height=850,scrollbars=yes');

}

function addThirdPartyBillingDivOld(){
document.getElementById("DemoMenu").style.visibility = "hidden";
var newdiv = document.createElement('div');
   newdiv.setAttribute('id', 'ThirdPartyBilling');
   newdiv.style.zIndex = 820;
   newdiv.display = "block";
   newdiv.style.position="absolute";
   newdiv.style.top="0px";
   newdiv.style.left="30px";
   newdiv.style.visibility="hidden";
   newdiv.style.backgroundColor="#FFFFFF";
   
   
   document.body.appendChild(newdiv);
   html="<input type='button' value='Close' onclick='closeThirdPartyBilling()' />";
   html+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; May take up to 90 seconds to load demonstration.<br/>";
   html+=" <OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' WIDTH='1024' HEIGHT='790'>";   html+="<PARAM NAME=movie VALUE='" + returnPlace + "Demos/wbsThirdPartyBilling.swf'>";   html+="<PARAM NAME=quality VALUE='high'>";   html+="<PARAM NAME=wmode  VALUE='opaque'>";   html+="<EMBED src='" + returnPlace + "Demos/wbsThirdPartyBilling.swf' wmode='opaque' quality='high' WIDTH='1024' HEIGHT='790' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>"   html+="</OBJECT>";
   html+="<br /><br />";
   html+="<input type='button' value='Close' onclick='closeThirdPartyBilling()' />";
   document.getElementById('ThirdPartyBilling').innerHTML = html;
   currentDivToPlay = "ThirdPartyBilling";
   setTimeout('turnOnGeneralDemo()', 2700);
   
}

function addGeneralApplicationOverviewDiv(){
     document.getElementById("DemoMenu").style.visibility = "hidden";
     sendTo = returnPlace + "Demo_GeneralApplicationOverview.html";
     window.open(sendTo,'GeneralApplicationOverview_Demo','width=1100,height=850,scrollbars=yes');
     }

function addGeneralApplicationOverviewDivOld(){
document.getElementById("DemoMenu").style.visibility = "hidden";
var newdiv = document.createElement('div');
   newdiv.setAttribute('id', 'GeneralApplicationOverview');
   newdiv.style.zIndex = 990;
   newdiv.display = "block";
   newdiv.style.position="absolute";
   newdiv.style.top="0px";
   newdiv.style.left="30px";
   newdiv.style.visibility="hidden";
   newdiv.style.backgroundColor="#FFFFFF";
   
   
   document.body.appendChild(newdiv);
   html="<input type='button' value='Close' onclick='closeGeneralApplicationOverview()' />";
   html+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; May take up to 90 seconds to load demonstration.<br/>";
   html+=" <OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' WIDTH='1024' HEIGHT='790'>";   html+="<PARAM NAME=movie VALUE='" + returnPlace + "Demos/wbsGeneralApplicationOverview.swf'>";   html+="<PARAM NAME=quality VALUE='high'>";   html+="<PARAM NAME=wmode  VALUE='opaque'>";   html+="<EMBED src='" + returnPlace + "Demos/wbsGeneralApplicationOverview.swf' wmode='opaque' quality='high' WIDTH='1024' HEIGHT='790' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>"   html+="</OBJECT>";
   html+="<br /><br />";
   html+="<input type='button' value='Close' onclick='closeGeneralApplicationOverview()' />";
   document.getElementById('GeneralApplicationOverview').innerHTML = html;
   currentDivToPlay = "GeneralApplicationOverview";
   setTimeout('turnOnGeneralDemo()', 2700);
   
   
   
}

function addVendorComplianceDiv(){
     document.getElementById("DemoMenu").style.visibility = "hidden";
     sendTo = returnPlace + "Demo_VendorCompliance.html";
     window.open(sendTo,'VendorCompliance_Demo','width=1100,height=850,scrollbars=yes');

}


function addVendorComplianceDivOld(){
document.getElementById("DemoMenu").style.visibility = "hidden";
var newdiv = document.createElement('div');
   newdiv.setAttribute('id', 'VendorCompliance');
   newdiv.style.zIndex = 820;
   newdiv.display = "block";
   newdiv.style.position="absolute";
   newdiv.style.top="0px";
   newdiv.style.left="30px";
   newdiv.style.visibility="hidden";
   newdiv.style.backgroundColor="#FFFFFF";
   
   
   document.body.appendChild(newdiv);
   html="<input type='button' value='Close' onclick='closeVendorCompliance()' />";
   html+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; May take up to 90 seconds to load demonstration.<br/>";
   html+=" <OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' WIDTH='1024' HEIGHT='790'>";   html+="<PARAM NAME=movie VALUE='" + returnPlace + "Demos/wbsVendorCompliance.swf'>";   html+="<PARAM NAME=quality VALUE='high'>";   html+="<PARAM NAME=wmode  VALUE='opaque'>";   html+="<EMBED src='" + returnPlace + "Demos/wbsVendorCompliance.swf' wmode='opaque' quality='high' WIDTH='1024' HEIGHT='790' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>"   html+="</OBJECT>";
   html+="<br /><br />";
   html+="<input type='button' value='Close' onclick='closeVendorCompliance()' />";
   document.getElementById('VendorCompliance').innerHTML = html;
   currentDivToPlay = "VendorCompliance";
   setTimeout('turnOnGeneralDemo()', 2700);
   
}

function closeReceivingDemoII(){
     DIVtoRemove = document.getElementById("ReceivingDemoII");
     DIVtoRemove.innerHTML="";
     document.body.removeChild(DIVtoRemove);
}
function closeOrderFulfillment(){
     DIVtoRemove = document.getElementById("OrderFulfillment");
     DIVtoRemove.innerHTML="";
     document.body.removeChild(DIVtoRemove);
}
function closeInventoryManagement(){
     DIVtoRemove = document.getElementById("InventoryManagement");
     DIVtoRemove.innerHTML="";
     document.body.removeChild(DIVtoRemove);
}
function closeYardManagement(){
     DIVtoRemove = document.getElementById("YardManagement");
     DIVtoRemove.innerHTML="";
     document.body.removeChild(DIVtoRemove);
}
function closeThirdPartyBilling(){
     DIVtoRemove = document.getElementById("ThirdPartyBilling");
     DIVtoRemove.innerHTML="";
     document.body.removeChild(DIVtoRemove);
}
function closeGeneralApplicationOverview(){
     DIVtoRemove = document.getElementById("GeneralApplicationOverview");
     DIVtoRemove.innerHTML="";
     document.body.removeChild(DIVtoRemove);
}
function closeVendorCompliance(){
     DIVtoRemove = document.getElementById("VendorCompliance");
     DIVtoRemove.innerHTML="";
     document.body.removeChild(DIVtoRemove);
}

function demoClose(e) {
      var element;
      
      
      if (window.event){
         e.cancelBubble = true;
         element = window.event.srcElement;
      }else if (e){
          element = e.target;
          e.stopPropagation();
      }

    //if (window.event.srcElement.tagName=="DIV") {
        if (element.id == "DemoMenu"){
            canClose=true;
            setTimeout('closeTheDemoDiv()', 100);
            
        }
    //}
}
function doNothing(e) {
     canClose=false;
     document.getElementById("DemoMenu").style.visibility = "visible";
}
function closeTheDemoDiv() {
     if (canClose){
        document.getElementById("DemoMenu").style.visibility = "hidden";
     }
}
function showPopClick(){
     document.getElementById("PopClick").style.visibility = "visible";
}
function hidePopClick(){
     document.getElementById("PopClick").style.visibility = "hidden";
}
function whereAreWe() {
       returnPlace="http://www.wbsus.com/";
       var currentLocation = location.href.toString();
       if (currentLocation.indexOf("local") != -1) {
            returnPlace="";
       }
       if (currentLocation.indexOf("Beta") != -1) {
            returnPlace="http://www.wbsus.com/Beta/";
       }
       if (currentLocation.indexOf("beta") != -1) {
            returnPlace="http://www.wbsus.com/beta/";
       }
       returnPlace="";
       //alert('We are at:' + returnPlace);
       
}

function turnOnGeneralDemo(){
      document.getElementById(currentDivToPlay).style.visibility="visible";
}