// <SCRIPT LANGUAGE="JavaScript" SRC="script.js"></SCRIPT> // 
// VAR-MAIL
var gau = "Art";
var gau2 = "Decor";
var dro = "tapisseriedefrance";
// FENETRE width=400,height=730,
function go_fenetre(url){
	fenetre = window.open(url,'fenetre','top=30,left=50,screenX=50,screenY=50,width=400,height=730,status=0,menubar=1,resizable=1,scrollbars=1');
	}
// SIEGE width=400,height=730,
function go_siege(url){
	fenetre = window.open(url,'fenetre','top=30,left=50,screenX=50,screenY=50,width=400,height=730,status=0,menubar=1,resizable=1,scrollbars=1');
	}
// CATALOG width=450,height=600,
function go_catalog(url){
	fenetre = window.open(url,'catalog','top=10,left=10,screenX=10,screenY=10,width=450,height=600,status=0,resizable=1,scrollbars=1');
	}
// BAG width=665,height=600,
function go_bag(url){
	fenetre = window.open(url,'panneau','top=10,left=50,screenX=50,screenY=50,width=665,height=600,status=0,resizable=1,scrollbars=1');
	}
// BOUTIQUE  width=500,height=770,
function go_boutique(url){
	fenetre = window.open(url,'boutique','top=10,left=10,screenX=10,screenY=10,width=500,height=770,status=0,resizable=1,scrollbars=1');
	}
// PANNEAU width=640,height=480,
function go_panneau1(url){
	fenetre = window.open(url,'panneau','top=10,left=50,screenX=50,screenY=50,width=650,height=570,status=0,resizable=1,scrollbars=1');
	}
// PANNEAU02 width=650,height=600,
function go_panneau2(url){
	fenetre = window.open(url,'panneau','top=10,left=50,screenX=50,screenY=50,width=650,height=825,status=0,resizable=1,scrollbars=1');
	}
// PANNEAU03 width=650,height=600,
function go_panneau3(url){
	fenetre = window.open(url,'panneau','top=10,left=50,screenX=50,screenY=50,width=450,height=830,status=0,resizable=1,scrollbars=1');
	}
// DEGRADE 
var hexa = "0123465789ABCDEF";
function DecToHexa(DecNb){
	x = Math.floor(DecNb / 16);
	h = hexa.charAt(x);
	x = DecNb % 16;
	h += hexa.charAt(x);
	return h;
	}
	function Degrade(dr,dg,db,fr,fg,fb,texte){
	steps = texte.length;
	cr = dr; cg = dg; cb = db;
	sr = (fr - dr) / steps;
	sg = (fg - dg) / steps;
	sb = (fb - db) / steps;
	for (var x = 0; x <= steps; x++){
		document.write('<font color="#' + DecToHexa(cr) + DecToHexa(cg) + DecToHexa(cb) + '">');
		document.write(texte.charAt(x));
		document.write('</font>');
		cr += sr; cg += sg; cb += sb;
	}
}
// SET WINDOW CLIENT SIZE
function setClientSize(){
    // Position pixel element
	var BodyObject = document.getElementById('PosPixel');
	var current_width = BodyObject.offsetLeft;
	var current_height = BodyObject.offsetTop;
//alert(current_width +'=='+  current_height);
	self.window.resizeTo(current_width + 20, current_height + 40);
}
// CLOSE WINDOWS
function fin(){
	window.close();
	}
// AFFICHE STYLE
function affiche(id,on){
var elsty=null
	if (document.getElementById){
		elsty=document.getElementById(id).style;
	} 
	else if (document.all) {
  elsty=document.all[id].style;
	} 
	if(elsty){
	if (on==true) elsty.display="block";
	if (on==false) elsty.display="none";
   }
}
// AFFICHE STYLE 2
function affiche2(id,on) {
var elsty = null;
	if (document.getElementById) {
		elsty = document.getElementById(id).style;
	}
	else if (document.all) {
		elsty = document.all[id].style;
	} 
	if (on=='On'){ elsty.visibility="visible";elsty.display="block"}
	else{elsty.visibility="hidden";elsty.display="none" ;}
// (on=='On') ? elsty.display="block" : elsty.display="none";
}
// SWITH OPTION VISIBILITY
function setVisible(layName1,layName2,opt){
	var opt1 =(opt == 1)? 'visible': 'hidden';
	var opt2 =(opt1 == 'visible')? 'hidden': 'visible';
	if(document.getElementById)document.getElementById(layName1).style.visibility=opt1;
	if(document.getElementById)document.getElementById(layName2).style.visibility=opt2;
	else if(document.layers)document.layers[layName1].visibility=opt1;
	else if(document.layers)document.layers[layName2].visibility=opt2;
	else if(document.all)document.all(layName1).style.visibility=opt1;
	else if(document.all)document.all(layName2).style.visibility=opt2;
}
// SWITH IMAGE BOUTIQUE
boutique0 = new Image();
boutique0.src = "common/boutique.jpg";
function MouseOver(name){
	if (name == "boutique0")
	document.boutique0.src = "common/boutique.jpg";
}
function MouseOut(name){
	if (name == "boutique0")
	document.boutique0.src = "common/ab_clone.gif";
}
// SWITH IMAGE STYLE SIEGE
Tapisserie = new Image();
modlxiiiOver = new Image();
modlxivOver = new Image();
modLregOver = new Image();
modlxvOver = new Image();
modlxviOver = new Image();
moddirOver = new Image();
modempirOver = new Image();
modrestOver = new Image();
modnapOver = new Image();
modartdOver = new Image();

Tapisserie.src = "common/chateaux.jpg";
modlxiiiOver.src = "common/modlxiii.gif";
modlxivOver.src = "common/modlxiv.gif";
modLregOver.src = "common/modreg.gif";
modlxvOver.src = "common/modlxvb.gif";
modlxviOver.src = "common/modlxvi.gif";
moddirOver.src = "common/moddir.gif";
modempirOver.src = "common/modempir.gif";
modrestOver.src = "common/modrestaur.gif";
modnapOver.src = "common/modnap.gif";
modartdOver.src = "common/modartdeco.gif";

boutique0 = new Image();
boutique0.src = "abouquet/common/boutique.jpg";
boutique1 = new Image();
boutique1.src = "common/boutique.jpg";

function MouseOver(name){
	if (name == "modlxiii")document.Tapisserie.src = "common/modlxiii.gif";
		else if (name == "modlxiv")document.Tapisserie.src = "common/modlxiv.gif";
		else if (name == "modreg")document.Tapisserie.src = "common/modreg.gif";
		else if (name == "modlxv")document.Tapisserie.src = "common/modlxvb.gif";
		else if (name == "modlxvi")document.Tapisserie.src = "common/modlxvi.gif";
		else if (name == "moddir")document.Tapisserie.src = "common/moddir.gif";
		else if (name == "modempir")document.Tapisserie.src = "common/modempir.gif";
		else if (name == "modrest")document.Tapisserie.src = "common/modrestaur.gif";
		else if (name == "modnap")document.Tapisserie.src = "common/modnap.gif";
		else if (name == "modartd")document.Tapisserie.src = "common/modartdeco.gif";
		else if (name == "boutique0")document.boutique0.src = "common/boutique.jpg";
}
function MouseOut(name){
	if (name == "modlxiii")document.Tapisserie.src = "common/chateaux.jpg";
		else if (name == "modlxiv")document.Tapisserie.src = "common/chateaux.jpg";
		else if (name == "modreg")document.Tapisserie.src = "common/chateaux.jpg";
		else if (name == "modlxv")document.Tapisserie.src = "common/chateaux.jpg";
		else if (name == "modlxvi")document.Tapisserie.src = "common/chateaux.jpg";
		else if (name == "moddir")document.Tapisserie.src = "common/chateaux.jpg";
		else if (name == "modrest")document.Tapisserie.src = "common/chateaux.jpg";
		else if (name == "modempir")document.Tapisserie.src = "common/chateaux.jpg";
		else if (name == "modnap")document.Tapisserie.src = "common/chateaux.jpg";
		else if (name == "modartd")document.Tapisserie.src = "common/chateaux.jpg";
		else if (name == "boutique0")document.boutique0.src = "common/ab_clone.gif";
}
// 
// 
