/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
// +----------------------------------------------------------------------+
// | KRONIDE - K-CMS   					                                  |
// +----------------------------------------------------------------------+
// | Copyright (c) 2005 Kronide S.r.l.                                    |
// +----------------------------------------------------------------------+
// | Authors: Angelo Del Mazza <a.delmazza@kronide.com>					  |   
// |          Giordano Dolfi <g.dolfi@kronide.com>		 				  |
// |          Costanza Checchi <c.checchi@kronide.com>	 				  |
// +----------------------------------------------------------------------+
// $Id$

/*
 * Uscita da frameset
*/
if(self != top) top.location.href = document.location.href;

/*
 * popup immagini
*/
function gallery(imageName,imageWidth,imageHeight,alt,bgcolor)
{
	newWindow =window.open("","","width="+imageWidth+",height="+imageHeight+",left=100,top=100");
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');
	newWindow.document.write('<!-- KCMS JS-GALLERY-POPUP -->');
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+imageHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="'+alt+'" >');
	newWindow.document.write('</td></tr></table></body></html>');
	var xPos = screen.width/2 - 300;
	var yPos = screen.height/2 -300;
	newWindow.moveTo(xPos,yPos);
	newWindow.document.close();
	newWindow.focus();
}

