function getWindowHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
		}
		else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
			}
			else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
				}
			}
	}
	return windowHeight;
}
function setView() {
	if (document.getElementById) {
		var windowHeight = getWindowHeight();
		if (windowHeight > 0) {
			var conElement = document.getElementById('content');
			conElement.style.height = ((windowHeight -142)) + 'px';

		}

	}

}
function showAnchor() {
	var url=document.URL
	var temp = new Array();
	if (indexOf('#').url !=-1) {
		temp=url.split('#')
		temp[1] = elID;
	var el = document.getElementById(elID);
        el.scrollIntoView(true);
	}    
}
var oldonload=window.onload;
if(typeof(oldonload)=='function')
    window.onload=function()
	{
		oldonload();
		setView();
		//showAnchor()
		P7_initPM(1,0,0,-20,10)
	};
else window.onload=function() {
		setView();
		//showAnchor()
		P7_initPM(1,0,0,-20,10)
};

window.onresize = function() {
	setView();
}


