﻿var contentw = 0;   
minpichr = 0.7;    
function page_postload() 
{
}           

function popup_img(img,caption)
{
    document.getElementById('popup_img').src="../uploads/image/"+img;
    document.getElementById('popup_caption').innerHTML=caption;

    var pgh = document.getElementById('page_holder').offsetHeight;
    document.getElementById('popup_bg').style.height=pgh;
    if (navigator.appName.indexOf("Microsoft")!=-1) //IE
        window_t = document.body.parentNode.scrollTop;
    else // FF
        window_t = window.scrollY;	
    var mt = -300+window_t;
    document.getElementById('popup_bg').style.marginTop=window_t+"px";
    document.getElementById('popup_holder').style.marginTop=mt+"px";

    document.getElementById('popup_layer').style.display='';
}

function close_img()
{
    document.getElementById('popup_layer').style.display='none';
}   
