// JavaScript Document
function TJSExtraireParam() {
url = window.location.href;
var exp=new RegExp("[&?]+","g");
var exp2=new RegExp("[=]+","g");
var tabNom=url.split(exp);
var	tabParam=new Array();
if (tabNom!=null) {
   for (var i=1;i<tabNom.length;i++){
		var tabTemp=tabNom[i].split(exp2);
		tabParam[tabTemp[0]]=tabTemp[1];
		}
	}
return tabParam;
}
// Appel de la fonction et création du tableau des paramètres
var urlParam = TJSExtraireParam();
var dat = new Date();
var fondp=1;
var couleur= new Array();
couleur=["1","2","3","4","5","6","7","1","2","3","4","5","6","7"];
fondp= dat.getDay()+dat.getHours(); 
if (urlParam["l"]=="en") fondp= fondp+1;
if (urlParam["l"]=="nl") fondp= fondp+2;
if (fondp>21) fondp= fondp-21;
if (fondp>14) fondp= fondp-14;
if (fondp>7) fondp= fondp-7; 
if (urlParam["p1"]==undefined) {
//if (urlParam["l"]!="es") urlParam["p1"]= couleur[fondp];
if (urlParam["l"]!="es") urlParam["p1"]= couleur[1];
else urlParam["p1"]="E";
}
if (urlParam["l"]==undefined) urlParam["l"]="fr";
urlParam["p0"]= "etiquette";


function cadre(){
document.write('<table border="1" cellspacing="4" cellpadding="4" align=center width=780 class=fd'+urlParam["p1"]+'><tr><td align=center class=fd2'+urlParam["p1"]+'>');
document.write('<table width=100% height=100% border="0" cellspacing="6" cellpadding="4" ><tr><td align=center valign=top>');
}

function fond1(){
document.write('<table width=100% height=100% class=fd'+urlParam["p1"]+' border=0 cellspacing=0 cellpadding=0><tr><td>');
}

function finfond1() {document.write('</td></tr></table>');}
function fincadre() {document.write('</td></tr></table>');}

function cadrem(){
document.write('<table border="0" cellspacing="4" cellpadding="4" align=center class=fd'+urlParam["p1"]+'><tr><td align=center class=fd2'+urlParam["p1"]+'>');
document.write('<table width=100% height=100% border="0" cellspacing="6" cellpadding="4" ><tr><td align=center valign=top>');
}

