function HideSharingButton()
{
		document.getElementById("sharingControl").className="SharingControlHidden";
		document.getElementById("main").className="MainFlashInstaller";
}

function openWindow(page, w, h) 
{
	var width = w || 490;
	var height = h || 600;
	var config = ('width=' + width + ',height=' + height + ',top=' + ((screen.availHeight - height)/2) + ',left=' + ((screen.availWidth - width)/2) + ',status=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no');
	window.open(page,'',config);
}

    // get window height: (viewport):
function getWinHeight() 
{
        return window.innerHeight ||
                (document.compatMode == "CSS1Compat" && document.documentElement.clientHeight || document.body.clientHeight);
}

function DisplayOverlay()
{
    var overlay = document.getElementById('overlay'); 
    overlay.style.height = getDocDim('Height') + 'px';
    //alert(document.body.clientHeight); 
  
  
 
}

// Document height/width getter:
    function getDocDim(prop,m){
        m = m || 'max';
        return Math[m](
            Math[m](document.body["scroll" + prop], document.documentElement["scroll" + prop]),
            Math[m](document.body["offset" + prop], document.documentElement["offset" + prop]),
            Math[m](document.body["client" + prop], document.documentElement["client" + prop])
	);
    }
