﻿function setExtenderSize() 
{
    var myWidth = 0, myHeight = 0, heightDiff = 0;

    if( typeof( window.innerWidth ) == 'number' ) {
        //Non-IE
        myWidth = window.innerWidth;
        myHeight = window.innerHeight;
    } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        myWidth = document.documentElement.clientWidth;
        myHeight = document.documentElement.clientHeight;
    } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
    }

    if (myHeight > 695)
    {
        heightDiff = myHeight - 695;
        document.getElementById('rowBtm').style.height = heightDiff + 'px';
        document.getElementById('rowBtm1').style.height = heightDiff + 'px';
    }
    else
    {
        document.getElementById('rowBtm').style.height = "1px";
        document.getElementById('rowBtm1').style.height = "1px";
    }
}

function movepic(img_name, img_src) {
    document[img_name].src = img_src;
}

function movepicByID(img_name, img_src) {
    document.getElementById(img_name).src = img_src;
}

function swapClass(objID, newClass)
{
    document.getElementById(objID).className = newClass;
}

function showhideObj(objID, display)
{
    document.getElementById(objID).style.display = display;
}