
//window.onload = function()
//{
//    ShowBanner();
//}

function getScroll()
{
    var SH = 0;
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		SH = window.innerHeight + window.scrollMaxY;
		//xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		SH = document.body.scrollHeight;
		//xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		SH = document.body.offsetHeight;
		//xWithScroll = document.body.offsetWidth;
  	}
  	return SH;
}

function WinSize()
{
    var winWidth = 0;

    if (self.innerHeight)
    {
        winHeight = self.innerWidth;
    }
    else if (document.documentElement && document.documentElement.clientWidth)
    {
        winHeight = document.documentElement.clientWidth;
    }
    else if (document.body)
    {
        winHeight = document.body.clientWidth;
    }

    return winWidth;
}

function ShowBanner()
{
    var modal = document.getElementById("div_popup");

    modal.style.position = "absolute";
    modal.style.top = "0px";
    modal.style.height = document.body.scrollHeight + "px";
	
    modal.style.display = "";
	
}
function SetOpacity(op_object, opac)
{
    op_object.style.filter = "alpha(opacity = " + opac + ")";
    op_object.style.opacity = (opac / 100);
    op_object.style.MozOpacity = (opac / 100);
    op_object.style.KhtmlOpacity = (opac / 100)
}

function closePopup()
{
	var divx = document.getElementById("div_popup");
	var div_reklam = document.getElementById("popupresim");
	
	divx.style.display = "none";
	div_reklam.style.display = "none";
}
