
var oldOnClick=document.onclick;function addEvent(obj,type,fn){if(obj.addEventListener)
obj.addEventListener(type,fn,false);else if(obj.attachEvent){obj["e"+type+fn]=fn;obj[type+fn]=function(){obj["e"+type+fn](window.event);}
obj.attachEvent("on"+type,obj[type+fn]);}}
function removeEvent(obj,type,fn){if(obj.removeEventListener)
obj.removeEventListener(type,fn,false);else if(obj.detachEvent){obj.detachEvent("on"+type,obj[type+fn]);obj[type+fn]=null;obj["e"+type+fn]=null;}}
function submitVote(sbid,marketSEO,categorySEO,categoryId,optionId){var url=location.href;var F=document.vForm;F.votingsbid.value=sbid;F.action=url;F.submit();}
function displayPercentages(percs){var i=0;while($("venue"+i)!=null){$("venue"+i).style.display="none";$("venuePerc"+i).innerHTML=percs[i]+"%";$("venuePerc"+i).style.display="inline";$("venuePerc"+i).className="vtepcnt";i++;}
updateVoteTxt();}
function enableVoting(){var i=0;while($("venue"+i)!=null){$("venue"+i).style.display="inline";$("venuePerc"+i).style.display="none";i++;}}
var jsdebug=(window.location.href.indexOf("jsdebug=true")>-1)?true:false;function debug(msg){if(window&&window.console&&window.console.log){window.console.log(msg);}}
var activeXHttpRequestVer=null;function AjaxRequest(url,load,error,srcObj){var method="GET";var self=this;self.url=url;self.load=load;self.error=error;self.method=method;self.srcObj=srcObj;if(window.XMLHttpRequest){try{self.xmlhttp=new XMLHttpRequest();}
catch(ex){self.error(ex);}}
else if(window.ActiveXObject){if(activeXHttpRequestVer){self.xmlhttp=new ActiveXObject(activeXHttpRequestVer);}else{var versions=["Msxml2.XMLHTTP.7.0","Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var i=0;i<versions.length;i++){try{self.xmlhttp=new ActiveXObject(versions[i]);if(self.xmlhttp){activeXHttpRequestVer=versions[i];break;}}
catch(objException){};};}
if((self.xmlhttp==null)||(self.xmlhttp==undefined)){alert("[Object Error]");}}
try{if(self.xmlhttp!=null){if(jsdebug)debug("Open connection : "+self.url+" method "+self.method);self.xmlhttp.open(self.method,self.url,true);self.xmlhttp.onreadystatechange=function(){if(self.xmlhttp.readyState==4){if(jsdebug)debug("Ajax Req Status : "+self.xmlhttp.status);if(self.xmlhttp.status==200){var resp=self.xmlhttp;self.load(resp,self.srcObj);}
else{self.error("request returned status code : "+self.xmlhttp.status);}}}
self.xmlhttp.send(null);}}
catch(ex){self.error(ex);};}
function JSONRequest(fullUrl){this.fullUrl=fullUrl;this.noCacheIE="&noCacheIE="+(new Date()).getTime();this.headLoc=document.getElementsByTagName("head").item(0);this.scriptId="YJscriptId"+JSONRequest.scriptCounter++;this.buildScriptTag();this.addScriptTag();}
JSONRequest.scriptCounter=1;JSONRequest.prototype.buildScriptTag=function(){this.scriptObj=document.createElement("script");this.scriptObj.setAttribute("type","text/javascript");this.scriptObj.setAttribute("src",this.fullUrl+this.noCacheIE);this.scriptObj.setAttribute("id",this.scriptId);}
JSONRequest.prototype.removeScriptTag=function(){this.headLoc.removeChild(this.scriptObj);}
JSONRequest.prototype.addScriptTag=function(){this.headLoc.appendChild(this.scriptObj);}
function HighlightEffect(targetName){this.targetName=targetName;target=$(targetName);this.oldBg=target.style.background;debug(this.oldBg);}
HighlightEffect.prototype.unhighlight=unhighlight;function unhighlight(i,targetName){if(!i){i=0;}
if(!targetName){targetName=this.targetName;}
target=$(targetName);++i;var rS=255;var gS=255;var bS=153;var rE=255;var gE=255;var bE=255;var step=50;var RedVal=Math.floor((rE-rS)/step*i+rS);var GreenVal=Math.floor((gE-gS)/step*i+gS);var BlueVal=Math.floor((bE-bS)/step*i+bS);target.style.background="rgb("+(RedVal)+","+(GreenVal)+","+(BlueVal)+")";if(i<step){window.setTimeout("unhighlight("+i+",\""+targetName+"\")",30);}
else if(i==step){i=0;target.style.background=this.oldBg;}}
function $(d){return document.getElementById(d);}
function getElementByClassName(className,parent,type){if(parent==null)
parent=document;var list=parent.getElementsByTagName(type);for(var x=0;x<list.length;x++){if(list[x].className==className){return list[x];}}}
function xmlF(xml,el){var val;try{val=xml.getElementsByTagName(el).item(0);}
catch(e){alert(e);val="";}
return val;}
function attrF(xml,name){for(var x=0;x<xml.attributes.length;x++){if(xml.attributes[x].nodeName.toLowerCase()==name){return xml.attributes[x].nodeValue;}}}
function Cookie(){}
Cookie.prototype.set=Set_Cookie;Cookie.prototype.get=Get_Cookie;Cookie.prototype.deleteCookie=Delete_Cookie;function Set_Cookie(name,value,expires,path,domain,secure){var today=new Date();today.setTime(today.getTime());if(expires)
{expires=expires*1000*60*60*24;}
var expires_date=new Date(today.getTime()+(expires));document.cookie=name+"="+escape(value)+
((expires)?";expires="+expires_date.toGMTString():"")+
((path)?";path="+path:"")+
((domain)?";domain="+domain:"")+
((secure)?";secure":"");}
function Get_Cookie(check_name){var a_all_cookies=document.cookie.split(';');var a_temp_cookie='';var cookie_name='';var cookie_value='';var b_cookie_found=false;for(i=0;i<a_all_cookies.length;i++)
{a_temp_cookie=a_all_cookies[i].split('=');cookie_name=a_temp_cookie[0].replace(/^\s+|\s+$/g,'');if(cookie_name==check_name)
{b_cookie_found=true;if(a_temp_cookie.length>1)
{cookie_value=unescape(a_temp_cookie[1].replace(/^\s+|\s+$/g,''));}
return cookie_value;break;}
a_temp_cookie=null;cookie_name='';}
if(!b_cookie_found)
{return null;}}
function Delete_Cookie(name,path,domain){if(Get_Cookie(name))document.cookie=name+"="+
((path)?";path="+path:"")+
((domain)?";domain="+domain:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT";}
function getElementsByClassName(strClass,strTag,objContElm){strTag=strTag||"*";objContElm=objContElm||document;var objColl=objContElm.getElementsByTagName(strTag);if(!objColl.length&&strTag=="*"&&objContElm.all)objColl=objContElm.all;var arr=new Array();var delim=strClass.indexOf('|')!=-1?'|':' ';var arrClass=strClass.split(delim);for(var i=0,j=objColl.length;i<j;i++){var arrObjClass=objColl[i].className.split(' ');if(delim==' '&&arrClass.length>arrObjClass.length)continue;var c=0;comparisonLoop:for(var k=0,l=arrObjClass.length;k<l;k++){for(var m=0,n=arrClass.length;m<n;m++){if(arrClass[m]==arrObjClass[k])c++;if((delim=='|'&&c==1)||(delim==' '&&c==arrClass.length)){arr[arr.length]=objColl[i];break comparisonLoop;}}}}
return arr;}
function searchTarget(formName,url,newWindow,formClass,newTarget,mainQName,mainQDefStr,secondQName,secondQDefStr,invocationType){theForm=document[formName];theForm.action=url;if(newWindow){theForm.target='_blank';}else{theForm.target='';}
if(formClass){theForm.className+=formClass;}else{theForm.className=document[formName].className.replace(new RegExp("[ ].+\\b"),"");}
if(invocationType){theForm.invocationType.value=invocationType;}
var arrElements=getElementsByClassName('searchCatBg','li',document.getElementById('searchCat'));for(var i=0;i<arrElements.length;i++){arrElements[i].className=arrElements[i].className.replace(new RegExp("[ ]?searchCatBg\\b"),"");}
document.getElementById(newTarget).className=' searchCatBg';primaryQ=document.getElementById('topquery');primaryQ.name=mainQName;primaryQ.value=mainQDefStr;secondQ=document.getElementById('secondquery');secondQ.name=secondQName;secondQ.value=secondQDefStr;}
function submitHeaderSearch(event,box){var topquery=document.getElementById("topquery");var topVal=topquery.value;var secondquery=document.getElementById("secondquery");var secVal=secondquery.value;if(box==undefined){if(topVal==topquerySearch)
topquery.value="";if(secVal==secondquerySearch)
secondquery.value="";}else if(box=="top"){if(topVal==topquerySearch)
topquery.value="";}else if(box=="sec"){if(secVal==secondquerySearch)
secondquery.value="";}}
function srchSub2(){return false;}
function hideItem(e,itemID,itemCallerID,className){var targ;if(!e)var e=window.event;if(e.target){targ=e.target;}else if(e.srcElement){targ=e.srcElement;}
if(targ.nodeType==3){targ=targ.parentNode;}
if(targ.id!=itemCallerID&&p_o(itemID)!=null){var oDiv=p_o(itemID);rex="[ ]?"+className+"\\b";oDiv.className=oDiv.className.replace(new RegExp(rex),"");}}
function p_o(o){return document.getElementById(o);}
function togMore(e,state){var oDiv=p_o('smore');if(state=='show'){oDiv.className+=' '+state;}else{rex="[ ]?show\\b";oDiv.className=oDiv.className.replace(new RegExp(rex),"");}
return false;}
function hideHeaderMore(e){hideItem(e,'smore','smorea','show');return false;}
addEvent(document,'click',hideHeaderMore);function cldShowMenu(elementId,classAppend){cldMenu=p_o(elementId);cldMenu.className+=classAppend;return false;}
function hideMarketPicker(e){hideItem(e,'cldCon','city_sel','show');return false;}
addEvent(document,'click',hideMarketPicker);function resetSearchText(e){var clicked="";try{clicked=e.target.id;}catch(ex){}
try{clicked=e.srcElement.id;}catch(ex){}
var top=document.bb_topform.topquery;var sec=document.bb_topform.secondquery;if(clicked!="srchLnk"){if(clicked!="topquery"){if(top.value==""){top.style.color="#919191";top.value=topquerySearch;}}
if(clicked!="secondquery"){if(sec.value==""){sec.style.color="#919191";sec.value=secondquerySearch;}}}}
addEvent(document,'click',resetSearchText);function CarouselSwitcher(baseID,activeClass,loop,trackingContainer,trackingTextContainer){this.baseID=baseID;this.currentNum=1;this.nextNum=1;this.prevNum=1;this.maxNum=1;this.activeClass=activeClass;this.inactiveClass="";this.loop=true;this.trackingContainer=trackingContainer;this.trackingTextContainer=trackingTextContainer;this.calcNums=function(){this.nextNum=(this.currentNum<this.maxNum)?this.currentNum+1:1;this.prevNum=(this.currentNum>1)?this.currentNum-1:this.maxNum;}
this.switchClass=function(element,formerClass,newClass){rex="[ ]?"+formerClass+"\\b";element.className=element.className.replace(new RegExp(rex),"");element.className+=' '+newClass;}
this.elAr=new Array();for(i=1;i<=document.getElementsByTagName("*").length;i++){element=document.getElementById(this.baseID+i);if(element!=null){this.elAr[i]=element;this.maxNum=i;}else{break;}}
this.calcNums();this.stepFwd=function(){if(this.nextNum==1&&!this.loop){return false;}else{this.step(this.nextNum);}}
this.stepBack=function(){if(this.prevNum==this.maxNum&&!this.loop){return false;}else{this.step(this.prevNum);}}
this.step=function(num){element=this.elAr[this.currentNum];this.switchClass(element,this.activeClass,this.inactiveClass);this.currentNum=num;element=this.elAr[this.currentNum];this.switchClass(element,this.inactiveClass,this.activeClass);this.writeTracking(this.currentNum);this.calcNums();}
this.writeTracking=function(currentNum){if(trackingContainer=document.getElementById(this.trackingContainer)){loopStopStr="";if(!this.loop&&(currentNum==1||currentNum==this.maxNum)){loopStopStr+=(currentNum==1)?" first":" last";}
this.switchClass(trackingContainer,"track[0-9]*([ ]first)?([ ]last)?","track"+currentNum+loopStopStr);}
if(trackingTextContainer=document.getElementById(this.trackingTextContainer)){trackingTextContainer.innerHTML=currentNum+"/"+this.maxNum;}}
this.writeTracking(this.currentNum);}
function emailThis(){var mailTLnk="mailto:?subject="+escape("AOL City's Best")+"&body="+escape("Hi,\n\nI was on AOL City's Best and thought you might be interested in this :\n\n");mailTLnk+=escape(location.href);location.href=mailTLnk;}
function updateVoteTxt(){var par=document.getElementById("vtstr");par.style.display="none";var shwPar=document.getElementById("vtstrcst");shwPar.style.display="block";}
function staf_SE(){var omniture_tracking;var width,height;var im_width,im_height;var lang="";var message="";var linkURL="";var pageTitle="";var confirm=false;var sendIM=function(){winl=(screen.width-im_width)/2;wint=(screen.height-im_height)/2;if(winl<0)winl=0;if(wint<0)wint=0;window.open("http://sendtoafriend.aol.com/im.adp?url="+linkURL+"&title="+pageTitle+"&lang="+lang,"IM_Window","height="+im_height+",width="+im_width+",top="+wint+",left="+winl+",statusbar=0,toolbar=0,menubar=0,location=0,resizable=0");}
var sendEmail=function(){winl=(screen.width-width)/2;wint=(screen.height-height)/2;if(winl<0)winl=0;if(wint<0)wint=0;window.open("http://sendtoafriend.aol.com/?url="+linkURL+"&title="+pageTitle+"&lang="+lang,"Email_Window","height="+height+",width="+width+",top="+wint+",left="+winl+",statusbar=0,toolbar=0,menubar=0,location=0,resizable=0");}
var setDefault=function(){message="Your friend wants you to check this out:";linkURL=escape(document.location);pageTitle=escape(document.title);confirm=false;width=292;height=500;im_width=292;im_height=150;lang="en-US";}
setDefault();return{sendIM:function(){if(omniture_tracking){setOmniStaf("IM");}
sendIM();},sendEmail:function(){if(omniture_tracking){setOmniStaf("Email");}
sendEmail();},setMessage:function(custom_message){if(typeof(custom_message)=="string"){message=custom_message;}},setWidth:function(custom_width){if(typeof(custom_width)=="number"){width=custom_width;}},setHeight:function(custom_height){if(typeof(custom_height)=="number"){height=custom_height;}},setIMWidth:function(custom_width){if(typeof(custom_width)=="number"){im_width=custom_width;}},setIMHeight:function(custom_height){if(typeof(custom_height)=="number"){im_height=custom_height;}},setLang:function(custom_lang){if(typeof(custom_lang)=="string"){lang=custom_lang;}},setTitle:function(custom_title){if(typeof(custom_title)=="string"){pageTitle=escape(custom_title);}},setURL:function(custom_url){if(typeof(custom_url)=="string"){linkURL=escape(custom_url);}}};}
var staf_obj=new staf_SE();staf_obj.setLang("en-US");staf_obj.setWidth(292);staf_obj.setHeight(500);s2c_domain_name="http://aolmobile.aol.com/portal/send2cellWidget.do";var s2c_title_text='Send to Cell';var s2c_omni_dept='Send to Cell: City\'s Best: City\'s Best';var s2c_pageTitle='Send to Cell: City\'s Best: City\'s Best WAP';var s2c_successMsg="Your message has been sent. Your wireless carrier may charge for using the mobile web. Check with your carrier for details; consider subscribing to a data plan.<br>Discover all the great AOL Products available for your phone. <a href='http://mobile.aol.com/?ncid=AOLCOMMmoblalrtalrt0001' target='_blank' >Visit AOLMobile.com now.</a>";var s2c_marketing_text='Enter your mobile number to send a link to City\'s Best to your phone and check out all of the City\'s Best Winners. From Best Breakfast to Best Dessert, City\'s Best covers all the top spots. Be sure to bookmark the link for future access.';function sendToCell(sideon){var offs=0;if(sideon=="right"){offs=-260;}else if(sideon=="left"){offs=0;}
showS2C('s2cFrame','s2clink',offs,15);return;}
try{document.execCommand("BackgroundImageCache",false,true);}catch(err){}
function remove_cookie(name,path,domain){if(Get_Cookie(name))document.cookie=name+"="+
((path)?";path="+path:"")+
((domain)?";domain="+domain:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT";return true;}
var onResp=function(){return true;}
function sendLoggingReq(url){var request=null;if(window.ActiveXObject)
request=new ActiveXObject("Microsoft.XMLHTTP");else if(window.XMLHttpRequest)
request=new XMLHttpRequest();else
return;request.open("GET",url,true);request.send(null);}
function clickThruLogging(clickedItemRank,clickedItemURN,clickedItemDesc,requestId,searchType,Source,partner,moduleId)
{var logging_url="/clickthrough?clickedItemRank="+clickedItemRank+"&clickedItemURN="+clickedItemURN+"&clickedItemDescription="+clickedItemDesc+"&requestId="+requestId+"&searchType="+searchType+"&source="+Source+"&partner="+partner+"&moduleId="+moduleId;sendLoggingReq(logging_url);}
function clickThruLogging2(clickedItemRank,clickedItemURN,clickedItemDesc,requestId,searchType,Source,partner,moduleId,pageName,market,parentCategory,category)
{var logging_url="/clickthrough?clickedItemRank="+clickedItemRank+"&clickedItemURN="+clickedItemURN+"&clickedItemDescription="+clickedItemDesc+"&requestId="+requestId+"&searchType="+searchType+"&source="+Source+"&partner="+partner+"&moduleId="+moduleId+"&Market="+market+"&PageName="+pageName+"&ParentCategory="+parentCategory+"&Category="+category;;sendLoggingReq(logging_url);}