(function(b){function a(a){var e=[].slice.call(arguments,1),h=0,a=b.event.fix(a||window.event);a.type="mousewheel";a.wheelDelta&&(h=a.wheelDelta/120);a.detail&&(h=-a.detail/3);e.unshift(a,h);return b.event.handle.apply(this,e)}var e=["DOMMouseScroll","mousewheel"];b.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var b=e.length;b;)this.addEventListener(e[--b],a,!1);else this.onmousewheel=a},teardown:function(){if(this.removeEventListener)for(var b=e.length;b;)this.removeEventListener(e[--b], a,!1);else this.onmousewheel=null}};b.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery); (function(b){ulslide_last_id=0;b.fn.ulslide=function(a){function e(b,c){return b>=a.effect.showCount-c?b+c-a.effect.showCount-(a.count-a.effect.showCount):b+c}function g(){var b=c.uslCurrent();a.direction="f";b+1<a.count?c.uslRefresh(b+1):c.uslRefresh(0)}function k(){var b=c.uslCurrent();a.direction="b";0<b?c.uslRefresh(b-1):c.uslRefresh(a.count-1)}function h(f){f=b(f);f.each(function(a){this.usl_navigator_index=a;b(this).addClass("usl-pager-"+a)});f.click(function(){var b=this.usl_navigator_index; if(b<a.count&&b!=c.uslCurrent())a.direction=b>c.uslCurrent()?"f":"b",c.uslRefresh(b);return!1})}function l(a){a?d.addClass("usl-loading"):d.removeClass("usl-loading")}var d=this;if(0==d.length)return!1;var c=d[0];b(c).attr("id")||(ulslide_last_id++,b(c).attr("id","ulslide-"+ulslide_last_id));b(c).attr("id");a=b.extend({effect:{type:"slide",axis:"x",distance:20},duration:600,direction:"f",autoslide:!1,current:0,width:d.width(),height:"auto",statusbar:!0,lazyload:!1,ajax:!1,mousewheel:!1,pager:!1,nextButton:!1, prevButton:!1,printCurrentTo:!1,onAnimateStart:function(){},onAnimate:function(){},onAjaxStart:function(){},onAjaxStop:function(){}},a);"undefined"!=typeof a.affect&&(a.effect.type=a.affect);"undefined"!=typeof a.axis&&(a.effect.axis=a.axis);"undefined"!=typeof a.padding&&(a.effect.distance=a.padding);"undefined"!=typeof a.navigator&&(a.pager=a.navigator);"undefined"!=typeof a.print_current&&(a.printCurrentTo=a.print_current);"undefined"!=typeof a.bnext&&(a.nextButton=a.bnext);"undefined"!=typeof a.bprev&& (a.prevButton=a.bprev);"undefined"==typeof a.effect.distance&&(a.effect.distance=20);a.fwidth=a.width+a.effect.distance;a.prev=a.current;a.count=b("> *",d).length;a.lazyload&&b("img",d).each(function(a){var c=b(this);c.attr("rel",c.attr("src"));0<a&&c.removeAttr("src")});b("> *",d).each(function(c){var d=b(this);d.addClass("slide-node slide-node-"+c);d.css("position","absolute");d.css("margin","0");d.css("distance","0");d.css("width",a.width);d.css("overflow","hidden");"carousel"==a.effect.type?(c= e(c,a.current),d.css("top","0"),d.css("left",c*a.fwidth)):c==a.current?(d.css("top","0"),d.css("left","0")):(d.css("top","0"),d.css("left",-(a.width+a.effect.distance)))});d.css("list-style","none");d.css("distance","0");d.css("position","relative");d.css("overflow","hidden");d.css("padding",0);"carousel"==a.effect.type?d.css("width",a.fwidth*a.effect.showCount-a.effect.distance):d.css("width",a.width);"auto"==a.height?d.css("height",b("> *:eq("+a.current+")",d).height()):d.css("height",a.height); a.prevHeight=a.height;c.getSlide=function(a){return b("> *:eq("+a+")",c)};c.currentHeight="auto"==a.height?c.getSlide(a.current).height():a.height;c.uslCurrent=function(b){if(void 0==b)return a.current;c.uslCurrent();return a.current=b};c.autoslideNext=function(){"f"==a.direction?g():k()};c.initAutoslide=function(){a.TimeoutID&&clearTimeout(a.TimeoutID);a.TimeoutID=setTimeout("jQuery('#"+b(c).attr("id")+"')[0].autoslideNext()",a.autoslide)};c.clearAutoslide=function(){a.TimeoutID&&clearTimeout(a.TimeoutID)}; c.uslRefresh=function(f,k,h){function g(){function f(){a.printCurrentTo&&b(a.printCurrentTo).html(a.current+1);a.prev!=a.current&&"carousel"!=a.effect.type&&m.css("display","none");d.animate({height:c.currentHeight},250);a.autoslide&&c.initAutoslide();a.onAnimate(a,c);a.prev=a.current;c.uslRefreshClasses();c.ready=!0;"undefined"!=typeof h&&h()}a.onAnimateStart(a,c);if("auto"==a.height)c.currentHeight=c.getSlide(a.current).height(),a.prevHeight=c.getSlide(a.prev).height();if(a.prev==a.current)f(); else if("slide"==a.effect.type)"x"==a.effect.axis?(a.prev!=a.current&&("f"==a.direction?(m.animate({left:-(a.width+a.effect.distance)},a.duration),j.css("left",a.width+a.effect.distance)):(m.animate({left:a.width+a.effect.distance},a.duration),j.css("left",-(a.width+a.effect.distance)))),j.animate({left:0},a.duration,function(){f()})):(a.prev!=a.current&&("f"==a.direction?(m.animate({top:c.currentHeight+a.effect.distance},a.duration,function(){m.css("left",-(a.width+a.effect.distance))}),j.css("top", -(a.prevHeight+a.effect.distance))):(m.animate({top:-(c.currentHeight+a.effect.distance)},a.duration,function(){m.css("left",-(a.width+a.effect.distance))}),j.css("top",a.prevHeight+a.effect.distance))),j.css("left",0),j.animate({top:0},a.duration,function(){f()}));else if("fade"==a.effect.type){j.css("display","none");j.css("left",0);j.css("top",0);var l=a.duration;"undefined"!=typeof k&&(l=0);m.fadeOut(l,function(){m.css("display","none");j.fadeIn(l,function(){f()})})}else"carousel"==a.effect.type&& b("> *",d).each(function(c){liel=b(this);var d=e(c,a.current),c="f"==a.direction?e(c,a.current-1):e(c,a.current+1);"f"==a.direction&&0==d?(liel.css("left",-1*a.fwidth),liel.animate({left:d*a.fwidth},a.duration)):"f"==a.direction&&c+1==a.effect.showCount?liel.animate({left:a.effect.showCount*a.fwidth},a.duration):"b"==a.direction&&0==c?liel.animate({left:-1*a.fwidth},a.duration):"b"==a.direction&&d+1==a.effect.showCount?(liel.css("left",(d+1)*a.fwidth),liel.animate({left:d*a.fwidth},a.duration)):d< a.effect.showCount&&0<=d?liel.animate({left:d*a.fwidth},a.duration):liel.css("left",d*a.fwidth);setTimeout(function(){f()},a.duration+100)})}if(c.ready){c.ready=!1;"undefined"!=typeof f&&c.uslCurrent(f);c.clearAutoslide();var m=c.getSlide(a.prev),j=c.getSlide(a.current);j.css("display","block");a.ajax?(a.onAjaxStart(a,c),c.getSlide(a.current),c.uslAjaxLoadSlide(a.current,function(){a.onAjaxStop(a,c);g()})):a.lazyload?(f=b("img",j[0]),f.each(function(){var a=b(this);a.attr("src",a.attr("rel"))}),a.z_img_count= f.length,a.z_img_loaded=0,f.each(function(){this.complete?a.z_img_loaded++:b(this).load(function(){a.z_img_loaded++;a.z_img_loaded==a.z_img_count&&g()})}),a.z_img_loaded==a.z_img_count&&g()):g()}else setTimeout("$('#"+b(c).attr("id")+"')[0].uslRefresh()",400)};c.uslAjaxLoadSlide=function(d,e){var g=c.getSlide(d);if(g[0].usl_ajax_loaded)e();else{var h=b(a.pager).eq(d).attr("href");g[0].usl_ajax_loaded=!0;g.load(h+"?ajax=1",!1,e)}};c.uslRefreshClasses=function(){1<a.count&&(a.nextButton&&b(a.nextButton).addClass("active"), a.prevButton&&b(a.prevButton).addClass("active"));a.pager&&(b(a.pager).removeClass("usl-current"),b(a.pager+".usl-pager-"+c.uslCurrent()).addClass("usl-current"),b(a.pager).parent().removeClass("usl-current-parent"),b(a.pager+".usl-pager-"+c.uslCurrent()).parent().addClass("usl-current-parent"))};a.nextButton&&b(a.nextButton).click(function(){g();return!1});a.prevButton&&b(a.prevButton).click(function(){k();return!1});a.pager&&h(a.pager);a.navigator2&&h(a.navigator2);c.uslStatusbar=function(){var d= a.lazyload?b(">li:eq("+a.current+") img",c):b("img",c);a.img_count=d.length;a.img_count&&l(!0);a.img_loaded=0;d.each(function(){this.complete?a.img_loaded++:b(this).load(function(){a.img_loaded++;if(a.img_loaded==a.img_count)l(!1),c.ready=!0,c.uslRefresh()})});if(a.img_loaded==a.img_count)l(!1),c.ready=!0,c.uslRefresh()};a.statusbar&&!a.ajax&&c.uslStatusbar();a.mousewheel&&d.bind("mousewheel",function(a,b){c.ready&&(0>b?g():k());return!1});if(!a.statusbar||a.ajax)c.ready=!0,c.uslRefresh()}})(jQuery); function marquee(b,a,e){var g=$("#"+b),k=$("#"+a),h=k.width(),g=g.width();id_inst=setTimeout(function(){marquee(b,a,e)},e);var l=parseInt(k.css("left"));k.css({left:l-1+"px"});h+parseInt(k.css("left"))<=-(0.15*h)&&k.css({left:g+"px"})}function majQuantity(b){var a=document.cart_quantity.quantity.value,a=parseInt(a)+parseInt(b);1>a&&(a=1);document.cart_quantity.quantity.value=a}var testbuynow=0; function buynow(b,a){testbuynow=1;var e="ajaxcommande.php?action=buynowajax&qt="+a+"&products_id="+b;$.nmObj({sizes:{minW:400,minH:270},modal:!0,showCloseButton:!1});$.nmManual(e);return!1} $(document).ready(function(){$(".nyroModal").nyroModal();$("#txtSearch").attr("autocomplete","off");$(".produit").click(function(){href=$("a.nomproduit",this).attr("href");if(0==testbuynow)window.location=href;testbuynow=0}).css({cursor:"pointer"});$(".clickbanniere").click(function(){href=$("a.nombanniere",this).attr("href");window.location=href}).css({cursor:"pointer"});$("a.buynow").attr("href","#");$("div.panneau").css("z-index","50");$("div.panneau").hide().css("visibility","visible");$("ul.dropdown li").hover(function(){$(this).addClass("hover"); $("div.panneau:first",this).slideToggle("medium")},function(){$(this).removeClass("hover");$("div.panneau:first",this).stop(!0,!0).hide()});$("ul.subm1 li a").hover(function(){$(this).prepend('<span id="menufleche" style="position: absolute;left: -1px;">&rsaquo;</span>');$("#menufleche").animate({left:8},200)},function(){$("#menufleche").remove()});$(".plus").click(function(){$("#"+$(this).attr("id")+":input").val(parseInt($("#"+$(this).attr("id")+":input").val())+1);$("#validepanier").click()}).css({cursor:"pointer"}); $(".moins").click(function(){$("#"+$(this).attr("id")+":input").val(parseInt($("#"+$(this).attr("id")+":input").val())-1);$("#validepanier").click()}).css({cursor:"pointer"});$(':input[name="cart_quantity[]"]').change(function(){$("#validepanier").click()}).css({cursor:"pointer"});"Microsoft Internet Explorer"!=navigator.appName&&$("ul.linka li a").hover(function(){$(this).prepend('<div id="menufleche" style="position: absolute;left: -12px;">&rsaquo;</div>');$("#menufleche").animate({left:-5},200)}, function(){$("#menufleche").remove()});$(".slide").show();$(function(){$("#slide1").ulslide({effect:{type:"slide",axis:"y",distance:40},duration:500,autoslide:5E3,width:470,height:160,mousewheel:!0})});$(function(){$("#slide2").ulslide({effect:{type:"slide",axis:"y",distance:40},duration:500,autoslide:5E3,width:470,height:160,mousewheel:!0})});$(function(){$("#slide3").ulslide({effect:{type:"slide",axis:"y",distance:40},duration:500,autoslide:5E3,width:470,height:160,mousewheel:!0})});$(function(){$("#slide4").ulslide({effect:{type:"slide", axis:"y",distance:40},duration:500,autoslide:5E3,width:470,height:160,mousewheel:!0})});$(function(){$("#slide5").ulslide({effect:{type:"slide",axis:"y",distance:40},duration:500,autoslide:5E3,width:470,height:160,mousewheel:!0})});$(function(){$("#slide6").ulslide({effect:{type:"slide",axis:"y",distance:40},duration:500,autoslide:5E3,width:470,height:160,mousewheel:!0})});$("#marquee").css({left:"999px"});$(function(){marquee("marquee-wrapper","marquee",20)})}); function getXmlHttpRequestObject(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new ActiveXObject("Microsoft.XMLHTTP");alert("Votre Navigateur est d\u00e9pass\u00e9, il est temps de le mettre \u00e0 jour")}var searchReq=getXmlHttpRequestObject(); function searchSuggest(){if(4==searchReq.readyState||0==searchReq.readyState){var b=escape(document.getElementById("txtSearch").value);1<b.length?(searchReq.open("GET","searchSuggest.php?search="+b,!0),searchReq.onreadystatechange=handleSearchSuggest,searchReq.send(null)):document.getElementById("search_suggest").innerHTML=""}} function handleSearchSuggest(){if(4==searchReq.readyState){var b=document.getElementById("search_suggest");b.innerHTML="";var a=searchReq.responseText.split("\n");for(i=0;i<a.length-1;i++){var e='<div tabindex="i" onmouseover="javascript:suggestOver(this);" ',e=e+'onmouseout="javascript:suggestOut(this);" ',e=e+'onclick="javascript:setSearch(this.innerHTML);" ',e=e+('class="suggest_link"">'+a[i]+"</div>");b.innerHTML+=e}}}function suggestOver(b){b.className="suggest_link_over"} function suggestOut(b){b.className="suggest_link"}function setSearch(b){document.getElementById("search_suggest").innerHTML="";document.getElementById("txtSearch").value=stripHTML(b);document.getElementById("frmSearch").submit()}function stripHTML(b){return b.replace(/<[^>]*>/g,"")}function cleanformclick(){if(" Recherche..."==document.getElementById("txtSearch").value)document.getElementById("txtSearch").value=""};
