// JavaScript Document

buildMenu=function() {
	// this builds the main menu - the links down the side
	// Arrays are defined again after this for a second use later
//	links=new Array('applications','packages','components', 'anywhere');
//	alts=new Array('Applications','Packages','Products', 'IceSpy Anywhere');

//	links=new Array('applications','packages','components', 'anywhere');
//	alts=new Array('Applications','Packages','Products', 'IceSpy Anywhere');

	links=new Array('applications','packages','components');
	alts=new Array('Applications','Packages','Products');

	content1=drawButs(links,alts,'1');



	//links=new Array('loggers','mobile','pc','external','special','evaluation','stand','calibration','maintenance','installation','retired','');
	//alts=new Array('Loggers','Mobile Loggers','PC Software','External Probes/Sensors','Special Applications','Evaluation Kit','Stand Alone Products','Calibration Service','Maintenance Contract','Installation Service','Retired Products','');
	//content2=drawButs(links,alts,'2');

	content3='<table width="100%" border="0" cellpadding="0" cellspacing="0">';
	alts=new Array('APPLICATION','OPPORTUNITIES','INSTALLATION METHODS','LOGOS/GUIDELINES','MARKETING/PR');
	links=new Array('application','opportunities','instalation','logos','marketing');
	for (i=0;i<links.length;i++) {

	    	 action="changePage('"+links[i]+"');";
		   	 content3=content3+'<tr><td height="24" align="left" valign="top" bgcolor="#666699" onclick="'+action+'"><img src="images/logon.spacer.gif" width="13" height="24" hspace="0" vspace="0" align="left"><p class="menu">'+alts[i]+'</p></td></tr>';

	}
	content3=content3+'<tr onclick="document.form1.setToOpen.value=0;document.form1.submit();"><td height="24" align="left" valign="top" bgcolor="#666699"><img src="images/logon.spacer.gif" width="13" height="24" hspace="0" vspace="0" align="left"><p class="menu">[X] Close menu</p></td></tr>';
	content3=content3+'</table>';
}

showLogMenu=function() {
	if (document.form1.user.value=='lotsof' && document.form1.pass.value=='usefuldocs') {
		window.location = '/application.asp';
		return;
		document.form1.setToOpen.value=1
		document.form1.submit()
		//obj=MM_findObj('internalMenu');
		//obj.innerHTML=content3;
	}
}

buildMenu();

toggleLogin=function(state) {
	var obj=MM_findObj('loginMenu');
	obj.style.visibility=state;
}