 function view(what, elemento, flag)
 {
 	divelement = document.getElementById(what);
 	widthBigImage = 300;
 	widthThumbImage = 100;
 	//heigthThumbImage = 66;
 	heigthThumbImage = 0;
 	if(flag==1)
 	{
 		divelement.style.visibility='visible';
 		//x = findPosX(elemento)-widthBigImage/2 + widthThumbImage/2;
 		//y = findPosY(elemento) + heigthThumbImage;
 		if(what!='gommone' && what!='h2o')
 		{
 			x = findPosX(document.getElementById('th-blank'))-widthBigImage/2 + widthThumbImage/2;
 			y = findPosY(document.getElementById('th-blank')) + heigthThumbImage;
 			//alert(what + " " + x +"," +y);
 		}
 		if(what=='elvis')
 		{
			//alert(what + " " + x +"," +y);
			//alert(flag);
 			document.getElementById('elvis').style.visibility='visible';
 			document.getElementById('elvis').style.top=y;
 			document.getElementById('elvis').style.left=x;
 		}
 		if(what=='fuxia')
 		{
 			document.getElementById('fuxia').style.visibility='visible';
 			document.getElementById('fuxia').style.top=y;
 			document.getElementById('fuxia').style.left=x;
 		}
 		if(what=='flash')
 		{
 			document.getElementById('flash').style.visibility='visible';
 			document.getElementById('flash').style.top=y;
 			document.getElementById('flash').style.left=x;
 		}
 		if(what=='niels')
 		{
 			document.getElementById('niels').style.visibility='visible';
 			document.getElementById('niels').style.top=y;
 			document.getElementById('niels').style.left=x;
 		}
		if(what=='cuccioli')
 		{
 			document.getElementById('cuccioli').style.visibility='visible';
 			document.getElementById('cuccioli').style.top=y;
 			document.getElementById('cuccioli').style.left=x;
 		}
		if(what=='cucciolo')
 		{
 			document.getElementById('cucciolo').style.visibility='visible';
 			document.getElementById('cucciolo').style.top=y;
 			document.getElementById('cucciolo').style.left=x;
 		}
 		
 		if(what=='10cuccioli')
 		{
 			document.getElementById('10cuccioli').style.visibility='visible';
 			document.getElementById('10cuccioli').style.top=y;
 			document.getElementById('10cuccioli').style.left=x;
 		}
		if(what=='candida')
 		{
 			document.getElementById('candida').style.visibility='visible';
 			document.getElementById('candida').style.top=y;
 			document.getElementById('candida').style.left=x;
 		}
		if(what=='chico')
 		{
 			document.getElementById('chico').style.visibility='visible';
 			document.getElementById('chico').style.top=y;
 			document.getElementById('chico').style.left=x;
 		}
		if(what=='coca')
 		{
 			document.getElementById('coca').style.visibility='visible';
 			document.getElementById('coca').style.top=y;
 			document.getElementById('coca').style.left=x;
 		}
		if(what=='gatsby')
 		{
 			document.getElementById('gatsby').style.visibility='visible';
 			document.getElementById('gatsby').style.top=y;
 			document.getElementById('gatsby').style.left=x;
 		}
		if(what=='huarmi')
 		{
 			document.getElementById('huarmi').style.visibility='visible';
 			document.getElementById('huarmi').style.top=y;
 			document.getElementById('huarmi').style.left=x;
 		}
		if(what=='zar')
 		{
 			document.getElementById('zar').style.visibility='visible';
 			document.getElementById('zar').style.top=y;
 			document.getElementById('zar').style.left=x;
 		}
		if(what=='zorro')
 		{
 			document.getElementById('zorro').style.visibility='visible';
 			document.getElementById('zorro').style.top=y;
 			document.getElementById('zorro').style.left=x;
 		}
 		if(what=='riccia')
 		{
 			document.getElementById('zorro').style.visibility='visible';
 			document.getElementById('zorro').style.top=y;
 			document.getElementById('zorro').style.left=x;
 		}
 		if(what=='gio')
 		{
 			document.getElementById('gio').style.visibility='visible';
 			document.getElementById('gio').style.top=y;
 			document.getElementById('gio').style.left=x;
 		}
 		if(what=='stecco')
 		{
 			document.getElementById('stecco').style.visibility='visible';
 			document.getElementById('stecco').style.top=y;
 			document.getElementById('stecco').style.left=x;
 		}
 		if(what=='principessa')
 		{
 			document.getElementById('principessa').style.visibility='visible';
 			document.getElementById('principessa').style.top=y;
 			document.getElementById('principessa').style.left=x;
 		}
 		if(what=='psyko')
 		{
 			document.getElementById('psyko').style.visibility='visible';
 			document.getElementById('psyko').style.top=y;
 			document.getElementById('psyko').style.left=x;
 		}
 		
 		
 		if(what=='gommone')
 		{
 			x = findPosX(elemento)-500/2 + 200/2;
 			y = findPosY(elemento) - 149/2;
 			document.getElementById('gommone').style.visibility='visible';
 			document.getElementById('gommone').style.top=y;
 			document.getElementById('gommone').style.left=x;
 		}
 		if(what=='h2o')
 		{
 			x = findPosX(elemento)-500/2 + 200/2;
 			y = findPosY(elemento) - 150/2;
 			document.getElementById('h2o').style.visibility='visible';
 			document.getElementById('h2o').style.top=y;
 			document.getElementById('h2o').style.left=x;
 		}
 	}
 	else if(flag==0)
 	{
 			//divelement.style.visibility='hidden';
 			setTimeout('off(\'' + what + '\')',100);
 	}
 }
 
 function off(what)
 {
 	//alert(what);
 	if(what=='elvis')
	document.getElementById('elvis').style.visibility='hidden';
	if(what=='fuxia')
	document.getElementById('fuxia').style.visibility='hidden';
	if(what=='flash')
	document.getElementById('flash').style.visibility='hidden';
	if(what=='niels')
	document.getElementById('niels').style.visibility='hidden';
	if(what=='cuccioli')
	document.getElementById('cuccioli').style.visibility='hidden';
	if(what=='cucciolo')
	document.getElementById('cucciolo').style.visibility='hidden';
	if(what=='10cuccioli')
	document.getElementById('10cuccioli').style.visibility='hidden';
	if(what=='candida')
	document.getElementById('candida').style.visibility='hidden';
	if(what=='chico')
	document.getElementById('chico').style.visibility='hidden';
	if(what=='coca')
	document.getElementById('coca').style.visibility='hidden';
	if(what=='gatsby')
	document.getElementById('gatsby').style.visibility='hidden';
	if(what=='huarmi')
	document.getElementById('huarmi').style.visibility='hidden';
	if(what=='zar')
	document.getElementById('zar').style.visibility='hidden';
	if(what=='zorro')
	document.getElementById('zorro').style.visibility='hidden';
	if(what=='riccia')
	document.getElementById('riccia').style.visibility='hidden';
	if(what=='gio')
	document.getElementById('gio').style.visibility='hidden';
	if(what=='stecco')
	document.getElementById('stecco').style.visibility='hidden';
	if(what=='principessa')
	document.getElementById('principessa').style.visibility='hidden';
	if(what=='psyko')
	document.getElementById('psyko').style.visibility='hidden';
	if(what=='gommone')
	document.getElementById('gommone').style.visibility='hidden';
	if(what=='h2o')
	document.getElementById('h2o').style.visibility='hidden';
 }
 
 function slideshow()
 {
	content = 'image0=/images/slide1.jpg&image1=/images/slide2.jpg&image2=/images/slide1.jpg&image3=/images/slide2.jpg&image4=/images/slide1.jpg&';
	document.write('<Object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="300" height="100" id="slideshow" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="/script/slideshow.swf?' + content + 'width=300" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#F9E57" />');
	document.write('<embed src="/script/slideshow.swf?' + content + 'width=300" quality="high" bgcolor="#F9E57" width="300" height="100" name="slideshow" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
 }
 
function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

