if(window.top!=window.self&&window.location.href.search(/support|index|recherche/)==-1&&window.location.href.search(/\/$/)==-1){top.location.href=window.location.href}function ouvrirPage(c,b,a,d){win=window.open(c+".html",b,"toolbar=false,personalbar=false,titlebar=false,location=false,directories=false,width="+a+",height="+d+",scrollbars=yes,resizable=yes");win.focus()}function ringtonePop(c,d,a,b){hWnd=window.open("http://sept-lunes.sonnerie.net/external/DrtTop/dl.php?f=c_"+c+"&a=sept-lunes&type="+c+"&id="+d+"&son_nom="+a+"&lang=FR&c=FR&son_wav="+b,"Hwnd","height=660,width=380,toolbar=no,directories=no,status=no,scrollbars=auto,resizable=no,menubar=no");hWnd.focus()}function getXmlHttp(){if(top.xmlhttp){if(top.xmlhttp&&top.xmlhttp.readyState!=0){top.xmlhttp.abort()}return top.xmlhttp}var b=null;try{b=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{b=new ActiveXObject("Microsoft.XMLHTTP")}catch(a){b=null}}if(!b&&typeof XMLHttpRequest!=undefined){b=new XMLHttpRequest()}top.xmlhttp=b;return b}function postXml(a,c,b){xmlHttp=getXmlHttp();c+="&random="+random++;xmlHttp.open("POST",a,true);if(b!=undefined){xmlHttp.onreadystatechange=b}xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",c.length);xmlHttp.setRequestHeader("Connection","close");xmlHttp.send(c)}var xmlHttp;var time=new Date();var random=(time.getMonth()+1)*100000000+time.getDate()*1000000+time.getHours()*10000+time.getMinutes()*100+time.getSeconds();function diggIt(b,a){postXml("/transactions/diggTransaction.php","id="+b+"&up="+(a?"true":"false"),function(){if(xmlHttp.readyState==4&&xmlHttp.status==200&&document.getElementById("diggIt"+b).innerHTML!=undefined){document.getElementById("diggIt"+b).innerHTML=xmlHttp.responseText}})}if(document.referrer!=undefined&&document.referrer.indexOf("http://")==0&&document.referrer.search(/\.(google|yahoo|msn|voila)\./i)==-1&&document.domain!=undefined&&document.referrer.indexOf("http://"+document.domain)==-1){postXml("/transactions/partnerTransaction.php","parUrl="+document.referrer.substring(7).replace(/&/g,"%26"))}function createCookie(c,d,f,e){if(f){var b=new Date();b.setTime(b.getTime()+(f*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}if(e==undefined){e="/"}document.cookie=c+"="+d+a+"; path="+e}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return unescape(f.substring(e.length,f.length).replace(/\+/," "))}}return null}var updatedLyrics=false;function updateLyrics(){if(updatedLyrics==true){updatedLyrics=false;var c=document.getElementById("textLyrics").value.split("\n");var b="";for(var a=0;a<c.length;a++){if(c[a]==""){b+="<br/>";continue}if(c[a][0]=="+"){b+='<span class="lyriks-e">'+c[a].substring(1,c[a].length)+"<br/></span>"}else{if(c[a][0]=="*"){b+='<span class="lyriks-t">'+c[a].substring(1,c[a].length)+"<br/></span>"}else{if(c[a+1]!=undefined&&c[a+1].length!=0&&c[a+1][0]=="*"){b+='<span class="lyriks-l">'+c[a]+"</span>&nbsp;&nbsp;&nbsp;"}else{b+='<span class="lyriks-l">'+c[a]+"<br/></span>"}}}}document.getElementById("lyriks").innerHTML=b}window.setTimeout("updateLyrics();",2000)}function showHideLyrics(d,c){var a=document.getElementById(d).childNodes;for(var b in a){if(a[b].tagName=="SPAN"&&a[b].className=="lyriks-"+c){a[b].style.display=a[b].style.display=="none"?"inline":"none"}}}var resizedElement=false;function resizeInput(a){if(resizedElement!=false&&resizedElement!=a){resizedElement.rows=Math.min(3,Math.max(1,Math.floor(resizedElement.value.length/50)))}resizedElement=a;if(a.scrollHeight!=undefined&&a.offsetHeight!=undefined){while(a.scrollHeight>a.offsetHeight&&a.rows<300){a.rows+=Math.floor(Math.max(1,(a.scrollHeight-a.offsetHeight)/20))}}};