// JdelireStyle v1.6
// (c) Copyright 2006 Pyrrah pour www.Jdelire.net
// Tous Droits Réservés - Reproduction Interdite
// ---------------------------------------------

<!-- Gestion du temps d'affichage de la page
var debut = new Date;
var debut = debut.getTime();
//-->

var ns6=(navigator.userAgent.indexOf("Gecko")!=-1)?true:false
var courant = 'rien';

function over(val,c){
	document.getElementById(val).bgColor ='#335CAD';
	document.getElementById(val).style.cursor='hand';
	if(ns6){
	document.getElementById(val).style.cursor='pointer';
	}
	if(c){
		if(courant != val){
			hidecalque(courant);
			courant = val;
		}
		document.getElementById(val+'c').style.visibility = 'visible';
		document.getElementById(val+'c').style.overflow = 'visible';
	}
}

function hidecalque(val){
	if(val != 'rien'){
		document.getElementById(val+'c').style.visibility = 'hidden';
		document.getElementById(val+'c').style.overflow = 'hidden';
		document.getElementById(val).bgColor ='';
	}
}

function showcalque(val){
	document.getElementById(val).bgColor ='#335CAD';
	document.getElementById(val+'c').style.cursor='hand';
	document.getElementById(val+'c').style.visibility = 'visible';
	document.getElementById(val+'c').style.overflow = 'visible';
	courant = val;
}

function ligover(val,c){
	document.getElementById(val).style.cursor='hand';
	if(ns6){
	document.getElementById(val).style.cursor='pointer';
	}
	if(c){
		if(courant != val){
			if(courant=='rien') {courant='acc';}
			document.getElementById(courant).style.color ='#ffff00';
			document.getElementById('lig'+courant).style.display ="none";
			courant = val;
		}
	document.getElementById(val).style.color ='#ffffff';
	document.getElementById('lig'+val).style.display ="";
	}
}

function overmenu(val,c){
	document.getElementById(val).bgColor ='#648DD0';
	document.getElementById(val).style.cursor='hand';
	if(ns6){
	document.getElementById(val).style.cursor='pointer';
	}
	if(c){
		if(courant != val){
			hidecalque(courant);
			courant = val;
		}
		document.getElementById(val+'c').style.visibility = 'visible';
		document.getElementById(val+'c').style.overflow = 'visible';
	}
}

function out(val,c){
	document.getElementById(val).bgColor ='';
	if(c){
		hidecalque(val);
	}
}

function gourl(url){
	window.location.href='http://www.jdelire.net/'+url;
}
function goo(url){
	window.location.href=url;
}

function openwindow(url,w,h) {
	width=w;
	height=h;
    x = (640 - (width+40))/2, y = (480 - (height+60))/2;
    if (screen) {
        y = (screen.availHeight - (height+60))/2;
        x = (screen.availWidth - (width+40))/2;
    }
       if (screen.availWidth > 1800) {
        x = ((screen.availWidth/2) - (width+40))/2;
    }
	window.open(url,'newWin','resizable=1,scrollbars=1,status=1,width='+(width+40)+',height='+(height+60)+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
}

function favoris(){ //v1.6
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Microsoft Internet Explorer" & browserVer >= 4) {
window.external.AddFavorite('http://www.jdelire.net/', 'J\'délire.net - Le délire assuré !');
 }
else { alert('Pour ajouter le site dans vos favoris, pressez les touches CTRL + D :)')
 }
}

function NoError() // Anti-Erreur
	{
	return true;
	}
window.onerror=NoError;

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function flash(id) { //v1.3; Popup Jeux en Ligne
theURL = "http://www.jdelire.net/jeux/?id="+ id;
params = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+ screen.availWidth +",height="+screen.availHeight ;
 window.open(theURL,'Jdelire_Player_Game',params);
}

function video(id) { //v1.5; Popup Vidéos
theURL = "http://www.jdelire.net/videos/?id="+ id;
params = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=570";
 window.open(theURL,'Jdelire_Player_Video',params);
}
function son(id) { //v1.3; Popup Sons
theURL = "http://www.jdelire.net/sons/?id="+ id;
params = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=350";
 window.open(theURL,'Jdelire_Player_Sound',params);
}