msg = "---  Bienvenue sur le site de TRAMWEAR  ---" + "             ";
msg = "--- Tramwear recrute des présentatrices de ventes à domicile ---" + "             " + msg;
pos = 0;
pb_suite_n = new Image();
pb_suite_a = new Image();
pb_precedent_a = new Image();
pb_precedent_n = new Image();
horiz = new Image();
station_h = new Image();
station_h_a = new Image();
station_h_m = new Image();
pb_suite_n.src = "pb/pb_suite_n.jpg";
pb_suite_a.src = "pb/pb_suite_a.jpg";
pb_precedent_n.src = "pb/pb_precedent_n.jpg";
pb_precedent_a.src = "pb/pb_precedent_a.jpg";
horiz.src = "pb/horiz.gif";
station_h.src = "pb/station_h.gif";
station_h_a.src = "pb/station_h_a.gif";
station_h_m.src = "pb/station_h_m.gif";
var popup;
var page;

function fenetre(URL)
{window.open(URL,'_blank','');}

function move_img(img_name,img_url)
{document.images[img_name].src=eval(img_url+".src");}

//gestion de la fenetre : previent que site optimise + agrandie si ne l'est pas
function Fenetre()
{if (screen.width < 1000) {alert("Ce site est optimisé pour un écran défini en 1024*768, ce qui n'est pas le cas du votre!");};largeurMax=screen.availWidth;hauteurMax=screen.availHeight;self.moveTo(0,0);if (document.all){self.resizeTo(largeurMax,hauteurMax);}else if (document.layers){if (self.outerHeight<hauteurMax||self.outerWidth<largeurMax){self.outerHeight = hauteurMax;self.outerWidth = largeurMax;}}self.focus();}

//Gestion de pop up auto fermante pour zoom sur les vêtements
function ouvrirPopup(Image)
{fermerPopup();popup=window.open("",'popup','border=0,left=300,top=100,directory=no,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no');popup.document.write("<html> <head> <title> ZOOM </title> </head>");popup.document.write("<body bgColor=#000000 leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");popup.document.write("<a HREF=\"javascript:window.close();\" > <img src="+Image+" border=0 alt='Fermer'> </a>");popup.document.write("</body> </html>");popup.resizeTo(popup.document.images[0].width+12,popup.document.images[0].height+32);}

function fermerPopup()
{if (popup){popup.close();}}

//Ouverture d'une fenêtre auto fermante pour voir les articles de journaux
function OuvrirFenetre(Nbim,Image,Name)
{var tab=Image.split("*");
Page=window.open("",'Page','border=0,left=0,top=0,scrollbars=yes,resizable=yes');
Page.document.write("<html> <head> <title>  "+Name+" </title> </head>");
Page.document.write("<body bgColor=#FFFFFF leftMargin=0 topMargin=0 marginwidth=0 marginheight=0 >");
for (var i=0; i<Nbim; i++) {Page.document.write("<a HREF=\"javascript:window.close();\" > <img src="+tab[i]+" border=0 alt='Fermer'> </a>");}
Page.document.write("</body> </html>");}

// chargement des photos de la collek
function charger(page1,page2,prix) {parent.zone3.document.open();parent.zone3.document.write("<html><head><title>TRAMWEAR<\/title><LINK REL=STYLESHEET HREF='style.css' TYPE='text/css'><\/head><SCRIPT LANGUAGE=javascript src=java.js><\/SCRIPT><\/head><body bgColor=#000000 text=#FFFFFF><A HREF="+'"'+"javascript:OuvrirFenetre('1','"+page1+"','"+page2+"')"+'"'+"><img src="+page1+" border=0 width=250 alt="+page2+"><\/A><\/body><\/html>");parent.zone3.document.close();
									parent.zone5.document.open();parent.zone5.document.write("<html><head><title>TRAMWEAR<\/title><LINK REL=STYLESHEET HREF='style.css' TYPE='text/css'><body bgColor=#000000 text=#FFFFFF><table border=0 width=250><tr align=right valign=center height=40 ><td><span class=textm>"+page2+"<\/td><\/tr><tr align=right><td><span class=textm>"+prix+" €<\/td><\/tr><\/table><\/body><\/html>");parent.zone5.document.close();}

//Défilement du message mis dans la variable msg en haut d'écran, dans la barre de bas d'écran du navigateur
function Defilement_message() {
	window.status=msg.substring(pos,msg.length) + msg.substring(0, pos);
	pos++;
	if (pos > msg.length) pos=0;
	window.setTimeout("Defilement_message()",250);
}
Defilement_message();

