/* JavaScriptCompressor 0.8 [www.devpro.it], thanks to Dean Edwards for idea [dean.edwards.name] */
function recuperer_cookiepath(){var cookiepath=location.href;
cookiepath=cookiepath.substring(cookiepath.indexOf(
'://'
)+3);
cookiepath=cookiepath.substring(cookiepath.indexOf(
'/'
)+1);
cookiepath=cookiepath.substring(0,cookiepath.lastIndexOf(
'/'
));
return cookiepath;}
function createCookie(name,value,days){if (days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires=
"; expires="
+date.toGMTString();}
else expires=
""
;document.cookie=name+
"="
+value+expires+
"; path=/"
+recuperer_cookiepath();}
function readCookie(name){var nameEQ=name+
"="
;var ca=document.cookie.split(
';'
);for(var i=0;i<ca.length;i++){var c=ca[i];while (c.charAt(0)==
' '
) c=c.substring(1,c.length);if (c.indexOf(nameEQ)==0) return c.substring(nameEQ.length,c.length);}
return null;}
function change_site(id){var cookie=readCookie(
'sedna_ignore_'
+id);
if (cookie){createCookie(
'sedna_ignore_'
+id,
''
,-1);} else {createCookie(
'sedna_ignore_'
+id,1,365);}}
function jai_lu(id){if (!est_lu(id)){sedna_nouv--;var cookie=readCookie(
"sedna_lu"
);cookie=cookie?(id+
'-'
+cookie):id;cookie=cookie.substring(0,3000);createCookie(
"sedna_lu"
,cookie,365);var a=document.getElementById(
'news'
+id);a.className=
'linkvu'
;
document.title=sedna_title+
' ('
+sedna_nouv+
'/'
+sedna_total+
')'
;}}
function style_desc(aff){var a;var c=1;createCookie(
"sedna_style"
,aff,365);while (a=document.getElementById(
'desc_'
+(c++))){a.className=
"desc_"
+aff;}
if (aff==
'masquer'
){document.getElementById(
'desc_masquer'
).className=
'selected'
;document.getElementById(
'desc_afficher'
).className=
''
;} else {document.getElementById(
'desc_masquer'
).className=
''
;document.getElementById(
'desc_afficher'
).className=
'selected'
;}}
function sedna_synchro(on){if (on==
'oui'
){createCookie(
'sedna_synchro'
,
'oui'
,365);} else if (on==
'non'
){createCookie(
'sedna_synchro'
,
''
,0);}
if (document.getElementById(
'synchrooui'
)){if (on==
'oui'
){document.getElementById(
'synchrooui'
).className=
'selected'
;document.getElementById(
'synchronon'
).className=
''
;} else {document.getElementById(
'synchrooui'
).className=
''
;document.getElementById(
'synchronon'
).className=
'selected'
;}}}
function est_lu(id){var cookie=
'--'
+escape(readCookie(
"sedna_lu"
))+
'-'
;return (cookie.indexOf(
'-'
+id+
'-'
)>0);}
function play(e,url){var player=document.createElement(
'div'
)
player.className=
'musicplayer'
;player.innerHTML=
'<object type="application/x-shockwave-flash" '
+
'data="plugins/sedna/musicplayer.swf?autoplay=false" '
+
'width="18" height="18">'
+
'<param name="wmode" value="transparent" />'
+
'<param name="allowScriptAccess" value="sameDomain" />'
+
'<param name="flashVars" value="song_url='
+url+
'" />'
+
'<param name="movie" value="plugins/sedna/musicplayer.swf?autoplay=false" />'
+
'<param name="quality" value="high" />'
+
'</object>'
;
var f=e.parentNode.parentNode.parentNode;f.parentNode.insertBefore(player,f);}
function sedna_init(){
sedna_synchro(readCookie(
'sedna_synchro'
));
sedna_nouv=0;sedna_total=0;var a,d,i;d=document.getElementsByTagName(
'a'
);for(i=0;a=d[i];i++){if (a.id&&(a.id.substr(0,4)==
'news'
)){if (est_lu(a.id.substr(4))){a.className=
'linkvu'
;} else {sedna_nouv++;}
sedna_total++;}
if (a.rel==
'enclosure'
&&a.href.match(
/\.mp3$/i)){play(a,a.href);}}
sedna_title=document.title;document.title=sedna_title+
' ('
+sedna_nouv+
'/'
+sedna_total+
')'
;}
function addLoadEvent(func){var oldonload=window.onload;if (typeof window.onload !=
'function'
){window.onload=func;} else {window.onload=function(){oldonload();func();}}}
addLoadEvent(sedna_init);
