
	//GLOBALS
	LeftConstant=75;
	StartLeftConstant=2;
	StartTopConstant=120;
	MainLinkNumber=2;
	LayerOn=0;
	TimeOutId=0;
	DelayConstant=500;
	StartLeft="";
	DocumentName="";
	NameEnding="";
	osType = navigator.appVersion;
	
	//DOCUMENT OBJECT NAME DEPENDS ON BROWSER
	function killIEMac() {

		if (osType.search("Mac") > 0) {
			document.all.L1.style.zIndex=-1;
			document.all.L2.style.zIndex=-1;
			document.all.L3.style.zIndex=-1;
			document.all.L4.style.zIndex=-1;
			document.all.L5.style.zIndex=-1;
			document.all.L6.style.zIndex=-1;
			document.all.L7.style.zIndex=-1;
			document.all.L8.style.zIndex=-1;		
		}	
	}
	
	if(navigator.appName=="Netscape"){
		DocumentName="document.";
		//StartTopConstant=80;
	}
	else{
		DocumentName="document.all.";
		NameEnding=".style";
	}
	


	//FUNCTIONS
	function startAction(layer){
		if (osType.search("Mac") > 0) {
		return
		}
		if(layer==LayerOn){
			id=window.clearTimeout(TimeOutId);
		}
		else{
			if(LayerOn>0){
				id=window.clearTimeout(TimeOutId);
				hideBox();
			}
			showBox(layer);
		}
	}
	
	
	
	function hideBox(){
		layer=eval(DocumentName + "L" + LayerOn + NameEnding);
		layer.left=-500;
		LayerOn=0;
	}
	
	function showBox(layer){
		LayerOn=layer;
		layer=eval(DocumentName + "L" + LayerOn + NameEnding);
		

if(LayerOn=="1") {
StartLeft=10;
}
if(LayerOn=="2") {
StartLeft=65;
}
if(LayerOn=="3") {
StartLeft=150;
}
if(LayerOn=="4") {
StartLeft=242;
}
if(LayerOn=="5") {
StartLeft=307;
}
if(LayerOn=="6") {
StartLeft=420;
}
if(LayerOn=="7") {
StartLeft=470;
}
if(LayerOn=="8") {
StartLeft=550;
}
//		layer.left=LeftConstant*LayerOn+StartLeftConstant;
		layer.left=StartLeft;
		layer.top=StartTopConstant;
	}
	
	function cancelHide(){
		if(TimeOutId==0){
			return;
		}
		else{
			id=window.clearTimeout(TimeOutId);
		}
	}
	
	function reinstateHide() {
		if (osType.search("Mac") > 0) {
			return
		}
		TimeOutId=window.setTimeout("hideBox()",DelayConstant);
	}
	