String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ""); };
var wmembre="Anonymous";
var wforum=window.location.hostname;
document.writeln(" ");
var frmindit1 = "\
";
var ymeta=document.getElementsByTagName('meta');
var xencoding='';
var t;
var z;
var ibcl=0;
var sdebug="";
var atabspan = new Array();
var afchdvd = new Array();
for(i in ymeta)
{
if(/charset=([A-Za-z0-9_-]*)/i.test(ymeta[i].content))
{
xencoding='&charset='+/charset=([A-Za-z0-9_-]*)/i.exec(ymeta[i].content)[1].toLowerCase();
}
}
function searchtipsdvd()
{
var aryspedtmsg = document.getElementsByTagName("div");
// var aryspedtmsg=document.getElementsByName("spedtmsg");
var slkdvd="";
for (xxmi=0;xxmichargement ...');
bupdmsg=true;
}
var wspedtmsg=ospedtmsg.innerHTML;
var sinedit = "{"+"formulaire_inedit_dvdlib"+"}";
var iinedit = wspedtmsg.indexOf(sinedit);
if (iinedit>-1){
if (wusrpost==undefined) var wusrpost="";
if (wminpost==undefined) var wminpost="";
if (document.getElementById("i_icon_mini_logout"))
{
var xdvdlogin=document.getElementById("i_icon_mini_logout").title;
var idvdlog1 = xdvdlogin.indexOf("[")
if (idvdlog1>-1){
var idvdlog2 = xdvdlogin.indexOf("]",idvdlog1);
wmembre=xdvdlogin.substring(idvdlog1+1,idvdlog2-1).trim();
}
}
var lowmembre = wmembre.toLowerCase();
if (lowmembre!="anonymous" && lowmembre!="undefined" && lowmembre!="invité" )
{frmindit2 = frmindit2 + "
Voir les demandes d'éditions";}
x=ospedtmsg.innerHTML.replace(sinedit,frmindit1+wmembre+frmindit2);
ospedtmsg.innerHTML=x;
}
wspedtmsg = wspedtmsg.replace(/(-url="+areg1[2]+"");
}
else if (areg1[2]!="")
{
wspedtmsg=wspedtmsg.replace(areg[i],""+areg1[2]+"");
}
else
{
wspedtmsg=wspedtmsg.replace(areg[i],"title not defined");
}
bupdmsg1=true;
}
}
if (bupdmsg1)
{
x=wspedtmsg;
}
if (bupdmsg||bupdmsg1)
{
ospedtmsg.innerHTML=x;
}
}
}
if (slkdvd!="")
{
var DSLScript = document.createElement("script");
DSLScript.id = "jsdsl";
DSLScript.src = "http://www.dvdlib.be/my/sendfichette.php?nrdvd="+slkdvd+xencoding;
// sdebug +="
"+DSLScript.src;
// document.getElementById("debug").innerHTML=DSLScript.src;
DSLScript.type = "text/javascript";
document.body.appendChild(DSLScript);
}
}
function callfichetdvd() {
var aspan=document.getElementsByTagName("span");
for(var i= 0; i < aspan.length; i++)
{
if (aspanid=/^lkdvd(.*)/i.exec(aspan[i].id))
{
var oidspan = "spfchtdvd"+aspanid[1];
var olink=aspan[i].getElementsByTagName('a');
if (olink[0])
{
aspan[i].innerHTML=""+olink[0].innerHTML+"";
}else{
aspan[i].innerHTML=""+aspan[i].innerHTML+"";
}
}
}
for(var i= 0; i < afchdvd.length; i++)
{
var oidspan = "spfchtdvd"+afchdvd[i][0];
var ospan = document.createElement("span");
ospan.id = oidspan;
ospan.style.display="none";
ospan.innerHTML=""+afchdvd[i][2];
document.body.appendChild(ospan);
}
var script;
while (script = document.getElementById('jsdsl')) {
script.parentNode.removeChild(script);
// Browsers won't garbage collect this object.
// So castrate it to avoid a major memory leak.
for (var prop in script) {
// delete script[prop];
}
}
}
function include(file)
{
var oScript = document.createElement("script");
oScript.src = file;
oScript.type = "text/javascript";
document.body.appendChild(oScript);
}
var y=document.getElementsByTagName("span");
var sfiche="";
for(i in y)
{
var wregidfich=/fiche/;
if(wregidfich.test(y[i].id))
{
var w=parseInt(y[i].id.substr(5));
sfiche+=((sfiche=="")?"":",")+w;
}
}
if (sfiche!="")
{
include("http://www.dvdlib.be/forum/getfiche.php?nrfiche="+sfiche+xencoding);
// include("/forum/getfiche.php?nrfiche="+sfiche+xencoding);
}
function fsetfiche()
{
ibcl++;
if (z==undefined)
{
if (ibcl<10)
t=setTimeout("fsetfiche()",1000); // problème avec IE de variable non définie
} else {
var y=document.getElementsByTagName("span");
for(i in y)
{
if(/fiche/.test(y[i].id))
{
var w=parseInt(y[i].id.substr(5));
y[i].innerHTML=eval("z"+w);
}
}
}
}
window.onload=function(){
ibcl=0;
var DSLScript = document.createElement("script");
DSLScript.src = "http://www.dvdlib.be/forum/scripts/wz_tooltip.php";
DSLScript.type = "text/javascript";
var beforeMe = document.getElementsByTagName("body")[0].firstChild;
if(beforeMe) {
document.body.insertBefore(DSLScript, beforeMe);
} else {
document.body.appendChild(DSLScript);
}
searchtipsdvd();
// document.body.appendChild(DSLScript);
// document.getElementById("debug").innerHTML=sdebug;
fsetfiche();
}