if(!ask){var ask={};
}if(!ask.biz){ask.biz=new function(){var A=this;
this.staic_map=null;
this.dyn_map=null;
this.locations=null;
this.parameters=null;
this.dyn_or_sta=null;
this.msg=null;
this.current_result=1;
this.current_selected_result=null;
this.init=function(){initPage();
if(!a10.browser.isIE6()){$("navbar_search").style.width="";
}if("undefined"==typeof (initLocations)){return ;
}this.locations=initLocations;
ask.local.constant.BASEURL=_baseUrl,ask.local.constant.VEMAP_BIRDSEYE_IMAGE_PATH=_vemapmetaPath,ask.local.constant.VEMAP_IMAGE_PATH=_vemapPath;
ask.local.localObj=this;
window.onresize=ask.biz.resize;
ask.local.addListener(["static_panel","static_panel_right","dynamic_panel","dynamic_panel_right"],"mouseover",A.pannelmouseover);
ask.local.addListener(["static_panel","static_panel_right","dynamic_panel","dynamic_panel_right"],"mouseout",A.pannelmouseout);
ask.local.addDOMEvent("neighborhoods_popup","click",ask.biz.closePopup);
ask.local.addDOMEvent("cuisines_popup","click",ask.biz.closePopup);
this.parameters=ask.local.getUrlParameters();
if(this.parameters["type"]=="dynamic"){var B=ask.local.getMapHeight($("large_map"));
var D=$("dynamic_spl_bot")==null?0:$("dynamic_spl_bot").offsetHeight;
$("dynamic_results").style.height=(B-D-$("otherlist").offsetHeight-20)+"px";
$("large_map").style.height=B+"px";
this.dyn_map=new ask.Map("large_map",null,null,null,this.parameters["style"],this.parameters["traffic"],this.parameters["zl"]);
this.dyn_map.addShapes(this.locations);
if($("maps_neighborhood")){this.dyn_map.renderControl($("maps_neighborhood"),null,"0px","25px","25px");
a10.event.addListener("hiddenNeighborhood","click",this.hiddenNeighborhood);
}if(a10.browser.isIE6()||a10.browser.isIE7()){$("dynamic_panel_right").style.display="block";
var E=a10.util.findPos($("main"));
$("dynamic_panel_right").style.top=(E[1]+4)+"px";
}this.dyn_or_sta="dyn";
}else{this.staic_map=new ask.Map("small_map",this.locations[0],true,true);
this.staic_map.addShapes(this.locations);
this.dyn_or_sta="sta";
}if($("maps_neighborhood")){function C(F){ask.biz.cancelBubble(F);
}a10.event.addListener("maps_neighborhood","click",C);
a10.event.addListener("maps_neighborhood","dblclick",C);
}ask.local.addListener(["dynamic_left_link"],"click",A.reduce_map);
ask.local.addListener(["static_panel","small_map","view_large_map"],"click",A.expand_map);
};
this.pannelmouseover=function(){$("static_panel").className="panelDiv backgroundImageOver";
$("static_panel_right").style.backgroundPosition="-1px -222px ";
$("dynamic_panel").className="panelDiv backgroundImageOver";
$("dynamic_panel_right").style.backgroundPosition="-1px -222px ";
};
this.pannelmouseout=function(){$("static_panel").className="panelDiv backgroundImageOff";
$("static_panel_right").style.backgroundPosition="-1px 0px";
$("dynamic_panel").className="panelDiv backgroundImageOff";
$("dynamic_panel_right").style.backgroundPosition="-1px 0px";
};
this.expand_map=function(E){var C=E.srcElement||E.target;
try{C.blur();
}catch(F){}ask.biz.dyn_or_sta="dyn";
$("dynamic_left").style.display="";
if($("static_spl_static")){$("static_spl_static").style.display="none";
}$("static_left").style.display="none";
if($("static_paging")){$("static_paging").style.display="none";
}$("dynamic_right").style.display="";
$("static_right").style.display="none";
$("details-column").style.width="243px";
if($("static_spl_bot")){$("static_spl_bot").style.display="none";
}if($("spl_ad_plus_biz")){$("spl_ad_plus_biz").style.display="none";
}if($("head_details")){$("head_details").style.display="none";
}if($("dynamic_spl_bot")){$("dynamic_spl_bot").style.display="block";
}if($("bottom_search")){$("bottom_search").style.display="none";
}$("footer").style.display="none";
$("dynamic_panel_right").style.display="";
if(!A.dyn_map){var B=ask.local.getMapHeight($("large_map"));
var D=$("dynamic_spl_bot")==null?0:$("dynamic_spl_bot").offsetHeight;
$("dynamic_results").style.height=(B-D-$("otherlist").offsetHeight-20)+"px";
$("large_map").style.height=B+"px";
A.dyn_map=new ask.Map("large_map");
A.dyn_map.addShapes(A.locations);
if($("maps_neighborhood")){A.dyn_map.renderControl($("maps_neighborhood"),null,"0px","25px","25px");
a10.event.addListener("hiddenNeighborhood","click",A.hiddenNeighborhood);
}if(a10.browser.isIE6()||a10.browser.isIE7()){$("dynamic_panel_right").style.display="block";
var G=a10.util.findPos($("main"));
$("dynamic_panel_right").style.top=(G[1]+4)+"px";
}}A.dyn_map.ShowControl(true);
ask.biz.showBubble(1,0);
document.onkeydown=ask.biz.keyHit;
ask.biz.current_result=1;
};
this.reduce_map=function(C){var B=C.srcElement||C.target;
try{B.blur();
}catch(D){}ask.biz.dyn_or_sta="sta";
A.dyn_map.hidePopups();
A.dyn_map.ShowControl(false);
$("dynamic_left").style.display="none";
if($("static_spl_static")){$("static_spl_static").style.display="";
}$("static_left").style.display="";
if($("static_paging")){$("static_paging").style.display="";
}$("dynamic_right").style.display="none";
$("static_right").style.display="";
$("details-column").style.width="64%";
$("footer").style.display="";
if($("static_spl_bot")){$("static_spl_bot").style.display="block";
}if($("spl_ad_plus_biz")){$("spl_ad_plus_biz").style.display="block";
}if($("head_details")){$("head_details").style.display="block";
}if($("dynamic_spl_bot")){$("dynamic_spl_bot").style.display="none";
}if($("bottom_search")){$("bottom_search").style.display="";
}$("dynamic_panel_right").style.display="none";
if(!A.staic_map){A.staic_map=new ask.Map("small_map",A.locations[0],true,true);
A.staic_map.addShapes(A.locations);
}document.onkeydown=null;
};
this.getBubbleHtml=function(D){D++;
var E=document.createElement("div");
$(ask.local.constant.BUBBLE_RESULT_TITLE).innerHTML=$("result_title_"+D).innerHTML;
$(ask.local.constant.BUBBLE_RESULT_ADDR).innerHTML=$("result_addr_"+D).innerHTML;
$(ask.local.constant.BUBBLE_RESULT_TEL).innerHTML=$("result_phone_"+D).innerHTML;
$(ask.local.constant.BUBBLE_RESULT_RATING).innerHTML=$("result_rating_"+D).innerHTML;
$(ask.local.constant.BUBBLE_RESULT_WEBSITE_SPAN).style.display="none";
$(ask.local.constant.BUBBLE_RESULT_MOREINFO_SPAN).style.display="none";
if($("website_link_"+D)){$(ask.local.constant.BUBBLE_RESULT_WEBSITE_SPAN).style.display="";
$(ask.local.constant.BUBBLE_RESULT_WEBSITE_SPAN).innerHTML=$("website_link_span_"+D).innerHTML;
$(ask.local.constant.BUBBLE_RESULT_WEBSITE_SPAN).getElementsByTagName("a")[0].className="L17";
$(ask.local.constant.BUBBLE_RESULT_WEBSITE_SPAN).getElementsByTagName("a")[0].style.verticalAlign="";
}if($("moreinfo_link_"+D)){$(ask.local.constant.BUBBLE_RESULT_MOREINFO).href=$("moreinfo_link_"+D).href;
$(ask.local.constant.BUBBLE_RESULT_MOREINFO_SPAN).style.display="";
}$(ask.local.constant.BUBBLE_RESULT_REVIEW).innerHTML=$("result_review_"+D).innerHTML;
var J=$(ask.local.constant.BUBBLE_INFO).cloneNode(true);
J.id=ask.local.constant.BUBBLE_INFO+"_"+D;
E.appendChild(J);
if(this.dyn_map.GetMapStyle()=="birdseye"){$(ask.local.constant.BUBBLE_IMAGE).src=ask.local.constant.VEMAP_IMAGE_PATH+"&pw=100&ph=100&z=13&ctr="+this.locations[D-1].lat+","+this.locations[D-1].lon;
$(ask.local.constant.BUBBLE_VIEW).innerHTML="Map View";
}else{$(ask.local.constant.BUBBLE_IMAGE).src=ask.local.constant.VEMAP_BIRDSEYE_IMAGE_PATH+"&clat="+this.locations[D-1].lat+"&clon="+this.locations[D-1].lon;
$(ask.local.constant.BUBBLE_VIEW).innerHTML="Bird's Eye View";
}var H=$(ask.local.constant.BUBBLE_RESULT_MENU).cloneNode(true);
H.id=ask.local.constant.BUBBLE_RESULT_MENU+"_"+D;
E.appendChild(H);
var F=$(ask.local.constant.BUBBLE_DRIVER).cloneNode(true);
F.id=ask.local.constant.BUBBLE_DRIVER+"_"+D;
E.appendChild(F);
var I=$(ask.local.constant.BUBBLE_NEARBY).cloneNode(true);
I.id=ask.local.constant.BUBBLE_NEARBY+"_"+D;
E.appendChild(I);
var K=$(ask.local.constant.BUBBLE_SENDTO_EMAIL).cloneNode(true);
K.id=ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+D;
E.appendChild(K);
var B=$(ask.local.constant.BUBBLE_FINDNEARBY).getElementsByTagName("a");
for(var C=0;
C<B.length;
C++){B[C].href=ask.local.constant.BASEURL+"/local?o=0&l=dir&what="+a10.util.htmlEncode(B[C].innerHTML)+"&where="+$("result_addr_txt_"+D).innerHTML;
}var G=$(ask.local.constant.BUBBLE_FINDNEARBY).cloneNode(true);
G.id=ask.local.constant.BUBBLE_FINDNEARBY+"_"+D;
E.appendChild(G);
return E.innerHTML;
};
this.mouseonResult=function(B){for(var C=1;
C<=this.locations.length&&C!=this.current_selected_result;
C++){this.resultBlur($("dynamic_result_"+C));
}if(B!=this.current_selected_result){this.resultFocus($("dynamic_result_"+B));
}};
this.clickOnResult=function(B){for(var C=1;
C<=this.locations.length;
C++){this.resultBlur($("dynamic_result_"+C),true);
}this.resultSelected($("dynamic_result_"+B));
};
this.clickResult=function(C,B){ask.biz.showBubble(C,B);
ask.biz.current_result=C;
};
this.showBubble=function(C,B){var D=this.locations[C-1];
this.current_selected_result=C;
ask.biz.clickOnResult(C);
if(B){this.dyn_map.showBubbleAndCenter(D.shapeId);
}else{this.dyn_map.showBubble(D.shapeId);
}};
this.setDynamicResultsSize=function(B){var C=B-$("otherlist").offsetHeight;
if(C<100){C=100;
}if(a10.browser.isIE6()){$("dynamic_results").style.height=""+C+"px";
}else{$("dynamic_results").style.maxHeight=""+C+"px";
}};
this.show_accordian=function(C){var B=$("dynamic_results").offsetHeight+$("otherlist").offsetHeight;
if(C==1){if($("currentWeather_all")){ask.biz.hide_accordian(2);
ask.biz.hide_accordian(3);
$("currentWeather").style.display="none";
$("currentWeather_all").style.display="block";
}}else{if(C==2){ask.biz.hide_accordian(1);
ask.biz.hide_accordian(3);
$("localevent").style.display="none";
$("localevent_all").style.display="block";
}else{if(C==3){ask.biz.hide_accordian(1);
ask.biz.hide_accordian(2);
$("localmovie").style.display="none";
$("localmovie_all").style.display="block";
}}}this.setDynamicResultsSize(B);
};
this.hide_accordian=function(C){var B=$("dynamic_results").offsetHeight+$("otherlist").offsetHeight;
if(C==1){if($("currentWeather_all")){$("currentWeather_all").style.display="none";
$("currentWeather").style.display="block";
}}else{if(C==2){if($("localevent_all")&&$("localevent")){$("localevent_all").style.display="none";
$("localevent").style.display="block";
}}else{if(C==3){if($("localmovie_all")&&$("localmovie")){$("localmovie_all").style.display="none";
$("localmovie").style.display="block";
}}}}this.setDynamicResultsSize(B);
};
this.bubble_tab_show=function(F,I){var G=ask.Map.getShapeRoot(F);
var D=G.getAttribute("index");
var H=G.childNodes;
for(var E=1;
E<H.length;
E++){H[E].style.display="none";
}$(I+"_"+D).style.display="";
this.msg="Ask.com - "+$("result_title_txt_"+D).innerHTML;
if($("result_phone_txt_"+D).innerHTML!=""){this.msg+=", "+$("result_phone_txt_"+D).innerHTML;
}if($("result_addr_txt_"+D).innerHTML!=""){this.msg+=", "+$("result_addr_txt_"+D).innerHTML;
}if(this.locations[D-1].rating>0){this.msg+=". Rated "+this.locations[D-1].rating+" star. Std rates may apply";
}switch(I){case ask.local.constant.BUBBLE_DRIVER:var C=$(ask.local.constant.BUBBLE_DRIVER+"_"+D).getElementsByTagName("input");
if(C[0].value==ask.local.constant.STATR_ADDRESS&&C[1].value==ask.local.constant.END_ADDRESS){C[1].value=$("result_addr_txt_"+D).innerHTML;
}C[0].focus();
break;
case ask.local.constant.BUBBLE_SENDTO_EMAIL:var B=$(ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+D).getElementsByTagName("textarea")[0];
if(B.value==""){B.value=$("result_title_txt_"+D).innerHTML+"\n"+$("result_addr_txt_"+D).innerHTML+"\n"+$("result_phone_txt_"+D).innerHTML+"\nLink:<"+ask.local.constant.BASEURL+"/maps?sa="+$("result_addr_txt_"+D).innerHTML+">";
}break;
case ask.local.constant.BUBBLE_NEARBY:$(ask.local.constant.BUBBLE_FINDNEARBY+"_"+D).style.display="";
var C=$(ask.local.constant.BUBBLE_NEARBY+"_"+D).getElementsByTagName("input");
C[1].value=$("result_addr_txt_"+D).innerHTML;
break;
}};
this.sendto=function(E,D){var C=ask.Map.getShapeRoot(E).getAttribute("index");
if(D=="email"){$(ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+C).style.display="";
}else{var B=div.getElementsByTagName("textarea")[0];
if(B.value==""){B.value=$("result_title_txt_"+C).innerHTML+"\n"+$("result_addr_txt_"+C).innerHTML+"\n"+$("result_phone_txt_"+C).innerHTML;
}$(ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+C).style.display="none";
}};
this.close=function(){this.dyn_map.hidePopups();
};
this.reverse=function(E){var D=ask.Map.getShapeRoot(E).getAttribute("index");
var C=$(ask.local.constant.BUBBLE_DRIVER+"_"+D).getElementsByTagName("input");
var F=(C[0].value==ask.local.constant.STATR_ADDRESS?"":C[0].value);
var B=(C[1].value==ask.local.constant.END_ADDRESS?"":C[1].value);
if(F==""){C[1].value=ask.local.constant.END_ADDRESS;
C[1].style.color="#666666";
C[1].style.fontStyle="italic";
}else{C[1].value=F;
C[1].style.color="#000000";
C[1].style.fontStyle="normal";
}if(B==""){C[0].value=ask.local.constant.STATR_ADDRESS;
C[0].style.color="#666666";
C[0].style.fontStyle="italic";
}else{C[0].value=B;
C[0].style.color="#000000";
C[0].style.fontStyle="normal";
}C[0].focus();
};
this.resultFocus=function(B){if(!B){return ;
}B.style.backgroundColor="#CFE0F0";
B.style.borderBottomColor="#B7D0E7";
B.style.borderTopColor="#B7D0E7";
};
this.resultSelected=function(B){if(!B){return ;
}B.className="dynamicResultT backgroundImageHighlight";
};
this.resultBlur=function(C,B){if(!C){return ;
}if(B){C.className="dynamicResultT";
C.style.backgroundPosition="";
}C.style.backgroundColor="#FFFFFF";
C.style.borderBottomColor="#FFFFFF";
C.style.borderTopColor="#FFFFFF";
};
this.bubble_back=function(D){var E=ask.Map.getShapeRoot(D);
var B=E.getAttribute("index");
var F=E.childNodes;
for(var C=1;
C<F.length;
C++){F[C].style.display="none";
}$(ask.local.constant.BUBBLE_RESULT_MENU+"_"+B).style.display="";
$(ask.local.constant.BUBBLE_FINDNEARBY+"_"+B).style.display="";
};
this.hide_show_filter=function(){if($("filter_button").innerHTML=="Hide filters"){$("filter_table").style.display="none";
$("filter_button").innerHTML="Show filters";
}else{$("filter_table").style.display="block";
$("filter_button").innerHTML="Hide filters";
}};
this.hiddenNeighborhood=function(){$("hiddenNeighborhood").style.backgroundPosition="-266px -102px";
var B=$("maps_neighborhood_content").getElementsByTagName("tr");
for(var C=1;
C<B.length;
C++){B[C].style.display="none";
}B=$("maps_neighborhood_control").getElementsByTagName("tr");
for(var C=1;
C<B.length;
C++){B[C].style.display="none";
}a10.event.removeListener("hiddenNeighborhood","click",A.hiddenNeighborhood);
a10.event.addListener("hiddenNeighborhood","click",A.showNeighborhood);
};
this.showNeighborhood=function(){$("hiddenNeighborhood").style.backgroundPosition="-250px -102px";
if($("moreNeighborhood")){$("moreNeighborhood").innerHTML="... More &#187;";
}var B=$("maps_neighborhood_content").getElementsByTagName("tr");
for(var C=1;
C<3;
C++){B[C].style.display="";
}B=$("maps_neighborhood_control").getElementsByTagName("tr");
for(var C=1;
C<3;
C++){B[C].style.display="";
}a10.event.removeListener("hiddenNeighborhood","click",A.showNeighborhood);
a10.event.addListener("hiddenNeighborhood","click",A.hiddenNeighborhood);
};
this.moreNeighborhood=function(){$("moreNeighborhood").innerHTML="";
var B=$("maps_neighborhood_content").getElementsByTagName("tr");
for(var C=3;
C<B.length;
C++){B[C].style.display="";
}B=$("maps_neighborhood_control").getElementsByTagName("tr");
for(var C=3;
C<B.length;
C++){B[C].style.display="";
}};
this.backNeighborhood=function(){$("moreNeighborhood").innerHTML="... More &#187;";
var B=$("maps_neighborhood_content").getElementsByTagName("tr");
for(var C=3;
C<B.length;
C++){B[C].style.display="none";
}B=$("maps_neighborhood_control").getElementsByTagName("tr");
for(var C=3;
C<B.length;
C++){B[C].style.display="none";
}};
this.searchDriving=function(C){var B=C.getElementsByTagName("input");
B[0].value=(B[0].value==ask.local.constant.STATR_ADDRESS?"":B[0].value);
B[1].value=(B[1].value==ask.local.constant.END_ADDRESS?"":B[1].value);
return true;
};
this.searchNearby=function(C){var B=C.getElementsByTagName("input");
if(B[0].value==""||B[0].value==ask.local.constant.BUSINESS_DEFAULT_VALUE){return false;
}return true;
};
this.searchEvents=function(C){var D=$("localevent_input").value;
if(D==""||D==ask.local.constant.EVENT_DEFAULT_VALUE){return false;
}var E=BizChannel.getSearchParams("false");
var B=E["where"];
$("localevent_input").value=D+" in "+B;
$("localevent_input").name="q";
return true;
};
this.updateQuery=function(){var F=BizChannel.getSearchParams("false");
if($("navbar_tabs")){var B=$("navbar_tabs").getElementsByTagName("a");
var D=0;
var E=/q=/g;
var C;
for(;
D<B.length;
D++){if(B[D].href.indexOf("q=")!=-1){C=B[D].href.replace(E,"q="+F["what"]+"+"+F["where"]);
B[D].href=C;
}}}};
this.getAbsoluteTop=function(B){var C=B.offsetTop;
if(B.offsetParent!=null){C+=ask.biz.getAbsoluteTop(B.offsetParent);
}return C;
};
this.getAbsoluteLeft=function(B){var C=B.offsetLeft;
if(B.offsetParent!=null){C+=ask.biz.getAbsoluteLeft(B.offsetParent);
}return C;
};
this.FilterPopup=function(J,B,E){var G=a10.util.findPos(B);
var C=G[0];
var H=G[1];
var D,I;
var F=19;
if(a10.browser.isIE6()){DD_belatedPNG.fix(".PopupArrow");
F=18;
}if(E==1){ask.biz.closePopup("cuisines_popup");
$("neighborhoods_popup").style.display="block";
$("n_popup_arrow").style.display="block";
D=$("neighborhoods_popup").clientHeight;
I=$("neighborhoods_popup").clientWidth;
$("neighborhoods_popup").style.top=(H+F)+"px";
$("neighborhoods_popup").style.left=C+"px";
$("n_popup_arrow").style.top=(H+11)+"px";
$("n_popup_arrow").style.left=(C+85)+"px";
$("neigb_p_top").style.width=(I-50)+"px";
$("neigb_p_topright").style.left=(I-25)+"px";
$("neigb_p_right").style.height=(D-50)+"px";
$("neigb_p_right").style.left=(I-25)+"px";
$("neigb_p_rightbottom").style.left=(I-25)+"px";
$("neigb_p_rightbottom").style.top=(D-25)+"px";
$("neigb_p_bottom").style.top=(D-25)+"px";
$("neigb_p_bottom").style.width=(I-50)+"px";
$("neigb_p_bottomleft").style.top=(D-25)+"px";
$("neigb_p_left").style.height=(D-50)+"px";
}else{if(E==2){ask.biz.closePopup("neighborhoods_popup");
$("cuisines_popup").style.display="block";
$("c_popup_arrow").style.display="block";
D=$("cuisines_popup").clientHeight;
I=$("cuisines_popup").clientWidth;
$("cuisines_popup").style.top=(H+F)+"px";
$("cuisines_popup").style.left=C+"px";
$("c_popup_arrow").style.top=(H+11)+"px";
$("c_popup_arrow").style.left=(C+79)+"px";
$("cuisines_p_top").style.width=(I-50)+"px";
$("cuisines_p_topright").style.left=(I-25)+"px";
$("cuisines_p_right").style.height=(D-50)+"px";
$("cuisines_p_right").style.left=(I-25)+"px";
$("cuisines_p_rightbottom").style.left=(I-25)+"px";
$("cuisines_p_rightbottom").style.top=(D-25)+"px";
$("cuisines_p_bottom").style.top=(D-25)+"px";
$("cuisines_p_bottom").style.width=(I-50)+"px";
$("cuisines_p_bottomleft").style.top=(D-25)+"px";
$("cuisines_p_left").style.height=(D-50)+"px";
}}ask.biz.cancelBubble(J);
};
this.closePopup=function(B){if($(B)){$(B).style.display="none";
}if(B=="neighborhoods_popup"&&$("n_popup_arrow")){$("n_popup_arrow").style.display="none";
}else{if(B=="cuisines_popup"&&$("c_popup_arrow")){$("c_popup_arrow").style.display="none";
}}};
this.cancelBubble=function(B){var C=(B)?B:((window.event)?window.event:null);
C.cancelBubble=true;
};
this.resize=function(){if(ask.biz.dyn_or_sta=="sta"){var D=document.body.clientWidth;
if(a10.browser.isIE6()&&D<1000){D=1000;
}$("details-column").style.width=D*0.64+"px";
$("static_panel").style.width=D*0.64+"px";
$("static_panel_right").style.left=D*0.64+"px";
$("static_results").style.width=D*0.64+"px";
if(document.body.clientWidth>1000){document.body.style.overflowX="hidden";
}else{document.body.style.overflowX="auto";
}}else{if(ask.local.Browser.getBounds().height>500){var B=ask.local.getMapHeight($("large_map"));
try{var C=$("dynamic_spl_bot")==null?0:$("dynamic_spl_bot").offsetHeight;
$("dynamic_results").style.height=(B-C-$("otherlist").offsetHeight-20)+"px";
ask.biz.dyn_map&&ask.biz.dyn_map.hidePopups();
$("large_map").style.height=B+"px";
}catch(E){}}}$("navbar_search").style.width=document.body.scrollWidth+"px";
};
this.changeMapView=function(E){var C=ask.Map.getShapeRoot(E).getAttribute("index");
var F=this.locations[C-1];
var B=ask.Map.constructVELatLong(F.lat,F.lon);
var D=this.dyn_map.GetMapStyle();
if(D=="birdseye"){this.dyn_map.ShowRoad(F.shapeId);
}else{this.dyn_map.ShowBirdseye(B,F.shapeId);
}};
this.print=function(D){var G="?ptype=print&what="+(this.parameters["what"]?this.parameters["what"]:"")+"&where="+(this.parameters["where"]?this.parameters["where"]:"");
var E="road";
var F="off";
var C="";
var B="";
if(this.dyn_map){E=this.dyn_map.GetMapStyle();
F=this.dyn_map.trafficOn?"on":"off";
C=this.dyn_map.GetZoomLevel();
B=encodeURIComponent(this.dyn_map.GetCenter());
}G+=("&style="+E+"&traffic="+F+"&zl="+C+"&center="+B);
window.open(D+G,"","toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=yes,fullscreen=yes");
};
this.linkto=function(B){var C="?what="+(this.parameters["what"]?this.parameters["what"]:"")+"&where="+(this.parameters["where"]?this.parameters["where"]:"");
if(this.dyn_or_sta=="dyn"){C+=("&type=dynamic&style="+this.dyn_map.GetMapStyle()+"&traffic="+(this.dyn_map.trafficOn?"on":"off"));
}$("pagelinkvalue").value=B+C;
askeLinkToPageDialog.show();
$("pagelinkvalue").focus();
$("pagelinkvalue").select();
};
this.sendemailPOI=function(E,I,L){var M=ask.Map.getShapeRoot(E).getAttribute("index");
var R=$(ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+M).getElementsByTagName("div");
var U=$(ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+M).getElementsByTagName("textarea")[0];
var X=$(ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+M).getElementsByTagName("input")[0];
var D=$(ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+M).getElementsByTagName("input")[1];
var N=$(ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+M).getElementsByTagName("span");
for(var Y=0;
Y<N.length;
Y++){if(N[Y].id=="toimage"){var H=N[Y];
}if(N[Y].id=="fromimage"){var S=N[Y];
}}for(var Y=0;
Y<R.length;
Y++){if(R[Y].id=="emailsuccess_poi"){var d=R[Y];
}if(R[Y].id=="emailerror_poi"){var a=R[Y];
}if(R[Y].id=="emailcontent_poi"){var c=R[Y];
}}var C=$(ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+M).getElementsByTagName("td");
for(var W=0;
W<C.length;
W++){if(C[W].id=="sendbutton"){var Q=C[W];
}if(C[W].id=="sendtext"){var T=C[W];
}if(C[W].id=="warningimage"){var Z=C[W];
}if(C[W].id=="validaterror"){var B=C[W];
}if(C[W].id=="totext"){var O=C[W];
}if(C[W].id=="fromtext"){var K=C[W];
}}var G=X.value;
var V=D.value;
var P=U.value;
if(!ask.local.emailvalidate(G)){H.style.display="";
O.style.color="#B10000";
}else{H.style.display="none";
O.style.color="#000000";
}if(!ask.local.emailvalidate(V)){S.style.display="";
K.style.color="#B10000";
}else{S.style.display="none";
K.style.color="#000000";
}if(!ask.local.emailvalidate(G)||!ask.local.emailvalidate(V)){Z.style.display="";
B.style.display="";
return false;
}else{Z.style.display="none";
B.style.display="none";
}Q.style.display="none";
T.style.display="block";
var F="from="+escape(V)+"&to="+escape(G)+"&subject="+escape(L)+"&message="+escape(P);
F=F.replace(/\%0A/g,"<br>").replace(/\%3C/g,"%26lt;").replace(/\%3E/g,"%26gt;");
a10.ajax.post(I,F,J,b);
function J(e){if(e.responseText.indexOf("success")>-1){d.style.display="block";
c.style.display="none";
return ;
}else{a.style.display="block";
c.style.display="none";
return ;
}}function b(e){a.style.display="block";
c.style.display="none";
return ;
}};
this.sendanothermailPOI=function(G){var E=ask.Map.getShapeRoot(G).getAttribute("index");
var C=$(ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+E).getElementsByTagName("div");
for(var F=0;
F<C.length;
F++){if(C[F].id=="emailcontent_poi"){C[F].style.display="block";
}if(C[F].id=="emailsuccess_poi"){C[F].style.display="none";
}if(C[F].id=="emailerror_poi"){C[F].style.display="none";
}}var H=$(ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+E).getElementsByTagName("td");
for(var D=0;
D<H.length;
D++){if(H[D].id=="sendbutton"){H[D].style.display="block";
}if(H[D].id=="sendtext"){H[D].style.display="none";
}if(H[D].id=="warningimage"){H[D].style.display="none";
}if(H[D].id=="validaterror"){H[D].style.display="none";
}if(H[D].id=="totext"){H[D].style.color="#000000";
}if(H[D].id=="fromtext"){H[D].style.color="#000000";
}}var B=$(ask.local.constant.BUBBLE_SENDTO_EMAIL+"_"+E).getElementsByTagName("span");
for(var F=0;
F<B.length;
F++){if(B[F].id=="toimage"){B[F].style.display="none";
}if(B[F].id=="fromimage"){B[F].style.display="none";
}}return ;
};
this.sendemail=function(B,C){var I=$("emailto").value;
var H=$("emailfrom").value;
var F=$("emailmessage").value;
if(!ask.local.emailvalidate(I)){$("towarningimage").style.display="";
$("tolabel").style.color="#B10000";
}else{$("towarningimage").style.display="none";
$("tolabel").style.color="#666666";
}if(!ask.local.emailvalidate(H)){$("fromwarningimage").style.display="";
$("fromlabel").style.color="#B10000";
}else{$("fromwarningimage").style.display="none";
$("fromlabel").style.color="#666666";
}if(!ask.local.emailvalidate(I)||!ask.local.emailvalidate(H)){$("validaterror").style.display="";
$("warningimage").style.display="";
$("validaterror").width="155";
$("firsttd").width="90";
return false;
}else{$("warningimage").style.display="none";
$("firsttd").width="250";
$("validaterror").style.display="none";
}$("sendbutton").style.display="none";
$("sendtext").style.display="";
var E="from="+escape(H)+"&to="+escape(I)+"&subject="+escape(C)+"&message="+escape(F).replace(/\%A0/g," ");
E=E.replace(/\%0A/g,"<br>").replace(/\%3C/g,"%26lt;").replace(/\%3E/g,"%26gt;");
a10.ajax.post(B,E,G,D);
function G(J){if(J.responseText.indexOf("success")>-1){emailIntervalID=setTimeout(function(){askemailDialog.hide();
},5000);
$("emailsuccess").style.display="block";
if(a10.browser.isIE7()||a10.browser.isIE6()){$("emailsuccess").style.width="450px";
$("emailsuccess").style.height="308px";
}else{$("emailsuccess").style.width=$("emailcontent").clientWidth+"px";
$("emailsuccess").style.height=$("emailcontent").clientHeight+"px";
}$("emailcontent").style.display="none";
return ;
}else{$("emailerror").style.display="block";
if(a10.browser.isIE7()||a10.browser.isIE6()){$("emailerror").style.width="450px";
$("emailerror").style.height="308px";
}else{$("emailerror").style.width=$("emailcontent").clientWidth+"px";
$("emailerror").style.height=$("emailcontent").clientHeight+"px";
}$("emailcontent").style.display="none";
return ;
}}function D(J){$("emailerror").style.display="block";
if(a10.browser.isIE7()||a10.browser.isIE6()){$("emailerror").style.width="450px";
$("emailerror").style.height="308px";
}else{$("emailerror").style.width=$("emailcontent").clientWidth+"px";
$("emailerror").style.height=$("emailcontent").clientHeight+"px";
}$("emailcontent").style.display="none";
}};
this.sendanothermail=function(){if(typeof emailIntervalID!="undefined"){clearTimeout(emailIntervalID);
}$("towarningimage").style.display="none";
$("tolabel").style.color="#666666";
$("fromwarningimage").style.display="none";
$("fromlabel").style.color="#666666";
$("warningimage").style.display="none";
$("firsttd").width="250";
$("validaterror").style.display="none";
$("emailerror").style.display="none";
$("emailsuccess").style.display="none";
$("emailcontent").style.display="block";
$("sendbutton").style.display="";
$("sendtext").style.display="none";
};
this.sendPhone=function(C){ask.biz.sendanotherMsg(this.msg,true);
var G=$("phone_number").getElementsByTagName("input");
var B=G[0].value+G[1].value+G[2].value;
if(!ask.biz.validatePhone(B)){$("phone_warning1").style.display="block";
$("phone_warning3").style.display="block";
$("phone_warning4").style.display="block";
$("phone_tolabel").style.color="#B10000";
return false;
}if($("sendphone_check").checked==false){$("phone_warning2").style.display="block";
$("phone_warning3").style.display="block";
$("phone_warning5").style.display="block";
return false;
}$("phone_sendbutton").style.display="none";
$("phone_sendtext").style.display="";
var E="cellno="+B+"&msg="+encodeURIComponent(this.msg.replace(/&/g,""));
a10.ajax.post(C,E,F,D);
function F(H){if(H.responseText.indexOf("success")>-1){phoneIntervalID=setTimeout(function(){askesendToPhoneDialog.hide();
},5000);
$("phonesuccess").style.display="block";
if(a10.browser.isIE7()||a10.browser.isIE6()){$("phonesuccess").style.width="470px";
$("phonesuccess").style.height="270px";
}else{$("phonesuccess").style.width=$("phonecontent").clientWidth+"px";
$("phonesuccess").style.height=$("phonecontent").clientHeight+"px";
}$("phonecontent").style.display="none";
return ;
}else{$("phoneerror").style.display="block";
if(a10.browser.isIE7()||a10.browser.isIE6()){$("phoneerror").style.width="470px";
$("phoneerror").style.height="270px";
}else{$("phoneerror").style.width=$("phonecontent").clientWidth+"px";
$("phoneerror").style.height=$("phonecontent").clientHeight+"px";
}$("phonecontent").style.display="none";
return ;
}}function D(H){$("phoneerror").style.display="block";
if(a10.browser.isIE7()||a10.browser.isIE6()){$("phoneerror").style.width="450px";
$("phoneerror").style.height="308px";
}else{$("phoneerror").style.width=$("phonecontent").clientWidth+"px";
$("phoneerror").style.height=$("phonecontent").clientHeight+"px";
}$("phonecontent").style.display="none";
}};
this.sendanotherMsg=function(C){var B=arguments[1]?arguments[1]:false;
if(!B){$("to1").value="";
$("to2").value="";
$("to3").value="";
$("sendphone_check").checked=false;
}if(C!=""){this.msg=C;
}if(typeof phoneIntervalID!="undefined"){clearTimeout(phoneIntervalID);
}for(i=1;
i<=5;
i++){$("phone_warning"+i).style.display="none";
}$("phonesuccess").style.display="none";
$("phoneerror").style.display="none";
$("phonecontent").style.display="block";
$("phone_sendbutton").style.display="";
$("phone_sendtext").style.display="none";
$("phone_tolabel").style.color="#666666";
};
this.validatePhone=function(B){var C=/^[0-9]+[0-9]*$/;
if(B.length==10&&C.test(B)){return true;
}return false;
};
this.Termchecked=function(){$("phone_warning2").style.display="none";
if($("phone_warning1").style.display!="block"){$("phone_warning3").style.display="none";
}$("phone_warning5").style.display="none";
};
this.keyHit=function(B){var C=38;
var F=40;
var E=50;
var D=(B)?B.which:window.event.keyCode;
if(D==C){if(ask.biz.current_result<=1){ask.biz.current_result=1;
}else{ask.biz.current_result=ask.biz.current_result-1;
}ask.biz.showBubble(ask.biz.current_result,true);
$("dynamic_results").scrollTop=$("dynamic_results").scrollTop-E;
}else{if(D==F){if(ask.biz.current_result>=10){ask.biz.current_result=10;
}else{ask.biz.current_result=ask.biz.current_result+1;
}ask.biz.showBubble(ask.biz.current_result,true);
$("dynamic_results").scrollTop=$("dynamic_results").scrollTop+E;
}}return true;
};
};
}

