//version 0.91

//niv1 = new Array(3);
//	for (i = 0; i < niv1.length; i++) {
//		niv1[i] = 'btn_b-' + i;
//}

niv2 = new Array(4);
	for (i = 0; i < niv2.length; i++) {
		niv2[i] = 'b-layer-' + i;
}

//rollover

function imgOn(iName){
	str = '../img/' + iName + 'r.gif';
	document.images[iName].src = str;
}
function imgOff(iName){
	str = '../img/' + iName + '.gif';
	document.images[iName].src = str;
}

// sousmenu


function hideAll(){
	if( document.getElementById) {

		for (p = 0; p < niv2.length; p++) {
			document.getElementById(niv2[p]).style.display = "none";
		}
	}
}

function showhide2(id){
	if( document.getElementById && document.getElementById(id) != null ) {

		for (p = 0; p < niv2.length; p++) {
			document.getElementById(niv2[p]).style.display = "none";
		}
		document.getElementById(id).style.display = "block";
		str = '../img/bgbs-2r.jpg';
		document.images['bgbs-2'].src = str;

	}
}

function showhide3(id){
	if( document.getElementById && document.getElementById(id) != null ) {

		for (p = 0; p < niv2.length; p++) {
			document.getElementById(niv2[p]).style.display = "none";
		}
		document.getElementById(id).style.display = "block";
		str = '../img/bgbs-2br.jpg';
		document.images['bgbs-2'].src = str;

	}
}


function MenuOn(iName){
	imgClear();
	imgOn(iName);
	var x = 'sous' + iName;
	showhide2(x);
}

///* Pop Up *///

function OpenPhoto(picN,Fwin,picSize,ALT) {
window.open(picN,Fwin,picSize,"toolbar=0,menubar=0,location=0,directories=0,status=no")
}

