//http://refresh-sf.com/yui/
//home.js
String.prototype.startsWith=function(a){return(this.match("^"+a)==a)};String.prototype.endsWith=function(a){return(this.match(a+"$")==a)};String.prototype.replaceAll=function(b,a){return this.split(b).join(a)};String.prototype.accentFree=function(){var a=this.toLowerCase();a=a.replace(new RegExp("\\s","g"),"");a=a.replace(new RegExp("[àáâãäå]","g"),"a");a=a.replace(new RegExp("æ","g"),"ae");a=a.replace(new RegExp("ç","g"),"c");a=a.replace(new RegExp("[èéêë]","g"),"e");a=a.replace(new RegExp("[ìíîï]","g"),"i");a=a.replace(new RegExp("ñ","g"),"n");a=a.replace(new RegExp("[òóôõö]","g"),"o");a=a.replace(new RegExp("","g"),"oe");a=a.replace(new RegExp("[ùúûü]","g"),"u");a=a.replace(new RegExp("[ýÿ]","g"),"y");a=a.replace(new RegExp("\\W","g"),"");return a};jQuery.easing.easeOutQuart=function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a};if(!window.Home){window.Home={}}(function(){function u(z,x){var y=$(z);y.fadeOut(0).fadeIn(800,x)}function m(y,A){u(y);var z={auto:true,speed:800,pause:6000,continuous:true,prevId:"divleftarrow",nextId:"divrightarrow",controlsShow:false,controlsFade:false,offsetWidth:0};$("#slider").easySlider(z);var x={titleShow:false,transitionIn:"fade",transitionOut:"fade",autoScale:true,centerOnScroll:true,overlayColor:"#000",overlayOpacity:0.8,showNavArrows:false};$("#slider>ul>li>a[rel='img']").fancybox(x);z.auto=false;z.prevId="divleftarrow_saveurs";z.nextId="divrightarrow_saveurs";z.offsetWidth=160;z.continuous=false;z.start=1;$("#slider2").easySlider(z);x.type="iframe";x.width="100%";x.height="100%";x.autoScale=true;x.centerOnScroll=false;x.onCleanup=function(){document.location.hash="!/";var B=$("#fancybox-outer");B.width("");B.height("")};x.onComplete=function(){var B=$("#fancybox-inner");if(B.height()<650){B.height("650px");$("#fancybox-outer").height("670px")}if(B.width()<1095){B.width("1095px");$("#fancybox-outer").width("1115px")}};$("#slider2>ul>li>a").fancybox(x);if(typeof A==="function"){A()}}function d(){u("#containflickr");$("#slideshow_flickR>ul>li>a").each(function(){var z=$(this).find("img").attr("alt");var y={titleShow:false,transitionIn:"fade",transitionOut:"fade",autoScale:true,centerOnScroll:true,overlayColor:"#000",overlayOpacity:0.7,showNavArrows:false,type:"swf",swf:{wmode:"transparent",allowfullscreen:true,flashvars:"feed=api://www.flickr.com/?album="+z},width:"100%",height:"100%",onCleanup:Home.goBack};$(this).fancybox(y)});var x={auto:false,speed:800,pause:6000,continuous:false,prevId:"flickr-prev",nextId:"flickr-next",controlsShow:false,controlsFade:false,offsetWidth:0,items:4,itemsMargin:5};$("#slideshow_flickR").easySlider(x)}function r(x,y){u("#news",function(){getNews();if(typeof x==="function"){x(y)}})}function e(){shortenTitles();$("#news").animate({width:500,left:582,top:292});$("#news").css("background-color","transparent")}function t(x){$("#absLoad").fadeIn(700,x)}if(typeof Home.showLoad!=="function"){Home.showLoad=t}function f(x){$("#absLoad").fadeOut(600,x)}if(typeof Home.hideLoad!=="function"){Home.hideLoad=f}function h(x){return(-1*(x.height()+300))}var n=false;function q(z){n=false;var x=$("#page_principale");var y=h(x);x.animate({top:y},-1*y,function(){if(!n){$("#section_content").empty()}if(typeof z==="function"){z()}})}function b(){n=true;var x=$("#page_principale");x.animate({top:110},h(x)*-1)}function v(){var x=$("#page_principale");var y=h(x);x.css({top:y})}function i(z,x){var y=$(z);y.fadeOut(500,function(){y.empty();if(typeof x==="function"){x()}})}function w(){i("#concept-wrap");$("#concept").animate({height:0},500)}function j(x){var y;if(x&&x.url){y=x.url.replace(/^\/blogue\/(.*)/g,"$1")}news_open(y)}function k(x){f();$("#containfollowus").fadeOut(1000);i("#leftCol");i("#containflickr");i("#news");q(x);e();w();if($("#fancybox-wrap").length>0){$.fancybox.close()}}function l(x,y){q();e();w();hideContenuNews();if(!o){t();$("#leftCol").load("sections/leftcol.php",function(){m(this,x);if(!c){f()}});$("#containflickr").load("sections/flickr.php",function(){d();if(typeof y==="function"){y()}});if(c){$("#news").load("sections/news.php",r)}c=false;$("#containfollowus").fadeIn(800);window.initNewsLetter();o=true}else{if(typeof x==="function"){x()}else{if(typeof y==="function"){y()}}}}function s(){q();i("#concept-wrap");$("#concept").animate({height:270},500,function(){$("#concept-loading").fadeIn(150);$("#concept-wrap").load("/sections/concept.php",function(){$("#concept-loading").stop().fadeOut(100);u("#concept-wrap");$("#concept_slideshow").easySlider({auto:false,speed:400,pause:6000,controlsShow:false,controlsFade:false,offsetWidth:0,continuous:false,numeric:true,numericId:"concept_pager"});var A=$("#concept_pager li");var B=A.length===0?0:(A.length/2);var z;for(z=0;z<B;z++){var y=$(A[z]);$("a",A[z+B]).text(y.text());y.remove()}$("#concept_pager").append('<li class="dots"><span>&hellip;</span></li>');$("#concept_pager-slideshow").easySlider({auto:false,speed:400,pause:6000,prevId:"concept_pager-left",nextId:"concept_pager-right",controlsShow:false,controlsFade:false,offsetWidth:0,items:8,itemsMargin:0});Cufon.replace("#concept_pager li");function C(){var D=$("#concept_slideshow");var x=D.scrollTop();var E="active";if(x==0){$("#concept_scup").removeClass(E)}else{$("#concept_scup").addClass(E)}if(x==D.get(0).scrollHeight-D.height()){$("#concept_scdo").removeClass(E)}else{$("#concept_scdo").addClass(E)}}C();$("#concept_slideshow").scroll(C);$("#concept_scup").click(function(){$("#concept_slideshow").scrollTo({top:"-=80px",left:0},400)});$("#concept_scdo").click(function(){$("#concept_slideshow").scrollTo({top:"+=80px",left:0},400)});$("#concept_pager li a").click(function(){$("#concept_slideshow").scrollTo({top:0,left:0},400)})})})}function p(z){var C=z.url.startsWith("/blogue/tag/");var A=z.url.startsWith("/blogue/page/");function B(){return z.url.replace("/blogue/tag/","")}function x(){return parseInt(z.url.replace("/blogue/page/",""))}function y(){if(!o&&c){$("#news").load("sections/news.php",function(){c=false;if(C){r(function(){news_open();news_order(B())})}else{if(A){r(function(){news_open();news_goto(x())})}else{r(j,z)}}})}else{if(C){news_open();news_order(B())}else{if(A){news_open();news_goto(x())}else{j(z)}}}}q();w();$("#containfollowus").fadeOut(1000);i("#leftCol");i("#containflickr",y);o=false}function a(){$("#pv-regions").change(function(){$("table.liste-des-regions tr:gt(0)").remove();var x=$("#pv-regions").val();if(x&&x>0){t(function(){$.ajax({type:"POST",url:"/utile/ajax_request_hercules.php",data:"event=getEpiceries&id="+x,success:function(z){f();var A=JSON.parse(z);var C="</td><td>";var y;for(y=0;y<A.length-1;y++){var B=A[y];$("table.liste-des-regions").append("<tr><td>"+B.titre+C+B.ville+C+B.adresse+C+B.code_postal+C+B.telephone+"</td></tr>")}}})})}})}function g(x){k(function(){t(function(){$("#section_content").load(x.url,function(){v();b();f();if(x.url==="/sections/points-de-vente.php"){a()}if(x.url==="/sections/contact.php"){Contact.register()}})})});c=true;o=false}var o=false;var c=true;if(typeof Home.goTo!=="function"){Home.goTo=function(z){var y=true;if(o){$(window).stop(true,true)}if(z.url==="/"){l()}else{if(z.url==="/photos/"){l(null,function(){$("#slideshow_flickR>ul>li>a:eq(0)").click()})}else{if(z.url==="/reservation/"){toggle_reservation()}else{if(z.url.startsWith("/blogue/")){p(z)}else{if(z.url.startsWith("/sections/")){g(z)}else{if(z.url.startsWith("/saveurs/")){l(function(){var B;var A=z.url.replace("/saveurs/","");if(!A||A==""){B=$("#slider2>ul>li>a:eq(0)")}else{B=$("#slider2 img[alt="+A.replaceAll("-"," ")+"]").closest("a")}if(B.length>0){B.click()}})}else{if(z.url==="/concept/"){s()}else{if(z.url==="/contact/"){z.url="/sections/contact.php";g(z)}else{alert('Page inexistante.\n"'+z.url+'"');y=false}}}}}}}}if(y){try{_gaq.push(["_trackPageview",z.url])}catch(x){alert(x)}}}}if(typeof Home.goBack!=="function"){Home.goBack=function(x){if(window.Hash.previous&&!x){document.location.hash="!"+window.Hash.previous}else{document.location.hash="!/"}}}})();if(!window.Hash){window.Hash={previous:null}}(function(b){if(typeof Hash.internalize!=="function"){Hash.internalize=function(d){if(!d){d="a"}b(d).each(function(){var c=b(this).attr("href");if(c&&c!=""&&b.isUrlInternal(c)){b(this).attr("href","#!"+c)}})}}function a(d){var c=document.location.hash;if(c&&c!=""&&c.startsWith("#!")){c=c.substring(2,c.length);var f={url:c};if(d&&c!="/reservation/"){window.Hash.previous=c}Home.goTo(f)}}b(function(){Hash.internalize();b(window).bind("hashchange",a);var c=document.location.hash;if(!c||c==""){document.location.hash="#!/"}else{a(false)}})})(jQuery);
//menu.js
(function(c){function d(){try{var f=c("#menu>div.menulabel_activated");if(f&&f.length){f.get(0).className="menulabel";Cufon.replace(f.get(0),{color:"#acaba9"})}var i=c("#sousmenu>div.displayinline");if(i&&i.length){i.get(0).className="displaynone"}var g=c(this);var h=g.get(0);h.className="menulabel_activated";Cufon.replace(h,{color:"#fff"});var l=parseInt(g.attr("rel"));var k=c("#sousmenu>div.displaynone");if(l>=0&&k&&k.length){k.get(l).className="displayinline"}}catch(j){alert(j)}}function b(){Cufon.replace(this,{color:"#fff"})}function a(){Cufon.replace("div.sousmenulabel h6",{color:"#acaba9"})}c("#menu>div").bind("mouseover",d);c("div.sousmenulabel").hover(b,a)})(jQuery);
//reserv.js
(function(f){var j;var y;var d;var t;var w;var h;var g;var b;var x=false;var i=false;var a="hidden";var p="./utile/ajax_request.php";var k="./utile/sendmails.php";var s=false;var q=false;function z(){if(!s&&!q){q=true;var C=document.getElementById("reserv_title");var B=document.getElementById("reserv-icon-ordi");var A=document.getElementById("reserv-line");if(!x){A.src="./images/line_b.png";C.src="./images/t_reservation_w.png";B.src="./images/i_reservation_w.png";document.location.hash="!/reservation/";f(".p_menu_reserv a").animate({color:"#000"},500);f("#reservation").animate({backgroundColor:"#fff"},500,function(){f("#reservation, #commentaires").animate({left:10},1000);f("#left-panel").animate({width:420},1000,function(){f("#left-panel-wrap").fadeIn(500,function(){q=false})});x=1})}else{f("#left-panel-wrap").fadeOut(400);f("#reservation, #commentaires").animate({left:-420},1000);f("#left-panel").animate({width:0},1000,function(){A.src="./images/line_w.png";C.src="./images/reserv_img.png";B.src="./images/icon_ordi.png";f("#reservation").animate({backgroundColor:"#000"},1000);f(".p_menu_reserv a").animate({color:"#fff"},1000,function(){q=false});x=0;Home.goBack()})}}}function v(){y=document.getElementById("txtNomReserv").value;d=document.getElementById("txtNbrpersReserv").value;t=document.getElementById("txtTelReserv").value;w=document.getElementById("txtDateReserv").value;h=document.getElementById("txtCourrielReserv").value;g=document.getElementById("txtHeureReserv1").value+":"+document.getElementById("txtHeureReserv2").value;b=document.getElementById("txtNoteReserv").value;if(document.getElementById("txtFeteReserv").checked==true){j=1}else{j=0}document.getElementById("txtNomReserv_label").style.color="#000";document.getElementById("txtCourrielReserv_label").style.color="#000";document.getElementById("txtTelReserv_label").style.color="#000";document.getElementById("txtDateReserv_label").style.color="#000";var D=/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/;var G=/^[a-z\s]+$/i;var A=/^\(?(\d{3})\)?[- .]?(\d{3})[- .]?(\d{4})$/;var F=true;f("#reserv-erreur").removeClass("reserv-erreur");var E=f("#reserv-erreur>ul");E.empty();function C(I){E.append("<li>"+I+"</li>")}if(G.exec(y)==null){document.getElementById("txtNomReserv_label").style.color="#e53434";C("Le nom est obligatoire et doit contenir que des lettres");F=false}if(A.exec(t)==null){document.getElementById("txtTelReserv_label").style.color="#e53434";C("Le numéro de téléphone est obligatoire et doit être de la forme 514-444-4444");F=false}if(w==""){document.getElementById("txtDateReserv_label").style.color="#e53434";C("Veuillez choisir une date à l'aide du calendrier");F=false}if(D.exec(h)==null){document.getElementById("txtCourrielReserv_label").style.color="#e53434";C("Le courriel que vous avez entré n'est pas valide");F=false}if(F){var B=document.getElementById("reserv-envoyer");B.onclick="";B.className="";B.src="./images/ajax-loader.gif";try{f.post(p,"refresh=reserv&enr_name="+y+"&enr_tel="+t+"&enr_people="+d+"&enr_mail="+h+"&enr_date="+w+"&enr_hour="+g+"&enr_note="+b+"&enr_fete="+j,n)}catch(H){alert(H)}}else{f("#reserv-erreur").addClass("reserv-erreur")}}function n(){var A="#5cb170";try{f.post(k,"enr_mail="+h+"&enr_name="+y+"&enr_people="+d+"&enr_tel="+t+"&enr_date="+w+"&enr_hour="+g+"&enr_fete="+j)}catch(B){alert(B)}f("#reserv-etape-1").css({backgroundColor:f("#reserv-etape-2").css("background-color"),color:A});f("#reserv-etape-2").css({backgroundColor:"#FFF"});f("#reserv-etape-1>.circle30").css({backgroundColor:A});Cufon.replace("#reserv-etape-1 h5",{color:A});document.getElementById("info_confirm_date").innerHTML=w;document.getElementById("info_confirm_name").innerHTML=y;document.getElementById("info_confirm_mail").innerHTML=h;document.getElementById("info_confirm_heure").innerHTML=g;document.getElementById("info_confirm_tel").innerHTML=t;document.getElementById("info_confirm_people").innerHTML=d;if(b==""){document.getElementById("info_confirm_note").innerHTML="Aucune note"}else{document.getElementById("info_confirm_note").innerHTML=b}if(j==1){document.getElementById("info_confirm_fete").innerHTML="Anniversaire"}f("#divTableReserv").fadeOut(500,function(){f("#confirmation").fadeIn(500)})}function u(){if(a=="hidden"){document.getElementById("datepicker").style.display="block";a="visible"}else{c();a="hidden"}}function c(){document.getElementById("datepicker").style.display="none"}function o(){try{f("#datepicker").datepicker({dayNamesMin:["Di","Lu","Ma","Me","Je","Ve","Sa"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dateFormat:"yy-mm-dd",autoSize:true,minDate:"+1",onSelect:function(C,B){document.getElementById("txtDateReserv").value=C;document.getElementById("datepicker").style.display="none";a="hidden"},beforeShowDay:jQuery.datepicker.noWeekends})}catch(A){}}function l(){f("#confirmation").hide(300);z();s=true}function r(){var C=f("input.input_sendmail").serializeArray();var D=false;var A="";for(var B=0;B<C.length;B++){if(C[B].value!=""){D=true;A+=","+C[B].value}}if(D){A=A.substring(1,A.length);f("#contain_mails").html("<div class='confirm_mails'><img src='./images/ajax-loader.gif' /></div>");f.post(k,"mail="+A+"&enr_mail="+h+"&enr_name="+y+"&enr_people="+d+"&enr_tel="+t+"&enr_date="+w+"&enr_hour="+g+"&enr_fete="+j,l)}}var m=5;function e(){var C=f("input.input_sendmail").serializeArray();var D=new Array(C.length);D.push("");for(var B=C.length-1;B>=0;B--){D.push(C[B].value)}var A=document.getElementById("contain_mails");m++;f("#confirm_droite").animate({height:425+(m-5)*35+"px"},"slow");A.innerHTML+="<div class='backwhite_mail'><label for='txtMail"+m+"'>#"+m+"</label><input type='text' class='input_sendmail' name='txtMail"+m+"' id='txtMail"+m+"' value=''/><div class='ligne2'></div></div>";f("input.input_sendmail").each(function(){this.value=D.pop()})}if(typeof window.toggle_reservation!=="function"){window.toggle_reservation=z}if(typeof window.save_reserv!=="function"){window.save_reserv=v}if(typeof window.show_datepicker!=="function"){window.show_datepicker=u}if(typeof window.sendMails!=="function"){window.sendMails=r}if(typeof window.addMail!=="function"){window.addMail=e}f(function(){o();f("#left-panel-close>a").click(function(A){z();A.preventDefault()});f("#menu_reservation").click(z)})})(jQuery);
//news.js
function eval2(s){return eval(s)}(function(){var o="./utile/ajax_request_hercules.php",a=0,e=[],j=11,p=1,v=1,d="close",b="",r="Tous",n=undefined,f=1300;function i(w){return k(e[w].fr_title)}function k(x){var w=35;if(x.length>w){x=x.substring(0,w)+" [&hellip;]"}return x}if(typeof window.shortenTitles!=="function"){window.shortenTitles=function(){$("div.containnews_text h5 a").each(function(){var x=$(this);var w=k(x.attr("title"));if(w&&w!=""&&w!=x.text()){x.html(w);Cufon.replace(x)}})}}function h(){$("div.containnews_text h5 a").each(function(){var x=$(this);var w=x.attr("title");if(w&&w!=""&&w!=x.text()){x.html(w);Cufon.replace(x)}})}function c(w){return w.replaceAll(" ","-").replaceAll("'","")}function u(w){return $("a[href='#!/blogue/"+unescape(w)+"']:eq(0)")}function m(w){return u(w).closest(".contenu_news").next("div.content_news")}if(typeof window.hideContenuNews!=="function"){window.hideContenuNews=function(x,w){if(!x||x===""){x=b}m(x).slideUp(f,function(){$(this).find("div").empty()});if(!w){b=""}document.title="Pizza Stromboli"}}if(typeof window.news_hash!=="function"){window.news_hash=function(w){document.location.hash="#!/blogue/tag/"+w}}function t(B){try{q();var E="";for(var A=(p-1)*j;A<p*j&&A<e.length;A++){var y="#FFFFFF",x="#000000",w="#000000";switch(e[A].category.accentFree()){case"promo":y="#fdee21";x="#b4a917";w="#d8cb13";break;case"presse":y="#22a7e0";x="#18779f";w="#0e4e69";break;case"evenements":y="#f78320";x="#aa5b17";w="#60330c";break;case"nouvelle":y="#02a64f";x="#017638";w="#005027";break;case"divers":y="#9fcc3d";x="#71912b";w="#4b6119";break;case"communique":y="#cc3da5";x="#9e3080";w="#611b4f";break}var D=e[A].fr_title;if($("#news").width()<l){D=i(A)}var z="#!/blogue/"+(c(e[A].fr_title));E+="<div class='contenu_news'>";E+="<div class='containnews_text'><h5><a class='news_text mini-box' href='"+z+"' title=\""+e[A].fr_title+'">'+D+"</a></h5>";E+="</div>";E+="<div class='containinfos_supp_news'>";E+="<a class='infos_supp_news info_supp_line mini-box-r' style='background-color:"+y+";' href='"+z+"'>"+e[A].category+"</a>";E+="</div>";E+="<div class='containinfos_supp_news2'>";E+="<a class='infos_supp_news mini-box-r' style='background-color:"+x+";color:#fff;padding-top:2px;height:22px;line-height:9px;line-spacing:0;' href='"+z+"'>"+e[A].mois+" <br/><span style='font-size:9pt;font-weight:bold;'>"+e[A].jour+"</span></a>";E+="</div>";E+="<div class='containinfos_supp_news3'>";E+="<a class='infos_supp_news info_supp_line mini-box-r' style='background-color:"+w+";color:#fff;font-size:8pt;font-weight:bold;' href='"+z+"'>"+e[A].annee+"</a>";E+="</div>";E+="</div>";E+="<div class='content_news box'><div style='padding:35px 15px 32px 5px'></div></div>"}$("#contenu_global_news").html(E);Cufon.replace("h5")}catch(C){alert(C)}if(typeof B==="function"){B()}}if(typeof window.getNews!=="function"){window.getNews=function(w){if(n){n.abord()}n=$.ajax({type:"POST",url:o,data:"event=getAllNews",success:function(x){if(typeof w==="function"){w()}if(!x||x==="none"){q()}else{e=eval2("("+x+")");t()}n=undefined}})}}function s(w){p=1;n=undefined;if(!w||w=="none"){e=[];q();$("#contenu_global_news").html("Aucun article n'a &eacute;t&eacute; trouv&eacute;");$("#contenu_global_news").animate({height:20},500,Home.hideLoad)}else{e=eval2("("+w+")");t(function(){Home.hideLoad();$("#contenu_global_news").show(0);var x;if(j>e.length){x=e.length*27}else{x=j*27}$("#contenu_global_news").animate({height:x+"px"},x*10,function(){$("#contenu_global_news").css("height","auto")})})}}if(typeof window.news_order!=="function"){window.news_order=function(x){var w;switch(x){case"Presse":w=2;break;case"Promo":w=3;break;case"Nouvelle":w=4;break;case"Evenements":w=6;break;case"Communique":w=7;break;case"Divers":w=5;break;default:w=1}if(r!=x){Home.showLoad();if(w!=null){$("#select_"+w).attr("src",$("#select_"+w).attr("src").replace("_uns.png",".png"));$("#select_"+v).attr("src",$("#select_"+v).attr("src").replace(".png","_uns.png"));v=w}r=x;$("#contenu_global_news").animate({height:0},500,function(){$("#contenu_global_news").hide(0);if(n){n.abord()}n=$.ajax({type:"POST",url:o,data:"event=getAllNews&order="+x,success:s})})}}}function q(){$("#menu_pager>ul").empty();$("#menu_pager-next, #menu_pager-prev").removeAttr("href");function y(A){var x="";if(A===p){x=' class="active"'}$("#menu_pager>ul").append('<li><a href="#!/blogue/page/'+A+'"'+x+">"+A+"</a><li>")}if(!e||j>e.length){y(1)}else{var z=Math.ceil(e.length/j);for(var w=0;w<z;w++){y(w+1)}if(p-1>0){$("#menu_pager-prev").attr("href","#!/blogue/page/"+(p-1))}if(p+1<=z){$("#menu_pager-next").attr("href","#!/blogue/page/"+(p+1))}}}if(typeof window.news_goto!=="function"){window.news_goto=function(w){if(!w||w<1){w=1}p=w;if(!n){t()}}}var l=867;if(typeof window.news_open!=="function"){window.news_open=function(w){if($("#news").width()<l){$("#news").animate({width:l,left:135,top:20},1000,function(){h();$("#news").css("background-color","#000");if(w){g(w)}})}else{if(w){g(w)}}}}function g(y){if(y&&b!=y){var F,w=m(y).find("div"),B={allowScriptAccess:"always",wmode:"transparent"},D='<div class="news-bulle"></div>';for(F=0;F<e.length;F++){var z=e[F];if(c(z.fr_title)===y){w.append('<div class="news-ligne"></div>');if(z.video_vimeo!==""){w.append('<div class="news-vimeo"><div id="news-vimeo-player"></div></div>');var A=z.video_vimeo.replaceAll("http://vimeo.com/","");A="http://vimeo.com/moogaloop.swf?clip_id="+A+"&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1";var E={id:"news-vimeo-player"};swfobject.embedSWF(A,E.id,"640","361","8",null,null,B,E);if(z.desc_vimeo&&z.desc_vimeo!=""){w.find(".news-vimeo").append('<div class="news-vimeo-text">'+D+z.desc_vimeo+"</div>");Cufon.replace("div.news-vimeo-text")}}if(z.video_youtube!==""){w.append('<div class="news-youtube"><div id="news-youtube-player"></div></div>');var E={id:"news-youtube-player"};var G=z.video_youtube.split("=",2)[1];swfobject.embedSWF("http://www.youtube.com/v/"+G+"?enablejsapi=1",E.id,"640","361","8",null,null,B,E);if(z.desc_youtube&&z.desc_youtube!=""){w.find(".news-youtube").append('<div class="news-youtube-text">'+D+z.desc_youtube+"</div>");Cufon.replace("div.news-youtube-text")}}if(z.image1!==""){w.append('<div class="news-photos"><div id="news-photos-player"><ul></ul></div></div>');var H=w.find("#news-photos-player>ul");function C(x,K){if(x&&x!==""){var J='<img src="'+x+'" alt="" />';var I="";if(K&&K!==""){I='<a href="'+K+'" target="_blank">'+J+"</a>"}else{I=J}H.append("<li>"+I+"</li>")}}C(z.image1,z.file);C(z.image2,z.file);C(z.image3,z.file);if(z.desc_images&&z.desc_images!=""){w.find(".news-photos").append('<div class="news-photos-text">'+D+z.desc_images+"</div>");Cufon.replace("div.news-photos-text")}}w.append('<div class="news-text"><h4></h4><iframe src="http://www.facebook.com/widgets/like.php?locale=fr_FR&href=http://www.restaurantstromboli.com/utile/facebook.php?href=!/blogue/'+y+escape("&")+"titre="+z.fr_title+'" scrolling="no" frameborder="0" style="border:none; width:450px; height:30px"><div></div></iframe><div></div></div>');w.find(".news-text>div").html(z.fr_content);w.find(".news-text>h4").html(z.fr_title2);Cufon.replace(".news-text>h4");w.append('<a class="news-fermer" href="#!/blogue/"></a>');w.find("a.news-fermer").click(function(x){hideContenuNews()});document.title=z.fr_title;F=e.length}}$("html,body").animate({scrollTop:0},600);if(b!=""){hideContenuNews(undefined,true)}b=y;w=w.parent();w.css({height:"auto"});w.slideDown(f,function(){var x={auto:true,speed:800,pause:6000,continuous:true,prevId:"divleftarrow",nextId:"divrightarrow",controlsShow:false,controlsFade:false,offsetWidth:0};if($("#news-photos-player>ul>li").length>1){$("#news-photos-player").easySlider(x)}})}else{hideContenuNews()}}})();
//newsletter.js
(function(){var f="./utile/ajax_request.php";var b=false;function d(l){if(!b){var h=document.getElementById("txtCourriel").value;var j=/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/;if(j.exec(h)==null){alert("Le courriel est invalide");return false}b=true;var k=$("#global_send_mail");k.html("<div class='confirm_mails'><img src='./images/ajax-loader.gif'/></div>");try{$.post(f,"refresh=savemail&mail="+h,function(g){k.text(g)})}catch(i){alert(i)}}l.preventDefault();return false}function a(){$("#send_mail_change").empty();$("#send_mail_change2").show(0);$("#send_mail_change2").html("<b><a href='#'>Envoyer!</a></b>");$("#send_mail_change2 a").click(d)}function c(){setTimeout(e,500)}function e(){if(!b){$("#send_mail_change2").hide(0);$("#send_mail_change2").empty();$("#send_mail_change").html("Votre courriel : ")}}if(typeof window.initNewsLetter!=="function"){window.initNewsLetter=function(){$("#txtCourriel").live("focus",a);$("#txtCourriel").live("blur",c);$("#send_mail_change").live("click",a);$("#send_mail_change2").hide(0)}}$(window.initNewsLetter)})();
//contact.js
(function(g){var b={};var e="./utile/sendmails.php?send=comm";function h(){b.enr_name=document.getElementById("txtNomContact").value;b.enr_mail=document.getElementById("txtCourrielContact").value;b.enr_note=document.getElementById("txtNoteContact").value;b.enr_propos=g("#contact-form-haut div.selected>h5").text();document.getElementById("txtNomContact_label").style.color="#fff";document.getElementById("txtCourrielContact_label").style.color="#fff";document.getElementById("txtNoteContact_label").style.color="#fff";var k=/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/;var n=/^[a-z\s]+$/i;var m=true;g("#contact-erreur").removeClass("contact-erreur");var l=g("#contact-erreur>ul");l.empty();function j(p){l.append("<li>"+p+"</li>")}if(n.exec(b.enr_name)==null){document.getElementById("txtNomContact_label").style.color="#e53434";j("Le nom est obligatoire et doit contenir que des lettres");m=false}if(b.enr_note==""){document.getElementById("txtNoteContact_label").style.color="#e53434";j("Veuillez &eacute;crire un commentaire");m=false}if(k.exec(b.enr_mail)==null){document.getElementById("txtCourrielContact_label").style.color="#e53434";j("Le courriel que vous avez entr&eacute; n'est pas valide");m=false}if(m){var i=document.getElementById("contact-envoyer");i.onclick="";i.className="";i.src="./images/ajax-loader.gif";try{g.post(e,"json="+JSON.stringify(b),f)}catch(o){alert(o)}}else{g("#contact-erreur").addClass("contact-erreur")}}function f(){c();document.getElementById("contact-infos-name").innerHTML=b.enr_name;document.getElementById("contact-infos-mail").innerHTML=b.enr_mail;document.getElementById("contact-infos-note").innerHTML=b.enr_note;g("#contact-form").fadeOut(500,function(){g("#contact-confirmation").fadeIn(500)})}function a(){g("#contact-etape-1.selected, #contact-etape-2.selected").removeClass("selected");g(this).addClass("selected")}function d(){Cufon.replace("h2, h3, h5");g("#contact-etape-1, #contact-etape-2").click(a);setTimeout(function(){g("#sigle0").attr("src","/images/b_tcollectif.jpg")},500)}function c(){var i=g("#contact-etape-1, #contact-etape-2");i.unbind("click");i.removeClass("mouseOver")}if(!window.Contact){window.Contact={}}if(typeof Contact.send!=="function"){Contact.send=h}if(typeof Contact.register!=="function"){Contact.register=d}g(function(){var i=g("#commentaires");i.click(function(){window.location.hash="!/sections/contact.php"});i.hover(function(){g("#commentaires_title").attr("src","./images/t_commentaires_w.png");g("#commentaires").stop().animate({backgroundColor:"#fff"},400)},function(){g("#commentaires").stop().animate({backgroundColor:"#000"},200);g("#commentaires_title").attr("src","./images/t_commentaires.png")})})})(jQuery);
//poppromo.js
(function(c){var b={titleShow:false,transitionIn:"fade",transitionOut:"fade",autoScale:true,centerOnScroll:true,overlayColor:"#000",overlayOpacity:0.8,showNavArrows:false,href:PopPromo};function a(){if(b.href){c.fancybox(b)}}function d(){c(window).load(a)}c(d)})(jQuery);
