// JavaScript Document
var contentHeight = 250;
var MinContentHeight = 350;

function checkIt(detect,string){
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

if( navigator.appName == "Microsoft Internet Explorer" &&  navigator.userAgent.indexOf("Mac") > -1  ) MinContentHeight = 450;

if ( self.innerHeight ) { // all except Explorer 
	contentHeight = self.innerHeight;
} else if (document.all){ // Explorer  
	contentHeight = document.documentElement.offsetHeight
} else if (document.documentElement && document.documentElement.clientHeight){// Explorer 6 Strict Mode
	contentHeight = document.documentElement.clientHeight;
} else if (document.body){ // other Explorers
	contentHeight = document.body.clientHeight;
} else {
	contentHeight = innerHeight;
}
contentHeight -= 120;
if ( contentHeight < MinContentHeight ) contentHeight = MinContentHeight;


var REZ_timerID = null;

function REZ_ReloadPage(){
	clearTimeout(REZ_timerID)
	REZ_timerID = setTimeout("window.history.go(0);",400);
}

detectApp = navigator.appName.toLowerCase();
detectOS = navigator.platform.toLowerCase();

if ( ! (checkIt(detectApp,'explorer') && checkIt(detectOS,'mac')) ){
	window.onresize = REZ_ReloadPage;
	document.write( '<STYLE TYPE="text/css">#content {width:740px;  overflow: auto; overflow-x: hidden; overflow-y: auto;  background-color: #ffffff; height:' + contentHeight + 'px; z-index: 121;}</STYLE>');
} else {
	document.write( '<STYLE TYPE="text/css">#content {width:740px;  overflow: visible; overflow-x: hidden; overflow-y: auto;  background-color: #ffffff; height:' + contentHeight + 'px; z-index: 121;}</STYLE>');
}
