// JavaScript Document
var contentHeight = 330;
var contentWidth;
var MinContentHeight = 330;


if( navigator.appName == "Microsoft Internet Explorer" &&  navigator.userAgent.indexOf("Mac") > -1  ){
	MinContentHeight = 450;
}
if ( self.innerHeight ) { // all except Explorer 
	contentHeight = self.innerHeight;
	contentWidth = self.innerWidth;

} 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;

}



marginWidth = (contentWidth-700)/2;

//alert(contentWidth);
if ( contentHeight < MinContentHeight ) contentHeight = MinContentHeight;


var REZ_timerID = null;
function REZ_ReloadPage(){
	clearTimeout(REZ_timerID)
	REZ_timerID = setTimeout("window.history.go(0);",400);
}
function checkIt(detect,string){
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

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


//if (checkIt(detectApp,'explorer') ){
	window.onresize = REZ_ReloadPage;
	mainContentHeight = contentHeight-180;
	archiveFrameHeight = mainContentHeight-100;
	newsDivHeight = mainContentHeight-285;
	document.write( '<STYLE TYPE="text/css">.rBox_maincontent {float: left; width: 800px; height: '+mainContentHeight+'px;overflow: auto}</STYLE>');
	document.write( '<STYLE TYPE="text/css">.rBox_maincontentHome {float: left; width: 800px; height: '+mainContentHeight+'px;}</STYLE>');
	//document.write( '<STYLE TYPE="text/css">#centerDiv {width: 800px; height: auto;}</STYLE>');
	document.write( '<STYLE TYPE="text/css">#fantomasFrame {height: '+archiveFrameHeight+'px;}</STYLE>');
	document.write( '<STYLE TYPE="text/css">#mainNewsDiv{float: left;width: 800px;height: '+newsDivHeight+'px;padding-top: 20px;overflow:auto;}</STYLE>');
/*} else {
	window.onresize = REZ_ReloadPage;
	mainContentHeight = contentHeight-160;
	archiveFrameHeight = mainContentHeight-100;
	document.write( '<STYLE TYPE="text/css">.rBox_maincontent {float: left; width: 800px; height: '+mainContentHeight+'px;}</STYLE>');
	//document.write( '<STYLE TYPE="text/css">#centerDiv {width: 800px; height: auto;}</STYLE>');
	//document.write( '<STYLE TYPE="text/css">#centerDiv {float:left; width: 800px; height: auto; margin-left:'+marginWidth+'; }</STYLE>');
	document.write( '<STYLE TYPE="text/css">#fantomasFrame {height: '+archiveFrameHeight+'px; overflow: auto;}</STYLE>');
	}*/
	

