//<!--
cdc_on = new Image;
cdc_on.src = "http://www.r7g.com/20090/m/img/picto/cdc_on.gif";
cdc_off = new Image;
cdc_off.src = "http://www.r7g.com/20090/m/img/picto/cdc.gif";

bs_on = new Image;
bs_on.src = "http://www.r7g.com/20090/m/img/picto/bs_on.gif";
bs_off = new Image;
bs_off.src = "http://www.r7g.com/20090/m/img/picto/bs.gif";

divers_on = new Image;
divers_on.src = "http://www.r7g.com/20090/m/img/picto/divers_on.gif";
divers_off = new Image;
divers_off.src = "http://www.r7g.com/20090/m/img/picto/divers.gif";

nouv_on = new Image;
nouv_on.src = "http://www.r7g.com/20090/m/img/picto/nouv_on.gif";
nouv_off = new Image;
nouv_off.src = "http://www.r7g.com/20090/m/img/picto/nouv.gif";

promo_on = new Image;
promo_on.src = "http://www.r7g.com/20090/m/img/picto/promo_on.gif";
promo_off = new Image;
promo_off.src = "http://www.r7g.com/20090/m/img/picto/promo.gif";

ic_on = new Image;
ic_on.src = "http://www.r7g.com/20090/m/img/picto/ic_on.gif";
ic_off = new Image;
ic_off.src = "http://www.r7g.com/20090/m/img/picto/ic.gif";


elle_on = new Image;
elle_on.src = "http://www.r7g.com/20090/m/img/menu/elle_on.gif";
elle_off = new Image;
elle_off.src = "http://www.r7g.com/20090/m/img/menu/elle_off.gif";

home_on = new Image;
home_on.src = "http://www.r7g.com/20090/m/img/menu/home_on.gif";
home_off = new Image;
home_off.src = "http://www.r7g.com/20090/m/img/menu/home_off.gif";

lui_on = new Image;
lui_on.src = "http://www.r7g.com/20090/m/img/menu/lui_on.gif";
lui_off = new Image;
lui_off.src = "http://www.r7g.com/20090/m/img/menu/lui_off.gif";

couple_on = new Image;
couple_on.src = "http://www.r7g.com/20090/m/img/menu/couple_on.gif";
couple_off = new Image;
couple_off.src = "http://www.r7g.com/20090/m/img/menu/couple_off.gif";

lingerie_on = new Image;
lingerie_on.src = "http://www.r7g.com/20090/m/img/menu/lingerie_on.gif";
lingerie_off = new Image;
lingerie_off.src = "http://www.r7g.com/20090/m/img/menu/lingerie_off.gif";

sextoys_on = new Image;
sextoys_on.src = "http://www.r7g.com/20090/m/img/menu/sextoys_on.gif";
sextoys_off = new Image;
sextoys_off.src = "http://www.r7g.com/20090/m/img/menu/sextoys_off.gif";

bdsm_on = new Image;
bdsm_on.src = "http://www.r7g.com/20090/m/img/menu/bdsm_on.gif";
bdsm_off = new Image;
bdsm_off.src = "http://www.r7g.com/20090/m/img/menu/bdsm_off.gif";

bien_etre_on = new Image;
bien_etre_on.src = "http://www.r7g.com/20090/m/img/menu/bien_etre_on.gif";
bien_etre_off = new Image;
bien_etre_off.src = "http://www.r7g.com/20090/m/img/menu/bien_etre_off.gif";

home_on = new Image;
home_on.src = "http://www.r7g.com/20090/m/img/menu/home_on.gif";
home_off = new Image;
home_off.src = "http://www.r7g.com/20090/m/img/menu/home_off.gif";


add_to_cart_on = new Image;
add_to_cart_on.src = "http://www.r7g.com/20090/m/img/add_to_cart_on.gif";
add_to_cart_off = new Image;
add_to_cart_off.src = "http://www.r7g.com/20090/m/img/add_to_cart_off.gif";

function hover(obj){

   
	var DIV = obj.getElementsByTagName('div');
	var IMG = obj.getElementsByTagName('img');
	var A = obj.getElementsByTagName('a');
		
	if(obj.className == "level1")
	{
    if(DIV.length > 0){
      sousMenu = DIV[0].style;
	  link1 = A[0].style;
	  classLink1 = A[0].className;
	  classIMG = IMG[0].className;
	 
		if(sousMenu.display == 'none' || sousMenu.display == ''){
        sousMenu.display = 'block';
		link1.color="#e40227";
		link1.backgroundColor = "#d9dadb"
		IMG[0].src="http://www.r7g.com/20090/m/img/menu/"+classIMG+"_on.gif";
		}
		else{
        sousMenu.display = 'none';
			if(classLink1 == "fam_mere_encours")
			{
				link1.color="#ffffff";
				link1.backgroundColor = "#000000";
				IMG[0].src="http://www.r7g.com/20090/m/img/menu/"+classIMG+"_encours.gif";
			}
			else
			{
				link1.color="#000000";
				IMG[0].src="http://www.r7g.com/20090/m/img/menu/"+classIMG+"_off.gif";
			}
		
		}
      }
	  else
	  {
	  
		 link1 = A[0].style;
		 classLink1 = A[0].className;
		 classIMG = IMG[0].className;
		if(IMG[0].src=="http://www.r7g.com/20090/m/img/menu/"+classIMG+"_off.gif" || IMG[0].src=="http://www.r7g.com/20090/m/img/menu/"+classIMG+"_encours.gif")
		{
			link1.color="#e40227";
			link1.backgroundColor = "#d9dadb"
			IMG[0].src="http://www.r7g.com/20090/m/img/menu/"+classIMG+"_on.gif";
			
		}
		else if(IMG[0].src=="http://www.r7g.com/20090/m/img/menu/"+classIMG+"_on.gif")
		{
			if(classLink1 == "fam_mere_encours")
			{
				link1.color="#ffffff";
				link1.backgroundColor = "#000000";
				IMG[0].src="http://www.r7g.com/20090/m/img/menu/"+classIMG+"_encours.gif";
			}
			else
			{
				link1.color="#000000";
				IMG[0].src="http://www.r7g.com/20090/m/img/menu/"+classIMG+"_off.gif";
			}
		}
		
			  
	  
	  }
	  
	}
    
	
}


function setHover(){
  LI = document.getElementById('menu').getElementsByTagName('li');
  nLI = LI.length;

  for(i=0; i < nLI; i++){
    LI[i].onmouseover = function()
    {    
       hover(this);
    }
    LI[i].onmouseout = function()
    {
      hover(this);
     
    }
  }
}


function displayCount(id_conteneur,balise,num_class) {
	
	var strContainer = document.getElementById(id_conteneur);
	var arrElements = strContainer.getElementsByTagName(balise);
	var intElements = arrElements.length;
	for (var i=0; i<intElements; i++) {
		 if(i==num_class)
			arrElements[i].style.display = 'block';
		else
			arrElements[i].style.display = 'none';
	 }
}

function maxHeightIE(id_conteneur,balise)
{

	var strContainer = document.getElementById(id_conteneur);
	var arrElements = strContainer.getElementsByTagName(balise);
	var intElements = arrElements.length;
	for (var i=0; i<intElements; i++) {
		 if(arrElements[i].className=="liste_menu")
		 {
			var nb_link = arrElements[i].getElementsByTagName('a').length;
			if(nb_link > 11)
				arrElements[i].style.height="195px";
			
		 }
			
	 }


}


function PrintDeclinaisonChoice()
{
	var choice = document.getElementById('CHOICE').options[document.getElementById('CHOICE').options.selectedIndex].value ;
	
	
	
	if(tabArticles[choice].price2 != "")
	{
		document.getElementById('prix').innerHTML = "Prix : "+tabArticles[choice].price2+" &euro;";
		document.getElementById('prix2').innerHTML = tabArticles[choice].price+" &euro;";
		document.getElementById('nc').innerHTML = "";
			
	}
	else if(tabArticles[choice].price != "")
	{
		document.getElementById('prix').innerHTML = "Prix : "+tabArticles[choice].price+" &euro;";
		document.getElementById('prix2').innerHTML = "";
		document.getElementById('nc').innerHTML = "";
				
	}
	else
	{
		document.getElementById('nc').innerHTML = "Prix n.c.";
		document.getElementById('prix').innerHTML = "";
		document.getElementById('prix2').innerHTML = "";
		
	}
		
	if(document.getElementById('Taille'))
		document.getElementById('Taille').innerHTML = tabArticles[choice].Taille;
	if(document.getElementById('Couleur'))
		document.getElementById('Couleur').innerHTML = tabArticles[choice].Couleur;
	if(document.getElementById('Dimension'))
		document.getElementById('Dimension').innerHTML =tabArticles[choice].Dimension;
	if(document.getElementById('Longueur'))
		document.getElementById('Longueur').innerHTML = tabArticles[choice].Longueur;
	if(document.getElementById('Pointure'))
		document.getElementById('Pointure').innerHTML = tabArticles[choice].Pointure;
	
	if(tabArticles[choice].img1 != "")
		document.getElementById('product_image').style.backgroundImage = "url("+tabArticles[choice].img1+")";
	else if(tabArticles[choice].thumb != "")
		document.getElementById('product_image').style.backgroundImage = "url("+tabArticles[choice].thumb+")";
		
	
}



function ValideAddToCart_t1()
{

	var choice = document.getElementById('CHOICE').options[document.getElementById('CHOICE').options.selectedIndex].value ;
	
	if(tabArticles[choice].price == "")
	{
		alert("L'article est actuellement indisponible à la vente");
		return false;
	
	}
	
	return true;

}


function ValideAddToCart_t2(id)
{

	if(document.getElementById(id).ID_PRODUCT.value == "")
	{
		alert("L'article est actuellement indisponible à la vente");
		return false;
	
	}
	
	return true;


}


function changeView(url)
{
	document.getElementById('product_image').style.backgroundImage = "url("+url+")";

}
//-->
