function getTop(obj)
{  
		var curtop = 0;
		if (obj.offsetParent) 
    {
			while (obj) 
      {
				curtop += obj.offsetTop;
				obj = obj.offsetParent;
			}
		}
		return curtop;	
} 
	
function getLeft(obj)
{  
		var curleft = 0;
		if (obj.offsetParent) 
    {
			while (obj) 
      {
				curleft += obj.offsetLeft;
				obj = obj.offsetParent;
			}
		}
		return curleft;	
}

function showPic(o,bigimgurl,detailurl)
{ 
	try 
    {
			clearTimeout(timer);
		} 
    catch(s) {}
	   var x= getLeft(o);
	   var y= getTop(o);
	   document.getElementById("Layer1").style.left = x+"px"; 
	   document.getElementById("Layer1").style.top = y+"px"; 
	   document.getElementById("Layer1").innerHTML = '<div id="pointer" class="" style="top: 5px; left: -370px;" />'+
	   '<div id="pop" class="" style="top: -150px; left: 0px;" >'+
	   '<div class="bg"/>'+
	   '<div class="con" >'+
	   '<div class="big_picture" >'+
	   '<a href="'+detailurl+'" target="_blank">'+
					'<img src="'+bigimgurl+'" style="display: inline; width: 320px; height: 240px;"/>'+
					'</a>'+
			'</div>'+
		'</div>'+
	   '</div>'; 	
	   document.getElementById("Layer1").style.display = "block"; 
} 
 
function hPic()
{ 
	document.getElementById("Layer1").innerHTML = ""; 
	document.getElementById("Layer1").style.display = "none"; 
} 
    
function clearPPTimer()
{
	try 
    {
			clearTimeout(timer);
		} 
  catch(s) {}
}

function showPPOut()
{
	timer = setTimeout("hPic()",500);
}
   