//--------------------

var SITE = ""
var LABEL = ""

//--------------------

function OpenPopupR(nom,l,h,type) {
	var Menu = "";
	if(type==1) { Menu = "yes"; }
	else { Menu = "no"; }
	window.open("popup_"+nom+".html","Popup","width="+l+",height="+h+",menubar="+Menu+",status=0,left=0,top=0,scrollbars=no,resizable=yes") 
}


var scroller;
var actualtitle=document.title+" "

var dateNow = new Date();
var days = new Array('Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi');
var months = new Array('Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Aout','Septembre','Octobre','Novembre','Decembre');
var date = ((dateNow.getDate()<10) ? "0" : "")+ dateNow.getDate();
function y2k(number){return (number < 1000) ? number + 1900 : number;}
var today =  days[dateNow.getDay()] + " " + date + " " + months[dateNow.getMonth()] + " " + (y2k(dateNow.getYear()));
function addZero(){
if (min <= "9"){
min = "0"+min
}
if (sec<= "9"){
sec = "0"+sec
}
if (hr <="9"){
hr = "0"+hr
}
}
function time(){
dt=new Date()
sec=dt.getSeconds()
hr=dt.getHours()
ampm="A.M."
min=dt.getMinutes()
}
function scroll() {
time()
addZero()
var scroller="  "+hr+":"+min+":"+sec+" "
var timeout=setTimeout("scroll()", 1000)
document.title=actualtitle+" "+today+" "+scroller+LABEL
 }
if (document.all)
scroll()




setInterval("window.status='Allo Peinture Déco'",5);



var doh = "-- Tous droits réservés © 2004 Allo Peinture Déco --";
function noclick(scx) {
if (navigator.appName == "Netscape" && scx.which > 1) {
alert(doh);
return false; }
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button > 1) {
alert(doh);
return false; } }
document.onmousedown = noclick

//------------------------------------------------------------

function afficheMaxi(chemin,titre)

      {

      i1 = new Image;

      i1.src = chemin;

      html = '<HTML><HEAD><TITLE>'+titre+'</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></CENTER></BODY></HTML>';

      popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');

      popupImage.document.open();

      popupImage.document.write(html);

      popupImage.document.close()

      };

//------------------------------------------------------------

function OpenSite(file)
{
	window.open(SITE+"/"+file, "_self")
}

//------------------------------------------------------------

function OpenExternal(file)
{
	window.open(file, "_blank", "width=750, height=500, menubar=1, toolbar=1, scrollbars=1, status=1,location=1,resizable=1,top=0,left=0")
}

//------------------------------------------------------------
