function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")


function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

if (document.images) {

  var openNewWin=false;

  var onLoadBeforeImage=null;
  var winName='neuwin';
  var ct=0;

  if (window.onload)
    onLoadBeforeImage=window.onload;

  window.onload=BildOeffnenInit;

}

function BildOeffnenInit()
{
  if (onLoadBeforeImage)
    onLoadBeforeImage();

  for (var i=0; i < document.links.length; i++) {

    var HREF = document.links[i].href.toLowerCase().split('.');
    if (HREF[HREF.length-1] == 'jpg' || HREF[HREF.length-1] == 'gif' || HREF[HREF.length-1] == 'png')
      document.links[i].onclick = OeffneBild;

  }
}

function OeffneBild()
{
  var BildName = this.href.split('.');
  var BildGroesse = BildName[BildName.length-2].split('x');

  var ModX=10, ModY=10, Dat=this.href.split('/'); Dat=Dat[Dat.length-1];
  if (!document.layers && !document.all) { ModX=20;ModY=30; }
  var breite=screen.availWidth-10;
  var hoehe=screen.availHeight-29;
  var Param = 'width='+breite+',height='+hoehe+',directories=0,location=0,menubar=0,resizable=0,scrollbars=0,toolbar=0,status=0';
  if (document.layers)
    Param += ',screenX='+0+',screenY='+0;
  else if (document.all)
    Param += ',left='+0+',top='+0;

  if(!openNewWin)
    if (window[winName] && !window[winName].closed)
      window[winName].close();

  winName='neuwin'+(ct++);
  window[winName] = window.open('', winName, Param);

  with (window[winName].document) {
    open();
    write('<html>\n<head>\n<title>(c) trence.de by frank bauermann, photograph für ..mode..beauty..akt..presse..events..</title>\n<META http-equiv=imagetoolbar content=no>\n<link rel=stylesheet type="text/css" href="../bs.css">\n</head>\n');
    write('<body ndragstart="return false" onselectstart="return false" oncontextmenu="return false">\n');
	write('<table width="100%" height="100%" border="0">\n<tr>\n<td width="100%" height="100%" valign="middle" align="center">\n');
    write('  <a href="javascript:self.close()"><img src="'+this.href+'" width='+BildGroesse[0]+' height='+BildGroesse[1]+' border="0" alt="Bild &quot;'+Dat+'&quot; ['+BildGroesse[0]+'x'+BildGroesse[1]+']"></a>\n');
    write('</td>\n</tr>\n</table>\n');
    write('</body>\n</html>\n');
    close();
  }

  return false;
}