// JScript source code
function shckbp(shckp, shckti, shckte) {
    var undefined;

    if (shckte == undefined)
    { shckte = ''; }

    if (shckti == undefined)
    { shckti = 'www.shck.de'; }

    shcknw = window.open('', 'xyz', 'resizable = 1, toolbar=no,status=no,menubar=no,location=no');

    with (shcknw) {
        focus();
        document.open();
        document.write('<!--\n\t© Christian Köchy\n\thttp://www.shck.de\n\tmail@shck.de\n-->\n\n');

        document.write('<html><title>' + shckti + '</title>');
        document.write('<meta http-equiv=\"imagetoolbar\" content=\"no\">');
        document.write('<body bgcolor=\"#ffffff\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" scroll=\"no\" onload=\"opener.shckrez(document.images[0].width,document.images[0].height)\">')
        document.write('<table border=\"0\" width=\"100%\"><tr><td align=\"center\"> ');
        document.write('<a href=\"javascript:self.close()\">');
        document.write('<img src=\"' + shckp + '\" border=\"0\" alt=\"' + shckte + '\">');
        document.write('</a>');
        document.write('</td></tr></table></body></html>');
        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 + 10, y + 29); }

        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
        { shcknw.resizeTo(x + 13, y + 38); }

    }
    
    else {
        if (navigator.appVersion.substring(0, 1) < "5")
        { shcknw.resizeTo(x, y); }

        else
        { shcknw.resizeTo(x + 25, y + 50); }
    }
   
    if (navigator.appName == 'Netscape') {
        shcknw.resizeTo(x + 30, y + 95); 
    }

    shckx = (screen.availWidth / 2) - (x / 2);
    shcky = (screen.availHeight / 2) - (y / 2);

    shcknw.moveTo(shckx, shcky);
}
