// <![CDATA
 
jQuery(document).ready(function(){

	var bodyBg = jQuery('body').attr('style');
	jQuery('body').attr('style','');

	
	/* General */
	jQuery('.jHover').hover(function(){var Src=jQuery(this).attr('src');var String=Src.replace(/-off.gif/,'-on.gif').replace(/-off.png/,'-on.png');jQuery(this).attr({src:String});},function(){var Src=jQuery(this).attr('src');var String=Src.replace(/-on.gif/,'-off.gif').replace(/-on.png/,'-off.png');jQuery(this).attr({src:String});});
	jQuery('input[type=text],input[type=password]').each(function(){var defaultSearchValue=jQuery(this).val();jQuery(this).click(function(){var currentSearchValue=jQuery(this).val();if(defaultSearchValue===currentSearchValue)jQuery(this).val('');jQuery(this).blur(function(){var currentSearchValue=jQuery(this).val();if(currentSearchValue==='')jQuery(this).val(defaultSearchValue);});});});
 
	/* Navigation */
	jQuery('#Menu > ul > li:not(.special)').click(function(){var e=jQuery(this);var f=jQuery('ol',this);e.siblings('.active').each(function(){jQuery('ol',this).hide();jQuery(this).removeClass('active')});e.addClass('active');f.show()});
	jQuery('#Whatshot div:first').css('borderBottom','1px solid #bbb8b8');
 
	/* Gamme */
	jQuery('.item').hover(function(){jQuery(this).addClass('hover')},function(){jQuery(this).removeClass('hover')});
	jQuery.carrousel(jQuery('.gamme:not(.elementVisuel)'),jQuery('.elementVisuel'));
	jQuery('.gamme:not(.elementVisuel) .dataa .scrol').each(function(){
		/*jQuery('*',this).each(function(){
		});*/
		if(jQuery(this).height() > jQuery('.scrolto',this).height() ) 
			jQuery(this).parents('.dataa').addClass('off');
		jQuery(this).simplyScroll({className:'vert',horizontal:false,frameRaste:20,speed:5});
	});
	/*jQuery('#Interne h1').hover(function(){jQuery('.sousMenu').show();},function(){timeout = setTimeout(sousMenuHide, 500);});
	jQuery('.sousMenu').hover(function(){window.clearTimeout(timeout);jQuery('.sousMenu').show();},function(){sousMenuHide();});
	function sousMenuHide(){jQuery('.sousMenu').hide()}*/
 
	/* Chat */
	jQuery('.actualiteChat .data:last').css('background','none');
 
	/* Autres Pages */
	jQuery('.eventDetail .scroll').simplyScroll({className:'vert',horizontal:false,frameRaste:20,speed:5});
	
	var sp = (navigator.appName=="Microsoft Internet Explorer") ? 13 : 23 ;

	jQuery('.autre.faqTarget .scroll').simplyScroll({className:'vert',horizontal:false,speed:sp});
	jQuery('.autre:not(.faqTarget) .scroll').simplyScroll({className:'vert',horizontal:false,speed:5});
	jQuery('.autre .scroll .data .listTable table tbody tr:odd').addClass('color1');
	jQuery('.autre .scroll .data .listTable table tbody tr:even').addClass('color0');
 
	/* MoodBooster */
	jQuery('.moodboosterSelection .data ul li').hover(function(){jQuery(this).addClass('hover')},function(){jQuery(this).removeClass('hover')});
	jQuery('.resumeSelection .action .up').click(function(){if(jQuery('.resumeSelection').hasClass('open')){jQuery('.resumeSelection').removeClass('open');var s=jQuery('img',this).attr('src').replace(/-up/,'-down');jQuery('img',this).attr('src',s)}else{jQuery('.resumeSelection').addClass('open');var s=jQuery('img',this).attr('src').replace(/-down/,'-up');jQuery('img',this).attr('src',s)}return false});
 
	/* Espace Presse */
	jQuery('.espacePresse .scroll').simplyScroll({className:'vert',horizontal:false,frameRaste:20,speed:5});
	jQuery('.espacePresse .scroll .data table tbody tr:odd').addClass('color1');
	jQuery('.espacePresse .scroll .data table tbody tr:even').addClass('color0');
	jQuery('.espacePresse .scroll .data table tbody tr:first').addClass('first');
	jQuery('.espacePresse .scroll .data table tbody tr:first td:last').addClass('icon');
 
	/* Make up class */
	jQuery.carrousel(jQuery('.look_0'));
	jQuery.carrousel(jQuery('.look_1'));
	jQuery.carrousel(jQuery('.blocTendances'));
	jQuery('.look_0 .visuel,.look_1 .visuel').live('click',function(){if(jQuery(this).hasClass('inAction'))return false;else{jQuery(this).addClass('inAction');var a=jQuery(this).attr('id').replace(/id/,'');jQuery.carrousselMoveTo(jQuery('.blocTendances'),a,jQuery(this))}return false});
	jQuery('.detailInfos .scroll').simplyScroll({className:'vert',horizontal:false,frameRaste:20,speed:5});
	jQuery('.detailProduit .scroll').simplyScroll({className:'vert',horizontal:false,frameRaste:20,speed:5});
	jQuery('.detailTendance ul li').each(function(){
		var c=jQuery(this).height();
		var d=jQuery('a',this).height();
		var t=Math.ceil((c-d)/2);
		jQuery('a',this).css('marginTop',t);

	});
 
	/* Histoire */
	jQuery('.listBloc .bloc:last').css({borderRight:'0 none',paddingRight:'0',marginRight:'0'});
	jQuery('.grandScroll .page').each(function(){jQuery('.bloc:last',this).css({borderRight:'0 none',paddingRight:'0',marginRight:'0'})});
	jQuery('.listBloc .bloc img[align=left],.grandScroll .page .bloc img[align=left]').css('marginRight','10px');
	jQuery('.listBloc .bloc img[align=right],.grandScroll .page .bloc img[align=right]').css('marginLeft','10px');
	//jQuery('.grandScroll .page .bloc img:not([align=right]):not([align=left])').css({width:'100%',height:'100%'});
	jQuery('.grandScroll .page .bloc .story').css({width:'100%',height:'100%'});
	jQuery('.miniatureScroll .page:last').css('background','0 none');
	jQuery.carrousel(jQuery('.grandScroll'));
	jQuery.carrousel(jQuery('.miniatureScroll'),false,3);
	jQuery('.miniatureScroll .page img').live('click',function(){if(jQuery(this).hasClass('inAction'))return false;else{jQuery(this).addClass('inAction');var a=jQuery(this).attr('id').replace(/id/,'');jQuery.carrousselMoveTo(jQuery('.grandScroll'),a,jQuery(this))}return false});
 
	
	/* Corner */
	var Arr=[['13',['.item a','.evenements .data','.ellesOntTeste .data','.blocTendances .page .bloc','.detailTendance','.detailProduit','.detailInfos']],['3',['.tendancesLook .page .visuel a','.incontournables .page .visuel a']],['0 0 6 6',['.popup .accesProduit','div.combo div.list-wrapper']],['0 6 6 0',['div.combo div.icon']],['6 0 0 6',['.combobox div.combo input']],['0 0 4 4',['.homeCentral .data .connectChat .facebook']]];
	corner(Arr);
	function corner(a){var x=a.length;for(i=0;i<x;i++){var b=a[i];var m=b[0];var c=b[1];var n=b[1].length;for(j=0;j<n;j++){var d=(m==='0')?'':true;DD_roundies.addRule(c[j],m,d)}}}
 
	/* Produits */
	jQuery('.produit .nav ul li').each(function(){jQuery(this).append('<span class="left"></span><span class="right"></span>');jQuery('.produit .nav ul li:first,.produit .data ul:first').addClass('active');jQuery(this).click(function(){jQuery('.produit .nav ul li.active').removeClass('active');jQuery(this).addClass('active');var a=jQuery(this).attr('rel');jQuery('.produit .data ul').removeClass('active');jQuery('.produit .data ul[rel='+a+']').addClass('active');jQuery('.produit .data').mouseScroller();return false})});
	jQuery('.produit .data').mouseScroller();
	jQuery('.descriptionProduit .scroll').simplyScroll({className:'vert',horizontal:false,frameRaste:20,speed:5});
 
	/*Rajout par rapport Ã  ce qu'a fait Kevin (PRODUIT)*/
	jQuery(".photo").each(function(){
		jQuery(this).click(function(){
			jQuery(".affichage").html("<img src='"+jQuery(this).attr("href")+"' alt='"+jQuery(this).find("img").attr("alt")+"' title='"+jQuery(this).find("img").attr("title")+"' height='350px'/>");
			jQuery(".zoom").attr("href", "/layout/set/empty/product/"+jQuery(this).attr("href"));
			return false;
		});
	});
 
    jQuery(".teinte").each(function(){
    	jQuery(this).click(function(){
    		jQuery(".affichage").html("<img src='"+jQuery(this).attr("href")+"' alt='"+jQuery(this).find("img").attr("alt")+"' title='"+jQuery(this).find("img").attr("title")+"' height='350px'/>");
    		jQuery(".zoom").attr("href", "/layout/set/empty/product/"+jQuery(this).attr("href"));
 
    		return false;
    	});
    });
 
 
    jQuery(".video").each(function(){
        jQuery(this).click(function(){
            jQuery(".affichage").html("<span id='bj_video_span'></span>");
            var so = new SWFObject("/extension/bourjois/design/bourjois/flash/player.swf", "player",'480','383',"8", "#000000");
                so.addParam('allowfullscreen','true');
                so.addParam('allowscriptaccess','always');
                so.addParam("wmode","transparent");
                so.addVariable('skin', "/extension/bourjois/design/bourjois/flash/inverted.swf");
                so.addVariable('autostart', true);
                so.addVariable('screencolor', '000000');
                so.addVariable('file', jQuery(this).attr("href"));
                so.write("bj_video_span"); 
            return false;
        })
    });
 
 
    /*Rajout par rapport Ã  ce qu'a fait Kevin (CONTACT)*/
    jQuery(".radio").each(function(){jQuery(this).click(function() { var id = jQuery(this).attr("id").split("-");if(id[0] == 0){if(jQuery(".alt_text").css("display") != "none"){jQuery(".alt_text").hide();jQuery(".alt_text").children().hide();}if(jQuery(".laissezMesssage").css("display") == "none"){jQuery(".laissezMesssage").css("display", "block");}} else {if(jQuery(".laissezMesssage").css("display") != "none"){jQuery(".laissezMesssage").hide();}jQuery(".alt_text").children().hide();if(jQuery("#alt_text"+id[1]).css("display") == "none"){jQuery(".alt_text").show();jQuery("#alt_text"+id[1]).show(); } else {jQuery(".alt_text").hide();jQuery("#alt_text"+id[1]).hide();}}});});
 
 
    /*Rajout par rapport Ã  ce qu'a fait Kevin (MOODBOOSTER)*/
    function setMoodboosterCookie(hum, def, sty)
	{
	  $.cookie('HPBJCK_hum', hum);
	  $.cookie('HPBJCK_def', def);
	  $.cookie('HPBJCK_sty', sty);
	}
 
	/*Rajout par rapport Ã  ce qu'a fait Kevin (MOODBOOSTER-article)*/
	jQuery('a.js-moodhtml').click(function() {
  	var attribut = jQuery(this).attr('id');
  	var idA = '#' + attribut;
    var id = '#img-moodhtml-' + attribut;
    if (jQuery(id).length > 0)
    {
      jQuery('.spanmoodhtml').hide();
      jQuery(id).show();
 
      jQuery('.js-moodhtml').removeClass('selected');
      jQuery(idA).addClass('selected');
    }
 
  });
 
 
	/* Popup */
	jQuery('a[rel^=popup]').bind('click',function(){var v=jQuery(this).attr('rel').replace(/popup\[/,'').replace(/\]/,'').split(',');var w=new Array();for(o=0;o<v.length;o++){var a=v[o].split(':');w.push(a[1])}jQuery(this).colorbox({innerWidth:w[0],innerHeight:w[1],href:jQuery(this).attr('href'),transition:'none',iframe:true,close:'',opacity:0.6,onComplete:function(){ $('.visuel').css('visibility','hidden'); },onCleanup:function(){ $('.visuel').css('visibility','visible'); }})});
	jQuery('.popupReglement .scroll').simplyScroll({className:'vert',horizontal:false,frameRaste:20,speed:5});
 
	/* Alignement */
	function align(){
		var a=document.getElementById('Content');
		var b=document.documentElement;
		if(a&&b){
			var c;
			if(b.innerWidth)
				c=b.innerHeight;
			else 
				c=b.clientHeight;
				
			var d;
			if(a.innerWidth)
				d=a.innerHeight;
			else 
				d=a.offsetHeight;
				
			var y=Math.ceil((c-d)/2);
			if(y<0)
				y=0;
			
			a.style.position="relative";
			a.style.top=y+"px"
		}
		if(document.getElementById)
			document.body.style.visibility='visible';
		jQuery('#Content').css('visibility','visible')
		jQuery('body').attr('style', bodyBg );
	}


	function addevent(a,b,c,d){if(a.addEventListener){a.addEventListener(b,c,d);return true}else if(a.attachEvent){a.attachEvent('on'+b,c);return true}else return false}
	if(document.getElementById&&document.getElementsByTagName){addevent(window,'load',align,false);addevent(window,'resize',align,false)}
 
	/* Scroll Verification */
	jQuery('.simply-scroll-container').each(function(){var a=jQuery(this).height();var b=jQuery('.data',this).height();if(a>b){jQuery('.simply-scroll-btn',this).css('visibility','hidden')}});
 
});
 
(function(){jQuery.fn.mouseScroller=function(){var e=this;jQuery(e).each(function(){jQuery(this).unbind('mousemove')});var c=jQuery(e).width();var d=0;var f=jQuery('ul.active li',e);for(i=0;i<f.length;i++){d=d+jQuery(f[i]).width()+2+4}jQuery('ul.active',e).width(d+20);var g=jQuery(e);var h=jQuery('ul.active',e);var j=20;var k=g.width();g.css({overflow:'hidden'});var l=h.find('li:last-child');g.mousemove(function(e){var a=l[0].offsetLeft+l.outerWidth()+j;var b=(e.pageX-g.offset().left)*(a-k)/k;g.scrollLeft(b)})}})(jQuery);
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2.U({V:7(e,f,l){5(e.F!=0){2(\'.u\',e).K(7(){5(2(v).L(\'k\'))G H;I{2(v).n(\'k\');2.M(e,f,l)}G H});2(\'.x\',e).K(7(){5(2(v).L(\'k\'))G H;I{2(v).n(\'k\');2.N(e,f)}G H});2.O(e,f,l)}},O:7(e,f,l){2(\'.8\',e).o(2(\'.3:q\',e).o()*2(\'.3\',e).F);5(f)2(\'.8\',f).o(2(\'.3:q\',f).o()*2(\'.3\',e).F);4 i=1;2(\'.3\',e).P(7(){2(v).y(\'3\',i++)});2(\'.3:q\',e).n(\'6\');5(f){4 j=1;2(\'.3\',f).P(7(){2(v).y(\'3\',j++)});2(\'.3:q\',f).n(\'6\')}2.A(e,l)},M:7(e,f,l){4 m=2(\'.8\',e).p(\'g\').B(/h/,\'\');4 w=2(\'.3:q\',e).o();5(m==\'C\')m=0;4 a=9(m)-9(w);2(\'.8\',e).D({g:a+\'h\'},\'E\',7(){2(\'.3.6\',e).z(\'6\').u().n(\'6\');2.A(e,l)});5(f){4 b=9(2(\'.3:q\',f).o());4 c=2(\'.8\',f).p(\'g\').B(/h/,\'\');5(c==\'C\')c=0;4 d=9(c)-9(b);2(\'.8\',f).D({g:d+\'h\'},\'E\')}},N:7(e,f){4 m=2(\'.8\',e).p(\'g\').B(/h/,\'\');4 w=2(\'.3:q\',e).o();5(c==\'C\')c=0;4 a=9(m)+9(w);2(\'.8\',e).D({g:a+\'h\'},\'E\',7(){2(\'.3.6\',e).z(\'6\').x().n(\'6\');2.A(e)});5(f){4 b=9(2(\'.3:q\',f).o());4 c=2(\'.8\',f).p(\'g\').B(/h/,\'\');5(c==\'C\')c=0;4 d=9(c)+9(b);2(\'.8\',f).D({g:d+\'h\'},\'E\')}},A:7(e,l){5(2(\'.3.6\',e).y(\'3\')==\'1\')2(\'.x\',e).p(\'J\',\'Q\');I 2(\'.x\',e).p(\'J\',\'R\');4 a=2(\'.3\',e).F;4 b=2(\'.3.6\',e).y(\'3\');5(l)a=a-l+1;5(b==a)2(\'.u\',e).p(\'J\',\'Q\');I 2(\'.u\',e).p(\'J\',\'R\');2(\'.u\',e).z(\'k\');2(\'.x\',e).z(\'k\')},W:7(e,i,t){2(\'.u\',e).n(\'k\');2(\'.x\',e).n(\'k\');4 a=2(\'.3[S=T\'+i+\']\',e).y(\'3\');4 b=2(\'.3.6\',e).y(\'3\');2(\'.3.6\',e).z(\'6\');2(\'.3[S=T\'+i+\']\',e).n(\'6\');4 c=2(\'.3.6\',e).o();4 s=9((b-a)*c);4 m=2(\'.8\',e).p(\'g\').B(/h/,\'\');5(m==\'C\')m=0;4 r=9(m)+s;2(\'.8\',e).D({g:r+\'h\'},\'E\',7(){2(t).z(\'k\');2.A(e)})}});',59,59,'||jQuery|page|var|if|active|function|elements|eval|||||||marginLeft|px|||inAction|||addClass|width|css|first||||next|this||prev|attr|removeClass|carrouselCheck|replace|auto|animate|normal|length|return|false|else|visibility|click|hasClass|carrouselNext|carrouselPrev|carrouselInit|each|hidden|visible|id|dest|extend|carrousel|carrousselMoveTo'.split('|'),0,{}))


// ]]>
