$(document).ready(function(){var d="../../UsersActing/Movie/ActingMovie.aspx/",r="/api/sn/",l="/api/log/";function i(e,t,a,i){""==e?$("#myModal .modal-header").css("display","none"):($("#myModal .modal-header").css("display","block"),$("#myModal .modal-header")[0].innerHTML=''+e),$("#myModal .modal-body")[0].innerHTML=t,""==a?$("#myModal .modal-footer").css("display","none"):($("#myModal .modal-footer").css("display","block"),$("#myModal .modal-footer")[0].innerHTML=a),$("#myModal .modal-dialog").removeClass("modal-lg"),$("#myModal .modal-dialog").removeClass("modal-sm"),$("#myModal .modal-dialog").addClass(i),$("#myModal").modal({backdrop:"static",keyboard:!1})}function n(){$("#myModal").modal("toggle")}function p(e,t,a){var i='";$("#alert_placeholder").append(i);var n=$("#myAlert").alert();window.setTimeout(function(){n.alert("close")},t)}function u(){var e=function(){return Math.floor(65536*Math.random()).toString(8)};return e()+e()+e()}function f(e){$(".Ajaxing").css("visibility","hidden"),$(".searcher").removeClass("searcherThinking")}function o(e,t,a,i){return i&&$(".Ajaxing").css("visibility","visible"),$.ajax({type:t,url:e,dataType:"json",contentType:"application/json",data:a?JSON.stringify(a):null}).fail(function(e,t,a){f()})}function h(e,t,a){return e.replace(new RegExp(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),"g"),a)}function g(e){var t=h(e," ","-");return t=h(t=h(t=h(t=h(t=h(t,".",""),"
",""),"+",""),"/",""),"\\","")}0<$('[rel="tooltip"]').length&&$('[rel="tooltip"]').tooltip(),0<$('[rel="popover"]').length&&$('[rel="popover"]').popover();var c,m,v,b,x,T=(0<$(".messageCollection").length?$(".messageCollection")[0].innerHTML:"").split("##"),y="1"==T[12]?T[0]+" "+T[50]:T[50]+" "+T[0];if(c=jQuery,m=window,v=document,x=c(m),c.fn.lazyload=function(e){function t(){var t=0;s.each(function(){var e=c(this);if(!r.skip_invisible||e.is(":visible"))if(c.abovethetop(this,r)||c.leftofbegin(this,r));else if(c.belowthefold(this,r)||c.rightoffold(this,r)){if(++t>r.failure_limit)return!1}else e.trigger("appear"),t=0})}var a,s=this,r={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:m,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return e&&(b!==e.failurelimit&&(e.failure_limit=e.failurelimit,delete e.failurelimit),b!==e.effectspeed&&(e.effect_speed=e.effectspeed,delete e.effectspeed),c.extend(r,e)),a=r.container===b||r.container===m?x:c(r.container),0===r.event.indexOf("scroll")&&a.bind(r.event,function(){return t()}),this.each(function(){var i=this,n=c(i);i.loaded=!1,(n.attr("src")===b||!1===n.attr("src"))&&n.is("img")&&n.attr("src",r.placeholder),n.one("appear",function(){if(!this.loaded){if(r.appear){var e=s.length;r.appear.call(i,e,r)}c("").bind("load",function(){var e=n.attr("data-"+r.data_attribute);n.hide(),n.is("img")?n.attr("src",e):n.css("background-image","url('"+e+"')"),n[r.effect](r.effect_speed),i.loaded=!0;var t=c.grep(s,function(e){return!e.loaded});if(s=c(t),r.load){var a=s.length;r.load.call(i,a,r)}}).attr("src",n.attr("data-"+r.data_attribute))}}),0!==r.event.indexOf("scroll")&&n.bind(r.event,function(){i.loaded||n.trigger("appear")})}),x.bind("resize",function(){t()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&x.bind("pageshow",function(e){e.originalEvent&&e.originalEvent.persisted&&s.each(function(){c(this).trigger("appear")})}),c(v).ready(function(){t()}),this},c.belowthefold=function(e,t){return(t.container===b||t.container===m?(m.innerHeight?m.innerHeight:x.height())+x.scrollTop():c(t.container).offset().top+c(t.container).height())<=c(e).offset().top-t.threshold},c.rightoffold=function(e,t){return(t.container===b||t.container===m?x.width()+x.scrollLeft():c(t.container).offset().left+c(t.container).width())<=c(e).offset().left-t.threshold},c.abovethetop=function(e,t){return(t.container===b||t.container===m?x.scrollTop():c(t.container).offset().top)>=c(e).offset().top+t.threshold+c(e).height()},c.leftofbegin=function(e,t){return(t.container===b||t.container===m?x.scrollLeft():c(t.container).offset().left)>=c(e).offset().left+t.threshold+c(e).width()},c.inviewport=function(e,t){return!(c.rightoffold(e,t)||c.leftofbegin(e,t)||c.belowthefold(e,t)||c.abovethetop(e,t))},c.extend(c.expr[":"],{"below-the-fold":function(e){return c.belowthefold(e,{threshold:0})},"above-the-top":function(e){return!c.belowthefold(e,{threshold:0})},"right-of-screen":function(e){return c.rightoffold(e,{threshold:0})},"left-of-screen":function(e){return!c.rightoffold(e,{threshold:0})},"in-viewport":function(e){return c.inviewport(e,{threshold:0})},"above-the-fold":function(e){return!c.belowthefold(e,{threshold:0})},"right-of-fold":function(e){return c.rightoffold(e,{threshold:0})},"left-of-fold":function(e){return!c.rightoffold(e,{threshold:0})}}),$("img:visible.lazy").lazyload({effect:"fadeIn"}),0<$(".affixPage").length&&($("#menu").attr("data-spy","affix"),$("#menu").attr("data-offset-top","180")),$("#menu.affix").live("click",function(e){e.target===this&&$("html, body").animate({scrollTop:0},500)}),0<$(".affixSystem").length){var s=$(".tab-pane"),L=$("#nav"),S=L.outerHeight();$(window).data("ajaxready",!0).scroll(function(){var a=$(this).scrollTop();s.each(function(){var e=$(this).offset().top-S,t=e+$(this).outerHeight();e<=a&&a<=t&&(L.find("li").removeClass("active"),s.removeClass("active"),$(this).addClass("active"),L.find('a[href="#'+$(this).attr("id")+'"]').parent().addClass("active"))})}),L.find("a").on("click",function(){var e=$(this).attr("href");return $("html, body").animate({scrollTop:$(e).offset().top-S},500),!1})}(function(){var e=navigator.userAgent.toLowerCase();if($.browser.msie&&parseInt($.browser.version,10)<=6)return!0;if($.browser.opera&&10*$.browser.version<=95)return!0;if(/firefox[\/\s](\d+\.\d+)/.test(e)&&Number(RegExp.$1)<3)return!0;if(/safari[\/\s](\d+\.\d+)/.test(e)&&!/chrome[\/\s](\d+\.\d+)/.test(e)){var t=e.indexOf("version");if(-1"+T[26]);var M="",C="";function t(e,t){$(".Ajaxing").css("visibility","visible"),$.ajax({url:d+"SndFb",data:"{'fbT':'"+e+"','fbD': '"+t+"'}",contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",success:function(e){!function(e){if($(".Ajaxing").css("visibility","hidden"),null!=e.d){var t=e.d.split("|");"1"===t[0]?p(y+" "+t[1],1e4,"info"):p(y+" "+T[11],5e3,"danger")}}(e)},error:f})}if(0<$("#introduceSection h1").length&&(M=$("#introduceSection h1")[0].className,C=0<$("#introduceSection h1 span").length?$("#introduceSection h1 span")[0].className:0),$(".backMenu").live("click",function(e){e.stopPropagation(),$(".cities").css("display","none"),$(".provinces").css("display","block")}),$(".stateMenu").live("click",function(){$(".cities").css("display","none"),$(".provinces").css("display","block")}),$(".multi-column-dropdown .province").live("click",function(e){if(e.stopPropagation(),$(".provinces").css("display","none"),0===$("."+this.id).find(".backMenu").length){var t='
  • '+T[67]+"
  • ";$("."+this.id).prepend(t)}$("."+this.id).css("display","block")}),$(".nav-tabs li a.tabClick").live("click",function(){0==$("#AttractionsTourism section").length&&0==$("#Customs section").length&&0==$("#Products section").length&&function(e,t){$(".Ajaxing").css("visibility","visible");var a=0<$("#thisPageIsService").length;$.ajax({url:d+"getDataOfTab",data:"{'eId':'"+e+"','clId': '"+t+"','isSrv': '"+a+"'}",contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",success:function(e){var t;t=e,$(".Ajaxing").css("visibility","hidden"),null!=t.d&&($("#loadMap1").remove(),$("#AttractionsTourism").append(t.d[0]),$("#loadMap2").remove(),$("#Customs").append(t.d[1]),$("#loadMap3").remove(),$("#Products").append(t.d[2]))},error:f})}(12==M||1212==M?$("#introduceSection h1").parent().prev().find("a")[0].id.substring(5,this.id.length):11==M||1111==M?$("#introduceSection h1").parent().prev().find("a")[0].id.substring(5,this.id.length):C,T[12])}),$(".collapse-group .btn.expand").on("click",function(e){e.preventDefault(),$(this).closest(".collapse-group").find(".collapse").collapse("toggle")}),$("#feedBack a.btn").on("click",function(e){e.preventDefault(),t(this.id,"")}),$("#sendFeedBackOpinion").on("click",function(e){e.preventDefault(),t("",$(this).parent().parent().find("textarea")[0].value),$(this).parent().parent().find("textarea")[0].value=""}),0<$('img[class^="imglogin"]').length){var A=$('img[class^="imglogin"]')[0].className;A=A.substring(8,A.length);var e=$(".beliefImg img","#divBeliefListItem");y="1"==T[12]?T[0]+" "+$('img[class^="imglogin"]')[0].alt:$('img[class^="imglogin"]')[0].alt+" "+T[0];for(var a=0;a'+t:$('
    '+t+"
    ").insertAfter(e),$(e).find(".form-control-feedback").remove(),$(e).append(''),$(e).removeClass("has-error"),$(e).addClass("has-error"),$(e).removeClass("has-success")}function I(){if(0==$("#alarmcontent .Register").length&&0<$(".Register .rvUntik").length)$(".errorClient").animate({"font-size":"1.2em"},200),$(".errorClient").animate({"font-size":"1em"},200);else if(1==$("#alarmcontent .Register").length&&0<$("#alarmcontent .Register .rvUntik").length)$(".errorClient").animate({"font-size":"1.2em"},200),$(".errorClient").animate({"font-size":"1em"},200);else{$(".Ajaxing").css("visibility","visible");var e=$("#txtPassword")[0].value,t=$("#txtUserEmail")[0].value;$.ajax({url:"../../UsersActing/Tour/ActingTour.aspx/Registering",contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",data:"{p1: '"+e+"',e1: '"+t+"',cId: '"+T[12]+"'}",success:function(e){!function(e){if($(".Ajaxing").css("visibility","hidden"),null!=e.d&&0