window.defaultStatus="Welcome  to chateaudefontainebleau.net !"; 

function presence_frame()
{
if(!(parent.frames["left"] && parent.frames["main"] ))

location.replace("http://www.chateaudefontainebleau.net/frame-eng.htm");
}


// OUVRIR POP UP

function popup(page) {
window.open(page,'popup','width=500,height=300,toolbar=false,scrollbars=false');
}


function non(clic) {
var msgfr="For more information about  chateaudefontainebleau.net , please write to webmaster@chateaudefontainebleau.net !! ";
if (navigator.appName == 'Netscape' && clic.which==3) {
  alert(msgfr); return false;
  } 
else if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msgfr);
return false;
}
return true;
}
document.onmousedown = non;// fin -->




function creerFenImage() {
	fiRef = window.open ("","fenImage", "Width=700, Height=400, Scrollbars=yes, Toolbar=no, Location=no, Directories=no, Status=no")
}


// IMPRIMER

function imprimer(){  
 if (navigator.appName == "Netscape") {
  window.print() ;  
 }
 else {
  var navi = '<OBJECT ID="navi1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
  document.body.insertAdjacentHTML('beforeEnd', navi);
  navi1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    navi1.outerHTML = "";  
 }
}



function arcenciel() {

}

function changetext(){
rainbow="#"+hex[r]+hex[g]+hex[b]
storetext.style.color=rainbow
}
function change(){
if (seq==6){
b--
if (b==0)
seq=1
}
if (seq==5){
r++
if (r==12)
seq=6
}
if (seq==4){
g--
if (g==0)
seq=5
}
if (seq==3){
b++
if (b==12)
seq=4
}
if (seq==2){
r--
if (r==0)
seq=3
}
if (seq==1){
g++
if (g==12)
seq=2
}
changetext()
}


function starteffect(){
if (document.all||document.getElementById)
flash=setInterval("change()",speed)
}
