function randomImages(loop) {	
	// Header Images
	headerImages = new Array
	headerImages[0] = "../../../image/transanta.gif";
	headerImages[1] = "../../../image/transantb.gif";
	headerImages[2] = "../../../image/transantc.gif";
	headerImages[3] = "../../../image/transantd.gif";
	headerImages[4] = "../../../image/transante.gif";
	headerImages[5] = "../../../image/transantf.gif";
	headerImages[6] = "../../../image/transantg.gif";
	headerImages[7] = "../../../image/transanth.gif";
	headerImages[8] = "../../../image/transantx.gif";
	headerImages[9] = "../../../image/transanty.gif";
	headerImages[10] = "../../../image/transantz.gif";
	headerImages[11] = "../../../image/transhona.gif";
	headerImages[12] = "../../../image/transhonb.gif";
	headerImages[13] = "../../../image/transhonc.gif";
	headerImages[14] = "../../../image/transhond.gif";
	headerImages[15] = "../../../image/transhonx.gif";
	headerImages[16] = "../../../image/transhony.gif";
	headerImages[17] = "../../../image/transhonz.gif";
	
	// Body images
	images = new Array
	images[0] = "../../../randomh/01.jpg";
	images[1] = "../../../randomh/02.jpg";
	images[2] = "../../../randomh/03.jpg";
	images[3] = "../../../randomh/04.jpg";
	images[4] = "../../../randomh/05.jpg";
	images[5] = "../../../randomh/06.jpg";
	images[6] = "../../../randomh/07.jpg";
	images[7] = "../../../randomh/08.jpg";
	images[8] = "../../../randomh/09.jpg";
	images[9] = "../../../randomh/10.jpg";	
	images[10] = "../../../randomh/11.jpg";
	images[11] = "../../../randomh/12.jpg";
	images[12] = "../../../randomh/13.jpg";
	images[13] = "../../../randomh/14.jpg";
	images[14] = "../../../randomh/15.jpg";
	images[15] = "../../../randomh/16.jpg";
	images[16] = "../../../randomh/17.jpg";
	images[17] = "../../../randomh/18.jpg";
	images[18] = "../../../randomh/19.jpg";
	images[19] = "../../../randomh/20.jpg";	
	images[20] = "../../../randomh/21.jpg";
	images[21] = "../../../randomh/22.jpg";
	images[22] = "../../../randomh/23.jpg";
	images[23] = "../../../randomh/24.jpg";
	images[24] = "../../../randomh/25.jpg";
	images[25] = "../../../randomh/26.jpg";
	images[26] = "../../../randomh/27.jpg";
	images[27] = "../../../randomh/28.jpg";
	images[28] = "../../../randomh/29.jpg";
	images[29] = "../../../randomh/30.jpg";	
	images[30] = "../../../randomh/31.jpg";
	images[31] = "../../../randomh/32.jpg";
	images[32] = "../../../randomh/33.jpg";
	images[33] = "../../../randomh/34.jpg";
	images[34] = "../../../randomh/35.jpg";
	images[35] = "../../../randomh/36.jpg";
	images[36] = "../../../randomh/37.jpg";
	images[37] = "../../../randomh/38.jpg";
	images[38] = "../../../randomh/39.jpg";
	images[39] = "../../../randomh/40.jpg";
	images[40] = "../../../randomh/41.jpg";
	images[41] = "../../../randomh/42.jpg";
	images[42] = "../../../randomh/43.jpg";
	images[43] = "../../../randomh/44.jpg";
	images[44] = "../../../randomh/45.jpg";
	images[45] = "../../../randomh/46.jpg";
	images[46] = "../../../randomh/47.jpg";
	images[47] = "../../../randomh/48.jpg";
	images[48] = "../../../randomh/49.jpg";
	images[49] = "../../../randomh/50.jpg";
		
	var rand1 = Math.round((headerImages.length-1) * Math.random());
	var rand2 = Math.round((headerImages.length-1) * Math.random());
	var rand3 = Math.round((images.length-1) * Math.random());
	
	var image1 = headerImages[rand1];
	var image2 = headerImages[rand2];
	var image3 = images[rand3];
	
	document.headerLeft.src = image1;
	
	if (document.headerRight) {
		document.headerRight.src = image2;
	}
	if (document.gazou && !loop) {
		document.gazou.src = image3;
	}
}

setInterval("randomImages(true);",10000);




// MENU

function hideLayer(whichLayer) {
	if (document.getElementById) {
		document.getElementById(whichLayer).style.display = "none";
	}
	else if (document.all) {
		document.all[whichlayer].style.display = "none";
	}
	else if (document.layers) {
		document.layers[whichLayer].display = "none";
	}
}

function showLayer(whichLayer) {
	if (document.getElementById) {
		document.getElementById(whichLayer).style.display = "block";
	}
	else if (document.all) {
		document.all[whichlayer].style.display = "block";
	}
	else if (document.layers) {
		document.layers[whichLayer].display = "block";
	}
}

clickHistory = new Array;

function toggleLayer(which) {
//	if (document.getElementById(which).style.display == "block") {
//		document.getElementById(which).style.display = "none";		
//	}
//	else { 
		document.getElementById(which).style.display = "block";
			if (clickHistory[clickHistory.length-1] != which) {
				clickHistory.push(which);
				if (clickHistory.length > 1) {
					document.getElementById(clickHistory[clickHistory.length-2]).style.display = "none";
				}
			}
//	}
}

// EMAIL SPAM PROTECTION

function email( user, domain ) {
	sendmail = "mailto:" + user + "@" + domain;
	window.location = sendmail;
}