
var ns4;
var ie4;
var x;

ns4=(document.layers)?true:false
ie4=(document.all)?true:false



function wap(l,t)
{
if(ie4)

	{

	if (screen.height == 600 && screen.width == 800)

		{

		var l1 = l;
		var t1 = t;
		view(l1, t1)
	
		}


	else
		{
	 	 if (screen.height<600 && screen.width <800)

			{
				var l2 = l ;
				var t2 = t;
				view(l2,t2)
			}
					
			
		 else
			{

				var l3 = l+7;
				var t3 = t;
				view(l3,t3)
				
			}

		}	

	}
	
	
	if(ns4)

	{

	if (screen.height == 600 && screen.width == 800)

		{

		var l1 = l;
		var t1 = t;
		view(l1, t1)
	
		}


	else
		{
	 	 if (screen.height<600 && screen.width <800)

			{
				var l2 = l ;
				var t2 = t;
				view(l2,t2)
			}
					
			
		 else
			{

				var l3 = l+7;
				var t3 = t;
				view(l3,t3)
				
			}

		}	

	}
	
	
	
}






function view(fl, ft)
 {
	if(ns4)
	{
		document.layers['Layer1'].visibility='show'
	 	document.layers['Layer1'].top=ft
		document.layers['Layer1'].left=fl
	}

	if(ie4)

	{
		document.all['Layer1'].style.visibility='visible'
		document.all['Layer1'].style.top=ft
		document.all['Layer1'].style.left=fl
         
	}

}


function hidelayer(layername)
	{
 	x=setTimeout("callTry('"+ layername +"')",400);
	}

function callTry(Lay)
	{
	if (ie4)
	{
		eval("document.all['"+Lay+"'].style.visibility='hidden'")
		document.all['Layer1'].style.visibility='hidden'
	 }

if (ns4)
  {
  
  eval("document.layers['"+Lay+"'].visibility='hide'")
  document.layers['Layer1'].visibility='hide'
  }
}

function reset()
{
clearTimeout(x);
}







