function openPictureWindow(imageName,imageWidth,imageHeight,alt) {
	var myWidth = imageWidth;
	var myHeight = imageHeight;
	if (screen.width < imageWidth) {
	var myWidth = (screen.width-100);
	var myLeft = 80;
	}
	if (screen.height < imageHeight) {
	var myHeight = (screen.height-100);
	var myTop = 50;
	}
	if (screen.width < (imageWidth) || screen.height < (imageHeight)){

	newWindow = window.open("","newWindow","width="+myWidth+",height="+myHeight+",scrollbars=yes,resizable=yes,left="+myLeft+",top="+myTop)
	}else{
	var myLeft = (screen.width-imageWidth)/2;
   	var myTop = (screen.height-imageHeight)/2;
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+myLeft+",top="+myTop)
	}
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">');
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function counter()
{
document.write("<img src=\"intern/counter.php?Referer="+escape(document.referrer)+"\" border=\"0\" alt=\"\">");
}

/*
Openads-Javascript
*/

if (!document.phpAds_used) document.phpAds_used = ',';
function az_adjs(z,n)
{
  var az_p=location.protocol=='https:'?'https:':'http:';
  var az_channel = '';
  var az_r=Math.floor(Math.random()*99999999);
  if (z>-1) {
    var az="<"+"script language='JavaScript' type='text/javascript' ";
    az+="src='"+az_p+"//aktionsnetz.info/openads/www/delivery/ajs.php?n="+n+"&zoneid="+z;
    az+="&source="+az_channel+"&exclude="+document.phpAds_used+"&r="+az_r;
    az+="&mmm_fo="+(document.mmm_fo)?'1':'0';
    if (window.location) az+="&loc="+escape(window.location);
    if (document.referrer) az+="&referer="+escape(document.referrer);
    az+="'><"+"/script>";
    document.write(az);
  }
}

