/*************************************************************
* This script gives the configuration details of menus system  
***************************************************************/

<!--
	var ns4 = (document.layers)? true:false;
   	var ie4 = (document.all)? true:false;
	bName = navigator.appName; bVer = parseInt(navigator.appVersion);
if(ns4){
	htmltext = "<LAYER ID='container' visibility='hidden'; z-index="+sensorIndex+"; left="+containerLeft+"; top="+containerTop+"></LAYER>";
	document.open();
	document.write(htmltext);
	document.close();
}


function ShowGlassWindow(fullUrl) {   
   // show a pop-up window containing the url supplied   
   // if the pop-up already exists, load the url, otherwise create the new window and show the url   
	if ((typeof(GlassWindow) != "object") || (GlassWindow.closed) ) {   
      // open (or re-open) the window if it doesn't exist, or is closed   
      GlassWindow = window.open(fullUrl,"GlassWindow","status=no,toolbar=no,menubar=yes,location=no,"   
         + "status=no,directories=no,scrollbars=auto,resizable=yes,width=520,height=480,top=5,left=5");   
   }else{   
      // set the url of the currently open window   
      GlassWindow.location = fullUrl;   
   }   
   //GlassWindow.focus();		// force new window to have focus so it's not lost under this window   
}   

//Launch SignUpWindow
function ShowSignUpWindow(fullUrl) {   
   // show a pop-up window containing the url supplied   
   // if the pop-up already exists, load the url, otherwise create the new window and show the url     
	if ((typeof(SignUpWindow) != "object") || (SignUpWindow.closed) ) 
{   
//      open (or re-open) the window if it doesn't exist, or is closed   
      SignUpWindow = window.open(fullUrl,"SignUpWindow","status=no,toolbar=no,menubar=no,location=no,"   
         + "status=no,directories=no,scrollbars=no,resizable=no,width=390,height=342");   
   }else{   
      // set the url of the currently open window   
      SignUpWindow.location = fullUrl;   
   }   
   SignUpWindow.focus();		// force new window to have focus so it's not lost under this window   
}   

//script for Graduate
function launchGraduate() {
if(version == "x") return;
   else if(version == "n4"){ var newwin = window.open("http://www.vauxhall.co.uk/graduate/indexnc.html","Graduate1", "title=Vauxhall Graduate,width=780,height=450, scrollbars=no"); newwin.creator = self;}
   else if(version == "n3") 
                {
                if(navigator.appVersion.lastIndexOf("Mac") != -1) { var newwin = window.open("","Graduate2","width=780,height=450,status=no,scrollbars=0,resizeable=0"); newwin.location.href="http://www.vauxhall.co.uk/graduate/indexnc.html"; newwin.creator = self;}
                else var newwin = window.open("","Graduate3","width=780 scrollbars=0,height=450,title=Vauxhall Graduate,status=no,resizeable=0"); newwin.location.href="http://www.vauxhall.co.uk/graduate/indexnc.html"; newwin.creator = self;
                }
                else if(version == "n2") window.location.href = "http://www.vauxhall.co.uk/graduate/indexnc.html";
                else if(version == "e4") var newwin = window.open("http://www.vauxhall.co.uk/graduate/indexnc.html","Graduate4","title=Vauxhall Graduate,width=780,height=450,scrollbars=no,status=no,resizeable=no");                
		else if(version == "e3") var newwin = window.open("http://www.vauxhall.co.uk/graduate/indexnc.html","Graduate5","title=Vauxhall Graduate,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=780,height=450");
}

function launchNew()  {
	arrayTop = "vxmenu17 = new Array(\"TrafficNet2\",\"/trafficnet/index.jhtml\",\"hilite\",565,106,96,16,\"vert\");";
	document.open();
	document.writeln(arrayTop);
	document.close();
			}

function jumpToURL( selectObject ) {                                        
	// Validate parameter value                                                   
	if (selectObject == null)       {
		return null;                
	}                                               	                                                                              
	if (selectObject.selectedIndex == "undefined" ||                       
            selectObject.selectedIndex == null ||                                
	        selectObject.selectedIndex < 0)                                      
		return null;                                                                                                                                                
	if (selectObject.options[selectObject.selectedIndex].value != "nothing")	{
		top.document.location = selectObject.options[selectObject.selectedIndex].value;  
	return null;                                                                  
	}
}                                   

//script for Coupe launchsite
function launchCoupe() {
  var winApp;
  winApp=window.open("/coupe/index.jhtml", "Coupe", "status=0,scrollbars=0,resizable=0,screenx=0,screeny=0,WIDTH=590,HEIGHT=375");    
  if( winApp != null && navigator.appName == "Netscape" ) {
     winApp.focus();
  }
}

//script for Agila launchsite
function launchAgila() {
  var winApp;
  winApp=window.open("/agila/Agila%20-%20Home.htm", "Agila", "status=0,scrollbars=0,resizable=0,screenx=0,screeny=0,WIDTH=618,HEIGHT=335");    
  if( winApp != null && navigator.appName == "Netscape" ) {
     winApp.focus();
  }
}

//script for VX220 launchsite
function launchVX220() {
	bName = navigator.appName; bVer = parseInt(navigator.appVersion); var winApp;
	     if(bName == "Netscape") version = "n";
	else if(bName == "Microsoft Internet Explorer") version = "e";
	else version = "x";
	if(version=="n")	{
		winApp=window.open("/VX220LaunchSite/Netscape/index.htm", "VX220", "status=0,scrollbars=0,resizable=0,screenx=0,screeny=0,WIDTH=590,HEIGHT=405");
	}
	else
	if(version=="e")	{
		winApp=window.open("/VX220LaunchSite/index.htm", "VX220", "status=0,scrollbars=0,resizable=0,screenx=0,screeny=0,WIDTH=591,HEIGHT=376");
	}	
	if( winApp != null && navigator.appName == "Netscape" ) {
     winApp.focus();
	}
}

     if(bName == "Netscape" && bVer >= 4) version = "n4";
else if(bName == "Netscape" && bVer == 3) version = "n3";
else if(bName == "Netscape" && bVer == 2) version = "n2";
else if(bName == "Microsoft Internet Explorer" && bVer >= 4) version = "e4";
else if(bName == "Microsoft Internet Explorer" && bVer >= 2) version = "e3";
else version = "x";
if(version == "n4" && navigator.appVersion.lastIndexOf("Mac") != -1) version = "n3";

/*********************Start of menu configuration****************************
*  Array description
*  	menuname = new Array{
*	"title", "link","hilite"/"nohilite",baselink,type
*	"title", "link","hilite"/"nohilite",baselink,type
*	"title", "link","hilite"/"nohilite",baselink,type
*	Xposition of menu,Yposition of menu,
*	Width of elements,Height of elements,   Height and width should be the same for all element in the same menu so
*	Vertical/horizontal  			specified at the menu level
*	);  
*  function example:   calling(\"something\");                
*****************************************************************************/

//Empresa
vxmenu1 = new Array(
"Institucional","metal.asp","hilite","link","1",
"Perfil Técnico","perfil.asp","hilite","link","1",
178,0,
100,16,
"vert"
);

//Produtos
vxmenu2 = new Array(
"Descrição","descri.asp","hilite","link","1",
"Base Coats","vxmenu5","hilite","#","4",
"Top Coats","top.asp","hilite","link","1",
"Vantagens","van.asp","hilite","link","1",
250,0,
90,16,
"vert"
);

//Aplicacao
vxmenu3 = new Array(
"Processos","vxmenu6","hilite","aplic.asp","4",
320,0,
80,16,
"vert"
);

//Utilizacao
vxmenu4 = new Array(
"Produtos","utilipro.asp","hilite","link","1",
"Normas Técnicas","norm.asp","hilite","link","1",
397,0,
110,16,
"vert"
);

//Produtos-Base Coats
vxmenu5 = new Array(
"Dacromet&reg;","dacro.asp","hilite","link","1",
"Geomet&reg;","geomet.asp","hilite","link","1",
339,16,
90,16,
"vert"
);

//Aplicacao-Processos
vxmenu6 = new Array(
"Limpeza","limp.asp","hilite","link","1",
"Revestimento","reves.asp","hilite","link","1",
"Cura","cura.asp","hilite","link","1",
399,0,
90,16,
"vert"
);

//-->


