/* Date de création: 03/10/2002 */


// Browser-Detection
var version=parseFloat(navigator.appVersion), agent=navigator.userAgent.toLowerCase();
var opera=(agent.indexOf('opera')!=-1)?true:false;
var ie=((document.all)&&(version>=4.0)&&(!opera))?true:false;
var ie4=(agent.indexOf('msie 4')>=0)?true:false;
var ie50=(agent.indexOf('msie 5.0')>=0)?true:false;
var nn4=document.layers?true:false;
var nn6=((version>=5.0)&&((agent.indexOf('netscape')>=0)||(agent.indexOf('gecko')>=0)))?true:false;
var dom=nn6||opera;
var mac=(agent.indexOf("mac")!=-1)?true:false;
var fFilters=(!mac&&ie)?true:false;
var fGadgets=true;


// Affiche le popup pour les images 500x500
function zoom(filename, winname, w, h) {
	if (w == null || h == null) {
		w=518; 
		h=565; // Groesse des Popups
	}
	if (winname == null) winname= "THG"
	var l = (screen.width) ? (screen.width-w)/2 : 0;
	var t = (screen.height) ? (screen.height-h)/2 : 0;
	
	var win= window.open(filename, winname, "toolbar=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,resizable=no,width="+w+",height="+h+",left="+l+",top="+t);
	if (win) {win.opener=self;}
	var z = parseFloat(navigator.appVersion);
	if (navigator.appName.substring(0,8) == "Netscape" || z > 4)
	{
		win.focus();
	}
}


