var ns = (navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=4)?true:false
var ie = (navigator.appName=="Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4)?true:false
var ns6 = (document.getElementById&&!document.all)

var safari = new String(navigator.appVersion);
var expr=/safari/gi;
Saf = safari.search(expr);

var navigsaf = (Saf!=-1)?true:false;

function getLayer(name) {
  if (ie)
    return eval('document.all.' + name);
	if (ns6)
		return document.getElementById(name);
  return null;
}

function getHeight(){
	if(ns6) haut=window.innerHeight;
	else if (ie  && navigator.appVersion.indexOf("Macintosh") != -1) haut =document.body.offsetHeight+5;
	else haut = document.documentElement.clientHeight;
	
	return haut;
}

function display_menu(nom){
	layermenu=getLayer("menuprinicipal")	
	if(nom!=''){
		layer= getLayer(nom)
		
		layer.className = nom +"done";
	}
	layermenu.style.visibility="visible";
}

function display_menu2(nom1){
	layermenu=getLayer("menuinterieur")
	layer1=getLayer(nom1)
	
	layer1.className = "done";
	if(layermenu!=null)	layermenu.style.visibility="visible";
}


var theImages = new Array() // do not change this


theImages[0] = 'http://www.boutiqueborealdesign.com/img/photos-accueil/photo-accueil-01.jpg'
theImages[1] = 'http://www.boutiqueborealdesign.com/img/photos-accueil/photo-accueil-02.jpg'
theImages[2] = 'http://www.boutiqueborealdesign.com/img/photos-accueil/photo-accueil-03.jpg'
theImages[3] = 'http://www.boutiqueborealdesign.com/img/photos-accueil/photo-accueil-04.jpg'
theImages[4] = 'http://www.boutiqueborealdesign.com/img/photos-accueil/photo-accueil-05.jpg'

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImagecanot(){
document.write('<img src="'+theImages2[whichImage]+'">');
}

function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}



