// JavaScript Document

//Script d'images aléatoires pour le visuel de gauche
	//Script d'images CIGARETTES
	function MyRandomImg1()
	{
	
	var HazImg1=new Array();
	HazImg1[0]= '<img src="http://www.margotabac.ch/files/img/produits/cigarettes/cigarettes3.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg1[1]= '<img src="http://www.margotabac.ch/files/img/produits/cigarettes/cigarettes3.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg1[2]= '<img src="http://www.margotabac.ch/files/img/produits/cigarettes/cigarettes3.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg1[3]= '<img src="http://www.margotabac.ch/files/img/produits/cigarettes/cigarettes3.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg1[4]= '<img src="http://www.margotabac.ch/files/img/produits/cigarettes/cigarettes3.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg1[5]= '<img src="http://www.margotabac.ch/files/img/produits/cigarettes/cigarettes3.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg1[6]= '<img src="http://www.margotabac.ch/files/img/produits/cigarettes/cigarettes3.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'

	HazImgNb1 = Math.round(Math.random() * (HazImg1.length-1));
	document.write(HazImg1[HazImgNb1]);
	}//fin de fonction MyRandomImages
	

	//Script d'images BONBONS
	function MyRandomImg2()
	{
	
	var HazImg2=new Array();
	HazImg2[0]= '<img src="http://www.margotabac.ch/files/img/produits/bonbons/bonbons1.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg2[1]= '<img src="http://www.margotabac.ch/files/img/produits/bonbons/bonbons2.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg2[2]= '<img src="http://www.margotabac.ch/files/img/produits/bonbons/bonbons3.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg2[3]= '<img src="http://www.margotabac.ch/files/img/produits/bonbons/bonbons4.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg2[4]= '<img src="http://www.margotabac.ch/files/img/produits/bonbons/bonbons5.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg2[5]= '<img src="http://www.margotabac.ch/files/img/produits/bonbons/bonbons6.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg2[6]= '<img src="http://www.margotabac.ch/files/img/produits/bonbons/bonbons7.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg2[7]= '<img src="http://www.margotabac.ch/files/img/produits/bonbons/bonbons8.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg2[8]= '<img src="http://www.margotabac.ch/files/img/produits/bonbons/bonbons9.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg2[9]= '<img src="http://www.margotabac.ch/files/img/produits/bonbons/bonbons10.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'

	HazImgNb2 = Math.round(Math.random() * (HazImg2.length-1));
	document.write(HazImg2[HazImgNb2]);
	}//fin de fonction MyRandomImages



	//Script d'images BOISSONS
	function MyRandomImg3()
	{
	
	var HazImg3=new Array();
	HazImg3[0]= '<img src="http://www.margotabac.ch/files/img/produits/boissons/boissons1.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg3[1]= '<img src="http://www.margotabac.ch/files/img/produits/boissons/boissons2.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg3[2]= '<img src="http://www.margotabac.ch/files/img/produits/boissons/boissons3.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg3[3]= '<img src="http://www.margotabac.ch/files/img/produits/boissons/boissons4.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg3[4]= '<img src="http://www.margotabac.ch/files/img/produits/boissons/boissons5.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg3[5]= '<img src="http://www.margotabac.ch/files/img/produits/boissons/boissons6.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'
	HazImg3[6]= '<img src="http://www.margotabac.ch/files/img/produits/boissons/boissons7.jpg" width="200" height="150" class="prod" alt="Groupe Margot">'

	HazImgNb3 = Math.round(Math.random() * (HazImg3.length-1));
	document.write(HazImg3[HazImgNb3]);
	}//fin de fonction MyRandomImages


//POPUP
function popup(page,nom,option) {
    var w=window.open(page,nom,option);
	w.document.close();
    w.focus();
}

//FLASH
function swf(varurl,width,height) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '"  height="' + height + '">\n');
document.write(' <param name="movie" value="' + varurl + '">\n');
document.write('<param name="wmode" value="transparent">\n');
document.write(' <param name="quality" value="high">\n');
document.write(' <embed src="' + varurl + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '"  height="' + height + '" wmode="transparent"></embed>\n');
document.write(' <noembed>Ce site nécessite le plugin Flash que vous pouvez <a href="http://www.adobe.com/shockwave/download/?P1_Prod_Version=ShockwaveFlash&Lang=French">télécharger gratuitement et simplement ici</a></noembed>\n');
document.write('</object>\n');
}