document.write('<div id=_show_img_pr onClick="javascript:{unshow_i(); return false;}" style="position:absolute; left:0; top:0; display:none; background:url(\'images/_s_i_b_.png\'); z-order:900;"></div>');
document.write('<div id=show_img_ onClick="javascript:{unshow_i(); return false;}" style="position:absolute; left:0; top:0; display:none; z-order:1000;"></div>');

function unshow_i()
{
	var d1=document.getElementById('_show_img_pr');
	d1.style.display='none';
		
	var d=document.getElementById('show_img_');	
	d.style.display='none';	
}

function _show_i_(img,event)
{
		if (window.innerHeight && window.scrollMaxY) {	
			xScroll = window.innerWidth + window.scrollMaxX;
			yScroll = window.innerHeight + window.scrollMaxY;
		} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
			xScroll = document.body.scrollWidth;
			yScroll = document.body.scrollHeight;
		} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
			xScroll = document.body.offsetWidth;
			yScroll = document.body.offsetHeight;
		}
		
		var windowWidth, windowHeight;
		if (self.innerHeight) {	// all except Explorer
			if(document.documentElement.clientWidth){
				windowWidth = document.documentElement.clientWidth; 
			} else {
				windowWidth = self.innerWidth;
			}
			//windowWidth = self.innerWidth;
			windowHeight = self.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
			windowWidth = document.documentElement.clientWidth;
			windowHeight = document.documentElement.clientHeight;
		} else if (document.body) { // other Explorers
			windowWidth = document.body.clientWidth;
			windowHeight = document.body.clientHeight;
		}			
		
		
		// for small pages with total height less then height of the viewport
		if(yScroll < windowHeight){
			pageHeight = windowHeight;
		} else { 
			pageHeight = yScroll;
		}
	
		// for small pages with total width less then width of the viewport
		if(xScroll < windowWidth){	
			pageWidth = windowWidth;		
		} else {
			pageWidth = xScroll;
		}
		ww=pageWidth;
		hh=pageHeight;
	
		if (event)
		{
			e=event;
		}
		else
		{
			e=window.event;
		}
		if (e.pageX || e.pageY)
		{ 
			x = e.pageX;
			x1 = e.pageX - x;
			y = e.pageY;
			
		}
		else if (e.clientX || e.clientY)
		{ 
			
			x = e.clientX + (document.documentElement.scrollLeft ||	document.body.scrollLeft) - document.documentElement.clientLeft;
			x1= e.clientX + (document.documentElement.scrollLeft ||	document.body.scrollLeft) - document.documentElement.clientLeft - x;
			y = e.clientY + (document.documentElement.scrollTop || document.body.scrollTop) - document.documentElement.clientTop;
		}		
		
		
	
	var d1=document.getElementById('_show_img_pr');		
	d1.style.width=ww;
	d1.style.height=hh;
	//d1.style.display='block';
		
	var arrayPageScroll = document.viewport.getScrollOffsets();
    var yTop = arrayPageScroll[1] + (document.viewport.getHeight() / 10);
    var xLeft = arrayPageScroll[0];
			
	var d=document.getElementById('show_img_');	
	
	//d.innerHTML='';
	//d.innerHTML+='<table border=0 cellspacing=0 cellpadding=0 width='+ windowWidth +' height=' +windowHeight+ '>';
	//d.innerHTML+='<tr height=*><td colspan=3>&nbsp;</td></tr>';
	//d.innerHTML+='<tr width=' + windowWidth +'><td></td><td align=center valign=top><img src="' + img +'" onClick="javascript:{unshow_i(); return false;}" onMouseOut="javascript:{unshow_i(); return false;}"></td><td></td></tr>';
	//d.innerHTML+='<tr height=*><td colspan=3>&nbsp;</td></tr>';
	//d.innerHTML+='</table>';
	
	//d.innerHTML+='<table border=0 cellspacing=0 cellpadding=0 width='+ windowWidth +' height=' +windowHeight+ '>';
	//d.innerHTML+='<tr width='+ windowWidth +' height=' +windowHeight+ '><td width='+ windowWidth +' height=' +windowHeight+ ' valign=top align=right>';
	//d.innerHTML+='<center><img src="' + img +'" onClick="javascript:{unshow_i(); return false;}" onMouseOut="javascript:{unshow_i(); return false;}"></center>';
	//d.innerHTML+='</td></tr>';
	//d.innerHTML+='</table>';
	d.innerHTML='<img src="' + img +'" onClick="javascript:{unshow_i(); return false;}" onMouseOut="javascript:{unshow_i(); return false;}">';
	d.style.display='block';
	
	if (x > d.clientWidth+5)
	{
		d.style.left=x - 4 - d.clientWidth;
	}
	else
	{
		d.style.left=x+4;
	}
	d.style.top=y+4;
	
	//d.style.width=windowWidth;
	//d.style.height=windowHeight;	
	
	
}
