﻿// JScript File
function showImage(imageSrc, parentDiv){
        var i = document.getElementById("ImageLayerImage");
        var l = document.getElementById("ImageLayer");
        if (i && l){
            i.src = imageSrc;
            l.style.visibility = 'visible';
            l.style.display = 'block';
            parentDiv.parentNode.appendChild(l);
        }
    }
function hideImage(){
    var l = document.getElementById("ImageLayer");
    if (l){
        l.style.visibility = 'hidden';
        l.style.display = 'none';
        var i = document.getElementById("ImageLayerImage");
        if (i){
            i.src = '';
        }
    }
}
var viewPortHeight = 0;
function setContentHeight(){
   var cc = document.getElementById("GridContentContainer");
    if (cc){
        cc.style.height = (viewPortHeight - parseInt(cc.style.top)) + 'px';
    }
}
function checkVieportHeight(){
    var h = 0;
    if (window.innerHeight){
        h = parseInt(window.innerHeight);
    } else {
        if (document.compatMode=="CSS1Compat"){
            h = parseInt(document.documentElement.clientHeight);
        } else {
            h = parseInt(document.body.clientHeight);
        }
    }
    if ((0 < h) && (h != viewPortHeight)){
        viewPortHeight = h;
        setContentHeight();
    }
}
window.setInterval("checkVieportHeight()", 1000);
