function tabCreate(n){
  this.length=n;
  for (var i=1;i<=n;i++){
    this[i]=""; 
  }
  return this;
}

var i;

function rHorBan( lang) {


  if ( lang == 'en') {
  i=Math.floor(7*Math.random()+1);
  crtBan="<a href=" + hBanLink_en[i] + "><img src=http://www.monnaiedeparis.com/ban/h/" + hBanName_en[i] + ".jpg width=466 height=58 border=0></a>";
  
  }
  else  // defaut fr
  {
  i=Math.floor(7*Math.random()+1);
  crtBan="<a href=" + hBanLink[i] + "><img src=/ban/h/" + hBanName[i] + ".jpg width=466 height=58 border=0></a>";
  
  }
  
  return crtBan;
}

function rVerBan() {
  i=Math.floor(2*Math.random()+1);
  crtBan="<a href=" + vBanLink[i] + "><img src=/ban/v/" + vBanName[i] + ".jpg width=68 height=372 border=0></a>";
  return crtBan;
}

function rHorBan2( lang ) {

  if ( lang == 'en') {
  i=Math.floor(7*Math.random()+1);
  crtBan="<a href=" + hBanLink_en[i] + "><img src=http://www.monnaiedeparis.com/ban/h/" + hBanName_en[i] + ".jpg width=466 height=58 border=0></a>";
  
  }
  else  // defaut fr
  {
  i=Math.floor(7*Math.random()+1);
  crtBan="<a href=" + hBanLink[i] + "><img src=/ban/h/" + hBanName[i] + ".jpg width=466 height=58 border=0></a>";
  
  }
  
  return crtBan;
}
//NT 20/03/07

function linkRC(doc)	{
	document.location = "../RC/"+doc;
	
}

function linkform(doc)	{
	document.location = "form.htm?ref="+doc;
	
}

function voir(id)	{
igv="<img src=voir.gif border=0 width=28 height=13 alt='Voir le "+id+"' onmouseover=\"status='';return true;\">";
return igv;
}

function clos()	{
cls="<img src=ko.gif border=0 width=11 height=11 alt='Marché clôturé'>";
return cls;
}

// ajout BS : 15/09/2005
function JS_GoToCatalog(lang,category,boutique) {

    document.location="http://boutique.monnaiedeparis.fr/is-bin/INTERSHOP.enfinity/WFS/Monnaie-Front-Site/fr_FR/-/EUR/ViewStandardCatalog-Browse?CategoryName=" + category;
}
function JS_GoToCatalogProduct(lang,product,boutique) {

    document.location="http://boutique.monnaiedeparis.fr/is-bin/INTERSHOP.enfinity/WFS/Monnaie-Front-Site/fr_FR/-/EUR/ViewProductDetail-Start?ProductRef=" + product+"@Monnaie-Front";
}

function JS_GoToCatalogVignette(product) {

     document.write("<img src='http://boutique.monnaiedeparis.fr/is-bin/intershop.static/WFS/Monnaie-Front-Site/Monnaie/fr_FR/Produits/Vignettes/"+product+".jpg' border=0 style='width:90px; height:90px;'>");

}

hBanName=new tabCreate(7);
hBanLink=new tabCreate(7);
// new
// en fait meme nom en en qu'en fr
hBanName_en = new tabCreate(7);
hBanLink_en = new tabCreate(7);

hBanName[1]="ban1";
hBanLink[1]="/collectionneurs/med.htm";
hBanName[2]="ban2";
hBanLink[2]="/collectionneurs/mc.htm";
hBanName[3]="ban3";
hBanLink[3]="/collectionneurs/jeton_classeur.htm";
hBanName[4]="ban4";
hBanLink[4]="/ideescadeaux/deco.htm";
hBanName[5]="ban5";
hBanLink[5]="/collectionneurs/bijoux.htm";
hBanName[6]="ban6";
hBanLink[6]="http://boutique.monnaiedeparis.fr/is-bin/INTERSHOP.enfinity/WFS/Monnaie-Front-Site/fr_FR/-/EUR/ViewStandardCatalog-Browse?CatalogCategoryID=iMHZEzvy6b8AAAEkDOQMnPas&Root=true";
hBanName[7]="ban7";
hBanLink[7]="http://boutique.monnaiedeparis.fr/is-bin/INTERSHOP.enfinity/WFS/Monnaie-Front-Site/fr_FR/-/EUR/BrowseCatalog-Start?CategoryName=1603";

for (var i=1;i<=7;i++){
 
    hBanName_en[i] = hBanName[i];	
  }
  

hBanLink_en[1]="http://www.monnaiedeparis.com/collectionneurs/med.htm";

hBanLink_en[2]="http://www.monnaiedeparis.com/collectionneurs/mc.htm";

hBanLink_en[3]="http://www.monnaiedeparis.com/collectionneurs/jeton_classeur.htm";

hBanLink_en[4]="http://www.monnaiedeparis.com/ideescadeaux/deco.htm";

hBanLink_en[5]="http://www.monnaiedeparis.com/collectionneurs/bijoux.htm";

hBanLink_en[6]="http://boutique.monnaiedeparis.fr/is-bin/INTERSHOP.enfinity/WFS/Monnaie-Front-Site/en_US/-/EUR/BViewStandardCatalog-Browse?CatalogCategoryID=iMHZEzvy6b8AAAEkDOQMnPas&Root=true";

hBanLink_en[7]="http://boutique.monnaiedeparis.fr/is-bin/INTERSHOP.enfinity/WFS/Monnaie-Front-Site/en_US/-/EUR/BBrowseCatalog-Start?CategoryName=1603";




vBanName=new tabCreate(2);
vBanLink=new tabCreate(2);
vBanName[1]="ban1";
vBanLink[1]="/newsletter/index.htm";
vBanName[2]="ban2";
vBanLink[2]="/info_l/index.htm"; 
