/* script pour TOP OF PAGE */
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
bw=new checkBrowser()

var gright=0
var gbottom=20

function makeObj(obj,nest){
	nest=(!nest) ? '':'document.'+nest+'.'
   	this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0;
	this.moveIt=b_moveIt;
}
function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x; this.css.top=this.y}

function geoInit(){
	oGeo=new makeObj('divBottom')
	pageWidth=(bw.ie4 || bw.ie5 || bw.ie6)?document.body.offsetWidth-4:innerWidth;
	pageHeight=(bw.ie4 || bw.ie5 || bw.ie6)?document.body.offsetHeight-2:innerHeight;
	checkIt()

	onresize=resized
	if(bw.ie4 || bw.ie5 || bw.ie6) window.onscroll=checkIt;

	oGeo.css.visibility='visible'
}

function checkIt(){
	if(bw.ie4 || bw.ie5 || bw.ie6) oGeo.moveIt(document.body.scrollLeft +pageWidth-gright,document.body.scrollTop+pageHeight-gbottom)
	else if(bw.ns4){
		oGeo.moveIt(window.pageXOffset+pageWidth-gright, window.pageYOffset+pageHeight-gbottom)
		setTimeout('checkIt()',30)
	}
}

function resized(){
	pageWidth=(bw.ie4 || bw.ie5 || bw.ie6)?document.body.offsetWidth-4:innerWidth;
	pageHeight=(bw.ie4 || bw.ie5 || bw.ie6)?document.body.offsetHeight-2:innerHeight;
	if(bw.ie4 || bw.ie5 || bw.ie6) checkIt()
}

//if(bw.bw && !bw.ns5) onload=geoInit;

if(bw.bw && !bw.ns5) document.write('<div id="divBottom"><a href="#top" onmouseover="im_3.src=\'/en/3_0/img/im_3_on.gif\'"  onmouseout="im_3.src=\'/en/3_0/img/im_3.gif\'"><img src="/en/3_0/img/im_3.gif" width="61" height="22" alt="" border="0"  name="im_3" id="im_3" /></a></div>');
