function checkIt(detect,string) {
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

var contentHeight = 313;
var MinContentHeight = 313;

if( navigator.appName == "Microsoft Internet Explorer" &&  navigator.userAgent.indexOf("Mac") > -1  ) MinContentHeight = 450;

function getHeight() {
	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 -= 262;
	if ( contentHeight < MinContentHeight ) contentHeight = MinContentHeight;
}

getHeight();

detectApp = navigator.appName.toLowerCase();
detectOS = navigator.platform.toLowerCase();

if ( ! (checkIt(detectApp,'explorer') && checkIt(detectOS,'mac')) ){
	window.onresize = function() {
		getHeight();
		pointeur=document.getElementById("scroller");
		pointeur.style.height=contentHeight+"px";
	};
	document.write( '<style type="text/css">#scroller { height: '+contentHeight+'px; }</style>');
} else {
	document.write( '<style type="text/css">#scroller { height: '+contentHeight+'px; }</style>');
}
