function antispam(name,domain){document.location="mailto:"+name+"@"+domain;}
function breakout_of_frame()
{if(top.location!=document.location){top.location.href=document.location.href;}}
function launch(newURL,newName,newFeatures,orgName){var remote=open(newURL,newName,newFeatures);if(remote.opener==null)
remote.opener=window;remote.opener.name=orgName;return remote;}
function launchRemote(win,name,height,width,left,top,directories,fullscreen,lokation,menubar,resizable,scrollbars,status,toolbar){xposition=left;yposition=top;if((parseInt(navigator.appVersion)>=4))
{xposition=(screen.width-width)/2;yposition=(screen.height-height)/2;}
myRemote=launch(win,name,"height="+height+",width="+width+",screenX="+xposition+",left="+xposition+",screenY="+yposition+",top="+yposition+",channelmode=0,dependent=0,directories="+directories+",fullscreen="+fullscreen+",location="+lokation+",menubar="+menubar+",resizable="+resizable+",scrollbars="+scrollbars+",status="+status+",toolbar="+toolbar+"","main");}
function popWindow(url,width,height)
{xposition=0;yposition=0;if((parseInt(navigator.appVersion)>=4))
{xposition=(screen.width-width)/2;yposition=(screen.height-height)/2;}
args="width="+(width)+","
+"height="+(height)+","
+"location=0,"
+"menubar=0,"
+"resizable=1,"
+"scrollbars=1,"
+"status=1,"
+"titlebar=0,"
+"toolbar=0,"
+"hotkeys=0,"
+"left="+xposition+","
+"top="+yposition;window.open(url,'sgPop'+Math.floor(Math.random()*1000000000),args);}
function quickGoTo(dest){var loc='';loc=dest;if(loc!="nix"){document.location.href=loc;}}
function show(c){changeText(c);if(document.getElementById&&document.getElementById(c)!=null)
node=document.getElementById(c).style.display='';else if(document.layers&&document.layers[c]!=null)
document.layers[c].display='';else if(document.all)
document.all[c].style.display='';}
function hide(c){changeText(c);if(document.getElementById&&document.getElementById(c)!=null)
node=document.getElementById(c).style.display='none';else if(document.layers&&document.layers[c]!=null)
document.layers[c].display='none';else if(document.all)
document.all[c].style.display='none';}
function changeText(link){linknum=link;link+="link";linkText=document.getElementById(link);linkText.firstChild.nodeValue;if(linkText.firstChild.nodeValue=="+"){linkText.firstChild.nodeValue="-";linkText.href="javascript:hide("+linknum+")";}else{linkText.firstChild.nodeValue="+";linkText.href="javascript:show("+linknum+")";}}
function verifyUsername(new_username,old_username){if(new_username!='')
{if(new_username.length<2)
writeQuickHint('<span style="color:#cc0000"><b>'+new_username+'</b> is too short</span>');else if(new_username.length>30)
writeQuickHint('<span style="color:#cc0000"><b>'+new_username+'</b> is too long</span>');else if(texte=file('/_includes/form_validation_ajax.php?mode=username&new_username='+escape(new_username)+'&old_username='+escape(old_username)))
{if(texte==1)
writeQuickHint('<span style="color:#cc0000"><b>'+new_username+'</b> is already taken</span>');else if(texte==2)
writeQuickHint('<span style="color:#1A7917"><b>'+new_username+'</b> is free</span>');else
writeQuickHint('');}}}
function writeQuickHint(texte){document.getElementById('quickHint').innerHTML=texte;}
function file(fichier){if(window.XMLHttpRequest)
xhr_object=new XMLHttpRequest();else if(window.ActiveXObject)
xhr_object=new ActiveXObject("Microsoft.XMLHTTP");else
return(false);xhr_object.open("GET",fichier,false);xhr_object.send(null);if(xhr_object.readyState==4)return(xhr_object.responseText);else return(false);}
var its;var browserName='';var browserNameLong='';var browserNew='';var preloadFlag=false;var Macintosh=navigator.userAgent.indexOf('Mac')>0;function its(){var n=navigator;var ua=' '+n.userAgent.toLowerCase();var pl=n.platform.toLowerCase();var an=n.appName.toLowerCase();this.version=n.appVersion;this.nn=ua.indexOf('mozilla')>0;if(ua.indexOf('compatible')>0){this.nn=false;}
this.opera=ua.indexOf('opera')>0;this.ie=ua.indexOf('msie')>0;this.major=parseInt(this.version);this.minor=parseFloat(this.version);this.mac=ua.indexOf('mac')>0;this.win=ua.indexOf('win')>0;if(this.ie){if(ua.indexOf("msie 5")>1){var msieIndex=navigator.appVersion.indexOf("MSIE")+5;this.major=parseFloat(navigator.appVersion.substr(msieIndex,3));}}
return this;}
function browserNaming(){its=new its();if(!document.getElementById){browserNew=false;}else{browserNew=true;}
if(its.opera){browserName="Opera";}else if(its.ie){browserName="IE";}else{browserName="NS";}
browserNameLong=browserName+its.major;}
function createObject(imgName,imgSrc){if(loadingFlag){eval(imgName+' = new Image()');eval(imgName+'.src = "'+imgSrc+'"');return imgName;}}
function changeImage(layer,imgName,imgObj){if(preloadFlag){if(browserNew){document.getElementById(imgName).src=eval(imgObj+'.src');}
if((!browserNew)&&(browserName=="NS")&&(layer!=null)){eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src');}else{document.images[imgName].src=eval(imgObj+'.src');}}}
function preButtons(){loadingFlag=true;createObject('btnlofioff','/images/pxl_buttons/lofi_off.gif');createObject('btnlofion','/images/pxl_buttons/lofi_on.gif');createObject('btnhifioff','/images/pxl_buttons/button_play_off.gif');createObject('btnhifion','/images/pxl_buttons/button_play_on.gif');createObject('btnmyaccountoff','/images/button_my_account.gif');createObject('btnmyaccounton','/images/button_my_account_on.gif');createObject('btnloginoff','/images/button_login.gif');createObject('btnloginon','/images/button_login_on.gif');createObject('btnjoinnowoff','/images/button_join_now.gif');createObject('btnjoinnowon','/images/button_join_now_on.gif');createObject('btnaddfriendoff','/images/pxl_buttons/add_as_friend_off.gif');createObject('btnaddfriendon','/images/pxl_buttons/add_as_friend_on.gif');createObject('btnaddtofavoritesoff','/images/pxl_buttons/add_to_favorites_off.gif');createObject('btnaddtofavoriteson','/images/pxl_buttons/add_to_favorites_on.gif');createObject('btnaddcommentoff','/images/pxl_buttons/add_comment_off.gif');createObject('btnaddcommenton','/images/pxl_buttons/add_comment_on.gif');createObject('btnarrowprevoff','/images/pxl_buttons/arrow_prev_off.gif');createObject('btnarrowprevon','/images/pxl_buttons/arrow_prev_on.gif');createObject('btnarrownextoff','/images/pxl_buttons/arrow_next_off.gif');createObject('btnarrownexton','/images/pxl_buttons/arrow_next_on.gif');createObject('btnarrowprevoff_2','/images/pxl_buttons/arrow_prev_off.gif');createObject('btnarrowprevon_2','/images/pxl_buttons/arrow_prev_on.gif');createObject('btnarrownextoff_2','/images/pxl_buttons/arrow_next_off.gif');createObject('btnarrownexton_2','/images/pxl_buttons/arrow_next_on.gif');loadingFlag=false;preloadFlag=true;}
function cSwitcher(thisId,newClass){if(browserNew){d=document.getElementById(thisId);d.className=newClass;}else{d=document.all[thisId];d.className=newClass;}}
function init(){if(!document.getElementById)return
var imgOriginSrc;var imgTemp=new Array();var imgarr=document.getElementsByTagName('img');for(var i=0;i<imgarr.length;i++){if(imgarr[i].getAttribute('hsrc')){imgTemp[i]=new Image();imgTemp[i].src=imgarr[i].getAttribute('hsrc');imgarr[i].onmouseover=function(){imgOriginSrc=this.getAttribute('src');var imagetest=new Image()
imagetest.src=this.getAttribute('hsrc')
if(imagetest.complete)
this.setAttribute('src',this.getAttribute('hsrc'))}
imgarr[i].onmouseout=function(){var imagetest=new Image()
imagetest.src=imgOriginSrc
if(imagetest.complete)
this.setAttribute('src',imgOriginSrc)}}}}
onload=init;function highLight(thisId,thisNum){if(thisNum==1){ofVal="#EAEAE2";onVal="#DBDBCA";}else if(thisNum==2){ofVal="#616552";onVal="#FFFFFF";}else if(thisNum==3){ofVal="#FFFFFF";onVal="#EEEDE1";}else if(thisNum==4){ofVal="#DFDFD2";onVal="#CACAB4";}else if(thisNum==5){ofVal="#EAEAE2";onVal="#CACAB4";}else if(thisNum==6){ofVal="transparent";onVal="#DBDBCA";}
thisId.style.background=onVal;thisId.onmouseout=function(){thisId.style.background=ofVal;}}
function bookmark(title,url){if(window.sidebar)window.sidebar.addPanel(title,url,"");else if(window.opera&&window.print)
{var mbm=document.createElement('a');mbm.setAttribute('rel','sidebar');mbm.setAttribute('href',url);mbm.setAttribute('title',title);mbm.click();}
else if(document.all)window.external.AddFavorite(url,title);}
function ShowNewLayer(theshown,thehidden,thehidden2)
{if(document.getElementById(theshown).style.display=='block'){if(theshown=='login_artist'||theshown=='login_listener'){}else{document.getElementById(theshown).style.display='none';}}else{document.getElementById(theshown).style.display='block';}
if(thehidden){document.getElementById(thehidden).style.display='none';}
if(thehidden2){document.getElementById(thehidden2).style.display='none';}}
var n=1;var n_pages=1;function revealDiv(pageID,n_pages,n){for(var count=1;count<=n_pages;count++){document.getElementById("page"+pageID+count).style.display='none';}
document.getElementById("page"+pageID+n).style.display='block';for(var count=1;count<=n_pages;count++){if(count==n){document.getElementById("arrowOn"+pageID+"_"+count).style.display='none';document.getElementById("arrowOff"+pageID+"_"+count).style.display='inline';}else{document.getElementById("arrowOn"+pageID+"_"+count).style.display='inline';document.getElementById("arrowOff"+pageID+"_"+count).style.display='none';}}}
function Delete_Cookie(name,path,domain){if(Get_Cookie(name))document.cookie=name+"="+
((path)?";path="+path:"")+
((domain)?";domain="+domain:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT";}