    var king_cool = {
      src: '/js/sifr/king_cool_kc.swf'
      ,wmode: 'transparent'
      ,ratios: [6, 1.41, 9, 1.35, 15, 1.29, 21, 1.25, 22, 1.22, 27, 1.24, 29, 1.21, 34, 1.22, 41, 1.21, 45, 1.2, 46, 1.21, 59, 1.2, 68, 1.19, 69, 1.2, 96, 1.19, 97, 1.18, 102, 1.19, 103, 1.18, 107, 1.19, 108, 1.18, 112, 1.19, 114, 1.18, 116, 1.19, 120, 1.18, 121, 1.19, 1.18]
    };
    sIFR.activate(king_cool);
    
    sIFR.replace(king_cool, {
      selector: 'h3.sifr'
      ,css : {
      '.sIFR-root': { 'color' : '#FA8DC5', 'font-size': '24px' }
      }
      ,selectable: false
      ,forceSingleLine: true
    });
    
    sIFR.replace(king_cool, {
      selector: 'div.sifr'
      ,css : {
      '.sIFR-root': { 'color' : '#000000', 'font-size': '20px' }
      }
      ,selectable: false
      ,forceSingleLine: true
    });
    
    sIFR.replace(king_cool, {
      selector: 'h4.sifr'
      ,css : {
      '.sIFR-root': { 'color' : '#000000', 'font-size': '20px' }
      }
      ,selectable: false
      ,forceSingleLine: true
    });
    
    sIFR.replace(king_cool, {
      selector: 'span.macaron'
      ,css : {
      '.sIFR-root': { 'color' : '#FFFFFF', 'text-align' : 'right', 'font-size': '22px' }
      }
      ,selectable: false
      ,forceSingleLine: true
    });
    
    sIFR.replace(king_cool, {
      selector: 'span.macaron2'
      ,css : {
      '.sIFR-root': { 'color' : '#FFFFFF', 'text-align' : 'center', 'font-size': '24px' }
      }
      ,selectable: false
      ,forceSingleLine: true
    });
    
    function research(valeur,titre,choix) {
      $('search' + choix).value = valeur;
      $(choix + 'Titre').set('html',titre);
      $('searchList' + choix).setStyles({display: 'none'});
    }
    
    function controleurCoor(elm) {
      if (elm.checked) {
        $('coorForm2').setStyles({display: 'block'});
        $('titreCoor').addClass('diffAddr');
      }
      else {
        $('coorForm2').setStyles({display: 'none'});
        $('titreCoor').removeClass('diffAddr');
      }
    }
    
    function countryChange(formName){
      if((formName === 'billing' && !$('different_delivery_address').checked) || (formName === 'shipping' && $('different_delivery_address').checked)){
        alert("Les frais d'envoi seront recalculés en fonction du pays sélectionné.");
        $('billing_contact_country').onchange = '';
        $('shipping_contact_country').onchange = '';
      }
    }
    
    window.addEvent('load', function() {
      $('ProdTitre').addEvent('mouseenter', function(){
      $('searchListProd').setStyles({display: 'block'});
      });  
      
      $('searchListProd').addEvent('mouseleave', function(){
      $('searchListProd').setStyles({display: 'none'});
      }); 
      
      $('CreaTitre').addEvent('mouseenter', function(){
      $('searchListCrea').setStyles({display: 'block'});
      });  
      
      $('searchListCrea').addEvent('mouseleave', function(){
      $('searchListCrea').setStyles({display: 'none'});
      });  
      
      $('NewsletterOk').addEvent('mouseenter', function(){
      $('NewsletterOk').src="/images/ok_hover.gif";
      });  
      
      $('NewsletterOk').addEvent('mouseleave', function(){
      $('NewsletterOk').src="/images/ok.gif";
      });
      
      // products thumb list
      $$('div.productsThumbList div.item').addEvent('mouseenter', function(){
        this.addClass('hover');
      });
      $$('div.productsThumbList div.item').addEvent('mouseleave', function(){
        this.removeClass('hover');
      });
    
      // homepage product rollovers
      $$('div.home-discounted-products div.item').addEvent('mouseenter', function(){
        this.addClass('hover');
      });
      $$('div.home-discounted-products div.item').addEvent('mouseleave', function(){
        this.removeClass('hover');
      });
      $$('div.home-focused-categories div.item').addEvent('mouseenter', function(){
        this.addClass('hover');
      });
      $$('div.home-focused-categories div.item').addEvent('mouseleave', function(){
        this.removeClass('hover');
      });
    
    });
    

// website specific actions
var website = {
  
  productDetail: {
    updateProductPrice: function(elm){
      var selectedVariation = $(elm.options[elm.selectedIndex]);
      
      // update sifr price
      $('prodPrice').removeClass('sIFR-replaced');
      $('prodPrice').set('text', selectedVariation.get('rel'));
      sIFR.replace(king_cool, {
        selector: '#prodPrice'
        ,css : {'.sIFR-root': { 'color' : '#FFFFFF', 'text-align' : 'right', 'font-size': '22px' }}
        ,selectable: false
        ,forceSingleLine: true
      });
      
      // update secondary preview
      var variationData = variationImages[selectedVariation.get('value')];
      if(variationData){
        $('visuelPrincipal').set('href', variationData.normal);
        $('imgPrincipal').set('src', variationData.preview);
      }
      
      
    }
  }
  
}
