// JavaScript Document<script type="text/javascript">
function changerub(rubrique){
     var divIds= new Array('0','1', '2', '3', '4', '5', '6', '7', '8', '9', '10');
     for(var i=0; i<divIds.length;i++){
       document.getElementById(divIds[i]).style.display = (i==rubrique)?'block':'none';
     }
   }
function centrarVentana(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
		if(window.screen)if(isCenter)if(isCenter=="true"){
		var myLeft = (screen.width-myWidth)/2;
		var myTop = (screen.height-myHeight)/2;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
	}
	window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
	}
function visibilite(thingId,imgId)
	{
		var targetElement;
		targetElement = document.getElementById(thingId) ;
		if (targetElement.style.display == "none")
			{
			targetElement.style.display = "" ;
			document.images[imgId].src='http://jamest.fr/membre/images/reduire.jpg';
			} else {
			targetElement.style.display = "none" ;
			document.images[imgId].src='http://jamest.fr/membre/images/ouvrir.jpg';
			}
	}
function pop(u,t) {
	switch(t) {
		case 1: return window.open(u,"","scrollbars=yes,resizable=yes,width=410,height=300,location=no,left=20,top=20")
		case 2: return window.open(u,"","scrollbars=yes,resizable=no,width=600,height=401,location=no,left=20,top=20")
		case 3: return window.open(u,"pop","scrollbars=yes,resizable=no,width=410,height=560,location=no,left=20,top=20")
		case 4: return window.open(u,"pop","scrollbars=yes,resizable=yes,width=760,height=560,location=no,left=20,top=20")
		case 5: return window.open(u,"","width=490,height=220,location=no,left=20,top=20,scrollbars=no")
		case 6: return window.open(u,"","scrollbars=yes,resizable=yes,width=450,height=500,location=no,left=20,top=20")
        case 7: return window.open(u,"","scrollbars=yes,resizable=yes,width=600,height=550,location=no,left=20,top=20")
	}
	return window.open(u)
	}
function heure () {
	var Maintenant = new Date();
	var heures = Maintenant.getHours();
	var minutes = Maintenant.getMinutes();
	var secondes = Maintenant.getSeconds();
	heures = ((heures < 10) ? " 0" : " ") + heures;
	minutes = ((minutes < 10) ? ":0" : ":") + minutes;
	secondes = ((secondes < 10) ? ":0" : ":") + secondes;
	document.formhorloge.horloge.value = heures + minutes + secondes;
	setTimeout("heure()",1000);
	}
function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("jeux.jamest.fr - Jeux Flash Gratuits en Ligne","http://jeux.jamest.fr",""); }
else { window.external.AddFavorite("http://jeux.jamest.fr","jeux.jamest.fr - Jeux Flash Gratuits en Ligne"); }
}
