
		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; }
		}

		
			
		
		//Show functions
		function shownav() {
		        if (n)  	{drop1.visibility = "show";}
			if (ie) 	{drop1.visibility = "visible";}
			if (ns6) 	{drop1.visibility = "visible";}
		}

		

		// Hide finctions 
		function hidenav() {
			if (n)  	{drop1.visibility = "hide";}
			if (ie) 	{drop1.visibility = "hidden";}
			if (ns6) 	{drop1.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 + 160; 		//nav : name of the layer you want to position
				
				
			}
			else if(client_width < static_table){
				document.layers['nav'].left =  160;
				
				
			}


	}
	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 + 170;
				
				
				
				}
				else if(width < static_table)
				{
				document.all['nav'].style.left = 170;
				
				
			}
			} else {
			if(width >= static_table){
				document.all['nav'].style.left = x + 160;
				
				
				}
				else if(width < static_table)
				{
				document.all['nav'].style.left = 160;
				
				
			}
		}
				
					
	
			
	}
	else if (ns6)
	{
	width = document.body.offsetWidth;
	x = (width - static_table)/2;
			if(width >= static_table)
				{
				document.getElementById('nav').style.left = x + 160;
				
				
				}
				else if(width < static_table)
				{
				document.getElementById('nav').style.left =  160;
				
				
				}
	}
}


		if(ie) { window.onresize = posDyn };