").text(message).prependTo("#log");$("#log").attr("scrollTop",0);} $.ajax({url:getAutocompletePerformerUrl(1),dataType:"xml",success:function(xmlResponse){var data=$("geoname",xmlResponse).map(function(){return{value:$("name",this).text(),id:$("geonameId",this).text()};}).get();monkeyPatchAutocomplete();$("#PerformerName").autocomplete({source:data,minLength:3,delay:500,select:function(event,ui){log(ui.item?ui.item.id:"Nothing selected, input was "+this.value);}});}});$.ajax({url:getAutocompletePerformerUrl(2),dataType:"xml",success:function(xmlResponse){var data=$("geoname",xmlResponse).map(function(){return{value:$("name",this).text(),id:$("geonameId",this).text()};}).get();monkeyPatchAutocomplete();$("#PerformerNameMobile").autocomplete({source:data,minLength:3,delay:500,appendTo:"#email-form-4",select:function(event,ui){log(ui.item?ui.item.id:"Nothing selected, input was "+this.value);}});}});$.ajax({url:getAutocompleteLocationUrl(1),dataType:"xml",success:function(xmlResponse){var data=$("geoname",xmlResponse).map(function(){return{value:$("name",this).text(),id:$("geonameId",this).text()};}).get();monkeyPatchAutocomplete();$("#Location").autocomplete({source:data,minLength:3,delay:500,select:function(event,ui){log(ui.item?ui.item.id:"Nothing selected, input was "+this.value);}});}});$.ajax({url:getAutocompleteLocationUrl(2),dataType:"xml",success:function(xmlResponse){var data=$("geoname",xmlResponse).map(function(){return{value:$("name",this).text(),id:$("geonameId",this).text()};}).get();monkeyPatchAutocomplete();$("#LocationMobile").autocomplete({source:data,minLength:3,delay:500,appendTo:"#email-form-4",select:function(event,ui){log(ui.item?ui.item.id:"Nothing selected, input was "+this.value);}});}});function getAutocompletePerformerUrl(deviceType){var sDate;var eDate;var retStr='../include/autocomplete.ashx' var flag=0;if(deviceType==1){sDate=document.getElementById("node-5").value;eDate=document.getElementById("node-6").value;flag=1;}else{if(deviceType==2){sDate=document.getElementById("node-7").value;eDate=document.getElementById("node-8").value;flag=2}} if(flag>0){retStr=retStr+'?EndDate='+eDate+'&stratingDate='+sDate;} return retStr;} function getAutocompleteLocationUrl(deviceType){var sDate;var eDate;var retStr='../include/autocompleteStates.ashx' var flag=0;if(deviceType==1){sDate=document.getElementById("node-5").value;eDate=document.getElementById("node-6").value;flag=1;}else{if(deviceType==2){sDate=document.getElementById("node-7").value;eDate=document.getElementById("node-8").value;flag=2}} if(flag>0){retStr=retStr+'?EndDate='+eDate+'&stratingDate='+sDate;} return retStr;} var list_filtering_toggle_Count=0;$('.list_filtering_toggle').on('click',function(){if(list_filtering_toggle_Count==0){if(topSearchClick==1){topSearchClick=0;$(".top_search_drop").removeClass("w-dropdown");$(".top_search_toggle").removeClass("w--open");$(".top_search_list").removeClass("w--open");$('#node').val('');} list_filtering_toggle_Count=1;$(".top_section").css("z-index","-1");var top_section_height=-1*$(".top_section").height()+1;$(".list_filtering_toggle").addClass("w--open");$(".list_filtering_dropdown_list").addClass("w--open");$(".list_filtering_toggle").css("top",top_section_height);$(".list_filtering_dropdown_list").css("top",top_section_height);}else{list_filtering_toggle_Count=0;$(".list_filtering_toggle").removeClass("w--open");$(".list_filtering_dropdown_list").removeClass("w--open");$(".top_section").css("z-index","");$(".list_filtering_dropdown_list").css("top","");$(".list_filtering_toggle").css("top","");} return false});$(".loginButton").click(function(){$(".login_blackout").addClass("showLayer");$('#loginName').focus();});$(".login_close").click(function(){$(".login_blackout").removeClass("showLayer");});$(".ddmenue").hover(function(){$(this).find(".w-dropdown-toggle").addClass("w--open");$(this).find(".w-dropdown-list").addClass("w--open");},function(){$(this).find(".w-dropdown-toggle").removeClass("w--open");$(this).find(".w-dropdown-list").removeClass("w--open");});function monkeyPatchAutocomplete(){var oldFn=$.ui.autocomplete.prototype._renderItem;$.ui.autocomplete.prototype._renderItem=function(ul,item){var re=new RegExp(this.term,"i");var t=item.label.replace(re,"$&");return $("
").data("item.autocomplete",item).append(""+t+"").appendTo(ul);};} function logtop(message){document.getElementById("logtop").innerText="";$("").text(message).prependTo("#logtop");$("#logtop").attr("scrollTop",0);} $.ajax({url:'/include/autocompleteTop.ashx',dataType:"xml",success:function(xmlResponse){var data=$("geoname",xmlResponse).map(function(){return{value:$("name",this).text(),id:$("geonameId",this).text()};}).get();monkeyPatchAutocomplete();$("#node").autocomplete({source:data,minLength:3,delay:500,position:{my:"right top",at:"right bottom+1",of:".top_search_list"},classes:{"ui-autocomplete":"topautocompleteSearch"},select:function(event,ui){logtop(ui.item?ui.item.id:"Nothing selected, input was "+this.value);}});}});var topSearchClick=0;$(".top_search_toggle").click(function(){if(topSearchClick==0){if($("#ssc_fltrPriSelect").length>0){if(top_nav_menubutton_Count==1){top_nav_menubutton_Count=0;$("#ssc_fltrPriSelect").css("z-index","");}} topSearchClick++;$(".top_search_drop").addClass("w-dropdown");$(".top_search_toggle").addClass("w--open");$(".top_search_list").addClass("w--open");$('#node').focus();}else{topSearchfunc(1);}});$(".top_search_close").click(function(){topSearchClick=0;$(".top_search_drop").removeClass("w-dropdown");$(".top_search_toggle").removeClass("w--open");$(".top_search_list").removeClass("w--open");$('#node').val('');});$(".login_facebook").click(function(){fb_login();});var toploginClick=0;$(".navbar_login_button").click(function(){if(toploginClick==0){toploginClick++;$(".top_navbar_login").addClass("w-dropdown");$(".navbar_login_button").addClass("w--open");$(".navbar_login_list").addClass("w--open");if($("#loginMobileName").length>0){$('#loginMobileName').focus();}else{$('html,body').animate({scrollTop:$(".top_navbar_login").offset().top},1000);}}else{toploginClick=0;if($("#loginMobileName").length>0){$('#loginMobileName').val('');$('#loginMobilePass').val('');} $(".navbar_login_list").removeClass("w--open");$(".navbar_login_button").removeClass("w--open");}});$.getScript("/assets/accessibilityControl/accessibilityControl.js",function(){});});