// http://www.3w-traduction.com
function Translation(idx){var locale=locat[idx];translatew(idx);}function hiLink(wtransImg, idx, over){wtransImg.src=(over)?wtransOverImgs[idx].src : wtransImgs[idx].src;}function getTransHTML(){var transHTML = '<div style="cursor:pointer;">';
transHTML = transHTML.concat('<div>');
    transHTML = transHTML.concat('<img src="traduction/img/en.gif" alt="Anglais" title="English" border="0" width="40" height="25" onclick="javascript:Translation(0)" onMouseOut="javascript:hiLink(this, 0, false)" onMouseOver="javascript:hiLink(this, 0, true)"/>');
   transHTML = transHTML.concat('<img src="traduction/img/es.gif" alt="Espagnole" title="Español" border="0" width="40" height="25" onclick="javascript:Translation(1)" onMouseOut="javascript:hiLink(this, 1, false)" onMouseOver="javascript:hiLink(this, 1, true)" style="padding-left:8px;padding-right:8px;"/>');
    transHTML = transHTML.concat('<img src="traduction/img/de.gif" alt="Allemand" title="Deutsch" border="0" width="40" height="25" onclick="javascript:Translation(2)" onMouseOut="javascript:hiLink(this, 2, false)" onMouseOver="javascript:hiLink(this, 2, true)"/>');
transHTML = transHTML.concat('</div>');
transHTML = transHTML.concat('<div style="padding-top:6px;padding-bottom:6px;">');
    transHTML = transHTML.concat('<img src="traduction/img/nl.gif" alt="Néerlandais" title="Nederlands" border="0" width="40" height="25" onclick="javascript:Translation(3)" onMouseOut="javascript:hiLink(this, 3, false)" onMouseOver="javascript:hiLink(this, 3, true)"/>');
    transHTML = transHTML.concat('<img src="traduction/img/ja.gif" alt="Japonais" title="Japanese" border="0" width="40" height="25" onclick="javascript:Translation(4)" onMouseOut="javascript:hiLink(this, 4, false)" onMouseOver="javascript:hiLink(this, 4, true)" style="padding-left:8px;padding-right:8px;"/>');
    transHTML = transHTML.concat('<img src="traduction/img/it.gif" alt="Italien" title="Italiano" border="0" width="40" height="25" onclick="javascript:Translation(5)" onMouseOut="javascript:hiLink(this, 5, false)" onMouseOver="javascript:hiLink(this, 5, true)"/>');
transHTML = transHTML.concat('</div>');
transHTML = transHTML.concat('<div>');
    transHTML = transHTML.concat('<img src="traduction/img/cn.gif" alt="Chinois simplifié" title="Chinese Simplified" border="0" width="40" height="25" onclick="javascript:Translation(6)" onMouseOut="javascript:hiLink(this, 6, false)" onMouseOver="javascript:hiLink(this, 6, true)"/>');
    transHTML = transHTML.concat('<img src="traduction/img/ru.gif" alt="Russe" title="Russian" border="0" width="40" height="25" onclick="javascript:Translation(7)" onMouseOut="javascript:hiLink(this, 7, false)" onMouseOver="javascript:hiLink(this, 7, true)" style="padding-left:8px;padding-right:8px;"/>');
    transHTML = transHTML.concat('<img src="traduction/img/pt.gif" alt="Portugais" title="Português" border="0" width="40" height="25" onclick="javascript:Translation(8)" onMouseOut="javascript:hiLink(this, 8, false)" onMouseOver="javascript:hiLink(this, 8, true)"/>');
transHTML = transHTML.concat('</div>');

transHTML = transHTML.concat('<div style="text-align:center;padding-top:6px;">');    
    transHTML = transHTML.concat('<a style="text-decoration:none;" href="http://www.3w-traduction.com/">3w-traduction.com</a><br />');
transHTML = transHTML.concat('</div>');
    
transHTML = transHTML.concat('</div>');
    return transHTML;}
function getUnique(max) { var now = new Date(); return (now.getMilliseconds() * Math.floor(Math.random()*max+1));}function isWin() { return (navigator.platform.indexOf('Win') != -1);} function isVista() { return (navigator.userAgent.indexOf("Windows NT 6.0") != -1);} function isMac() { return (navigator.platform.indexOf('Mac') != -1);}function isLinux() { return (navigator.platform.indexOf('Linux') != -1);}
var domain;domain = window.location.hostname;function getVarUrl(urlVarNom){var urlMi = String(document.location).split('?');var urlValeur = '';if(urlMi[1]){var urlVarValeur = urlMi[1].split('&');for(r=0; r<=(urlVarValeur.length); r++){if(urlVarValeur[r]){var urlVarBi = urlVarValeur[r].split('=');if (urlVarBi [0] && urlVarBi [0] == urlVarNom){urlValeur = urlVarBi [1];}}}}else {urlValeur='';}return urlValeur;}var googletraduction = getVarUrl('u');var urlsite;if(googletraduction==''){urlsite = 'http://'+window.location.hostname+window.location.pathname+'';}else{urlsite = googletraduction;domain = urlsite.replace('http://', '');}
function translatew(id){
		if (id == 0){document.location = 'http://translate.google.fr/translate?u='+urlsite+'&sl=fr&tl=en&hl=en&ie=UTF-8';}
		if (id == 1){document.location = 'http://translate.google.fr/translate?u='+urlsite+'&sl=fr&tl=es&hl=es&ie=UTF-8';}
		if (id == 2){document.location = 'http://translate.google.fr/translate?u='+urlsite+'&sl=fr&tl=de&hl=de&ie=UTF-8';}
		if (id == 3){document.location = 'http://translate.google.fr/translate?u='+urlsite+'&sl=fr&tl=nl&hl=nl&ie=UTF-8';}
		if (id == 4){document.location = 'http://translate.google.fr/translate?u='+urlsite+'&sl=fr&tl=ja&hl=ja&ie=UTF-8';}
		if (id == 5){document.location = 'http://translate.google.fr/translate?u='+urlsite+'&sl=fr&tl=it&hl=it&ie=UTF-8';}
		if (id == 6){document.location = 'http://translate.google.fr/translate?u='+urlsite+'&sl=fr&tl=zh-CN&hl=zh-CN&ie=UTF-8';}
		if (id == 7){document.location = 'http://translate.google.fr/translate?u='+urlsite+'&sl=fr&tl=ru&hl=ru&ie=UTF-8';}
		if (id == 8){document.location = 'http://translate.google.fr/translate?u='+urlsite+'&sl=fr&tl=pt&hl=pt&ie=UTF-8';}
		if (id == 9){document.location = 'http://'+domain+'';}}
var wtransImgs = new Array(9);var wtransOverImgs = new Array(9);var wtransArrowImgs = new Array(9);var locat = new Array(9);
wtransImgs[0] = new Image(40, 25);
wtransImgs[0].src="traduction/img/en.gif";
wtransOverImgs[0] = new Image(40, 25);
wtransOverImgs[0].src="traduction/img/en_o.gif";
wtransImgs[1] = new Image(40, 25);
wtransImgs[1].src="traduction/img/es.gif";
wtransOverImgs[1] = new Image(40, 25);
wtransOverImgs[1].src="traduction/img/es_o.gif";
wtransImgs[2] = new Image(40, 25);
wtransImgs[2].src="traduction/img/de.gif";
wtransOverImgs[2] = new Image(40, 25);
wtransOverImgs[2].src="traduction/img/de_o.gif";
wtransImgs[3] = new Image(40, 25);
wtransImgs[3].src="traduction/img/nl.gif";
wtransOverImgs[3] = new Image(40, 25);
wtransOverImgs[3].src="traduction/img/nl_o.gif";
wtransImgs[4] = new Image(40, 25);
wtransImgs[4].src="traduction/img/ja.gif";
wtransOverImgs[4] = new Image(40, 25);
wtransOverImgs[4].src="traduction/img/ja_o.gif";
wtransImgs[5] = new Image(40, 25);
wtransImgs[5].src="traduction/img/it.gif";
wtransOverImgs[5] = new Image(40, 25);
wtransOverImgs[5].src="traduction/img/it_o.gif";
wtransImgs[6] = new Image(40, 25);
wtransImgs[6].src="traduction/img/cn.gif";
wtransOverImgs[6] = new Image(40, 25);
wtransOverImgs[6].src="traduction/img/cn_o.gif";
wtransImgs[7] = new Image(40, 25);
wtransImgs[7].src="traduction/img/ru.gif";
wtransOverImgs[7] = new Image(40, 25);
wtransOverImgs[7].src="traduction/img/ru_o.gif";
wtransImgs[8] = new Image(40, 25);
wtransImgs[8].src="traduction/img/pt.gif";
wtransOverImgs[8] = new Image(40, 25);
wtransOverImgs[8].src="traduction/img/pt_o.gif";
// http://www.dynamicdrive.com
var Module3w={
      hidedivmouseout: [true, 200], 
      getposOffset:function(what, offsettype){
		return (what.offsetParent)? what[offsettype]+this.getposOffset(what.offsetParent, offsettype) : what[offsettype]
	},
    isContained:function(m, e){
		var e=window.event || e
		var c=e.relatedTarget || ((e.type=="mouseover")? e.fromElement : e.toElement)
		while (c && c!=m)try {c=c.parentNode} catch(e){c=m}
		if (c==m)
			return true
		else
			return false
	},
    show:function(anchorobj, subobj, e){
		if (!this.isContained(anchorobj, e) || (e && e.type=="click")){
			var e=window.event || e
			if (e.type=="click" && subobj.style.visibility=="visible"){
				subobj.style.visibility="hidden"
				return
			}
			var horizontaloffset=(subobj.dropposition[0]=="left")? -(subobj.offsetWidth-anchorobj.offsetWidth) : 0 
			var verticaloffset=(subobj.dropposition[1]=="top")? -subobj.offsetHeight : anchorobj.offsetHeight 
			subobj.style.left=this.getposOffset(anchorobj, "offsetLeft") + horizontaloffset + "px"
			subobj.style.top=this.getposOffset(anchorobj, "offsetTop")+verticaloffset+"px"
			subobj.style.clip=(subobj.dropposition[1]=="top")? "rect(auto auto auto 0)" : "rect(0 auto 0 0)" 
			subobj.style.visibility="visible"
			subobj.startTime=new Date().getTime()
			subobj.contentheight=parseInt(subobj.offsetHeight)
			if (typeof window["hidetimer_"+subobj.id]!="undefined") 
				clearTimeout(window["hidetimer_"+subobj.id])
			this.slideengine(subobj, (subobj.dropposition[1]=="top")? "up" : "down")
		}},
    curveincrement:function(percent){
		return (1-Math.cos(percent*Math.PI)) / 2 
	},
    slideengine:function(obj, direction){
		var elapsed=new Date().getTime()-obj.startTime 
		if (elapsed<obj.glidetime){ 
			var distancepercent=(direction=="down")? this.curveincrement(elapsed/obj.glidetime) : 1-this.curveincrement(elapsed/obj.glidetime)
			var currentclip=(distancepercent*obj.contentheight)+"px"
			obj.style.clip=(direction=="down")? "rect(0 auto "+currentclip+" 0)" : "rect("+currentclip+" auto auto 0)"
			window["glidetimer_"+obj.id]=setTimeout(function(){Module3w.slideengine(obj, direction)}, 10)
		}
		else{ 
			obj.style.clip="rect(0 auto auto 0)"
		}},
    hide:function(activeobj, subobj, e){
		if (!Module3w.isContained(activeobj, e)){
			window["hidetimer_"+subobj.id]=setTimeout(function(){
				subobj.style.visibility="hidden"
				subobj.style.left=subobj.style.top=0
				clearTimeout(window["glidetimer_"+subobj.id])
			}, Module3w.hidedivmouseout[1])
		}},
    hidediv:function(subobjid){
		document.getElementById(subobjid).style.visibility="hidden"
	},
    init:function(anchorid, pos, glidetime, revealbehavior){
		var anchorobj=document.getElementById(anchorid)
		if (anchorobj)
			var subobj=document.getElementById(anchorobj.getAttribute("rel"))
		if (!anchorobj || !subobj)
			return
		var subobjsource=anchorobj.getAttribute("rev")
		if (subobjsource!=null && subobjsource!="")
			this.ajaxconnect(subobjsource, anchorobj.getAttribute("rel"))
		subobj.dropposition=pos.split("-")
		subobj.glidetime=glidetime || 1000
		subobj.style.left=subobj.style.top=0
		if (typeof revealbehavior=="undefined" || revealbehavior=="mouseover"){
			anchorobj.onmouseover=function(e){Module3w.show(this, subobj, e)}
			anchorobj.onmouseout=function(e){Module3w.hide(subobj, subobj, e)}
			if (this.disableanchorlink) anchorobj.onclick=function(){return false}
		}
		else
			anchorobj.onclick=function(e){Module3w.show(this, subobj, e); return false}
		if (this.hidedivmouseout[0]==true) 
			subobj.onmouseout=function(e){Module3w.hide(this, subobj, e)}
	}}








