$(document).ready(function(){tooltip();faviconize();watermark();bookmark();$(".date").mask("99/99/9999");$(".phone").mask("99 99 99 99 99");$(".restrict").each(function(){var a=$(this);a.click(function(d){d.preventDefault();if($.browser.msie&&$.browser.version=="6.0")confirm("Si vous changez de restaurant votre panier actuel sera vid\u00e9. \n \u00cates-vous s\u00fbr de vouloir continuer ?")&&window.location.replace(a.attr("href"));else jConfirmAlt("<p>Si vous changez de restaurant votre panier actuel sera vid\u00e9.<p>Souhaitez vous ?</p>",
"Attention !",function(c){c&&window.location.replace(a.attr("href"))})})});$(".changehoraire").each(function(){var a=$(this);a.click(function(d){d.preventDefault();if($.browser.msie&&$.browser.version=="6.0")confirm("Le restaurant demand\u00e9 ne peut plus vous livrer dans les d\u00e9lais que vous avez demand\u00e9\nVous allez \u00eatre redirig\u00e9 vers le choix d'un autre  restaurant")&&window.location.replace(a.attr("href"));else inform("<p>Le restaurant demand\u00e9 ne peut plus vous livrer dans les d\u00e9lais que vous avez demand\u00e9<p>Vous allez \u00eatre redirig\u00e9 vers le choix d'un autre  restaurant</p>",
"Attention !",function(c){c&&window.location.replace(a.attr("href"))})})});$(".deleteadr").each(function(){var a=$(this);a.click(function(d){d.preventDefault();if($.browser.msie&&$.browser.version=="6.0"){if(confirm("Cette adresse va \u00eatre supprim\u00e9. \n \u00cates-vous s\u00fbr de vouloir continuer ?")){d="ID="+a.next(".deleteid").attr("value");loadData("GET","/Services/AjaxWebService.svc/delAdrLiv",d,function(){},function(){a.closest("tr").slideUp("normal",function(){$(this).remove()})})}}else jConfirm("<p>Cette adresse va \u00eatre supprim\u00e9.</p><p>Etes-vous s\u00fbr de vouloir continuer ?</p>",
"Attention !",function(){var c="ID="+a.next(".deleteid").attr("value");loadData("GET","/Services/AjaxWebService.svc/delAdrLiv",c,function(){},function(){a.closest("tr").slideUp("normal",function(){$(this).remove()})})})})});$("a.anchor").anchorAnimate();$(".indispo").css("opacity",0.7)});function loadData(a,d,c,b,f){$.ajax({type:a,contentType:"application/json; charset=utf-8",dataType:"json",url:root!="/"?root+d:d,data:c,beforeSend:b,success:f})}
$(function(){$(".t").each(function(){var a=$(this),d=a.next(".p");d.hide();a.toggle(function(){a.addClass("active");d.slideDown("slow").fadeIn("fast")},function(){a.removeClass("active");d.slideUp("slow").fadeOut("fast")})})});this.watermark=function(){swapValues=[];$(".watermark").each(function(a){swapValues[a]=$(this).val();$(this).focus(function(){$(this).val()==swapValues[a]&&$(this).val("")}).blur(function(){$.trim($(this).val())==""&&$(this).val(swapValues[a])})})};
jQuery.fn.anchorAnimate=function(a){a=jQuery.extend({speed:1100},a);return this.each(function(){var d=this;$(d).click(function(c){c.preventDefault();var b=$(d).attr("href");c=$(b).offset().top;$("html:not(:animated),body:not(:animated)").animate({scrollTop:c},a.speed,function(){window.location.hash=b});return false})})};
var images=["/images/slideshow/01.jpg","/images/slideshow/02.jpg","/images/slideshow/03.jpg","/images/slideshow/04.jpg","/images/slideshow/05.jpg","/images/slideshow/06.jpg","/images/slideshow/07.jpg","/images/slideshow/08.jpg","/images/slideshow/09.jpg","/images/slideshow/10.jpg"],active=0,smode=$("#slideshow-mode"),mode=smode.length>0?smode.attr("value"):"",sdelai=$("#slideshow-delai"),delai=sdelai.length>0?sdelai.attr("value")>7E3?sdelai.attr("value"):7E3:7E3;
function slide(){var a=$(".slideshow"),d=a.find("img");if(a.length>0&&d.length>0){switch(mode){case "fade":d.fadeTo("fast",0,function(){d.attr("src",images[active]).fadeTo("normal",1)});break;case "":d.attr("src",images[active]);break}active=active+1==images.length?0:active+1}}$(function(){setInterval("slide()",delai)});
function slideSwitch(){var a=$(".slideshow-light div.active");if(a.length==0)a=$(".slideshow-light div:last");var d=a.next().length?a.next():$(".slideshow-light div:first");a.addClass("last-active");d.css({opacity:0}).addClass("active").animate({opacity:1},1E3,function(){a.removeClass("active last-active")})}$(function(){setInterval("slideSwitch()",4E3)});
this.faviconize=function(){this.xOffset=-50;this.yOffset=-80;$(".fav-on").unbind("click").click(function(a){$("#iPanel").is(":visible")&&cancelAction();this.t=this.title;this.title="";this.top=a.pageY+yOffset;this.left=a.pageX+xOffset;$("body").append('<div id="iPanel"><label id="iPanel-label" for="iPanel-input">J\'ajoute cette commande \u00e0 mes favoris et je lui donne un nom :</label><input id="iPanel-input" type="text" value="Ex: sushi pour 4" class="watermark" /><input type="button" value="annuler" id="iPanel-cancel" onclick="cancelAction();" /><input type="button" value="valider" id="iPanel-cancel" onclick="sendActionOn(\''+
this.id+"');\" /></div>");$("div#iPanel").css("top",this.top+"px").css("left",this.left+"px").css("opacity","0.9").fadeIn("slow");watermark();return false});$(".fav-off").unbind("click").click(function(a){$("#iPanel").is(":visible")&&cancelAction();this.top=a.pageY+yOffset;this.left=a.pageX+xOffset;$("body").append('<div id="iPanel"><label id="iPanel-label" for="favoritename">Souhaitez vous retirer cette commande de vos favoris ?</label><input type="button" value="annuler" id="iPanel-cancel" onclick="cancelAction();" /><input type="button" value="valider" id="iPanel-cancel" onclick="sendActionOff(\''+
this.id+"');\" /></div>");$("div#iPanel").css("top",this.top+"px").css("left",this.left+"px").css("opacity","0.9").fadeIn("normal");return false})};function cancelAction(){$("div#iPanel").fadeOut("normal",function(){$(this).remove()});tooltip();faviconize();watermark()}
function sendActionOn(a){var d=$("#iPanel-input").val();loadData("GET","/Services/AjaxWebService.svc/addOrderToFav","id="+a+"&name="+d,function c(){$("#iPanel").empty().append('<label id="iPanel-label">chargement en cours...</label>')},function c(b){$("#iPanel").empty().append('<label id="iPanel-label">Cette commande a \u00e9t\u00e9 ajout\u00e9 \u00e0 vos favoris</label>');$("#"+a).attr("class","fav-off tooltip").attr("title",d);$("#"+a).find("img").attr("src",$("#"+a).find("img").attr("src").replace("-gris.gif",
".gif"));setTimeout("cancelAction();",1E3)})}function sendActionOff(a){loadData("GET","/Services/AjaxWebService.svc/remOrderToFav","id="+a,function d(c){$("#iPanel").empty().append('<label id="iPanel-label">Cette commande a \u00e9t\u00e9 supprim\u00e9 de vos favoris</label>');$("#"+a).attr("class","fav-on").removeAttr("title");$("#"+a).find("img").attr("src",$("#"+a).find("img").attr("src").replace(".gif","-gris.gif"));setTimeout("cancelAction();",1E3)})}
(function(a){var d=(a.browser.msie?"paste":"input")+".mask",c=window.orientation!=undefined;a.mask={definitions:{"9":"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"}};a.fn.extend({caret:function(b,f){if(this.length!=0)if(typeof b=="number"){f=typeof f=="number"?f:b;return this.each(function(){if(this.setSelectionRange){this.focus();this.setSelectionRange(b,f)}else if(this.createTextRange){var h=this.createTextRange();h.collapse(true);h.moveEnd("character",f);h.moveStart("character",b);h.select()}})}else{if(this[0].setSelectionRange){b=
this[0].selectionStart;f=this[0].selectionEnd}else if(document.selection&&document.selection.createRange){var i=document.selection.createRange();b=0-i.duplicate().moveStart("character",-100000);f=b+i.text.length}return{begin:b,end:f}}},unmask:function(){return this.trigger("unmask")},mask:function(b,f){if(!b&&this.length>0){var i=a(this[0]),h=i.data("tests");return a.map(i.data("buffer"),function(p,q){return h[q]?p:null}).join("")}f=a.extend({placeholder:"_",completed:null},f);var j=a.mask.definitions;
h=[];var r=b.length,u=null,o=b.length;a.each(b.split(""),function(p,q){if(q=="?"){o--;r=p}else if(j[q]){h.push(new RegExp(j[q]));if(u==null)u=h.length-1}else h.push(null)});return this.each(function(){function p(e){for(;++e<=o&&!h[e];);return e}function q(e){for(;!h[e]&&--e>=0;);for(var g=e;g<o;g++)if(h[g]){n[g]=f.placeholder;var l=p(g);if(l<o&&h[g].test(n[l]))n[g]=n[l];else break}v();k.caret(Math.max(u,e))}function A(e){e=e;for(var g=f.placeholder;e<o;e++)if(h[e]){var l=p(e),m=n[e];n[e]=g;if(l<o&&
h[l].test(m))g=m;else break}}function B(e){var g=a(this).caret();e=e.keyCode;w=e<16||e>16&&e<32||e>32&&e<41;if(g.begin-g.end!=0&&(!w||e==8||e==46))y(g.begin,g.end);if(e==8||e==46||c&&e==127){q(g.begin+(e==46?0:-1));return false}else if(e==27){k.val(x);k.caret(0,s());return false}}function C(e){if(w){w=false;return e.keyCode==8?false:null}e=e||window.event;var g=e.charCode||e.keyCode||e.which,l=a(this).caret();if(e.ctrlKey||e.altKey||e.metaKey)return true;else if(g>=32&&g<=125||g>186){e=p(l.begin-
1);if(e<o){g=String.fromCharCode(g);if(h[e].test(g)){A(e);n[e]=g;v();g=p(e);a(this).caret(g);f.completed&&g==o&&f.completed.call(k)}}}return false}function y(e,g){for(e=e;e<g&&e<o;e++)if(h[e])n[e]=f.placeholder}function v(){return k.val(n.join("")).val()}function s(e){for(var g=k.val(),l=-1,m=0,t=0;m<o;m++)if(h[m]){for(n[m]=f.placeholder;t++<g.length;){var z=g.charAt(t-1);if(h[m].test(z)){n[m]=z;l=m;break}}if(t>g.length)break}else if(n[m]==g[t]&&m!=r){t++;l=m}if(!e&&l+1<r){k.val("");y(0,o)}else if(e||
l+1>=r){v();e||k.val(k.val().substring(0,l+1))}return r?m:u}var k=a(this),n=a.map(b.split(""),function(e){if(e!="?")return j[e]?f.placeholder:e}),w=false,x=k.val();k.data("buffer",n).data("tests",h);k.attr("readonly")||k.one("unmask",function(){k.unbind(".mask").removeData("buffer").removeData("tests")}).bind("focus.mask",function(){x=k.val();var e=s();v();setTimeout(function(){e==b.length?k.caret(0,e):k.caret(e)},0)}).bind("blur.mask",function(){s();k.val()!=x&&k.change()}).bind("keydown.mask",B).bind("keypress.mask",
C).bind(d,function(){setTimeout(function(){k.caret(s(true))},0)});s()})}})})(jQuery);
$(function(){var a={UP:38,DOWN:40,DEL:46,RETURN:13,ESC:27,BACKSPACE:8,TAB:9},d;$(".autocomplete").each(function(){var c=$(this),b=c.next($(".results")).length>0?c.next($(".results")):c.parent().next($(".results"));c.attr("autocomplete","off");c.keyup(function(f){switch(f.charCode?f.charCode:f.keyCode?f.keyCode:0){case a.ESC:b.fadeOut("fast");c.val(b.find(".item:first").text());break;case a.BACKSPACE:if(c.val().length>1)b.find(".default").hide();else{b.find(".item").remove();b.find(".default").show()}b.find(".alt").hide();
break;case a.UP:b.find(".hover").length!=0&&b.find(".hover").removeClass("hover").prev("li").addClass("hover");break;case a.DOWN:b.find(".hover").length!=0?b.find(".hover").removeClass("hover").next("li").addClass("hover"):b.find(".item:first").addClass("hover");break;default:if(c.val().length>=2){f=c.val();f="canal="+$("#canal").val()+"&keyword="+f;d&&d.abort();d=$.ajax({type:"GET",contentType:"application/json; charset=utf-8",dataType:"json",url:root!="/"?root+"/Services/AjaxWebService.svc/getVilles":
"/Services/AjaxWebService.svc/getVilles",data:f,success:function(i){if(i){b.find(".item").remove();result=eval("("+i.d+")");if(result!=null)for(i=0;i<25;i++){var h=result[i];if(h!=null){h=$("<li class='item' id='"+h.UidVille+"'>"+h.NomClean+" <span>"+h.CodePostal+"</span></li>");b.append(h)}}b.find(".alt").hide();b.find(".default").hide();b.find(".item").each(function(j){var r=result[j].NomClean+" "+result[j].CodePostal;$(this).click(function(){c.val(r);b.fadeOut("fast")}).mouseenter(function(){$(this).addClass("hover")}).mouseleave(function(){$(this).removeClass("hover")})});
result!=null&&result.length==0&&b.find(".alt").show();b.fadeIn("fast")}}})}else{b.find(".alt").hide();b.fadeIn("fast");b.find(".item").remove();b.find(".default").show().each(function(){$(this).hasClass("static")||$(this).click(function(){c.val($(this).text());b.hide()}).mouseenter(function(){$(this).addClass("hover")}).mouseleave(function(){$(this).removeClass("hover")})})}break}}).keydown(function(f){var i=f.charCode?f.charCode:f.keyCode?f.keyCode:0;if(i==a.TAB)$(b.find(".hover")).length==0&c.val().length>=
2?c.val(b.find(".item:first").text()):c.val(b.find(".hover:first").text());if(i==a.RETURN)if($(b.find(".hover")).length==0&c.val().length>=2){c.val(b.find(".item:first").text());if(c.hasClass("modal")){f="ID="+b.find(".item:first").attr("id")+"&c="+$("#canal").val();loadData("GET","/Services/AjaxWebService.svc/getUrl",f,function(){},function(h){parent.location=h.d})}else if(c.hasClass("inline")&&!c.hasClass("modal")){f.preventDefault();return false}else b.next($(".dftButton")).click()}else{c.val(b.find(".hover:first").text());
return false}}).focus(function(){b.fadeIn("fast");b.find(".default").each(function(){$(this).hasClass("static")||$(this).click(function(){c.val($(this).text());b.fadeOut("fast")}).mouseenter(function(){$(this).addClass("hover")}).mouseleave(function(){$(this).removeClass("hover")})})}).blur(function(){b.fadeOut("fast")})})});
$(function(){$(".flip").each(function(){var a=$(this);a.hover(function(){a.find("img").animate({top:"-10px"},200).animate({top:"-4px"},200).animate({top:"-7px"},100).animate({top:"-4px"},100).animate({top:"-6px"},100).animate({top:"-4px"},100)})})});
(function(a){a.alerts={verticalOffset:-75,horizontalOffset:0,repositionOnResize:true,overlayOpacity:0.4,overlayColor:"#fff",okButton:"Oui",cancelButton:"Non",dialogClass:null,alert:function(d,c,b,f){if(b==null)b="Alert";a.alerts._show(b,c,null,d,function(i){f&&f(i)})},confirm:function(d,c,b){if(c==null)c="Confirm";a.alerts._show(c,d,null,"confirm",function(f){b&&b(f)})},confirmAlt:function(d,c,b){if(c==null)c="Confirm";a.alerts._show(c,d,null,"confirmAlt",function(f){b&&b(f)})},inform:function(d,
c,b){if(c==null)c="Confirm";a.alerts._show(c,d,null,"inform",function(f){b&&b(f)})},prompt:function(d,c,b,f){if(b==null)b="Prompt";a.alerts._show(b,d,c,"prompt",function(i){f&&f(i)})},_show:function(d,c,b,f,i){a.alerts._hide();a.alerts._overlay("show");a("body").append('<div id="popup_container"><h4 id="popup_title"></h4><div id="popup_content"><div id="popup_message"></div></div></div>');a.alerts.dialogClass&&a("#popup_container").addClass(a.alerts.dialogClass);var h=a.browser.msie&&parseInt(a.browser.version)<=
6?"absolute":"fixed";a("#popup_container").css({position:h,zIndex:99999,padding:0,margin:0});a("#popup_title").text(d);a("#popup_content").addClass(f);a("#popup_message").text(c);a("#popup_message").html(a("#popup_message").text().replace(/\n/g,"<br />"));a("#popup_container").css({minWidth:a("#popup_container").outerWidth(),maxWidth:a("#popup_container").outerWidth()});a.alerts._reposition();a.alerts._maintainPosition(true);switch(f){case "info":case "warning":case "success":case "error":a("#popup_message").after('<div id="popup_panel"><a class="Button1-A" id="popup_ok"><span>'+
a.alerts.okButton+"</span></a></div>");a("#popup_ok").click(function(){a.alerts._hide();i(true)});a("#popup_ok").focus().keypress(function(j){if(j.keyCode==13||j.keyCode==27)a("#popup_ok").trigger("click")});break;case "confirm":a("#popup_message").after('<div id="popup_panel"><a id="popup_ok">'+a.alerts.okButton+'</a> <a id="popup_cancel">'+a.alerts.cancelButton+"</a></div>");a("#popup_ok").click(function(){a.alerts._hide();i&&i(true)});a("#popup_cancel").click(function(){a.alerts._hide()});a("#popup_ok").focus();
a("#popup_ok, #popup_cancel").keypress(function(j){j.keyCode==13&&a("#popup_ok").trigger("click");j.keyCode==27&&a("#popup_cancel").trigger("click")});break;case "confirmAlt":a("#popup_message").after('<div id="popup_panel"><a id="popup_ok_s">Changer de restaurant</a> <a id="popup_cancel_s">Retourner \u00e0 votre panier</a></div>');a("#popup_ok_s").click(function(){a.alerts._hide();i&&i(true)});a("#popup_cancel_s").click(function(){window.location=a("#return").attr("href");a.alerts._hide()});a("#popup_ok_s").focus();
a("#popup_ok_s, #popup_cancel_s").keypress(function(j){j.keyCode==13&&a("#popup_ok_s").trigger("click");j.keyCode==27&&a("#popup_cancel_s").trigger("click")});break;case "inform":a("#popup_message").after('<div id="popup_panel"><a id="popup_ok_s">Changer de restaurant</a></div>');a("#popup_ok_s").click(function(){a.alerts._hide();i&&i(true)});a("#popup_ok_s").focus();a("#popup_ok_s, #popup_cancel_s").keypress(function(j){j.keyCode==13&&a("#popup_ok_s").trigger("click");j.keyCode==27&&a("#popup_ok_s").trigger("click")});
break;case "prompt":a("#popup_message").append('<br /><input type="text" size="30" id="popup_prompt" />').after('<div id="popup_panel"><a id="popup_ok">'+a.alerts.okButton+'</a> <a id="popup_cancel">'+a.alerts.cancelButton+"</a></div>");a("#popup_prompt").width(a("#popup_message").width());a("#popup_ok").click(function(){var j=a("#popup_prompt").val();a.alerts._hide();i&&i(j)});a("#popup_cancel").click(function(){a.alerts._hide();i&&i(null)});a("#popup_prompt, #popup_ok, #popup_cancel").keypress(function(j){j.keyCode==
13&&a("#popup_ok").trigger("click");j.keyCode==27&&a("#popup_cancel").trigger("click")});b&&a("#popup_prompt").val(b);a("#popup_prompt").focus().select();break}},_hide:function(){a("#popup_container").remove();a.alerts._overlay("hide");a.alerts._maintainPosition(false)},_overlay:function(d){switch(d){case "show":a.alerts._overlay("hide");a("body").append('<div id="popup_overlay"></div>');a("#popup_overlay").css({position:"absolute",zIndex:99998,top:"0px",left:"0px",width:"100%",height:a(window).height()+
"px",opacity:a.alerts.overlayOpacity});break;case "hide":a("#popup_overlay").remove();break}},_reposition:function(){var d=a(window).height()/2-a("#popup_container").outerHeight()/2+a.alerts.verticalOffset,c=a(window).width()/2-a("#popup_container").outerWidth()/2+a.alerts.horizontalOffset;if(d<0)d=0;if(c<0)c=0;if(a.browser.msie&&parseInt(a.browser.version)<=6)d+=a(window).scrollTop();a("#popup_container").css({top:d+"px",left:c+"px"});a("#popup_overlay").height(a(document).height())},_maintainPosition:function(d){if(a.alerts.repositionOnResize)switch(d){case true:a(window).bind("resize",
function(){a.alerts._reposition()});break;case false:a(window).unbind("resize");break}}};jAlert=function(d,c,b,f){a.alerts.alert(d,c,b,f)};jConfirm=function(d,c,b){a.alerts.confirm(d,c,b)};jConfirmAlt=function(d,c,b){a.alerts.confirmAlt(d,c,b)};jPrompt=function(d,c,b,f){a.alerts.prompt(d,c,b,f)}})(jQuery);
(function(a){var d={width:620,height:620,overlayOpacity:0.45,id:"modal",src:function(c){return jQuery(c).attr("href")+"?i=1"},fadeInSpeed:400,fadeOutSpeed:500};a.modal=function(c){return _modal(this,c)};a.modal.open=function(){_modal.open()};a.modal.close=function(){_modal.close()};a.fn.modal=function(c){return _modal(this,c)};_modal=function(c,b){this.options={parent:null,overlayOpacity:null,id:null,content:null,width:null,height:null,modalClassName:null,imageClassName:null,closeClassName:null,overlayClassName:null,
src:null};this.options=a.extend({},options,_defaults);this.options=a.extend({},options,d);this.options=a.extend({},options,b);this.close=function(){jQuery("."+options.modalClassName+", ."+options.overlayClassName).fadeOut(d.fadeOutSpeed,function(){jQuery(this).unbind().remove()})};this.open=function(){options.src=typeof options.src=="function"?options.src(c):options.src||_defaults.src(c);var f="";f=/^.+\.((jpg)|(gif)|(jpeg)|(png)|(jpg))$/i.test(options.src)?'<div class="'+options.imageClassName+'"><img src="'+
options.src+'"/></div>':'<iframe width="'+options.width+'" height="'+options.height+'" frameborder="0" scrolling="no" allowtransparency="true" src="'+options.src+'"></iframe>';options.content=options.content||f;if(jQuery("."+options.modalClassName).length&&jQuery("."+options.overlayClassName).length)jQuery("."+options.modalClassName).html(options.content);else{$overlay=jQuery(_isIE6()?'<iframe src="BLOCKED SCRIPT\'<html></html>\';" scrolling="no" frameborder="0" class="'+options.overlayClassName+
'"></iframe><div class="'+options.overlayClassName+'"></div>':'<div class="'+options.overlayClassName+'"></div>');$overlay.hide().appendTo(options.parent);$modal=jQuery('<div id="'+options.id+'" class="'+options.modalClassName+'" style="width:'+options.width+"px; height:"+options.height+"px; margin-top:-"+options.height/2+"px; margin-left:-"+options.width/2+'px;">'+options.content+"</div>");$modal.hide().appendTo(options.parent);$close=jQuery('<a class="'+options.closeClassName+'"></a>');$close.appendTo($modal);
f=_getOpacity($overlay.not("iframe"))||options.overlayOpacity;$overlay.fadeTo(0,0).show().not("iframe").fadeTo(d.fadeInSpeed,f);$modal.fadeIn(d.fadeInSpeed);$close.click(function(){jQuery.modal().close()});$overlay.click(function(){jQuery.modal().close()})}};return this};_isIE6=function(){if(document.all&&document.getElementById)if(document.compatMode&&!window.XMLHttpRequest)return true;return false};_getOpacity=function(c){$sender=jQuery(c);opacity=$sender.css("opacity");filter=$sender.css("filter");
if(filter.indexOf("opacity=")>=0)return parseFloat(filter.match(/opacity=([^)]*)/)[1])/100;else if(opacity!="")return opacity;return""};_defaults={parent:"body",overlayOpacity:45,id:"modal",content:null,width:620,height:620,modalClassName:"modal-window",imageClassName:"modal-image",closeClassName:"close-window",overlayClassName:"modal-overlay",src:function(c){return jQuery(c).attr("href")}}})(jQuery);
function jsSelectedVille(a,d){a="ID="+a+"&c="+$("#canal").val();loadData("GET","/Services/AjaxWebService.svc/getUrl",a,function c(){},function c(b){parent.location=b.d})}function jsRollOverVille(a){}function jsRollOutVille(a){}function jsSelectedResto(a){}function jsRollOverResto(a){}function jsRollOutResto(a){}
this.tooltip=function(){this.xOffsetTip=-10;this.yOffsetTip=10;$(".tooltip").unbind().hover(function(a){this.t=this.title;this.title="";this.top=a.pageY+yOffsetTip;this.left=a.pageX+xOffsetTip;if(this.t!=""){$("body").append('<p id="tooltip">'+this.t+"</p>");$("p#tooltip").css("top",this.top+"px").css("left",this.left+"px").css("opacity","0.9").fadeIn("slow")}},function(){this.title=this.t;$("p#tooltip").fadeOut("fast").remove()}).mousemove(function(a){this.top=a.pageY+yOffsetTip;this.left=a.pageX+
xOffsetTip;$("p#tooltip").css("top",this.top+"px").css("left",this.left+"px")})};this.bookmark=function(){$('a[rel="bookmark"]').click(function(a){a.preventDefault();a=this.href;var d=this.title;if(window.sidebar)window.sidebar.addPanel(d,a,"");else if(window.external)window.external.AddFavorite(a,d);else if(window.opera)this.rel="sidebar"})};

