<!-- //<SCRIPT LANGUAGE="JavaScript" SRC="script.js"></SCRIPT> // -->


<!--********* FENETRE HEIGHT=450, WIDTH=325*********-->
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 HEIGHT=450, WIDTH=325*********-->
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');
	}

<!--********* NOEL WIDTH=400, HEIGHT=415 *********-->
function go_noel(url)
	{
fenetre = window.open(url , 'fenetre' , 'top=50 , left=50 , screenX=50 , screenY=50 , width=400 , height=415 , resizable=no , scrollbars=no');
	}
 
<!--********* TABOURET HEIGHT=450, WIDTH=325*********-->
function go_tabouret(url)
	{
fenetre = window.open(url, 'fenetre', 'top=50,left=50,screenX=50,screenY=50,width=350,height=600,status=0,resizable=1,scrollbars=0');
	}

<!--********* CATALOG HEIGHT=600, WIDTH=450*********-->
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 HEIGHT=600, WIDTH=690*********-->
function go_bag(url)
	{
fenetre = window.open(url, 'panneau', 'top=10,left=50,screenX=50,screenY=50,width=750,height=600,status=0,resizable=1,scrollbars=1');
	}

<!--********* DETAIL HEIGHT=330, WIDTH=510*********-->
function detail(an)
	{
window.open('annonce_detail.asp?an=' + an, 'DisplayWindow' + an, ' height=330, width=510,status=0,resizable=1,scrollbars=1');
	}

<!--********* BOUTIQUE  HEIGHT=770, WIDTH=500*********-->
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');
}

<!--********* CLOSE WINDOWS*********-->
function fin()
	{
		window.close();
	}
<!--*********FIN***-->


<!--*********SWITH IMAGE*********-->
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 == "modempir")
	document.Tapisserie.src = "common/chateaux.jpg";
	else if (name == "modrest")
	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";

	}
<!--*********FIN SWITH IMAGE*********-->
<!--*********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;
}
}
//-->

<!--*********FIN  DEGRADE*********-->
<!--*********  *********-->
