		
		
		/*test*/
		
		n = (document.layers)? true:false
		ie = (document.all)? true:false
		ns6 = (navigator.vendor)? true:false


		function init() {
		    /*    	if (n)  	{drop1 = document.nav; }
				if (ie) 	{drop1 = nav.style; }
				if (ns6)  	{drop1 = document.getElementById('nav').style; }*/
				if(document.getElementById('nav')){
					drop1 = document.getElementById('nav').style;
				}
				
				
				/*if (n)  	{drop2 = document.nav2; }
				if (ie) 	{drop2 = nav2.style; }
				if (ns6)  	{drop2 = document.getElementById('nav2').style; }*/
				if(document.getElementById('nav2')){
					drop2 = document.getElementById('nav2').style;
				}
				
				/*if (n)  	{drop3 = document.nav3; }
				if (ie) 	{drop3 = nav3.style; }
				if (ns6)  	{drop3 = document.getElementById('nav3').style; }*/
				if(document.getElementById('nav3')){
					drop3 = document.getElementById('nav3').style;
				}
				
				/*if (n)  	{drop4 = document.nav4; }
				if (ie) 	{drop4 = nav4.style; }
				if (ns6)  	{drop4 = document.getElementById('nav4').style; }*/
				if(document.getElementById('nav4')){
					drop4 = document.getElementById('nav4').style;
				}
				
		}

		
			
		
		//Show functions
		function shownav() {
		   /*     if (n)  	{drop1.visibility = "show";}
			if (ie) 	{drop1.visibility = "visible";}
			if (ns6) 	{drop1.visibility = "visible";}*/
			drop1.visibility = "visible";
		}

		function shownav2() {
			/*if (n)  	{drop2.visibility = "show";}
			if (ie) 	{drop2.visibility = "visible";}
			if (ns6) 	{drop2.visibility = "visible";}*/
			drop2.visibility = "visible";

		}

		function shownav3() {
			/*if (n)  	{drop3.visibility = "show";}
			if (ie) 	{drop3.visibility = "visible";}
			if (ns6) 	{drop3.visibility = "visible";}*/
			drop3.visibility = "visible";

		}
		
		function shownav4() {
			/*if (n)  	{drop4.visibility = "show";}
			if (ie) 	{drop4.visibility = "visible";}
			if (ns6) 	{drop4.visibility = "visible";}*/
			drop4.visibility = "visible";
				
		}
		
		

		// Hide finctions 
		function hidenav() {
			/*if (n)  	{drop1.visibility = "hide";}
			if (ie) 	{drop1.visibility = "hidden";}
			if (ns6) 	{drop1.visibility = "hidden";}*/
			drop1.visibility = "hidden";

		}

		function hidenav2() {
			/*if (n)  	{drop2.visibility = "hide";}
			if (ie) 	{drop2.visibility = "hidden";}
			if (ns6) 	{drop2.visibility = "hidden";}*/
			drop2.visibility = "hidden";

		}

		function hidenav3() {
			/*if (n)  	{drop3.visibility = "hide";}
			if (ie) 	{drop3.visibility = "hidden";}
			if (ns6) 	{drop3.visibility = "hidden";}*/
			drop3.visibility = "hidden";
		}
		
		
		function hidenav4() {
			/*if (n)  	{drop4.visibility = "hide";}
			if (ie) 	{drop4.visibility = "hidden";}
			if (ns6) 	{drop4.visibility = "hidden";}*/
			drop4.visibility = "hidden";
		}
		
		



function posDyn(){
  static_table = 750; // width of your 800 x 600 page/table
  	
  ns4 = (document.layers)? true:false
  ie4 = (document.all)? true:false
  ns6 = (document.getElementById)? true:false
  
	if(ns4){
	client_width = window.innerWidth;
	x = (client_width - static_table)/2; 			// x = left space when your resolution width is above "static_table" width

		       if(client_width >= static_table){
				document.layers['nav'].left = x + 425; 		//nav : name of the layer you want to position
				document.layers['nav2'].left = x + 394;
				document.layers['nav3'].left = x + 326;
				document.layers['nav4'].left = x + 320;
				
			}
			else if(client_width < static_table){
				document.layers['nav'].left =  425;
				document.layers['nav2'].left =  394;
				document.layers['nav3'].left =  326;
				document.layers['nav4'].left =  320;
				
			}


	}
	else if (ie4)
	{
		
	OS = navigator.platform;
	width = document.body.offsetWidth;
	x = (width - static_table)/2;
	
		if( OS == "MacPPC" ) {
			if(width >= static_table){
				document.all['nav'].style.left = x + 435;
				document.all['nav2'].style.left = x + 404;
				document.all['nav3'].style.left = x + 336;
				document.all['nav4'].style.left = x + 330;
				
				
				}
				else if(width < static_table)
				{
				document.all['nav'].style.left = 435;
				document.all['nav2'].style.left = 404;
				document.all['nav3'].style.left = 336;
				document.all['nav4'].style.left = 330;
				
			}
			} else {
			if(width >= static_table){
				document.all['nav'].style.left = x + 425;
				document.all['nav2'].style.left = x + 394;
				document.all['nav3'].style.left = x + 326;
				document.all['nav4'].style.left = x + 320;
				
				
				}
				else if(width < static_table)
				{
				document.all['nav'].style.left = 425;
				document.all['nav2'].style.left = 394;
				document.all['nav3'].style.left = 326;
				document.all['nav4'].style.left = 320;
				
			}
		}
				
					
	
			
	}
	else /*if (ns6)*/
	{
	width = document.body.offsetWidth;
	x = (width - static_table)/2;
			if(width >= static_table)
				{
					if(document.getElementById('nav')){
						document.getElementById('nav').style.left = x + 405;
					}
					if(document.getElementById('nav2')){
						document.getElementById('nav2').style.left = x + 394;
					}
					if(document.getElementById('nav3')){
						document.getElementById('nav3').style.left = x + 326;
					}
					if(document.getElementById('nav4')){
						document.getElementById('nav4').style.left = x + 320;
					}
				}
				else if(width < static_table)
				{
					if(document.getElementById('nav')){
						document.getElementById('nav').style.left =  405;
					}
					if(document.getElementById('nav2')){
						document.getElementById('nav2').style.left =  394;
					}
					if(document.getElementById('nav3')){
						document.getElementById('nav3').style.left =  326;
					}
					if(document.getElementById('nav4')){
						document.getElementById('nav4').style.left =  320;
					}
				}
	}
}


			if(ie) { window.onresize = posDyn };