var Coockie=new function(){
	this.set=function(i,v){
		if(!i.name||!i.value){return false;}if(!i.expires){var d=new Date();d.setTime(d.getTime()+(30*24*3600*1000));i.expires=d;}
		document.cookie=i.name+"="+escape(i.value)+
		((i.expires==null)?"":("; expires="+i.expires.toGMTString()))+((i.path==null)?"":("; path="+i.path))+((i.domain==null)?"":("; domain="+i.domain))+((i.secure==true)?"; secure":"");
	};
	this.get=function(n){
		var a=n+"=",l=a.length,c=document.cookie.length,i=0;while(i<c){var j=i+l;if(document.cookie.substring(i,j)==a){return Coockie.getVal(j);}i=document.cookie.indexOf(" ",i)+1;if(i==0){break;}}return null;
	};
	this.getVal=function(o){var e=document.cookie.indexOf(";",o);if(e==-1){e=document.cookie.length;}return unescape(document.cookie.substring(o,e));};
	return this;
};

var EPlayer;
var EnjoyPlayer=function(i){
	for(v in i){this[v]=i[v];}
	EPlayer=this;
	Nav.addEvent(window,"load",function(){EPlayer.make();});
	return this;
};
EnjoyPlayer.URL="http://barre.enjoystation.net/v3";
EnjoyPlayer.SWF=EnjoyPlayer.URL+"/player.swf";
EnjoyPlayer.version=3;
EnjoyPlayer.prototype={
	textColor:		"#ffffff",
	textBold:		false,
	textItalic:		false,
	textFont:		"verdana",
	backgroundColor:"#333333",
	backgroundImg:	'',
	border:			false,
	borderColor:	'#333333',
	borderSize:		'1',
	playerImg:		'',
	isNull:function(v){return (v==null || v=="undefined" || v=="")},
	isHexa:function(v){var t=/^([A-Fa-f0-9])+$/;return (v.length==6 && t.test(v))},
	setHexa:function(v){var h=/^#([A-Fa-f0-9])+$/;var n=/^([A-Fa-f0-9])+$/;if(v.length==7 && h.test(v)){return v;}else if(v.length==6 && n.test(v)){return "#"+v;}return false;},
	setHexaFlash:function(v){var h=/^#([A-Fa-f0-9])+$/;var n=/^([A-Fa-f0-9])+$/;if(v.length==7 && h.test(v)){return v.substring(1);}else if(v.length==6 && n.test(v)){return v;}return false;},
	setPixel:function(v){var n=/px/;if(this.isNumber(v)){return v+"px";}else if(n.test(v)){return v;}return 0;},
	isNumber:function(v){var t=/^([0-9])+$/;return t.test(v);},
	maximize:function(){this.DVmax.style.visibility="visible";this.DVmin.style.visibility="hidden";this.player.style.visibility="visible";Coockie.set({name:'Player_open',value:'1'});},
	minimize:function(){this.DVmax.style.visibility="hidden";this.DVmin.style.visibility="visible";this.player.style.visibility="hidden";Coockie.set({name:'Player_open',value:'0'});},
	show:function(){
		if(Coockie.get('Player_open')=='1'){this.DVmax.style.visibility="visible";this.DVmin.style.visibility="hidden";this.player.style.visibility="visible";}
		else{this.DVmax.style.visibility="hidden";this.DVmin.style.visibility="visible";this.player.style.visibility="hidden";}
	},
	hide:function(){this.DVmax.style.visibility="hidden";this.DVmin.style.visibility="hidden";this.player.style.visibility="hidden";},
	make:function(){
		if(typeof(SWFObject)=="undefined"){setTimeout(function(){EPlayer.make();},1000);return false;}
		this.div=Nav.createElement('div',{style:{width:"100%",height:"25px"}});
		this.DVmax=Nav.createElement('div',{
			id:"EnjoyPlayer_max",innerHTML:"Le contenu de cette page n&eacute;cessite une version plus r&eacute;cente d’Adobe Flash Player.<br /><a style=\"color:"+this.textColor+"\" href=\"http://get.adobe.com/fr/flashplayer/\" target=\"_blank\">Installer FlashPlayer</a>",
			style:{
				width:"100%",height:"25px",position:(Nav.isIE())?"absolute":"fixed",left:"0px",bottom:"0px",overflow:"hidden",verticalAlign:"middle",textAlign:"center",zIndex:10000,
				borderTop:(this.border)?this.setHexa(this.borderColor)+" solid "+this.setPixel(this.borderSize):"",
				backgroundColor:this.setHexa(this.backgroundColor),backgroundImage:(this.backgroundImg!='')?"url("+this.backgroundImg+")":"none"
			}
		});
		this.DVmin=Nav.createElement('div',{
			id:"EnjoyPlayer_min",
			style:{
				width:"100%",height:"10px",position:(Nav.isIE())?"absolute":"fixed",left:"0px",bottom:"0px",overflow:"hidden",visibility:"hidden",zIndex:10000,
				borderTop:(this.border)?this.setHexa(this.borderColor)+" solid "+this.setPixel(this.borderSize):"",
				backgroundColor:this.setHexa(this.backgroundColor),backgroundImage:(this.backgroundImg!='')?"url("+this.backgroundImg+")":"none"
			}
		});
		this.BTmax=Nav.createElement('div',{
			id:"EnjoyPlayer_BTmax",innerHTML:'<img src="'+EnjoyPlayer.URL+'/images/button/open.png" width="10" align="right" alt="" />',
			style:{width:"10px",height:"10px",position:"absolute",right:"0px",bottom:"0px"}
		});
		this.BTmin=Nav.createElement('div',{
			id:"EnjoyPlayer_BTmin",innerHTML:'<img src="'+EnjoyPlayer.URL+'/images/button/close.png" width="10" align="right" alt="" />',
			style:{width:"10px",height:"10px",position:"absolute",right:"0px",bottom:"15px"}
		});
		Nav.getBody().appendChild(this.DVmax);
		Nav.getBody().appendChild(this.DVmin);
		Nav.getBody().appendChild(this.div);
		var p=new SWFObject(
			EnjoyPlayer.SWF+
			"?textcolor="+this.setHexaFlash(this.textColor)+
			"&fondcolor="+this.setHexaFlash(this.backgroundColor)+
			"&textbold="+this.textBold+
			"&textitalic="+this.textItalic+
			"&textfont="+this.textFont,
			"EnjoyPlayer_flash","750","25","9",this.setHexa(this.backgroundColor));
		p.addParam("quality","high");
		p.addParam("wmode","transparent");
		p.write(this.DVmax);
		Nav.get("EnjoyPlayer_max").appendChild(this.BTmin);
		Nav.get("EnjoyPlayer_min").appendChild(this.BTmax);
		this.player=Nav.get("EnjoyPlayer_flash");
		if(Nav.isIE()){this.move();window.onresize=function(){EPlayer.move();};window.onscroll=function(){EPlayer.move();};}
		Nav.addEvent(Nav.get("EnjoyPlayer_BTmax"),"click",function(){EPlayer.maximize();});
		Nav.addEvent(Nav.get("EnjoyPlayer_BTmin"),"click",function(){EPlayer.minimize();});
		if(Coockie.get('Player_open')=='0'){setTimeout(function(){EPlayer.minimize();},10);}
	},
	destroy:function(){Nav.getBody().removeChild(this.DVmax);Nav.getBody().removeChild(this.DVmin);},
	config:function(i){
		for(v in i){this[v]=i[v];}
		this.DVmax.style.backgroundColor=this.setHexa(this.backgroundColor);
		this.DVmin.style.backgroundColor=this.setHexa(this.backgroundColor);
		this.DVmax.style.backgroundImage=(this.backgroundImg!='')?"url("+this.backgroundImg+")":"none";
		this.DVmin.style.backgroundImage=(this.backgroundImg!='')?"url("+this.backgroundImg+")":"none";
		this.DVmax.style.borderTop=(this.border)?this.setHexa(this.borderColor)+" solid "+this.setPixel(this.borderSize):"";
		this.DVmin.style.borderTop=(this.border)?this.setHexa(this.borderColor)+" solid "+this.setPixel(this.borderSize):"";
		Nav.get("EnjoyPlayer_flash").src=
			EnjoyPlayer.SWF+
			"?textcolor="+this.setHexaFlash(this.textColor)+
			"&fondcolor="+this.setHexaFlash(this.backgroundColor)+
			"&textbold="+this.textBold+
			"&textitalic="+this.textItalic+
			"&textfont="+this.textFont;
	},
	move:function(){
		var o=Nav.clientHeight(),t=Nav.scrollY();
		this.DVmax.style.position='absolute';this.DVmax.style.top=(t+o-this.DVmax.offsetHeight)+'px';
		this.DVmin.style.position='absolute';this.DVmin.style.top=(t+o-this.DVmin.offsetHeight)+'px';
	}
};

var Nav = new function(){
	this.aN=navigator.appName.toLowerCase();
	this.aV=navigator.appVersion.toLowerCase();
	this.uA=navigator.userAgent.toLowerCase();
	this.TN={MZ:/mozilla/,IE:/msie/,FF:/firefox/,OP:/opera/,SA:/safari/,CH:/chrome/,NS:/navigator/,KQ:/konqueror/};
	this.TV={MZ:"rv:",IE:"msie ",FF:"firefox\/",OP:"version\/",CH:"chrome\/",SA:"version\/",NS:"navigator\/",KQ:"konqueror\/"};
	this.NN={MZ:"Mozilla",IE:"Internet Explorer",FF:"Firefox",OP:"Opera",CH:"Chrome",SA:"Safari",NS:"Netscape",KQ:"Konqueror"};
	this.UK="Unknown";
	this.gV=function(TN){
		var id=this.uA.indexOf(this.TV[TN]),idl=id+this.TV[TN].length,pt=this.uA.indexOf(")",idl),pv=this.uA.indexOf(";",idl),es=this.uA.indexOf(" ",idl);
		if(pv==-1 && es==-1 && pt==-1){this.V=this.uA.substring(idl);}else if((pv<es||es==-1) && (pv<pt||pt==-1) && pv>0){this.V=this.uA.substring(idl,pv);}
		else if((es<pv||pv==-1) && (es<pt||pt==-1) && es>0){this.V=this.uA.substring(idl,es);}else if((pt<pv||pv==-1) && (pt<es||es==-1) && pt>0){this.V=this.uA.substring(idl,pt);}else{this.V=0;}
	};
	for(i in this.TN){if(this.TN[i].test(this.uA)){this.N=this.NN[i];this.gV(i);}}
	if(!this.N){this.N=this.UK;this.V=0;}
	var me=this;
	this.loadFile=function(t,f){
		if(t=="js"){var o=document.createElement('script');o.setAttribute("type","text/javascript");o.setAttribute("src",f);}
		else if(t=="css"){var o=document.createElement("link");o.setAttribute("rel","stylesheet");o.setAttribute("type","text/css");o.setAttribute("href",f);}
		if(typeof o!="undefined"){Nav.getHead().appendChild(o);}
	};
	this.isIE=function(){return this.N===this.NN['IE'];};
	this.isIE6=function(){return this.isIE() && this.V==="6.0";};
	this.isIE7=function(){return this.isIE() && this.V==="7.0";};
	this.isIE8=function(){return this.isIE() && this.V==="8.0";};
	this.isFF=function(){return this.N===this.NN['FF'];};
	this.isOpera=function(){return this.N===this.NN['OP'];};
	this.isChrome=function(){return this.N===this.NN['CH'];};
	this.isSafari=function(){return this.N===this.NN['SA'];};
	this.Name=function(){return this.N;};
	this.Version=function(){return this.V;};
	this.baseVersion=function(){if(this.V.length>1){return this.V.substring(0,this.V.indexOf("."));}return this.V;};
	this.clientHeight=function(){
		this.cH=0;
		if(typeof(window.innerHeight)=='number'){this.cH=window.innerHeight;}
		else if(document.documentElement && document.documentElement.clientHeight){this.cH=document.documentElement.clientHeight;}
		else if(document.body && document.body.clientHeight){this.cH=document.body.clientHeight;}
		return this.cH;
	};
	this.scrollY=function(){
		this.scrolY=0;
		if(typeof(window.pageYOffset)=='number'){this.scrolY=window.pageYOffset;}
		else if(document.body && document.body.scrollTop){this.scrolY=document.body.scrollTop;}
		else if(document.documentElement && document.documentElement.scrollTop){this.scrolY=document.documentElement.scrollTop;}
		return this.scrolY;
	};
	this.elementX=function(o){if(o.offsetParent){for(var X=0;o.offsetParent;o=o.offsetParent){X+=o.offsetLeft;}return X;}else{return o.x;}};
	this.elementY=function(o){if(o.offsetParent){for(var Y=0;o.offsetParent;o=o.offsetParent){Y+=o.offsetTop;}return Y;}else{return o.y;}};
	this.elementWidth=function(o){if(o.offsetWidth){return o.offsetWidth;}else if(Nav.get(o)){return Nav.get(o).offsetWidth;}else return;};
	this.elementHeight=function(o){if(o.offsetHeight){return o.offsetHeight;}else if(Nav.get(o)){return Nav.get(o).offsetHeight;}else return;};
	this.addEvent=function(o,t,f){if(o.addEventListener){o.addEventListener(t,f,false);return true;}else if(o.attachEvent){var r=o.attachEvent("on"+t,f);return r;}else{o["on"+t]=f;}};
	this.getHead=function(){return document.getElementsByTagName("head")[0];};
	this.getBody=function(){return document.getElementsByTagName("body")[0];};
	this.get=function(i){return document.getElementById(i);};
	this.setVisibility=function(i,o){Nav.get(i).style.visibility=o;};
	this.createElement=function(t,i){var o=document.createElement(t);for(v in i){if(typeof(i[v])=="object"){var d=i[v];for(c in d){o[v][c]=i[v][c];}}else{o[v]=i[v];}}return o;};
	return this;
};
var Navigator=Nav;
if(typeof(SWFObject)=="undefined"){Nav.loadFile("js",EnjoyPlayer.URL+"/js/swfobject.js");}

var gaJsHostP=(("https:" == document.location.protocol)?"https://ssl.":"http://www.");document.write(unescape("%3Cscript src='"+gaJsHostP+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try{var pageTrackerP=_gat._getTracker("UA-12806817-1");pageTrackerP._trackPageview();}catch(err){}