	var activeSub=0;
	var SubNum=0;
	var langId = "";
	var net = "";
	

	function reDo(){
		window.location.reload()
	}

	// on window resize reload
	window.onresize = reDo;


   //Define global variables

	var timerID = null;
	var timerOn = false;
	var timecount = 1000;
	var what = null;
	var newbrowser = true;
	var check = false;

	function init(){
		/*
		//  alert ("Running Init");
		if(document.all){
			//  alert ("Running IE");
			layerRef="document.all";
			styleSwitch=".style";
			visibleVar="visible";
			screenSize = document.body.clientWidth + 18;
			what ="ie";
		}
		else{
			//alert("Older than 4.0 browser.");
			what="none";
			newbrowser = false;
		}
		// window.status='status bar text to go here';
		*/
		what = "ie";
		check = true;
	}

	// Turns the layers on and off
	function showLayer(layerNum){
		if(check){
			if (what == "none"){
				return;
			}
			else{
				//obj = eval(layerRef+'.layer'+layerNum);
				obj = document.getElementById('layer'+layerNum);
				net ? screenSite_net(layerNum) : screenSite(layerNum);
				
				obj.style.visibility="visible";
				if(!net)
					document.getElementById('start').style.visibility = "hidden";
					//document.all.start.style.visibility = "hidden";
			}
		}
		else{
		 	//alert ("Please wait for the page to finish loading.");
			return;
		}
	}

	function drawTd(me){
		if(net){
			me.style.color = "#000000";
			me.style.backgroundColor = "#e8eef4";
		}	
		else{	
			if(langId==1 || langId==8 || langId==3 || langId==11 || langId==12 || langId==13 || langId==14 || langId==5 || langId==15 || langId==2 || langId==6 || langId==9 || langId==16){
				me.style.color = "#DBEAD3";
				me.style.backgroundColor = "#6F995A";
			}
			else{
				me.style.color = "#000000";
				me.style.backgroundColor = "#e8eef4";
			}
		}
	}
	
	function clearTd(me){
		if(net){
			me.style.color = "#000000";
			me.style.backgroundColor = "#ffffff";
		}	
		else{	
			if(langId==1 || langId==8 || langId==3 || langId==11 || langId==12 || langId==13 || langId==14 || langId==5 || langId==15 || langId==2 || langId==6 || langId==9 || langId==16){
				me.style.color = "#DBEAD3";
				me.style.backgroundColor = "#6F995A";
			}
			else{
				me.style.color = "#000000";
				me.style.backgroundColor = "#ffffff";
			}
		}
	}
	
	
	function hideLayer(layerNum){
		if(check){
			if (what =="none")
				return;
			else{
				//eval(layerRef+'[layer"'+layerNum+'"]'+styleSwitch+'.visibility="hidden"');
				//obj = eval(layerRef+'.layer'+layerNum);
				obj = document.getElementById('layer'+layerNum);
				if(obj==undefined)
					return;
				obj.style.visibility="hidden";
				if(!net)
					document.getElementById('start').style.visibility = "visible";
					//document.all.start.style.visibility = "visible";				
			}
		}
		else // alert ("Please wait for the page to finish loading.");
			return;
	}

	function hideAll(){
		hideLayer(1);
		hideLayer(2);
		hideLayer(3);
		hideLayer(4);
		hideLayer(5);		
	}


	function startTime() {
		if (timerOn == false) {
			timerID=setTimeout( "hideAll()" , timecount);
			timerOn = true;
		}
	}


	function stopTime() {
		if (timerOn) {
			clearTimeout(timerID);
			timerID = null;
			timerOn = false;
		}
	}

	function onLoad(){
		init();
	}

	function screenSite(layerNum){
		//obj = eval(layerRef+'.layer'+layerNum);
		obj = document.getElementById('layer'+layerNum);
		width = document.body.clientWidth ;
	  	height = document.body.clientHeight;
		if(width<779){
			far1 = 194+4;
		}
		else{
			far1 = (width-770)/2 + 189+4;
		}
		switch(langId){
			case 16:
				obj.style.top=339;
				break;
			case 15:
				obj.style.top=339;
				break;
			case 14:
				obj.style.top=339;
				break;
			case 13:
				obj.style.top=339;
				break;
			case 12:
				obj.style.top=339;
				break;
			case 11:
				obj.style.top=339;
				break;
			case 9:
				obj.style.top=339;
				break;
			case 8:
				obj.style.top=339;
				break;
			case 6:
				obj.style.top=339;
				break;
			case 5:
				obj.style.top=339;
				break;
			case 3:
				obj.style.top=315;
				break;
			case 4:
				obj.style.top=319;
				break;
			case 2:
				obj.style.top=339;
				break;
			case 1:
				obj.style.top=339;
				break;			
			default:
				obj.style.top=327;
				break;
		}
		
		switch(layerNum){
			case 6:
				switch(langId){
					case 1:
						obj.style.left=far1;				
					break;
					case 2:
						obj.style.left=far1;
					break;
					case 3:
						obj.style.right=far1+247;				
					break;
					case 4:
						obj.style.left=far1+334;								
					break;
					case 5:
						obj.style.left=far1+340;								
					break;
					case 6:
						obj.style.left=far1;				
					break;
					case 8:
						obj.style.left=far1;				
					break;
					case 9:
						obj.style.left=far1;				
					break;
					case 11:
						obj.style.left=far1;				
					break;
					case 13:
						obj.style.left=far1;				
					break;
					case 14:
						obj.style.left=far1;				
					break;
					case 15:
						obj.style.left=far1;				
					break;
					case 16:
						obj.style.left=far1;				
					break;
					default:
						obj.style.left=far1;				
					break;
				}	
			break;
		
			case 5:
				switch(langId){
					case 1:
						obj.style.left=far1;				
					break;
					case 2:
						obj.style.left=far1;
					break;
					case 3:
						obj.style.right=far1+428;				
					break;
					case 4:
						obj.style.left=far1+400;								
					break;
					case 5:
						obj.style.left=far1+400;
					break;
					case 6:
						obj.style.left=far1;				
					break;
					case 8:
						obj.style.left=far1;				
					break;
					case 9:
						obj.style.left=far1;				
					break;
					case 11:
						obj.style.left=far1;				
					break;
					case 12:
						obj.style.left=far1+409;				
					break;
					case 13:
						obj.style.left=far1;				
					break;
					case 14:
						obj.style.left=far1;				
					break;
					case 15:
						obj.style.left=far1;				
					break;
					case 16:
						obj.style.left=far1;				
					break;
					default:
						obj.style.left=far1;				
					break;
				}	
			break;
		
			case 4:
				switch(langId){
					case 1:
						obj.style.left=far1+378;				
					break;
					case 2:
						obj.style.left=far1+400;							
					break;
					case 3:
						obj.style.right=far1+351;				
					break;
					case 4:
						obj.style.left=far1+334;								
					break;
					case 5:
						obj.style.left=far1+270;								
					break;
					case 6:
						obj.style.left=far1+315;				
					break;
					case 8:
						obj.style.left=far1+398;				
					break;
					case 9:
						obj.style.left=far1+378;				
					break;
					case 11:
						obj.style.left=far1+395;				
					break;
					case 12:
						obj.style.left=far1+315;				
					break;
					case 13:
						obj.style.left=far1+290;				
					break;
					case 14:
						obj.style.left=far1+378;				
					break;
					case 15:
						obj.style.left=far1+296;				
					break;
					case 16:
						obj.style.left=far1+378;				
					break;
					default:
						obj.style.left=far1+360;				
					break;
				}	
			break;
			case 3:
				switch(langId){
					case 1:
						obj.style.left=far1+308;
					break;
					case 2:
						obj.style.left=far1+238;
					break;
					case 3:
						obj.style.right=far1+211;				
					break;
					case 4:
						obj.style.left=far1+228;				
					break;
					case 5:
						obj.style.left=far1+172;
					break;
					case 6:
						obj.style.left=far1+297;
					break;
					case 8:
						obj.style.left=far1+315;
					break;
					case 9:
						obj.style.left=far1+242;				
					break;
					case 11:
						obj.style.left=far1+280;
					break;
					case 12:
						obj.style.left=far1+209;
					break;
					case 13:
						obj.style.left=far1+180;
					break;
					case 14:
						obj.style.left=far1+308;
					break;
					case 15:
						obj.style.left=far1+251;
					break;
					case 16:
						obj.style.left=far1+308;
					break;
					default:
						obj.style.left=far1+295;
					break;
				}	
			break;
			case 2:
				switch(langId){
					case 1:
						obj.style.left=far1+153;
					break;
					case 2:
						obj.style.left=far1+147;
					break;
					case 3:
						obj.style.right=far1+100;				
					break;
					case 4:
						obj.style.left=far1+118;				
					break;
					case 5:
						obj.style.left=far1+89;				
					break;
					case 6:
						obj.style.left=far1+140;
					break;
					case 8:
						obj.style.left=far1+153;
					break;
					case 9:
						obj.style.left=far1+155;				
					break;
					case 11:
						obj.style.left=far1+142;
					break;
					case 12:
						obj.style.left=far1+113	;
					break;
					case 13:
						obj.style.left=far1+90;
					break;
					case 14:
						obj.style.left=far1+153;
					break;
					case 15:
						obj.style.left=far1+100;
					break;
					case 16:
						obj.style.left=far1+153;
					break;
					default:
						obj.style.left=far1+151;
					break;
				}	
			break;
			default:
				switch(langId){
					case 3:
						obj.style.right=far1-2;
					break;
					case 9:
						obj.style.left=far1-2;
					break;
					case 2:
						obj.style.left=far1-9;
						break;
					default:
						obj.style.left=far1;				
				}	
			break;
		}	
	}	

	function screenSite_net(layerNum){
		//obj = eval(layerRef+'.layer'+layerNum);
		obj = document.getElementById('layer'+layerNum);
		width = document.body.clientWidth ;
	  	height = document.body.clientHeight;
		// position from side
		far1 = 230
		switch(langId){	
			case 3:
					obj.style.right = far1 
				break;
			default:
				obj.style.left = far1 
		}
		// position from top
		obj.style.top = 290+layerNum*25 
	}	
	
