/**
 * Passion du sport
 * Production Vic Pelletiers, tous droits réservées
 * Avril 2009 
**/
RessourcesTextes.add([["rech.rech_vide","Inscrivez ce que vous recherchez dans le champ. "],["mot.js_form_helper_erreur_champs","DEBUG : Impossible de trouver le champs {0}"],["mot.js_form_helper_erreur_caracteres","Vous ne pouvez entrer plus de {0} charactères dans ce champs..."]]);

(function(){
var T= window.Tracking= new function(){
var me= this;
var tracker=null;
var baseURL= null;
function itrack(cat, act, label, val){
}
this.track= function(p){
if(tracker){
tracker._trackPageview(p);}
itrack("Page",(p) ? p : document.title);}
this.onglet= function(o){
if(baseURL.substr(baseURL.length-1)=="/"){
o= baseURL+ o;} else{
o= baseURL+"/"+ o}
T.track(o);}
this.event= function(cat, act, label, val){
if(tracker){
tracker._trackEvent(cat, act, label, val);}
itrack(cat, act, label, val);}
this.flashEvent= function(params){
var cat= params[0];
var act= params[1];
var label= params[2];
var val= params[3];
this.event(cat, act, label, val);}
function tclick(){
var l= $j(this);
var c= l.attr("title") || l.text() || l.attr("href");
T.event("Click", c, document.title);}
this.init= function(url, id, d){
baseURL= decodeURIComponent(url);
if(id!=""){
try{
tracker= _gat._getTracker(id);
if(d){
bfTracker._setDomainName(d);}} catch(err){}}
T.track();
T.enable($j(document.body));}
this.enable= function(s){
s.find("a").one("click", tclick);}

this.trackBellVideo= function(path){
try{
var slashPos= path.lastIndexOf("/");
if(slashPos){
bfTracker._trackPageview("/videos/"+path.substr(slashPos+1)+"/");}} catch(err){}}}})();



function FormulaireHelper(data, formId, postData, next, autosubmit, autofocus, tabindex){
this.data=data;
this.next=next;
this.formId=formId;
this.postData=postData;
this.initialState;
this.init(autosubmit, tabindex);
this.setInitialState();
this.url="/plugin.php";
if(autofocus){
this.autoFocus();}}

function vfocus(){}

function vblur(){}

function enterPressed(e){
var keynum;
if(window.event){
keynum= e.keyCode;}
else if(e.which){
keynum= e.which;}
if(keynum==13){
return true;}
return false;}

FormulaireHelper.prototype={
submitOnEnter: function(e){
if(enterPressed(e)){
this.autosubmit();}},

init: function(autosubmit, tabindex){
for(var i=0; i< this.data.length; i++){
v=this.data[i];
var input= $w(v[0]);
if(input){
if(input.type!="radio") input.name= v[0];
if((input.type=="text")||(input.type=="password")||(input.type=="textarea")){
input.classNameBak=input.className;
this.addListener(input,"focus" , vfocus);
this.addListener(input,"blur" , vblur);}
if((autosubmit!=null)&&(this.data.length-1==i)&&(input.type!="textarea")){
input.autosubmit= autosubmit;
this.addListener(input,"keypress" , this.submitOnEnter);}
if(tabindex>0){
input.tabIndex=(i+tabindex);}
var i2=$w(v[0]+"_i");
if(i2){
if(v.length>=4){
this.setUpToolTip([i2], v[3]);} else{
this.setUpToolTip([i2], v[1]);}
i2.onclick=this.aide;}} else{
alert(_TR("mot.js_form_helper_erreur_champs" ,"DEBUG : Impossible de trouver le champ {0}", v[0]));}}},
setUpToolTip: function(nodes, message){
new ToolTip(message, nodes);}}
FormulaireHelper.prototype.addListener= function(input, event, f){
try{
YAHOO.util.Event.addListener(input, event, f, input, true);} catch(e){
jQuery.event.add(input, event, function(e){
f.call(input, e);} );}}

FormulaireHelper.prototype.autoFocus= function(){
if(this.data.length>0){
v=this.data[0];
var input= $w(v[0]);
if(input.value=="" ){
try{
input.focus();} catch(e){}}}}

FormulaireHelper.prototype.aide= function(){
return false;}

FormulaireHelper.prototype.vCham= function(){
if(typeof $j !="undefined" ){
$j.clearMessages();}
var radioAVal=[];
var radioState=[];
for(var i=0; i< this.data.length; i++){
var v=this.data[i];
var doitV=true;
if(v.length>=3){
doitV=v[2];}
if(doitV){
var input= $w(v[0]);
var ok=false;
if(input.type=="checkbox" ){
if(input.checked){
ok=true;}} else if(input.type=="select-one" ){
if(input.selectedIndex> 0 || input.length< 2){
ok=true;}} else if(input.type=="radio" ){
var name= input.name;
if(radioState[name]){} else{
radioAVal[radioAVal.length]=[name,i];
radioState[name]=1;}
if(input.checked){
radioState[name]=2;}
ok= true;} else{
if(input.value!=""){
ok=true;}}
if(!ok){
$j(input).message(v[1]);
input.focus();
return false;}}}
for(var i=0; i< radioAVal.length; i++){
var d= radioAVal[i];
var v=this.data[d[1]];
var n=d[0];
if(radioState[n]== 1){
var input= $w(v[0]);
$j(input).message(v[1]);
input.focus();
return false;}}
return true;}

FormulaireHelper.prototype.soum= function(){
var f= $w(this.formId);
var sUrl= this.url;
var postData= this.postData;
var valeurs= getFieldsValueOfEl(f);
for(var i=0; i< valeurs.length; i++){
var val= valeurs[i];
var encval= encodeURIComponent(val[1]);
postData+='&'+val[0]+"="+encval;}
var request= blockingXmlCall(sUrl, postData);
return this.afterSave(request);}
FormulaireHelper.prototype.afterSave= function(request){
var data= request.responseText;
if((data.length>=2)&&(data.substr(0, 2)=="OK")){
this.afterSuccessSave(request);
return true;} else if(data=="LOGIN"){
sessionExpire();} else{
if(data.substr(0, 1)==""){
var r= eval("("+ data+")" );
$j.each(r, function(i, n){
var $i= $j(n[0]);
$i.message(n[3]);
$i.focus();});} else{
$j("#"+ this.data[0]).message(data);}}
return false;}
FormulaireHelper.prototype.afterSuccessSave= function(request){
if(this.next!=null){
window.location.href=this.next;} else{
return true;}}

FormulaireHelper.prototype.valider= function(){
if(this.vCham()){
this.soum();}}
FormulaireHelper.prototype.getFieldsValues= function(){
return getFieldsValueOfEl($w(this.formId));}

FormulaireHelper.prototype.setInitialState= function(){
this.initialState= this.getFieldsValues();}

FormulaireHelper.prototype.isModified= function(){
if(this.initialState!=null){
nfields= this.getFieldsValues();
for(var i=0; i< nfields.length; i++){

if(nfields[i][1]!=this.initialState[i][1]){
return true;}}}
return false;}
FormulaireHelper.prototype.addData= function(name, value){
var i= document.createElement("input");
i.type="hidden";
i.name=name;
i.value=value;
var form= $w(this.formId);
form.appendChild(i);}

FormulaireHelper.prototype.addParams= function(params){
var plist= params.split("&");
for(var i=0; i< plist.length; i++){
var p= plist[i];
var part= p.split("=");
if((part[0])&&(part[0]!="")){
this.addData(part[0], decodeURIComponent(part[1]));}}}

function onKeyPressLimit(input, e, limit){
var keynum;
var keychar;
var numcheck;
if(window.event){
keynum= e.keyCode;}
else if(e.which){
keynum= e.which;}
if((keynum>46)||(keynum==32)){
return(input.value.length<limit);}
return true;}

function onKeyUpLimit(input, limit){
if(input.value.length>limit){
$j.clearMessages();
$j(input).message(_TR("mot.js_form_helper_erreur_caracteres" ,"Vous ne pouvez entrer plus de {0} caractères dans ce champ...", limit));
input.value= input.value.substr(0, limit);}}

function remplacer(chaine, element, nouveau){
var reg=new RegExp(element,"gi");
return chaine.replace(reg, nouveau);}

function formatterApresXml(chaine){
chaine= remplacer(chaine,"\\\\\\\\" ,"\\" );
return chaine;}
function escapeHTML(html){
var div= document.createElement('div');
var text= document.createTextNode(html);
div.appendChild(text);
return div.innerHTML;}

function safeXmlExtract(parent, nom){
var match= parent.getElementsByTagName(nom);
if(match.length==1){
var node= match[0];
if(node.childNodes.length== 1){
return formatterApresXml(node.firstChild.nodeValue);}}
return"";}

function formToJSON(conteneur){
var fields={};
if(conteneur.nodeName=="FORM"){
var forms=[conteneur];} else{
var forms= conteneur.getElementsByTagName("form");}
if(forms.length==0){
forms=[conteneur];}
for(var i=0; i<forms.length;i++){
var form= forms[i];
var inputs= form.getElementsByTagName("input");
for(var j=0; j<inputs.length;j++){
var input= inputs[j];
var name="";
if(input.name=="")
name=input.id;
else
name=input.name;
if(input.type=="checkbox" ){
fields[name]= input.checked;} else if(input.type=="radio"){
if(input.checked){
fields[name]= input.value;}} else{
fields[name]= input.value;}}
var selects= form.getElementsByTagName("select");
for(var j=0; j<selects.length;j++){
var input= selects[j];
var name="";
if(input.name=="")
name=input.id;
else
name=input.name;
var sel=input.selectedIndex;
if((sel<input.options.length)&&(sel>= 0)){
fields[name]= input.options[sel].value;} else{
fields[name]="";}}
var textareas= form.getElementsByTagName("textarea");
for(var j=0; j<textareas.length;j++){
var input= textareas[j];
var name="";
if(input.name=="")
name=input.id;
else
name=input.name;
fields[name]= input.value;}}
return fields;}
function autoSubmit($input, callback){
$input.keypress(function(e){
if(e.keyCode== 13){
e.preventDefault();
callback();}});}


(function(){
var C= window.ContactFooter= window.PVP.ContactFooter= new function(){
function init(){}
$j(document).ready(function(){
$j(init);});
function contacterPosted(data){
$j("#b-soumettre").show();
if(data=="OK"){
$j("#footer-contact p").show();
$j("#footer-contact .foot-contact-container").hide();} else{
$j.each(data, function(i, n){
var id= n[0];
id= id.replace("-footer","" );
jQuery("#"+id).tooltip(n[3]);});}}
this.FC= this.FormulaireContacterFooter= new function(){
this.soumettre= function(){
if(ContactFooter.FormulaireContacterFooter.validerForm()){
var url="/plugin.php";
var f= $w("footer-contact");
var v= formToJSON(f);
v.plugin="contact";
v.action="contacter";
$j.clearMessages();
$j.post(url, v, contacterPosted,"json" );}};
this.validerForm= function(){
$j.clearMessages();
var siErreurs=false;
var nom= $j("#footer-contact #nom-footer").val();
if($j("#footer-contact #nom-footer").attr('title')== $j("#footer-contact #nom-footer").val()){
nom='';}

var courriel= $j("#footer-contact #courriel-footer").val();
if($j("#footer-contact #courriel-footer").attr('title')== $j("#footer-contact #courriel-footer").val()){
courriel='';}
var message= $j("#footer-contact #message-footer").val();
if($j("#footer-contact #message-footer").attr('title')== $j("#footer-contact #message-footer").val()){
message='';}

if(courriel==""){
siErreurs=true;
$j("#footer-contact #courriel-footer").message(_TR("all.entrez_courriel","Entrez votre courriel"));}
if(message==""){
siErreurs=true;
$j("#footer-contact #message-footer").message(_TR("all.entrez_message","Entrez votre message"));}
if(nom==""){
siErreurs=true;
$j("#footer-contact #nom-footer").message(_TR("all.entrez_nom","Entrez votre nom"));}
return !siErreurs;}}};
var f='<form id="footer-contact" name="footer-contact" action="/plugin.php" onsubmit="ContactFooter.FormulaireContacterFooter.soumettre(); return false;" enctype="multipart/form-data">'+'<div class="foot-contact-container">'+'<input id="nom-footer" name="nom" title="'+ _TR("pvp.carriere.nomcomplet","Nom complet" )+'" type="text" /><br />'+'<input id="courriel-footer" name="courriel" title="'+ _TR("pvp.carriere.courriel","Courriel" )+'" type="text" /><br />'+'<textarea id="message-footer" name="message" title="'+ _TR("pvp.contact.message","Votre message" )+'"></textarea><br />'+'<a id="b-soumettre-footer" href="#" style="margin-left: 220px;" onclick="ContactFooter.FormulaireContacterFooter.soumettre(); return false;">'+ _TR("pvp.contact.envoyer","Envoyer" )+'</a>'+'</div>'+'<p id="emp_msg_succes" style="display: none; margin: 20px; font-size: 11px; text-align: center;" class="success">'+ _TR("pvp.contact.succes","Votre message a été transmis avec succès." )+'</p>'+'</form>';
$j("#footer-contact").append(f);
$j("#footer-contact input, #footer-contact textarea").labelify({labelledClass:"labelHighlight"});})();


/* 
 * flowplayer.js 3.2.4. The Flowplayer API
 * 
 * Copyright 2009 Flowplayer Oy
 * 
 * This file is part of Flowplayer.
 * 
 * Flowplayer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Flowplayer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Flowplayer.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Date: 2010-08-25 12:48:46 +0000 (Wed, 25 Aug 2010)
 * Revision: 551 
 */
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.slice(0,q)||"*";var o=s.slice(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).slice(2,10)}var h=function(t,r,s){var q=this,p={},u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.slice(0,v.length-1);var w="onBefore"+v.slice(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var o=this,s={},u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var z=q._api().fp_getPlugin(p);if(!z){return}i(o,z);delete o.methods;if(!u){m(z.methods,function(){var B=""+this;o[B]=function(){var C=[].slice.call(arguments);var D=q._api().fp_invoke(p,B,C);return D==="undefined"||D===undefined?o:D}});u=true}}var A=s[w];if(A){var y=A.apply(o,v);if(w.slice(0,1)=="_"){delete s[w]}return y}return o}})};function b(q,G,t){var w=this,v=null,D=false,u,s,F=[],y={},x={},E,r,p,C,o,A;i(w,{id:function(){return E},isLoaded:function(){return(v!==null&&v.fp_play!==undefined&&!D)},getParent:function(){return q},hide:function(H){if(H){q.style.height="0px"}if(w.isLoaded()){v.style.height="0px"}return w},show:function(){q.style.height=A+"px";if(w.isLoaded()){v.style.height=o+"px"}return w},isHidden:function(){return w.isLoaded()&&parseInt(v.style.height,10)===0},load:function(J){if(!w.isLoaded()&&w._fireEvent("onBeforeLoad")!==false){var H=function(){u=q.innerHTML;if(u&&!flashembed.isSupported(G.version)){q.innerHTML=""}if(J){J.cached=true;j(x,"onLoad",J)}flashembed(q,G,{config:t})};var I=0;m(a,function(){this.unload(function(K){if(++I==a.length){H()}})})}return w},unload:function(J){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(J){J(false)}return w}if(u.replace(/\s/g,"")!==""){if(w._fireEvent("onBeforeUnload")===false){if(J){J(false)}return w}D=true;try{if(v){v.fp_close();w._fireEvent("onUnload")}}catch(H){}var I=function(){v=null;q.innerHTML=u;D=false;if(J){J(true)}};setTimeout(I,50)}else{if(J){J(false)}}return w},getClip:function(H){if(H===undefined){H=C}return F[H]},getCommonClip:function(){return s},getPlaylist:function(){return F},getPlugin:function(H){var J=y[H];if(!J&&w.isLoaded()){var I=w._api().fp_getPlugin(H);if(I){J=new l(H,I,w);y[H]=J}}return J},getScreen:function(){return w.getPlugin("screen")},getControls:function(){return w.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return w.getPlugin("logo")._fireEvent("onUpdate")}catch(H){}},getPlay:function(){return w.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(H){return H?k(t):t},getFlashParams:function(){return G},loadPlugin:function(K,J,M,L){if(typeof M=="function"){L=M;M={}}var I=L?e():"_";w._api().fp_loadPlugin(K,J,M,I);var H={};H[I]=L;var N=new l(K,null,w,H);y[K]=N;return N},getState:function(){return w.isLoaded()?v.fp_getState():-1},play:function(I,H){var J=function(){if(I!==undefined){w._api().fp_play(I,H)}else{w._api().fp_play()}};if(w.isLoaded()){J()}else{if(D){setTimeout(function(){w.play(I,H)},50)}else{w.load(function(){J()})}}return w},getVersion:function(){var I="flowplayer.js 3.2.4";if(w.isLoaded()){var H=v.fp_getVersion();H.push(I);return H}return I},_api:function(){if(!w.isLoaded()){throw"Flowplayer "+w.id()+" not loaded when calling an API method"}return v},setClip:function(H){w.setPlaylist([H]);return w},getIndex:function(){return p},_swfHeight:function(){return v.clientHeight}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var H="on"+this;if(H.indexOf("*")!=-1){H=H.slice(0,H.length-1);var I="onBefore"+H.slice(2);w[I]=function(J){j(x,I,J);return w}}w[H]=function(J){j(x,H,J);return w}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var H=this;w[H]=function(J,I){if(!w.isLoaded()){return w}var K=null;if(J!==undefined&&I!==undefined){K=v["fp_"+H](J,I)}else{K=(J===undefined)?v["fp_"+H]():v["fp_"+H](J)}return K==="undefined"||K===undefined?w:K}});w._fireEvent=function(Q){if(typeof Q=="string"){Q=[Q]}var R=Q[0],O=Q[1],M=Q[2],L=Q[3],K=0;if(t.debug){g(Q)}if(!w.isLoaded()&&R=="onLoad"&&O=="player"){v=v||c(r);o=w._swfHeight();m(F,function(){this._fireEvent("onLoad")});m(y,function(S,T){T._fireEvent("onUpdate")});s._fireEvent("onLoad")}if(R=="onLoad"&&O!="player"){return}if(R=="onError"){if(typeof O=="string"||(typeof O=="number"&&typeof M=="number")){O=M;M=L}}if(R=="onContextMenu"){m(t.contextMenu[O],function(S,T){T.call(w)});return}if(R=="onPluginEvent"||R=="onBeforePluginEvent"){var H=O.name||O;var I=y[H];if(I){I._fireEvent("onUpdate",O);return I._fireEvent(M,Q.slice(3))}return}if(R=="onPlaylistReplace"){F=[];var N=0;m(O,function(){F.push(new h(this,N++,w))})}if(R=="onClipAdd"){if(O.isInStream){return}O=new h(O,M,w);F.splice(M,0,O);for(K=M+1;K<F.length;K++){F[K].index++}}var P=true;if(typeof O=="number"&&O<F.length){C=O;var J=F[O];if(J){P=J._fireEvent(R,M,L)}if(!J||P!==false){P=s._fireEvent(R,M,L,J)}}m(x[R],function(){P=this.call(w,O,M);if(this.cached){x[R].splice(K,1)}if(P===false){return false}K++});return P};function B(){if($f(q)){$f(q).getParent().innerHTML="";p=$f(q).getIndex();a[p]=w}else{a.push(w);p=a.length-1}A=parseInt(q.style.height,10)||q.clientHeight;E=q.id||"fp"+e();r=G.id||E+"_api";G.id=r;t.playerId=E;if(typeof t=="string"){t={clip:{url:t}}}if(typeof t.clip=="string"){t.clip={url:t.clip}}t.clip=t.clip||{};if(q.getAttribute("href",2)&&!t.clip.url){t.clip.url=q.getAttribute("href",2)}s=new h(t.clip,-1,w);t.playlist=t.playlist||[t.clip];var I=0;m(t.playlist,function(){var K=this;if(typeof K=="object"&&K.length){K={url:""+K}}m(t.clip,function(L,M){if(M!==undefined&&K[L]===undefined&&typeof M!="function"){K[L]=M}});t.playlist[I]=K;K=new h(K,I,w);F.push(K);I++});m(t,function(K,L){if(typeof L=="function"){if(s[K]){s[K](L)}else{j(x,K,L)}delete t[K]}});m(t.plugins,function(K,L){if(L){y[K]=new l(K,L,w)}});if(!t.plugins||t.plugins.controls===undefined){y.controls=new l("controls",null,w)}y.canvas=new l("canvas",null,w);u=q.innerHTML;function J(L){var K=w.hasiPadSupport&&w.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(F[0].url)&&!K){return true}if(!w.isLoaded()&&w._fireEvent("onBeforeClick")!==false){w.load()}return f(L)}function H(){if(u.replace(/\s/g,"")!==""){if(q.addEventListener){q.addEventListener("click",J,false)}else{if(q.attachEvent){q.attachEvent("onclick",J)}}}else{if(q.addEventListener){q.addEventListener("click",f,false)}w.load()}}setTimeout(H,0)}if(typeof q=="string"){var z=c(q);if(!z){throw"Flowplayer cannot access element: "+q}q=z;B()}else{B()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};if(typeof t=="string"){t={src:t}}t=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:true},t);if(typeof o=="string"){if(o.indexOf(".")!=-1){var s=[];m(n(o),function(){s.push(new b(this,k(t),k(q)))});return new d(s)}else{var r=c(o);return new b(r!==null?r:o,t,q)}}else{if(o){return new b(o,t,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var h=document.all,j="http://www.adobe.com/go/getflashplayer",c=typeof jQuery=="function",e=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function i(m,l){if(l){for(var f in l){if(l.hasOwnProperty(f)){m[f]=l[f]}}}return m}function a(f,n){var m=[];for(var l in f){if(f.hasOwnProperty(l)){m[l]=n(f[l])}}return m}window.flashembed=function(f,m,l){if(typeof f=="string"){f=document.getElementById(f.replace("#",""))}if(!f){return}if(typeof m=="string"){m={src:m}}return new d(f,i(i({},b),m),l)};var g=i(window.flashembed,{conf:b,getVersion:function(){var m,f;try{f=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(o){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");f=m&&m.GetVariable("$version")}catch(n){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=m&&m.GetVariable("$version")}catch(l){}}}f=e.exec(f);return f?[f[1],f[3]]:[0,0]},asString:function(l){if(l===null||l===undefined){return null}var f=typeof l;if(f=="object"&&l.push){f="array"}switch(f){case"string":l=l.replace(new RegExp('(["\\\\])',"g"),"\\$1");l=l.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+l+'"';case"array":return"["+a(l,function(o){return g.asString(o)}).join(",")+"]";case"function":return'"function()"';case"object":var m=[];for(var n in l){if(l.hasOwnProperty(n)){m.push('"'+n+'":'+g.asString(l[n]))}}return"{"+m.join(",")+"}"}return String(l).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(o,l){o=i({},o);var n='<object width="'+o.width+'" height="'+o.height+'" id="'+o.id+'" name="'+o.id+'"';if(o.cachebusting){o.src+=((o.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(o.w3c||!h){n+=' data="'+o.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(o.w3c||h){n+='<param name="movie" value="'+o.src+'" />'}o.width=o.height=o.id=o.w3c=o.src=null;o.onFail=o.version=o.expressInstall=null;for(var m in o){if(o[m]){n+='<param name="'+m+'" value="'+o[m]+'" />'}}var p="";if(l){for(var f in l){if(l[f]){var q=l[f];p+=f+"="+(/function|object/.test(typeof q)?g.asString(q):q)+"&"}}p=p.slice(0,-1);n+='<param name="flashvars" value=\''+p+"' />"}n+="</object>";return n},isSupported:function(f){return k[0]>f[0]||k[0]==f[0]&&k[1]>=f[1]}});var k=g.getVersion();function d(f,n,m){if(g.isSupported(n.version)){f.innerHTML=g.getHTML(n,m)}else{if(n.expressInstall&&g.isSupported([6,65])){f.innerHTML=g.getHTML(i(n,{src:n.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!f.innerHTML.replace(/\s/g,"")){f.innerHTML="<h2>Flash version "+n.version+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(f.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+j+"'>here</a></p>");if(f.tagName=="A"){f.onclick=function(){location.href=j}}}if(n.onFail){var l=n.onFail.call(this);if(typeof l=="string"){f.innerHTML=l}}}}if(h){window[n.id]=document.getElementById(n.id)}i(this,{getRoot:function(){return f},getOptions:function(){return n},getConf:function(){return m},getApi:function(){return f.firstChild}})}if(c){jQuery.tools=jQuery.tools||{version:"3.2.4"};jQuery.tools.flashembed={conf:b};jQuery.fn.flashembed=function(l,f){return this.each(function(){$(this).data("flashembed",flashembed(this,l,f))})}}})();


/***
@title:
Center

@version:
2.0

@author:
Andreas Lagerkvist

@date:
2008-09-17

@url:
http://andreaslagerkvist.com/jquery/center/

@license:
http://creativecommons.org/licenses/by/3.0/

@copyright:
2008 Andreas Lagerkvist (andreaslagerkvist.com)

@requires:
jquery

@does:
This little pluggy centers an element on the screen using either fixed or absolute positioning. Can be used to display messages, pop up images etc.

@howto:
jQuery('#my-element').center(true); would center the element with ID 'my-element' using absolute position (leave empty for fixed).

@exampleHTML:
<p>I should be fixed centered</p>

<p>The paragraph above and the paragraph beneath this one are centered. They should be in the middle of the viewport.</p>

<p>I should be absolutely centered</p>

@exampleJS:
jQuery('#jquery-center-example p:first-child').center();
jQuery('#jquery-center-example p:last-child').center(true);
***/
jQuery.fn.center = function (absolute) {
	return this.each(function () {
		var t = jQuery(this);

		t.css({
			position:	absolute ? 'absolute' : 'fixed', 
			left:		'50%', 
			top:		'50%', 
			zIndex:		'99'
		}).css({
			marginLeft:	'-' + (t.outerWidth() / 2) + 'px', 
			marginTop:	'-' + (t.outerHeight() / 2) + 'px'
		});

		if (absolute) {
			t.css({
				marginTop:	parseInt(t.css('marginTop'), 10) + jQuery(window).scrollTop(), 
				marginLeft:	parseInt(t.css('marginLeft'), 10) + jQuery(window).scrollLeft()
			});
		}
	});
};

/*jQuery.fn.getCenterCss = function(absolute) {
	var css;
	this.each(function () {
		var t = jQuery(this);

		css ={
			position:	absolute ? 'absolute' : 'fixed', 
			left:		'50%', 
			top:		'50%', 
			zIndex:		'99',
			marginLeft:	'-' + (t.outerWidth() / 2) + 'px', 
			marginTop:	'-' + (t.outerHeight() / 2) + 'px'
		};

		if (absolute) {
			css.marginTop=	parseInt(t.css('marginTop'), 10) + jQuery(window).scrollTop(); 
			css.marginLeft=	parseInt(t.css('marginLeft'), 10) + jQuery(window).scrollLeft();
		}
	});	
	return css;
}*/


if (typeof window.Webtitan == "undefined") {
	window.Webtitan = {};
}

Webtitan.flow = {license: "#@a1cb7ea26ea1a250ead"};



var FIRST_FOUND= null;
jQuery.fn.highlight= function(pat){
function innerHighlight(node, pat){
var skip= 0;
if(node.nodeType== 3){
var pos= node.data.toUpperCase().indexOf(pat);
if(pos>= 0){
var spannode= document.createElement('span');
spannode.className='search-highlight';
var middlebit= node.splitText(pos);
var endbit= middlebit.splitText(pat.length);
var middleclone= middlebit.cloneNode(true);
spannode.appendChild(middleclone);
middlebit.parentNode.replaceChild(spannode, middlebit);
skip= 1;
if(FIRST_FOUND==null){
FIRST_FOUND= spannode;}}}
else if(node.nodeType== 1 && node.childNodes && !/(script|style)/i.test(node.tagName)){
for(var i= 0; i< node.childNodes.length;++i){
i+= innerHighlight(node.childNodes[i], pat);}}
return skip;}
return this.each(function(){
innerHighlight(this, pat.toUpperCase());});};
jQuery.fn.removeHighlight= function(){
return this.find("span.highlight").each(function(){
this.parentNode.firstChild.nodeName;
with(this.parentNode){
replaceChild(this.firstChild, this);
normalize();}}).end();};


if( !$j.browser.msie ||( parseFloat($j.browser.version)> 6 ) ){
$j(document).ready(function(){
$j('a.custom-button').wrapInner('<div></div>').prepend('<span class="before"></span>').append('<span class="after"></span>');});}
PVP.TypeProjet= new function(){
var typeProjet= lireCookie("typeprojet");
var callback= null;
var complete= false;
this.get= function(){
return typeProjet;}
var searchEngines={"ask"
:"ask","google"
:"q","altavista"
:"q","msn"
:"q","yahoo"
:"p","bing"
:"q"};
function detechComplete(){
if(callback){
callback(typeProjet);}
complete= true;}
function detechKeyworkds(k){
$j.post("/plugin.php",{plugin:"typeprojet", action:"detech","mots" :k}, function(data){
typeProjet= parseInt(data);
detechComplete();});}
function highlight(q){
q= q.replace(/\+/g," " );
var urlparts= window.location.href.split("/");
if(urlparts[4] !="recherche" && urlparts[3] !="search" ){
FIRST_FOUND= null;
var $toho= $j(document.body);
$toho.highlight(q);
if(FIRST_FOUND){
var o= $j(FIRST_FOUND).offset();
window.scroll(0,o.top);}}}
this.detechReferer= function(referrer){
if(referrer && referrer !="" ){
referrer= referrer.toLowerCase();
var urlparts=referrer.split("/");
var q="";
if(urlparts[2]== window.location.hostname && window.location.search=="?h=1" ){
if(urlparts[4]=="recherche" || urlparts[3]=="search" ){
q= urlparts[5];
if(q!=""){
highlight(q);}}} else{
var hote=(urlparts[2].split("."))[1];
var search= searchEngines[hote];
if(search){
var params=(referrer.split("?"))[1].split("&");
$j.each(params, function(i, n){
if(n.substr(0, search.length+1)==search+"="){
q+=decodeURIComponent(n.substr(search.length+1)).toLowerCase()+" ";}});
if(q!=""){
detechKeyworkds(q);
highlight(q);
return;}}}}
detechComplete();}
this.afterDetect= function(func){
if(complete){
func(typeProjet)} else{
if(callback){
var old= callback;
callback= function(){
old();
func();}}
callback= func;}}}
PVP.TypeProjet.detechReferer(document.referrer);
function playYoutube(youtubePath){
if($j(document).width()>= 1300){
var boxH= 720;
var boxW= 1280;} else if($j(document).width()>= 1024){
var boxH= 510;
var boxW= 854;} else{
var boxH= 360;
var boxW= 640;}
$j("#video-player-top").css({"height"
:boxH+"px","width"
:boxW+"px"});
$j("#video-player-top").css({"border"
:"12px #444 solid","borderRadius"
:"5px"});
$j('body').append('<div id="overlay"></div>');
$j('#video-container').center(true);
$j('#overlay').css({'opacity'
:'0' ,'width'
:'100%' ,'height'
: $j(document).height()+'px','background-color'
:'#000' ,'position'
:'absolute' ,'top'
:'0' ,'left'
:'0' ,'z-index'
:'80' }).fadeTo(100, 0.75, function(){
$j('#video-container').show();
$j('#video-container .b-fermer').show();
$j('#overlay, #video-container .b-fermer').click(function(){
$j('#video-container .b-fermer').hide();
$j('#video-player-top').html('');
$j('#video-container').hide();
$j('#overlay').fadeOut(800, function(){
$j(this).remove();});});
$j("#video-player-top").html('<iframe width="'+boxW+'" height="'+boxH+'" src="http://www.youtube.com/embed/'+youtubePath+'?rel=0;autoplay=1;" frameborder="0" allowfullscreen></iframe>');});}
function playVideo(videoPath){
var boxH= 240;
var boxW= 320;
$j("#video-player-top").css({"height"
:boxH+"px","width"
:boxW+"px"});
$j("#video-player-top").css({"border"
:"12px #444 solid","borderRadius"
:"5px"});
$j('body').append('<div id="overlay"></div>');
$j('#video-container').center(true);
$j('#overlay').css({'opacity'
:'0' ,'width'
:'100%' ,'height'
: $j(document).height()+'px','background-color'
:'#000' ,'position'
:'absolute' ,'top'
:'0' ,'left'
:'0' ,'z-index'
:'80' }).fadeTo(100, 0.75, function(){
$j('#video-container').show();
$j('#video-container .b-fermer').show();
$j('#overlay, #video-container .b-fermer').click(function(){
$j('#video-container .b-fermer').hide();
$j('#video-player-top').html('');
$j('#video-container').hide();
$j('#overlay').fadeOut(800, function(){
$j(this).remove();});});
$j("#video-player-top").flowplayer({src:"/swf/flowplayer/flowplayer.commercial-3.2.5.swf"},{
key: Webtitan.flow.license,
logo:{
displayTime: 2000},
clip:{
url:videoPath,
autoPlay: true,
scaling:'orig' ,
onStart: function(clip){
boxH= parseInt(clip.metaData.height, 10)+15;
boxW= parseInt(clip.metaData.width, 10);
$j("#video-player-top").css({"height"
:boxH+"px","width"
:boxW+"px"});
$j('#video-container').center(true);},
onFinish: function(){
$j('#video-container .b-fermer').hide();
$j('#video-container').hide();
$j('#video-player-top').html('');
$j('#overlay').fadeOut(800, function(){
$j(this).remove();});}},
canvas:{
backgroundColor:"#000000" ,
backgroundGradient:"none" },
screen:{
bottom: 15},
plugins:{
controls:{
url:'/swf/flowplayer/flowplayer.controls-3.2.3.swf' ,
backgroundColor:'#000000' ,
backgroundGradient:'none' ,
fontColor:'#ffffff' ,
timeFontColor:'#333333' ,
progressColor:'#2C77AC' ,
volumeSliderColor:'#656565' ,
buttonColor:'#656565' ,
buttonOverColor:'#4090C6' ,
bufferColor:'#434343' ,
timeColor:'#ffffff' ,
autoHide:'never' ,
play:true,
volume:true,
mute:true,
time:true,
stop:false,
playlist:false,
fullscreen:true,
scrubber: true}}});});}
if( $j.browser.msie &&( parseFloat($j.browser.version)< 7 ) ){
document.write('<script type="text/javascript" src="/unitpng/unitpngfix.js"></script>');}
var TXT_RECH= _TR("pvp.eff_recherche" ,"Rechercher sur le site");
var $query= $j('#query');
$query.focusin(function(){
if($query.val()== TXT_RECH ){
$query.val('');}}).focusout(function(){
if($query.val()=='' ){
$query.val(TXT_RECH );}});
function soumettreRech(){
$j.clearMessages();
if($query.val()== TXT_RECH){
$query.message(_TR("rech.rech_vide","Inscrivez ce que vous recherchez dans le champ. " ));} else{
$w('frm_rech').submit();}}
