/**************************************************************************/
/*** RollOver                                                           ***/
/**************************************************************************/
function rollover(lieu,source) {
	
	// indiquez l'emplacement des images a appeler
	chemin = 'img/';
	lieu.src = chemin + source;
	}
	
	function rollout(lieu,source) {
	
	// indiquez l'emplacement de l'image de depart
	chemin = 'img/';
	lieu.src = chemin + source;
	}


function fenetreCent(url,nom,largeur,hauteur,options) {
	var haut=(screen.height-hauteur)/2;
	var Gauche=(screen.width-largeur)/2;
	fencent=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
	}


function afficheNav(rub) {
	
	tabImg = new Array(5);
	tabImg[0] = "accueil";
	tabImg[1] = "gbp";
	tabImg[2] = "autres_travaux";
	tabImg[3] = "actualites";
	tabImg[4] = "forum";


	
		

	tablien = new Array(5);
	tablien[0] = "home.php";
	tablien[1] = "gbp_videos.php";
	tablien[2] = "at_vanites.php";
	tablien[3] = "actualites.php";
	tablien[4] = "forum/";


	document.write("<img src=\"img/px.gif\" width=\"5\" height=\"1\">");
	for(i=0; i<tabImg.length; i++){
		if(rub != Math.ceil(i+1)){
			document.write("<a href=\""+ tablien[i] +"\" OnMouseOver=\"rollover("+tabImg[i]+",'nav_"+tabImg[i]+"_1.jpg');\" OnMouseOut=\"rollout("+tabImg[i]+",'nav_"+tabImg[i]+"_0.jpg');\"><img src=\"img/nav_"+tabImg[i]+"_0.jpg\" border=\"0\" name=\""+tabImg[i]+"\"></a>");
			
			
		}
		else{
			document.write("<img src=\"img/nav_"+tabImg[i]+"_1.jpg\" border=\"0\" name=\""+tablien[i]+"\">");
		}
		
		if(i < Math.ceil(tabImg.length-1)){
			document.write("<img src=\"img/px.gif\" width=\"14\" height=\"1\">");
		}
	}
	document.write("<img src=\"img/px.gif\" width=\"5\" height=\"1\">");
}


function afficheSNav(rub, srub) {
	
	tabImg = new Array(4);
	tabImg[2] = new Array(3);
	tabImg[2][0] = "videos";
	tabImg[2][1] = "photos";
	tabImg[2][2] = "debat_presse";
	
	tabImg[3] = new Array(8);
	tabImg[3][0] = "vanites";
	tabImg[3][1] = "red_gold";
	tabImg[3][2] = "cave_sexy";
	tabImg[3][3] = "oppression";
	tabImg[3][4] = "suspension";
	tabImg[3][5] = "bousculade";
	tabImg[3][6] = "on_top";
	tabImg[3][7] = "et_plus";
	
		

	tablien = new Array(4);
	tablien[2] = new Array(3);
	tablien[2][0] = "gbp_videos.php";
	tablien[2][1] = "gbp_photos.php";
	tablien[2][2] = "gbp_debat_presse.php";
	
	tablien[3] = new Array(8);
	tablien[3][0] = "at_vanites.php";
	tablien[3][1] = "at_red_gold.php";
	tablien[3][2] = "at_cave_sexy.php";
	tablien[3][3] = "at_oppression.php";
	tablien[3][4] = "at_suspension.php";
	tablien[3][5] = "at_bousculade.php";
	tablien[3][6] = "at_on_top.php";
	tablien[3][7] = "at_et_plus.php";


	document.write("<img src=\"img/px.gif\" width=\"13\" height=\"1\">");
	for(i=0; i<tabImg[rub].length; i++){
		if(srub != Math.ceil(i+1)){
			document.write("<a href=\""+ tablien[rub][i] +"\" OnMouseOver=\"rollover("+tabImg[rub][i]+",'nav_"+tabImg[rub][i]+"_1.jpg');\" OnMouseOut=\"rollout("+tabImg[rub][i]+",'nav_"+tabImg[rub][i]+"_0.jpg');\"><img src=\"img/nav_"+tabImg[rub][i]+"_0.jpg\" border=\"0\" name=\""+tabImg[rub][i]+"\"></a>");
			
			
		}
		else{
			document.write("<img src=\"img/nav_"+tabImg[rub][i]+"_1.jpg\" border=\"0\" name=\""+tablien[rub][i]+"\">");
		}
		
		if(i < Math.ceil(tabImg[rub].length-1)){
			document.write("<img src=\"img/px.gif\" width=\"14\" height=\"1\">");
		}
	}
	document.write("<img src=\"img/px.gif\" width=\"5\" height=\"1\">");
}
