function getParamValue(param,url){var u=url==undefined?document.location.href:url;var reg=new RegExp('(\\?|&|^)'+param+'=(.*?)(&|$)');matches=u.match(reg);return matches!=undefined?decodeURIComponent(matches[2]).replace(/\+/g,' '):''}jQuery(document).ready(function(){x=(getParamValue('id'));switch(x){case'52':r=0;break;case'53':r=1;break;case'54':r=2;break;case'55':r=3;break;case'56':r=4;break;case'57':r=5;break;default:r=(Math.floor(Math.random()*6));break}$('.imgRollover, #textualContent p a img, #range #next, #range #prev, .encartContent a img, .services a img').mouseover(function(){$(this).fadeTo(200,0.6)}).mouseout(function(){$(this).fadeTo(200,1)});Cufon.replace('#metanav ul li a, a.nav, #range h2, #header h2, #encartContent .encart h3, #recipeFinder h4, #rightColumn .encart h3');$('#selectFlavour').sSelect({ddMaxHeight:'300px'});$('#selectType').sSelect({ddMaxHeight:'300px'});$('#selectCategorie').sSelect({ddMaxHeight:'300px'});if($('.range #rangePdt li').length==1){$('#range_nav').hide()}$(function(){$('a.nav, a.metanav').mouseover(function(){if(!$(this).hasClass('selected')){$(this).css('color','#ab0a18');Cufon.replace('a.nav, a.metanav');return false}}).filter(':first').click();$('a.nav, a.metanav').mouseout(function(){if(!$(this).hasClass('selected')){$(this).css('color','#CCAB78');Cufon.replace('a.nav, a.metanav');return false}}).filter(':first').click()});$('#whatsnewCarrousel').cycle({fx:'fade',speed:'1000',timeout:5000,next:'#next2',prev:'#prev2'});$('#rangePdt').cycle({fx:'fade',speed:'1000',timeout:5000,next:'#next3',prev:'#prev3'});$('#rangeCarrousel').cycle({fx:($.browser.msie?'none':'fade'),speed:'1000',timeout:0,next:'#next',prev:'#prev',cleartypeNoBg:true,startingSlide:r});$('#rangeCarrousel2').cycle({fx:($.browser.msie?'none':'fade'),speed:'1000',timeout:5000,next:'#next',prev:'#prev',cleartypeNoBg:true,startingSlide:r});$("input:text.keyword").each(function(){var firstVal=$(this).val();$(this).focus(function(){if($(this).val()==firstVal){$(this).val("")}}).blur(function(){if($(this).val()==""){$(this).val(firstVal)}})});$("a.fancybox").fancybox({'titleShow':false,'transitionIn':'elastic','transitionOut':'elastic','margin':0,'padding':0});$("a.group").fancybox({'transitionIn':'elastic','transitionOut':'elastic','speedIn':600,'speedOut':200})});

