<!--
// gallery.js - Script für Galerie
// (c) 2005 Ing. Christian Groesswang / www.pics.co.at
// 1.00.03 / 2005-07-30


// part 1 - click handler

// part 2 - view-scripts



function showImage(pImage, pID, pWidth, pHeight, pTitle)
{
	// Groessen definieren
	var lWidth = screen.width;
	var lHeight = screen.height;

	lStats='width='+pWidth+',height='+pHeight+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no';
	popUpWindow = window.open ('empty.htm',"wPopUp",lStats); 
	lHtml='<html><head><title>'+pTitle+'</title><meta http-equiv="imagetoolbar" CONTENT="no"></head><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()" onClick="self.close()" onkeydown="self.close()" onkeypress="self.close()">';  
	lHtml+='<table width='+pWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+pHeight+'>';
	lHtml+='<tr><td width="200" height="200" background="gallery/view.php?t=J&i='+pImage+'&id='+pID+'&p=1"><img src="gallery/view.php?t=G&i='+pImage+'&id='+pID+'" width="200" height="200" alt="Click screen to close" ></td>'; 
	lHtml+='<td width="'+(pWidth-200)+'" height="200" background="gallery/view.php?t=J&i='+pImage+'&id='+pID+'&p=2"><img src="gallery/view.php?t=G&i='+pImage+'&id='+pID+'" width="'+(pWidth-200)+'" height="200" alt="Click screen to close" ></td></tr>'; 
	lHtml+='<tr><td width="200" height="'+(pHeight-200)+'" background="gallery/view.php?t=J&i='+pImage+'&id='+pID+'&p=3"><img src="gallery/view.php?t=G&i='+pImage+'&id='+pID+'" width="200" height="'+(pHeight-200)+'" alt="Click screen to close" ></td>'; 
	lHtml+='<td width="'+(pWidth-200)+'" height="'+(pHeight-200)+'" background="gallery/view.php?t=J&i='+pImage+'&id='+pID+'&p=4"><img src="gallery/view.php?t=G&i='+pImage+'&id='+pID+'" width="'+(pWidth-200)+'" height="'+(pHeight-200)+'" alt="Click screen to close" ></td></tr>'; 
	lHtml+='</table></body></html>';
	popUpWindow.document.write(lHtml);
/*	
	popUpWindow.document.write('<html><head><title>'+pTitle+'</title><meta http-equiv="imagetoolbar" CONTENT="no"></head><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()" onClick="self.close()" onkeydown="self.close()" onkeypress="self.close()">');  
	popUpWindow.document.write('<table width='+pWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+pHeight+'>');
	popUpWindow.document.write('<tr><td width="200" height="200" background="view.php?t=J&i='+pImage+'&id='+pID+'&p=1"><img src="view.php?t=G&i='+pImage+'&id='+pID+'" width="200" height="200" alt="Click screen to close" ></td>'); 
	popUpWindow.document.write('<td width="'+(pWidth-200)+'" height="200" background="view.php?t=J&i='+pImage+'&id='+pID+'&p=2"><img src="view.php?t=G&i='+pImage+'&id='+pID+'" width="'+(pWidth-200)+'" height="200" alt="Click screen to close" ></td></tr>'); 
	popUpWindow.document.write('<tr><td width="200" height="'+(pHeight-200)+'" background="view.php?t=J&i='+pImage+'&id='+pID+'&p=3"><img src="view.php?t=G&i='+pImage+'&id='+pID+'" width="200" height="'+(pHeight-200)+'" alt="Click screen to close" ></td>'); 
	popUpWindow.document.write('<td width="'+(pWidth-200)+'" height="'+(pHeight-200)+'" background="view.php?t=J&i='+pImage+'&id='+pID+'&p=4"><img src="view.php?t=G&i='+pImage+'&id='+pID+'" width="'+(pWidth-200)+'" height="'+(pHeight-200)+'" alt="Click screen to close" ></td></tr>'); 
	popUpWindow.document.write('</table></body></html>');
*/
	popUpWindow.document.close();
	popUpWindow.focus();
}


function showImageLayer(pImage, pID, pWidth, pHeight, pTitle)
{
	// Groessen definieren
	var lWidth = screen.width;
	var lHeight = screen.height;

	lHtml='<a href="javascript:hideImageLayer()">X</a><br>';  
	lHtml+='<table width='+pWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height="'+pHeight+'" onclick="hideImageLayer()">';
	lHtml+='<tr><td width="200" height="200" background="gallery/view.php?t=J&i='+pImage+'&id='+pID+'&p=1"><img src="gallery/view.php?t=G&i='+pImage+'&id='+pID+'" width="200" height="200" alt="Click screen to close" ></td>'; 
	lHtml+='<td width="'+(pWidth-200)+'" height="200" background="gallery/view.php?t=J&i='+pImage+'&id='+pID+'&p=2"><img src="gallery/view.php?t=G&i='+pImage+'&id='+pID+'" width="'+(pWidth-200)+'" height="200" alt="Click screen to close" ></td></tr>'; 
	lHtml+='<tr><td width="200" height="'+(pHeight-200)+'" background="gallery/view.php?t=J&i='+pImage+'&id='+pID+'&p=3"><img src="gallery/view.php?t=G&i='+pImage+'&id='+pID+'" width="200" height="'+(pHeight-200)+'" alt="Click screen to close" ></td>'; 
	lHtml+='<td width="'+(pWidth-200)+'" height="'+(pHeight-200)+'" background="gallery/view.php?t=J&i='+pImage+'&id='+pID+'&p=4"><img src="gallery/view.php?t=G&i='+pImage+'&id='+pID+'" width="'+(pWidth-200)+'" height="'+(pHeight-200)+'" alt="Click screen to close" ></td></tr>'; 
	lHtml+='</table>';
	oImage=document.getElementById("divImagePreview");
	oImage.innerHTML=lHtml;
	oImage.style.visibility="visible";
}

function hideImageLayer()
{
	oImage=document.getElementById("divImagePreview");
	oImage.style.visibility="hidden";
}


//-->
