
<!--


var iDelay = 250 // Delay to hide in milliseconds
var iNSWidth=100 // Default width for netscape
var sDisplayTimer = null, oLastItem

function getRealPos(i,which) 
	{  
	iPos = 0
  	while (i!=null) {    
				iPos += i["offset" + which];    
				i = i.offsetParent;  
			}
  	return iPos
	}

function showDetails(sDest,itop,ileft,iWidth) 
	{
  
	if (document.all!=null) 
		{    
		var i = window.event.srcElement;    
		stopTimer();
    		dest = document.all[sDest];    
		if ((oLastItem!=null) && (oLastItem!=dest));
      		hideItem();    
		if (dest) 
			{      // Netscape Hack
      				if (i.offsetWidth==0)         
				if (iWidth)          
				i.offsetWidth=iWidth
        		else          
				i.offsetWidth=iNSWidth;      
				if (ileft) 
        				dest.style.pixelLeft = ileft      
			else
        				dest.style.pixelLeft = getRealPos(i,"Left") + i.offsetWidth + 5
      				if (itop)        
					dest.style.pixelTop = itop      
			else
        			dest.style.pixelTop = getRealPos(i,"Top")
      				dest.style.visibility = "visible"    
			}  
		oLastItem = dest  
	}}
	

function stopTimer() 
	{  
		clearTimeout(sDisplayTimer)}function startTimer(el) 
		{
  		if (!el.contains(event.toElement)) 
			{    
				stopTimer()
    				sDisplayTimer = setTimeout("hideItem()",iDelay)  
	}}

function hideItem() 
	{
  	if (oLastItem)    oLastItem.style.visibility="hidden"
	}

function checkOver() 
	{
  	if ((oLastItem) && (oLastItem.contains(event.srcElement)
	))    
	stopTimer()
	}

function checkOut() 
	{  
	if (oLastItem==event.srcElement)
	startTimer(event.srcElement)
	}

document.onmouseover = checkOver
document.onmouseout = checkOut

//-->
function Chg_Layer(a)
{

alert(viewer.location.href);
if (a=="layer1"){
			x = viewer.document.layers[0].visibility; 
			alert(x);
			//viewer.document.layers[1].visibility = visible;
		}
else
			alert("nop");
	


}


