function truebody(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function show_div(image,event)
{
	var actual_height=300;
	var actual_width=300;
	var posx = 0;
	var posy = 0;

	
	
	if (event.pageX || event.pageY) 	
	{
		posx = event.pageX+10;
		posy = event.pageY;
	}
	else if (event.clientX || event.clientY) 	
	{
		posx = event.clientX + document.body.scrollLeft+ document.documentElement.scrollLeft+10;
		posy = event.clientY + document.body.scrollTop+ document.documentElement.scrollTop;
	}
	document.getElementById("image").src=image.src;
	img_div=document.getElementById("enlarge_img");
	var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15;
	var docheight=document.all? Math.min(truebody().scrollHeight, truebody().clientHeight) : Math.min(window.innerHeight);
	
	img_div.style.top=posy+"px";
	img_div.style.left=posx+"px";
	if(posx+actual_width >docwidth-12 )
	{
		img_div.style.left=posx-actual_width-30+"px";
	}
	if(posy+actual_height> docheight)
	{
	//alert(posy-actual_height);
		if((posy-actual_height)>=0)
			img_div.style.top=posy-actual_height+20+"px";
		else
		img_div.style.top="0px";
	}
	img_div.style.display="block";
}
function hide_div(image)
{
document.getElementById("enlarge_img").style.display="none";
}
