function shfoto(e,num,coun)
{	
	document.getElementById('foto').style.display = 'block';
	document.getElementById('body').style.display = 'block';
	var obj=document.getElementById('foto');

	var isDOM=document.getElementById; //DOM1 browser (MSIE 5+, Netscape 6, Opera 5+) 
	var isMSIE=document.all && document.all.item; //Microsoft Internet Explorer 4+ 
	var isNetscape4=document.layers; //Netscape 4.* 
	var isOpera=window.opera; //Opera  
	var isMozilla=isNetscape6=isDOM && !isMSIE && !isOpera; 

	mousex = 0;
	mousey = 0;

	if(isMSIE)
	{
		var h1=document.body.scrollHeight;
		document.getElementById('body').style.height=h1;
		mousex=e.clientX+document.body.scrollLeft;
		mousey=e.clientY+document.body.scrollTop;
		var wwidth1=document.body.clientWidth; 
		obj.style.left = (wwidth1-900)/2;
		obj.style.top = mousey-320+ 'px';
	}
	if(isOpera)
	{
		var h2=document.body.scrollHeight;
		document.getElementById('body').style.height=h2;
		mousex=e.clientX+pageXOffset;
		mousey=e.clientY+pageYOffset;
		var wwidth2=innerWidth;
		obj.style.left = (wwidth2-900)/2;
		obj.style.top = mousey-320+ 'px';
	}
	else if(isNetscape4 || isMozilla)
	{	
		var h3=document.height;
		document.getElementById('body').style.height=h3;
		mousex = e.pageX
		mousey = e.pageY
		var wwidth3=innerWidth;
		obj.style.left = (wwidth3-900)/2;
		obj.style.top = mousey-380+ 'px';
	}

	return false;
}

function hidfoto()
{
	document.getElementById('foto').style.display = 'none'; 
	document.getElementById('body').style.display = 'none'; 
	document.getElementById('img_text').style.display = 'none'; 
	document.getElementById('img_pag').style.display = 'none';
	return false;
}
		
		
