<!-- © Christian Köchy http://www.shck.de -->

function shckbp(shckp,shckti,shckte)
{ var undefined;
  if (shckti==undefined || (shckti=='')) {shckti='www.disillusion-avenue.com';}

  if (shckte==undefined || (shckti=='')) {shckte='';}
  
  x = (screen.availWidth/2)-(800/2); y=(screen.availHeight/2)-(600/2);

  shcknw = window.open('','','resizable=1,width=800,height=600,top='+y+',left='+x+'');

  with (shcknw)
  {
    focus();
    document.open();
    document.write('<!--\n\t© christian köchy\n\thttp://www.shck.de\n-->\n\n');
    document.write('<title>'+shckti+'</title>');
    document.write('<meta http-equiv="imagetoolbar" content="no">');
    document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="white" scroll="no" onload="opener.shckrez(document.images[0].width,document.images[0].height)">')
    document.write('<a href="javascript:self.close()">');
    document.write('<img src="'+shckp+'" border="0" alt="'+shckte+'"></a></body>')
    document.close();
  }
}


function shckrez(x,y)
{
  if (navigator.appName.toLowerCase() == 'microsoft internet explorer')
  {
    if ((navigator.userAgent.toLowerCase().indexOf('aol')==-1) && (navigator.userAgent.toLowerCase().indexOf('opera')==-1)) {shcknw.resizeTo(x+12,y+31);}

    if (navigator.userAgent.toLowerCase().indexOf('opera')!=-1) {shcknw.resizeTo(x+12,y+31);}

    if (navigator.userAgent.toLowerCase().indexOf('aol')!=-1) {shcknw.resizeTo(x+4,y+4);}
  }

  else
  {
    if(navigator.appVersion.substring(0,1) < "5") {shcknw.resizeTo(x,y);}
    else {shcknw.resizeTo(x+8,y+28);}
  }

  shckx=(screen.availWidth/2)-(x/2);
  shcky=(screen.availHeight/2)-(y/2);

  shcknw.moveTo(shckx,shcky);
}

