var baseURL="http://www.bandeapart.fm/";var staticURL="http://static.bandeapart.fm/";var m=document.location.href.match(/(http:\/\/[^\/]+)/);if(m){baseURL=m[1]+"/"}var _panels=[];var _panelsv3=[];var _backgroundColor="#da9d06";var _frontColor="#6d6d6d";if($("ctl00_bodyTag").className.match(/style1/)){_backgroundColor="#16b7c9"}else{if($("ctl00_bodyTag").className.match(/style(2|3)/)){_backgroundColor="#c10001"}}var _v2_cols=2;var _fade=true;if(ie){_fade=false}var _fade_duration=0.1;var _fade_timeout=100;var _v3_fade_duration=0.3;var _v3_fade_timeout=5000;var _timer;var _session_timer;var _v3_timer;var _request=false;var _async=true;var _url=false;var _cal=false;window.onload=init;function _post(e,b,c){var d=String(Math.random());d=d.replace(".","");e=e.replace("[rand]",d);new Ajax.Request(e,{method:"post",parameters:b,onSuccess:c})}function _postJSON(e,b,c){var d=String(Math.random());d=d.replace(".","");e=e.replace("[rand]",d);new Ajax.Request(e,{method:"post",postBody:Object.toJSON(b),onSuccess:c,contentType:"application/json"})}function init(){if(window.parent!=window){window.parent._url=document.location.href;var q=[];if(ie){var g=$("container").getElementsByTagName("object");for(var k=0;k<g.length;k++){var c=g[k];var r=c.outerHTML;var e="";for(var f=0;f<c.childNodes.length;f++){var b=c.childNodes[f];if(b.tagName=="PARAM"){e+=b.outerHTML}}var s=r.split(">")[0]+">";var n=s+e+c.innerHTML+" </OBJECT>";q[k]=n;c.outerHTML='<span id="obj'+k+'"></span>'}}var l=document.getElementsByTagName("html")[0].innerHTML.replace(/\r\n/g,"\n").replace(/\r/g,"\n").replace(/\n/g," ").replace(/\t/g," ").replace(/\s+/g," ");var d=l.match(/<title>(.+)<\/title>.+<!--\[start\]-->(.+)<!--\[end\]-->/i);if(d){window.parent.document.title=d[1];window.parent.$("container").innerHTML=d[2];window.parent.pageInit();window.parent.BAP.init(true);if(ie){for(var k=0;k<q.length;k++){window.parent.$("obj"+k).innerHTML=q[k]}}if($("ctl00_content_main_hdDate")){window.parent.$("hdDate").value=$("ctl00_content_main_hdDate").value;window.parent.$("hdChaine").value=$("ctl00_content_main_hdChaine").value}if(window.parent.$("choisir-date")){window.parent.$("choisir-date").onclick=function(){window.parent._cal.popup(this)}}}}else{_session_timer=window.setInterval("sessionInit()",5000);_url=false;if(ie6){_async=false}sessionInit();pageInit();BAP.init(false);if(_async){$("async").src="/blank.html";$("aspnetForm").target="async"}if($("ctl00_content_main_hdDate")){$("hdDate").value=$("ctl00_content_main_hdDate").value;$("hdChaine").value=$("ctl00_content_main_hdChaine").value}initCalendar();if($("choisir-date")){$("choisir-date").onclick=function(){_cal.popup(this)}}}createSocialNetworkLink()}function sessionInit(){if(YAHOO.util.Cookie.get("BAP_SessionId")===null){var b=String(Math.random());b=b.replace(".","");new Ajax.Request(baseURL+"Identifier.ashx?r="+b,{method:"get",onSuccess:function(d){if(d.responseText){var c=d.responseText.match(BAP.reGuid);if(c){}}}})}}function pageInit(){if(YAHOO){if($("interactions")){var E=$("int_onglets").getElementsByTagName("a");var D=document.location.href.match(/id=(\d+)/);if(_async&&_url){D=_url.match(/id=(\d+)/)}var k=document.location.href.match(/\/artistes\//);if(_async&&_url){k=_url.match(/\/artistes\//)}var A=document.location.href.match(/\/les-50-artistes-marquants-de-la-decennie\//);if(_async&&_url){A=_url.match(/\/les-50-artistes-marquants-de-la-decennie\//)}var f=document.location.href.match(/\/le-hardcore-au-quebec\//);if(_async&&_url){f=_url.match(/\/le-hardcore-au-quebec\//)}for(var z=0;z<E.length;z++){var t=E[z].id.match(/^lnk(Commenter|Ecrire|Partager|Inscrire|Authentifier|Voter)$/);if(t){if(((t[1]==="Commenter"||t[1]==="Partager")&&!D&&!A&&!f)||(D&&k&&t[1]==="Commenter")||(t[1]==="Inscrire"||t[1]==="Authentifier"||(t[1]==="Voter"&&(!A||$$(".votez2").length==0)))){E[z].style.display="none";$("int_"+t[1]).style.display="none"}else{E[z].style.display="block";E[z].onclick=function(){interactionsReset();$("int_main").style.display="block";$("int_succes").style.display="none";$("int_erreur").style.display="none";$("int_current").value=this.id.replace(/^lnk/,"");$("int_"+$("int_current").value).style.display="block";this.className="o";if(ie6){var i="0px 0px";switch($("int_current").value){case"Partager":i="-900px -40px";break;case"Commenter":i="-1000px -40px";break;case"Ecrire":i="-800px -40px";break;case"Inscrire":i="-1500px -440px";break;case"Authentifier":i="-1600px -440px";break}$("lnk"+$("int_current").value).getElementsByClassName("int_fleche")[0].style.display="block";$("lnk"+$("int_current").value).getElementsByClassName("icone")[0].style.backgroundPosition=i;$("lnk"+$("int_current").value).getElementsByClassName("icone")[0].style.backgroundColor="#FFF"}return false}}}}$("interactions").getElementsByClassName("soumettre")[0].onclick=function(){var p=document.location.href.match(/id=(\d+)/);if(_async&&_url){p=_url.match(/id=(\d+)/)}var G=document.location.href.match(/\/les-50-artistes-marquants-de-la-decennie\//);if(_async&&_url){G=_url.match(/\/les-50-artistes-marquants-de-la-decennie\//)}var j=document.location.href.match(/\/le-hardcore-au-quebec\//);if(_async&&_url){j=_url.match(/\/le-hardcore-au-quebec\//)}var K=$("txtCodeSecurite").value;var M=false;try{M=$("int_"+$("int_current").value).getElementsByTagName("input")[1].id.match(/^(txt(Commenter|Partager|Ecrire|Inscrire|Authentifier|Voter))(.+)$/)}catch(N){}if(M){var J={};if(p){J.ContentID=p[1]}else{if(G){J.ContentID=75219;if($("int_current").value=="Commenter"){J.ContentID=75278}}else{if(j){J.ContentID=75632;if($("int_current").value=="Commenter"){J.ContentID=75692}}}}J.CodeSecurite=K;J.Methode=$("int_current").value;var L=$("int_"+$("int_current").value).getElementsByTagName("input");for(var I=0;I<L.length;I++){if(L[I].id!="permalien"){J[L[I].id.replace(M[1],"")]=L[I].value}}L=$("int_"+$("int_current").value).getElementsByTagName("textarea");for(var I=0;I<L.length;I++){J[L[I].id.replace(M[1],"")]=L[I].value}_postJSON(baseURL+"Proxy.ashx?r=[rand]",J,function(P){if(P.responseJSON){var Y=P.responseJSON;if(Y.d){Y=Y.d}$("int_erreur").style.display="none";var T=$("interactions").getElementsByTagName("small");for(var U=0;U<T.length;U++){T[U].style.display="none"}for(var U=0;U<Y.errors.length;U++){$(Y.errors[U]).style.display="inline"}if(Y.status==="200"){if($("int_current").value==="Inscrire"||$("int_current").value==="Authentifier"){BAP.interactions.hide();$("pnlConcoursTelecharger").style.display="block";$("pnlConcoursTelecharger").innerHTML=Y.responseHTML;var R=Y.entries[0];var W=Y.entries[1];var S={u:W.Title2,p:W.Title3,i:W.Id};var O={};var Q=document.location.href.match(/http:\/\/([^\/]+)/);if(_async&&_url){Q=_url.match(/http:\/\/([^\/]+)/)}if(Q){var X=Q[1].match(/^([^\.]+\.)*([^\.]+\.[^\.]+)$/);if(X){O.domain=X[2]}}YAHOO.util.Cookie.setSubs("concours_"+R.Id,S,O);$("btnMonRemix").onclick=uploadRemix}$("int_succes").innerHTML=Y.statusText;$("int_succes").style.display="block";$("int_main").style.display="none";var V=$("int_"+$("int_current").value).getElementsByTagName("input");for(var U=0;U<V.length;U++){if(V[U].id!="permalien"){V[U].value=""}}V=$("int_"+$("int_current").value).getElementsByTagName("textarea");for(var U=0;U<V.length;U++){V[U].value=""}$("txtCodeSecurite").value="";captchaReload()}else{$("int_erreur").innerHTML=Y.statusText;$("int_erreur").style.display="block"}}})}else{if($("int_current").value=="Voter"){var H=document.getElementsByClassName("icone votez2_o");var J={};J.Methode="Voter";J.Selection="";J.CodeSecurite=K;if(H.length==10){for(var I=0;I<H.length;I++){var p=H[I].id.match(/^top_(\d+)$/);if(p){J.Selection+=p[1]+","}}J.Selection=J.Selection.replace(/,$/,"");_postJSON(baseURL+"Proxy.ashx?r=[rand]",J,function(T){if(T.responseJSON){var R=T.responseJSON;if(R.d){R=R.d}$("int_erreur").style.display="none";var S=$("interactions").getElementsByTagName("small");for(var Q=0;Q<S.length;Q++){S[Q].style.display="none"}for(var Q=0;Q<R.errors.length;Q++){$(R.errors[Q]).style.display="inline"}if(R.status==="200"){$("int_succes").innerHTML=R.statusText;$("int_succes").style.display="block";$("int_main").style.display="none";var P=$("int_"+$("int_current").value).getElementsByTagName("input");for(var Q=0;Q<P.length;Q++){P[Q].value=""}P=$("int_"+$("int_current").value).getElementsByTagName("textarea");for(var Q=0;Q<P.length;Q++){P[Q].value=""}$("txtCodeSecurite").value="";captchaReload();var O=$$(".votez2_o");for(var Q=0;Q<O.length;Q++){O[Q].className="icone votez2"}$("btnVoterHaut").className="";$("btnVoterBas").className="";$("selectionHaut").innerHTML="Vous n'avez pas sélectionné d'artistes";$("selectionBas").innerHTML="Vous n'avez pas sélectionné d'artistes"}else{$("int_erreur").innerHTML=R.statusText;$("int_erreur").style.display="block"}}})}else{$("int_erreur").style.display="block";$("int_erreur").innerHTML="* Veuillez sélectionner vos 10 artistes favoris."}}}return false}}}if($("btnMonRemix")){$("btnMonRemix").onclick=uploadRemix}var r,o,y,E,s;var w=$("ctl00_bodyTag").getElementsByTagName("a");for(var z=0;z<w.length;z++){if(w[z].rel==="externe"){w[z].target="_blank"}else{if(w[z].rel.match(/^captcha$/)){w[z].onclick=captchaReload}}}if($("vedette")){var n=$("vedette").parentNode;o=document.createElement("div");o.id="vedette_off";o.style.display="none";o.style.visibility="visible";o.className="vover";o.innerHTML=$("vedette").innerHTML.replace(".jpg","-off.jpg");n.appendChild(o);o=document.createElement("div");o.id="vedette_over";o.style.display="none";o.style.visibility="visible";o.className="vover";o.innerHTML=$("vedette").innerHTML;n.appendChild(o);y=o.getElementsByTagName("span")[0].getElementsByTagName("span")[0];y.id=o.id+"_bg";y.className="over";$(o.id+"_bg").setOpacity(0.5);vedetteBlockInit(o);$("vedette").onmouseover=vedetteOver;$("vedette_off").onmouseover=vedetteOver;$("vedette_over").onmouseover=vedette2Clear;$("vedette_over").onmouseout=vedette2Out}if($("vedette2")){_panels=[];_v2_cols=parseInt($("vedette2").className.replace("vedette2Cols_",""));var n=$("vedette2").parentNode;var w=$("vedette2").getElementsByTagName("h2");var g=w.length;var v=0,e=0,l=242,F=133;for(var z=0;z<g;z++){r="v2_"+z;w[z].id=r;_panels[z]=r;o=document.createElement("div");o.id=r+"_o";o.style.display="none";o.style.visibility="visible";o.style.left=((z%_v2_cols)*l)+"px";if(z%_v2_cols==0&&z>0){v+=F}o.className="v2over1";o.style.top=v+"px";o.innerHTML=w[z].innerHTML.replace("-off","");w[z].onmouseover=vedette2Over;o.onmouseover=vedette2Clear;o.onmouseout=vedette2Out;n.appendChild(o);var q=o.childNodes.length;for(var x=0;x<q;x++){if(o.childNodes[x].tagName){o.childNodes[x].onmouseover=vedette2Clear}}vedetteBlockInit(o)}}if($("vedette3")){_panelsv3=[];clearTimeout(_v3_timer);var n=$("vedette3").parentNode;var w=$("vedette3").getElementsByTagName("h2");var g=w.length;var v=0,e=0,l=474,F=133;for(var z=0;z<g;z++){r="v3_"+z;w[z].id=r;_panelsv3[z]=r;w[z].parentNode.id=r+"_li";if(z>0){Element.setStyle(w[z].parentNode,{display:"none"});Element.setStyle(w[z].parentNode,{visibility:"visible"})}o=document.createElement("div");o.id=r+"_o";o.style.display="none";o.style.visibility="visible";o.style.left="0";o.style.top="0";o.className="v3over1";o.innerHTML=w[z].innerHTML.replace("-off","");w[z].onmouseover=vedette2Over;o.onmouseover=vedette2Clear;o.onmouseout=vedette2Out;n.appendChild(o);var q=o.childNodes.length;for(var x=0;x<q;x++){if(o.childNodes[x].tagName){o.childNodes[x].onmouseover=vedette2Clear}}vedetteBlockInit(o)}if(g>1){_v3_timer=window.setTimeout("vedette3Rotate()",_v3_fade_timeout)}}if($("palmares_over")){$("palmares_liens").onclick=palmaresClick;$("palmares_integrale").onclick=palmaresClick;palmaresReset(false);$("palmares_over").onclick=palmaresClick;var w=$("palmares_positions").getElementsByTagName("a");for(var z=0;z<w.length;z++){var t=w[z].id.match(/^p(\d+)_(\d+)$/);if(t){BAP.playlist[z]=t[2]}}BAP.playlist=BAP.playlist.sort(sortNumbers)}if($("btnRecherche")&&$("terme")){$("btnRecherche").onclick=recherche}if($("blogue")){var w=$("blogue").getElementsByClassName("play_o");for(var z=0;z<w.length;z++){w[z].id.match(/^blogue_(\d+)$/);if(w[z].id.match(/^blogue_(\d+)$/)){w[z].onclick=function(){var i=this.id.match(/^blogue_(\d+)$/);if(i){if(BAP.votreSelection==i[1]){BAP.player.sendEvent("PLAY")}else{BAP.votreSelection="";BAP.soussection="";BAP.resetExtraits();var j=this.parentNode;if(!j.tagName.match(/^a$/i)){j=j.parentNode}j.className="o";this.className=this.className.replace("play_o","pause_o");BAP.loadFile(i[1],true)}}return false}}}try{if(ie6){$$("#blogue h3 a").each(function(i){i.onmouseout=function(){if(i.getElementsByClassName("bouton").length>0){var j=i.getElementsByClassName("bouton")[0];j.style.display="none"}i.className=i.className.replace(/o/,"")};i.onmouseover=function(){if(i.getElementsByClassName("bouton").length>0){var j=i.getElementsByClassName("bouton")[0];j.style.display="inline"}if(i.className=="vedette"){i.className+=" o"}else{i.className+="o"}}})}}catch(B){}}if(ie6){try{var u=document.getElementsByClassName("album_nom");for(var z=0;z<u.length;z++){var c=u[z].parentNode;c.onmouseover=function(i){this.className+=" o"};c.onmouseout=function(i){this.className=this.className.replace(/ o/,"")}}}catch(B){}try{var C=document.getElementsByClassName("artistes")[0];var b=C.getElementsByClassName("vedette");for(var z=0;z<b.length;z++){b[z].onmouseover=function(i){this.className+=" o"};b[z].onmouseout=function(i){this.className=this.className.replace(/ o/,"")}}}catch(B){}try{var h=$("main").getElementsByClassName("albums");for(var z=0;z<h.length;z++){var d=h[z].getElementsByTagName("a");for(var x=0;x<d.length;x++){d[x].onmouseover=function(){this.className="o"};d[x].onmouseout=function(){this.className=""}}}}catch(B){}}}function sortNumbers(d,c){return d-c}function recherche(){$("aspnetForm").submit();return false}function vedetteBlockInit(h){var f=-1,e=-1,g=-1,d=-1;var b=h.getElementsByTagName("a");for(var c=0;c<b.length;c++){if(b[c].className.match(/info$/)){e=c}else{if(b[c].className.match(/play$/)){f=c}else{if(b[c].innerHTML.match(/<strong/i)){g=c}else{if(b[c].innerHTML.match(/<img/i)){d=c}}}}}if(d>-1&&(f>-1||e>-1)){a=h.getElementsByTagName("a")[d];if(f>-1){a.rel=f}else{a.rel=e}a.onmouseover=function(){var i=this.parentNode.getElementsByTagName("a")[this.rel];if(i.className.match(/info$/)){i.className="bouton info_o";if(ie6){i.style.backgroundPosition="0 -340px"}}else{i.className="bouton play_o";if(ie6){i.style.backgroundPosition="0 0"}}};a.onmouseout=function(){var i=this.parentNode.getElementsByTagName("a")[this.rel];if(i.className.match(/info_o$/)){i.className="bouton info";if(ie6){i.style.backgroundPosition="0 -380px"}}else{i.className="bouton play";if(ie6){i.style.backgroundPosition="0 -31px"}}};if(f>-1){a=h.getElementsByTagName("a")[f]}else{a=h.getElementsByTagName("a")[e]}a.rel=d;a.onmouseover=function(){if(ie6){this.style.backgroundPosition="0 0"}};a.onmouseout=function(){if(ie6){this.style.backgroundPosition="0 -31px"}}}if(g>-1&&(f>-1||e>-1)){a=h.getElementsByTagName("a")[g];if(e>-1){a.rel=e}else{a.rel=f}a.onmouseover=function(){var j=this.parentNode;if(!j.tagName.match(/^div$/i)){j=j.parentNode}var i=j.getElementsByTagName("a")[this.rel];if(i.className.match(/info$/)){i.className="bouton info_o";if(ie6){i.style.backgroundPosition="0 -340px"}}else{i.className="bouton play_o";if(ie6){i.style.backgroundPosition="0 0"}}};a.onmouseout=function(){var j=this.parentNode;if(!j.tagName.match(/^div$/i)){j=j.parentNode}var i=j.getElementsByTagName("a")[this.rel];if(i.className.match(/info_o$/)){i.className="bouton info";if(ie6){i.style.backgroundPosition="0 -380px"}}else{i.className="bouton play";if(ie6){i.style.backgroundPosition="0 -31px"}}};if(f>-1){a=h.getElementsByTagName("a")[f]}else{a=h.getElementsByTagName("a")[e]}a.rel=g;a.onmouseover=function(){var j=this.parentNode;if(!j.tagName.match(/^div$/i)){j=j.parentNode}var i=j.getElementsByTagName("a")[this.rel];i.className="o";if(ie6){if(this.className.match(/info$/)){this.style.backgroundPosition="0 -340px"}else{this.style.backgroundPosition="0 0"}}};a.onmouseout=function(){var j=this.parentNode;if(!j.tagName.match(/^div$/i)){j=j.parentNode}var i=j.getElementsByTagName("a")[this.rel];i.className="";if(ie6){if(this.className.match(/info$/)){this.style.backgroundPosition="0 -380px"}else{this.style.backgroundPosition="0 -31px"}}}}if(ie6){if(f>-1){DD_belatedPNG.fixPng(h.getElementsByTagName("a")[f])}if(e>-1){DD_belatedPNG.fixPng(h.getElementsByTagName("a")[e])}}}function vedetteOver(){clearTimeout(_timer);vedette2Hide("");$("vedette_off").hide();if(_fade){$("vedette_over").appear({duration:_fade_duration})}else{$("vedette_over").show()}_timer=setTimeout("vedetteFade('"+this.id+"_o')",_fade_timeout)}function vedetteOut(){timer=setTimeout("vedetteFade()",_fade_timeout)}function vedetteFade(){if(_fade){$("vedette_over").fade({duration:_fade_duration})}else{$("vedette_over").hide()}}function vedette2Over(){if($("vedette")){$("vedette_over").hide();if(_fade){$("vedette_off").appear({duration:_fade_duration})}else{$("vedette_off").show()}}clearTimeout(_timer);vedette2Hide(this.id);if($(this.id+"_o").style.display=="none"){if(_fade){$(this.id+"_o").appear({duration:_fade_duration})}else{$(this.id+"_o").show()}_timer=setTimeout("vedette2Fade('"+this.id+"_o')",_fade_timeout)}}function vedette2Out(){_timer=setTimeout("vedette2Fade('"+this.id+"')",_fade_timeout)}function vedette2Clear(){clearTimeout(_timer);var b=this.id.replace("_o","");if(!this.id){b=this.parentNode.id.replace("_o","")}vedette2Hide(b)}function vedette2Fade(b){if(_fade){$(b).fade({duration:_fade_duration});if($("vedette_off")){$("vedette_off").fade({duration:_fade_duration})}}else{$(b).hide();if($("vedette_off")){$("vedette_off").hide()}}vedette2Hide(b.replace("_o",""))}function vedette2Hide(b){var e=_panels.length;for(var d=0;d<e;d++){if(_panels[d].match(/^v2_\d+$/)&&b!=_panels[d]){$(_panels[d]+"_o").hide()}}try{var e=_panelsv3.length;for(var d=0;d<e;d++){if(_panelsv3[d].match(/^v3_\d+$/)&&b!=_panelsv3[d]){$(_panelsv3[d]+"_o").hide()}}}catch(c){}}function vedette3Rotate(){clearTimeout(_v3_timer);var b=false,f=false,e=false;var c=$("vedette3").getElementsByTagName("li");for(var d=0;d<c.length;d++){if(c[d].style.display!="none"){b=c[d].id.match(/(v3_(\d+))_li/)}}if(b){f=b[1];if(b[2]<(c.length-1)){var g=new Number(b[2]);e="v3_"+(g+1)}else{e="v3_0"}}if(f&&e&&f!=e){if(_fade){if($(f+"_o").style.display!="none"){$(f+"_li").setStyle({display:"none"});$(e+"_li").setStyle({display:"block"});$(f+"_o").fade({duration:_v3_fade_duration});$(e+"_o").appear({duration:_v3_fade_duration})}else{$(f+"_li").fade({duration:_v3_fade_duration});$(e+"_li").appear({duration:_v3_fade_duration})}}else{$(f+"_li").setStyle({display:"none"});$(e+"_li").setStyle({display:"block"});if($(f+"_o").style.display!="none"){$(f+"_o").hide();$(e+"_o").show()}}}_v3_timer=window.setTimeout("vedette3Rotate()",_v3_fade_timeout)}function vedette3Appear(b){$(b).appear({duration:_v3_fade_duration})}function palmaresClick(g){if(!g){g=window.event}var b=g.srcElement;if(!b){b=g.target}var j=b;var f=0;while(f<10&&j.parentNode&&!j.tagName.match(/^a$/i)){j=j.parentNode;f++}if(j.tagName==undefined){return false}if(j.tagName.match(/^a$/i)){if(j.className.match(/votez3$/)){try{if($("palmares_vote").value.match(/^\d+$/)){data={id:$("palmares_vote").value,action:"VotePalmares"};_post(baseURL+"PseudoSvc.aspx?[rand]",data,palmaresVote)}}catch(p){}return false}else{if(j.rel!=="externe"){var d=j.id.match(/^(p|pi)(\d+)_(\d+)$/);var n=false;if(b.tagName.match(/^span$/i)){n=b.className.match(/(votez|votez_o)$/)}if(n){if($("palmares_votez").innerHTML.match(/votez3/)){if(n[1]==="votez_o"){var h=j.getElementsByClassName("votez")[0];h.style.display="block";b.style.display="none";$("palmares_vote").value=""}else{palmaresReset(true);var h=j.getElementsByClassName("votez_o")[0];h.style.display="block";b.style.display="none";$("palmares_vote").value=j.rel}}}else{if(d&&BAP.player){var c=$("p"+d[2]+"_"+d[3]).getElementsByClassName("play")[0];var q=$("p"+d[2]+"_"+d[3]).getElementsByClassName("pause")[0];var l=(c.style.display===""||c.style.display==="block")?false:true;if((d[1]=="pi")&&!l){$("palmares_over").style.display="block"}BAP.resetExtraits();palmaresReset(false);var k=$("pi"+d[2]+"_"+d[3]);if(!l){k.className="o";$("p"+d[2]+"_"+d[3]).className+=" o";c.style.display="none";q.style.display="block";BAP.currentPos=d[3];if(BAP.player.getConfig().state==="IDLE"||BAP.soussection.match(BAP.reRadios)||BAP.votreSelection.match(/^\d+$/)){BAP.playPalmares(d[3])}else{BAP.player.sendEvent("SEEK",d[3])}}else{BAP.currentPos=-1;BAP.player.sendEvent("STOP")}}else{if(j.id=="palmares_integrale"){if($("palmares_integrale_bouton").className=="bouton pause_o"){BAP.currentPos=-1;BAP.player.sendEvent("STOP");$("palmares_integrale_bouton").className="bouton play_o";if(ie6){$("palmares_integrale_bouton").style.backgroundPosition="0 0"}}else{BAP.resetExtraits();palmaresReset(false);$("palmares_over").style.display="block";$("palmares_integrale_bouton").className="bouton pause_o";if(ie6){$("palmares_integrale_bouton").style.backgroundPosition="-120px 0"}if(BAP.player.getConfig().state==="IDLE"||BAP.soussection.match(BAP.reRadios)||BAP.votreSelection.match(/^\d+$/)){BAP.playPalmares(0)}else{BAP.player.sendEvent("SEEK",0)}}}}}return false}}}}function palmaresReset(j){try{if($("palmares_positions")){var d=$("palmares_positions").getElementsByTagName("a");for(var f=0;f<d.length;f++){var c=d[f].id.match(/^p(\d+)_(\d+)$/);if(c){if(j){var h=$("p"+c[1]+"_"+c[2]).getElementsByClassName("votez")[0];h.style.display="block";h=$("p"+c[1]+"_"+c[2]).getElementsByClassName("votez_o")[0];h.style.display="none"}else{$("pi"+c[1]+"_"+c[2]).className="";d[f].className="";var b=$("p"+c[1]+"_"+c[2]).getElementsByClassName("play")[0];if(typeof(b)!=="undefined"){b.style.display="block"}var l=$("p"+c[1]+"_"+c[2]).getElementsByClassName("pause")[0];if(typeof(l)!=="undefined"){l.style.display="none"}}}}}if($("palmares_liens")){var d=$("palmares_liens").getElementsByTagName("h3");for(var f=0;f<d.length;f++){d[f].firstChild.onmouseover=function(i){this.className="o";if(ie6){this.getElementsByTagName("span")[1].style.display="block"}};d[f].firstChild.onmouseout=function(i){this.className="";if(ie6){this.getElementsByTagName("span")[1].style.display="none"}};var k=d[f].getElementsByTagName("span")[1];k.className=k.className.replace("pause","play");if(ie6){k.style.backgroundPosition="0 0";k.style.display="none"}}$("palmares_integrale_bouton").className="bouton play_o"}}catch(g){}}function palmaresVote(c){try{if(c.responseText.match(/\[ok\]/)){$("palmares_votez").innerHTML='<span class="titre merci"></span>'}}catch(b){}}function captchaReload(){if($("captcha")){var c=String(Math.random());c=c.replace(".","");var b=baseURL+"Captcha.ashx?r="+c;$("captcha").src=b}return false}function interactionsReset(){var c=$("int_onglets").getElementsByTagName("a");for(var d=0;d<c.length;d++){var b=c[d].id.match(/^lnk(\w+)$/);if(b){if(ie6){var e="0px 0px";switch(b[1]){case"Partager":e="-900px -440px";break;case"Commenter":e="-1000px -440px";break;case"Ecrire":e="-800px -440px";break;case"Inscrire":e="-1500px -440px";break;case"Authentifier":e="-1600px -440px";break}$(b[0]).getElementsByClassName("icone")[0].style.backgroundPosition=e;$(b[0]).getElementsByClassName("icone")[0].style.backgroundColor="#777";$(b[0]).getElementsByClassName("int_fleche")[0].style.display="none"}$("int_"+b[1]).style.display="none";c[d].className=""}}}function initCalendar(){var b=($("hdDate").value.match(/^(\d{4})(\d{2})(\d{2})$/))?new Number($("hdDate").value.replace(/-/g,"")):Calendar.dateToInt(new Date());var c={cont:"calendrier-container",inputField:"hdDate",weekNumbers:false,selection:b,showTime:false,max:Calendar.dateToInt(new Date()),onSelect:function(j){var f=$("hdChaine").value;$("container_dateRecherchee").style.display="block";$("aff_date").style.display="block";var i=new String(this.selection.get());var e=i.match(/^(\d{4})(\d{2})(\d{2})$/);var h=Calendar.parseDate(e[2]+"-"+e[3]+"-"+e[1],true);var g=e[1]+"-"+e[2]+"-"+e[3];$("dateRecherchee").innerHTML=Calendar.printDate(h,"%A %e %B %Y");$("hdDate").value=g;$("aff_date").href="/MusiquesDiffusees.aspx?c="+f+"&d="+g;j.hide();return true}};if(ie){c.animation=false}_cal=Calendar.setup(c)}function createSocialNetworkLink(){window.parent.$("permalien").value=document.location.href;var c=0;var g=document.location.href.match(/id=(\d+)/);var l=document.location.href.match(/\/les-50-artistes-marquants-de-la-decennie\//);var k=document.location.href.match(/\/le-hardcore-au-quebec\//);if(g){c=g[1]}else{if(l){c=75219}else{if(k){c=75632}}}if(c>0){var b=encodeURIComponent(document.location.href);var i=encodeURIComponent("http://bap.fm/Fw.ashx?q="+c);var j=encodeURIComponent(document.title.replace(" - OBSÉDÉS MUSICAUX ASSUMEZ-VOUS",""));var d="http://twitter.com/home?status="+j+" "+i;window.parent.$("twitter").href=d;window.parent.$("twitter").target="_blank";var f="http://www.facebook.com/sharer.php?u="+b+"&t="+j;window.parent.$("facebook").href=f;window.parent.$("facebook").target="_blank";var h="http://digg.com/submit?phase=2&url="+b;window.parent.$("diggit").href=h;window.parent.$("diggit").target="_blank";var e="http://del.icio.us/post?url="+b+"&title="+j;window.parent.$("delicious").href=e;window.parent.$("delicious").target="_blank"}}function secondsToString(e){var d=convertToTwoDigits(Math.floor((e%86400)/3600));var c=convertToTwoDigits(Math.floor(((e%86400)%3600)/60));var b=convertToTwoDigits(Math.floor(((e%86400)%3600)%60));return d+":"+c+":"+b}function convertToTwoDigits(c){var b=(c.toString()).length;var d=((c.toString()).length==1)?"0"+c:c;return d};