var MyWindow = null;

function OpenPopUp(kartinka) {
    MyWindow = window.open('','popupWin','resizable=yes,scrollbars=yes,top=0,left=0');
    MyWindow.document.open();
    MyWindow.document.write('\
<html>\
<body onLoad="window.focus();resize2pic()" BGColor=BLACK Text=WHITE>\
<Center><A Href="javascript:window.close();"><img src="' + kartinka +'" name="img" Border=0></A></Center>\
</body>\
<Script Language="JavaScript">\
function resize2pic() {\
    if ( (screen.availWidth <= (document.images.img.width))\
        && (screen.availHeight <= (document.images.img.height)) )\
    {\
        window.resizeTo(screen.availWidth, screen.availHeight);\
    } else {\
        window.resizeTo(document.images.img.width + 50,document.images.img.height + 50);\
    }\
}\
</script>\
</html>\
');
    MyWindow.document.close();
}

function switch_disclamer() {
    disclaimer = (document.getElementById) ? document.getElementById('disclaimer_text') : document.all['disclaimer_text'];
    if (disclaimer.style.display == 'block')
	disclaimer.style.display = 'none';
    else
	disclaimer.style.display = 'block';
    return false;
}

