var timer=null;
var callInProgress=false;
var renderingInProgress=false;
var distance=5;
var exploreTypes=[];
var currentType="";
var currentName="";
var oldCenter=null;
var itemsCache=[];
var myitemsCache=null;
var askInfowindowOpen=false;
var currentDate=null;
var calQ="";
var publisherID=204;
var miniCal=null;
var startURL=document.location.href;
function initPage(){
pageContext=__getQueryContext();
loc=(pageContext["L"]==null)?"":pageContext["L"];
loc=loc.replace(/-/g," ");
headerSetSearchState("",loc,null);
headerFocusHandler("pn");
if(currentSelection=="places"||currentSelection==""){
toggleExploreView("Map");
$("calview").hide();
}else{
if(currentSelection=="events"){
toggleExploreView("Cal");
$("calview").show();
if(!window.EventDateList){
window.EventDateList="";
}
var _1=window.EventDateList.split(",");
miniCal=new scal("sideCalendar",function(_2){
scrollToDate(new Date(_2));
},{titleformat:"mmmm yyyy",dayheadlength:3,weekdaystart:0,exactweeks:true,tabular:false,prevbutton:"<img src='"+rootPath+"images/SignupSheet/leftArrow.gif'>",nextbutton:"<img src='"+rootPath+"images/SignupSheet/rightArrow.gif'>",oncalchange:function(e){
getEventsOnDate();
}});
highlightDates(_1);
scrollToDate(new Date());
}
}
try{
currentDate=miniCal.currentDate;
}
catch(exception){
currentDate=new Date();
}
initializeMap(true);
initializeCal();
if(window.map){
if(startLocation.toLowerCase()!="united states"){
map.setZoom(15);
}else{
map.setZoom(4);
}
map.clearOverlays();
createRefreshControl();
createAdsControl();
map.addControl(new _RefreshControl());
map.addControl(new _AdsControl());
$("adcontainer").style.display="block";
GEvent.addListener(map,"dragend",function(){
askrefreshView();
refreshAdsOnMapViewChange();
});
GEvent.addListener(map,"zoomend",function(){
refreshAdsOnMapViewChange();
});
refreshAdsOnMapViewChange();
Lat49.initAds(204);
var ll=map.getCenter();
var _5=new Object();
_5["adcontainer"]=Lat49.Ads.HALF_BANNER;
var _6=map.getBounds();
var ne=_6.getNorthEast();
var sw=_6.getSouthWest();
Lat49.updateMultiAdsByLatLon(_5,ll.lat(),ll.lng(),7,sw.lat(),sw.lng(),ne.lat(),ne.lng());
}
if(window._getBusinessJSON){
RenderData(_getBusinessJSON());
}else{
if(currentSelection!="events"&&startLocation.toLowerCase()!="united states"){
$("categoryList_6").checked=true;
__registerforExplore("Restaurants & Bars","Restaurants___Bars",true);
}
}
}
function addItem(_9,_a,_b){
_9=unescape(_9);
if(!myitemsCache){
myitemsCache=[];
}
if(isLoggedin=="0"){
headerShowErrorMessage("You need to <a href = '"+authRootDomain+"auth/default.aspx?redirecturl=../explore/default.aspx'><u>login</u></a> to save your selections....",true,"alert");
return;
}else{
AsyncCall(rootPath+"/async/addLink.aspx?callid="+FDAsyncCore.GetExecutionID()+"&id="+_9+"&lat="+_a+"&lng="+_b,addLinkCallback);
headerShowErrorMessage("Your selection has been added to the list...",true,"Info");
}
}
function addLinkCallback(d){
if(isLoggedin=="0"){
}
}
function explore(){
if(callInProgress){
window.setTimeout("explore();",2000);
return;
}
var _d=exploreTypes.length;
for(var i=0;i<_d;i++){
var o=exploreTypes[i];
if(!o){
continue;
}
if(o.enabled==true){
callInProgress=true;
currentType=o.id;
currentName=o.name;
__unregisterforExplore(o.name,currentType);
doExplore(o.name,currentType);
window.setTimeout("explore();",100);
break;
}else{
doNotExplore(o.name,o.id);
}
}
var _d=exploreTypes.length;
}
function doNotExplore(v,k){
if(currentSelection=="places"){
hideMarkers(k);
}else{
__calClearEvents(k);
}
}
function doExplore(v,k){
if(!v||v==""){
return;
}
if(!k||k==""){
return;
}
var _14="";
if(currentSelection=="places"){
var _15=getTags(k);
var _16=_15.length;
for(var i=0;i<_16;i++){
if(_15[i]==""){
continue;
}
if(_14!=""){
_14=_15[i]+" & "+_14;
}else{
_14=_15[i];
}
}
}else{
var _15=getTags(k);
var _16=_15.length;
for(var i=0;i<_16;i++){
if(_15[i]==""){
continue;
}
if(_14!=""){
_14=_15[i]+" & "+_14;
}else{
_14=_15[i];
}
}
}
if(_14==""){
callInProgress=false;
currentType="";
currentName="";
return;
}
_14=_14.replace(/&amp;/g,"&");
var ll=map.getCenter();
if(currentSelection=="events"){
var _19="events and activities, fatdoor.events";
if(EventsQuery.indexOf(_14)==-1){
if(EventsQuery&&_14){
EventsQuery+=",";
}
EventsQuery+=_14;
}else{
var _1a=EventsQuery.split(",");
EventsQuery="";
for(var i=0;i<_1a.length;i++){
if(_1a[i]!=_14){
if(EventsQuery&&_1a[i]){
EventsQuery+=",";
}
EventsQuery+=_1a[i];
}
}
}
FindEvents(EventsQuery,_19);
return;
}else{
var _1b=map.getBounds();
var se=_1b.getSouthWest();
var ne=_1b.getNorthEast();
var _1e=(se.distanceFrom(ne)/2)*(0.000621371192);
_1e=_1e*0.65;
if(_1e>50){
_1e=50;
}
headerShowErrorMessage("Loading "+v+" ...");
var _19="fatdoor.entity";
var url=rootPath+"async/query.aspx?query="+_14+"&types="+_19+"&ps=30&lat="+ll.lat()+"&lon="+ll.lng()+"&sort=dist&d="+_1e;
new Ajax.Request(url,{method:"get",postBody:"",onSuccess:exploreCallback,onFailure:exploreCallback});
}
oldCenter=map.getCenter();
}
var mostRecentSearch="";
function getSpecificCategories(){
var _20="";
var _21=$("categoryList").select("input");
for(var i=0;i<_21.length;i++){
if(_21[i].checked){
if(_20){
_20+=",";
}
_20+=$("hashTableLookup").down("."+_21[i].id).innerHTML;
}
}
return _20;
}
function getSpecific(){
var _23=$("searchField").value;
map.clearOverlays();
if(!_23){
getSpecificClear();
return;
}else{
if(_23=="Search All"){
return;
}
}
var _24=$("categoryList").select("input");
for(var i=0;i<_24.length;i++){
_24[i].checked=false;
}
mostRecentSearch=_23;
var o=new Object();
o.id="search";
o.name=_23;
o.enabled=true;
o.cache=[];
exploreTypes.push(o);
window.setTimeout("explore();",100);
}
function getSpecificClear(){
doNotExplore(mostRecentSearch,"search");
}
function calendarCallback(){
callInProgress=false;
currentType="";
currentName="";
return;
}
function exploreCallback(_27){
headerHideErrorMessage();
if(!_27){
callInProgress=false;
currentType="";
currentName="";
return;
}
var _28=null;
try{
_28=eval(_27.responseText);
}
catch(evrthng){
}
if(!_28||_28.length!=3){
headerShowErrorMessage("Sorry, error in getting the data...",false,"Error");
callInProgress=false;
currentType="";
currentName="";
return;
}
RenderData(_28[0]);
}
function RenderData(_29){
hideMarkers(currentType,true);
if(!_29||_29.length<=0){
headerShowErrorMessage("No matches found....",true,"Error");
callInProgress=false;
currentType="";
currentName="";
return;
}
for(var i=0;i<_29.length;i++){
var _2b="";
if(_29[i].f.degree=="first"){
_29[i].hideTasks=true;
_29[i].f.degreeImage="<img class = 'degreeImage' src = '"+rootPath+"images/ico/16/first-degree.gif' alt = 'First Degree'>";
}else{
if(_29[i].f.degree=="second"){
_29[i].f.degreeImage="<img class = 'degreeImage' src = '"+rootPath+"images/ico/16/second-degree.gif' alt = 'Second Degree'>";
}
}
if($(_29[i].guid)){
continue;
}
_29[i].guid=escape(_29[i].guid.replace(/'/,"%27"));
var _2c="";
var _2d=eval(_29[i].f.rating);
var _2e=eval(_29[i].f.reviews);
var _2f="<img src='"+rootPath+"images/star_sm.gif'/>";
var _30="<img src='"+rootPath+"images/star_sm_off.gif'/>";
if(_2e>0){
for(var j=0;j<5;j++){
if(_2d>=(j+1)){
_2c+=_2f;
}else{
_2c+=_30;
}
}
if(_2e>0){
_2c+="<br>("+_2e+" Web Reviews)";
}
}
_29[i].f.reviewHTML=_2c;
}
renderingInProgress=true;
try{
var _32={vcard:"<div class=\"item\" ><div id='${id}' class=\"vcard\">${content}<div id='${id}_tasks' class=\"tasks\">${tasklinks}</div></div></div>",vevent:"<div class=\"item\" ><div id='${id}' class=\"vevent\">${content}<div id='${id}_tasks' class=\"tasks\">${tasklinks}</div></div></div>",vcard_content:"<div ><a href=\"${link}\" title=\"${title}\"><img src=\"${photo}\" alt=\"Image of ${title}\" class=\"photo\" style=\"display:none;\" /></a></div><div class=\"fn org\" style=\"display:none;\" >${title}</div><h5><a class=\"url fn org\" href=\"${link}\" target=\"_blank\">${title}</a>${degreeImage}</h5><address class=\"adr\"><span class=\"street-address\">${address}</span><br /><span class=\"locality\">${city}</span>, <span class=\"region\">${state}</span> <span class=\"postal-code\">${zip}</span></address><div class=\"tel\">${tel}</div><p class=\"geo\" style=\"display:none;\"><span class=\"latitude\">${lat}</span><span class=\"longitude\">${lng}</span></p><input type=hidden class=\"v_icon\" id=\"${id}_icon\" style=\"display:none;\" value=\"${icon}\" /><div class = \"reviews\">${review}</div><div class=\"driving-directions\"><a href = "+rootPath+"directions/?toid=${id}>Driving Directions</a></div>",vevent_content:"<div ><a href=\"${link}\" title=\"${title}\"><img src=\"${photo}\" alt=\"Image of ${title}\" class=\"photo\" style=\"display:none;\" /></a></div><div class=\"summary\" style=\"display:none;\" >${title}</div><h5><a class=\"summary\" href=\"${link}\" target=\"_blank\">${title}</a></h5><div><span class=\"dtstart\" title=\"${dt_start}\">${dt_start}</span> - <span class=\"dtend\" title=\"${dt_end}\">${dt_end}</span></div><h5 class=\"location\">${venue}</h5><address class=\"adr\"><span class=\"street-address\">${address}</span><br /><span class=\"locality\">${city}</span>, <span class=\"region\">${state}</span> <span class=\"postal-code\">${zip}</span></address><p class=\"geo\" style=\"display:none;\"><span class=\"latitude\">${lat}</span><span class=\"longitude\">${lng}</span></p><input type=hidden class=\"v_icon\" id=\"${id}_icon\" style=\"display:none;\" value=\"${icon}\" />",task:"${term}"};
$("list_view").innerHTML="";
var _33=[];
var _34="<a class=\"btn medBtn\" href=\"${url}\"><span><strong>Save to my "+currentSelection+"</strong></span></a>";
_33.push([_34,"javascript:addItem('${id}', '${lat}', '${lng}');"]);
MicroformatRenderer.bind(_29,_33,"list_view",_32);
var _35=new GIcon(__mapGetBaseIcon());
_35.image=getIconUrl(currentName);
var _36=null;
if(currentSelection=="events"){
_36=__mapMicroformatsBind($("list_view"),{"noAutoFitView":true,"microformatType":"vevent"});
}else{
_36=__mapMicroformatsBind($("list_view"),{"noAutoFitView":true,"microformatType":"vcard"});
}
if(_36!=null){
var _37=_36.length;
for(var i=0;i<_37;i++){
var _38=_36[i];
_38.category=currentType;
itemsCache.push(_38);
if(_36.length==1){
GEvent.trigger(_38,"click");
}
}
}
}
catch(evr){
}
callInProgress=false;
currentType="";
}
function findLocation(){
if(exploreType=="places"){
map.Geocode($("locationInput").value,findCallback);
}else{
var _39="events and activities, fatdoor.events";
$("currentLocationLink").innerHTML=$("locationInput").value;
$("currentLocationLink").title="You're looking in "+$("locationInput").value;
document.title=TitleType+$("locationInput").value+" | Center'd";
FindEvents(EventsQuery,_39);
return;
}
}
function FindEvents(_3a,_3b,_3c){
var _3d="events and activities, fatdoor.events";
if(!_3c){
_3c=$("DateString").value;
}
var url=rootPath+"async/exploreEvents.aspx?etype=events&query="+_3a+"&types="+_3d+"&ps=30&l="+$("locationInput").value+"&dts="+_3c;
_FindEvents();
new Ajax.Request(url,{method:"get",postBody:"",onSuccess:_FindEventsCallback,onFailure:_FindEventsCallback});
}
function getEventsOnDate(){
var _3f=miniCal.getDateByElement($("cal_day_1_5"));
var _40=(_3f.getMonth()+1)+"/1/"+_3f.getFullYear();
FindEvents(EventsQuery,"events and activities, fatdoor.events",_40);
}
function _FindEvents(){
headerShowErrorMessage("Loading events ...");
}
function _FindEventsCallback(_41){
if(_41){
var _42=$("ExploreEventsContainer").down(".TaskCalWrapper ");
var _43=_42.parentNode;
_43.removeChild(_42);
_43=$("ExploreEventsContainer");
var div=document.createElement("div");
div.innerHTML=_41.responseText;
try{
_43.insert(div);
}
catch(exception){
}
}
updateEventsCalendar();
callInProgress=false;
headerHideErrorMessage();
}
function updateEventsCalendar(){
clearHighlights();
window.EventDateList=$("UpdatedEventDateList").value;
var _45=window.EventDateList.split(",");
highlightDates(_45);
}
function findCallback(_46){
if(_46==null||_46.length<=0){
return;
}
$("currentLocationLink").innerHTML=$("locationInput").value;
$("currentLocationLink").title="You're looking in "+$("locationInput").value;
document.title=TitleType+$("locationInput").value+" | Center'd";
map.setCenter(new GLatLng(_46[0].location.coordinates[0],_46[0].location.coordinates[1]),15);
refreshView();
}
function reHydrate(){
var url=rootPath+"async/addLink.aspx?callid="+FDAsyncCore.GetExecutionID()+"&act=get";
new Ajax.Request(url,{method:"get",postBody:"",onSuccess:reHydrateCallback,onFailure:reHydrateCallback});
}
function clearList(){
headerShowErrorMessage("Clearing the unsaved selections...");
var url=rootPath+"async/addLink.aspx?callid="+FDAsyncCore.GetExecutionID()+"&act=clear";
new Ajax.Request(url,{method:"get",postBody:"",onSuccess:clearListCallback,onFailure:clearListCallback});
return false;
}
function clearListCallback(t){
headerHideErrorMessage();
return false;
}
function reHydrateCallback(t){
var e=null;
try{
e=eval(t.responseText);
var len=e.length;
if(len>0){
if($("placeScoreContainer")&&($("placeScoreContainer").style.display=="none")){
$("placeScoreContainer").style.display="block";
}
myitemsCache=e;
}
}
catch(er){
}
headerHideErrorMessage();
}
function exploreOnEnter(e){
if(e&&e.keyCode&&e.keyCode==13){
findLocation();
return false;
}else{
return true;
}
}
function getSpecificOnEnter(e){
if(e&&e.keyCode&&e.keyCode==13){
getSpecific();
return false;
}else{
return true;
}
}
function toggleExploreView(obj){
if(!obj){
return;
}
if(obj=="Map"){
$("calHost").hide();
$("mapHost").show();
initializeMap(true);
__mapMicroformatsBind($("list_view"),{"noAutoFitView":false,"microformatType":"vevent"});
$("mapview").removeClassName("current");
$("calview").removeClassName("current");
$("calview").hide();
$("mapview").show();
$("mapview").addClassName("current");
}else{
if(obj=="Cal"){
$("calHost").show();
$("mapHost").hide();
GUnload();
$("mapview").hide();
$("calview").show();
$("calview").removeClassName("current");
$("calview").addClassName("current");
}else{
return;
}
}
}
function tweakFilter(v,a){
if(!v){
return;
}
var _52=$("filterText_"+v);
_52.value=__scrubWhiteSpace(_52.value);
if(_52.value==""){
return;
}
var _53=$("filterList_"+v);
var n=$(v).innerHTML.replace(/&amp;/g,"&");
var _55="filterList_"+v+"_"+_52.value.replace(/&amp;/g,"&");
var _56="filterList_"+v+"_"+_52.value.replace(/&amp;/g,"&")+"_value";
if(a){
var _57="<li id=\""+_55+"\"><div class=\"remove\"><a href=\"javascript:void(0);\" onclick='$(\"filterText_"+v+"\").value=$(\""+_56+"\").innerHTML;tweakFilter(\""+v+"\");'>Remove</a></div><div id=\""+_56+"\" class=\"tagvalue\">"+_52.value+"</div></li>";
new Insertion.After("filterListHead_"+v,_57);
}else{
$(_55).parentNode.removeChild($(_55));
}
_52.value="";
_52.focus();
__onstateChange(n,v,true);
}
function askrefreshView(){
new Effect.BlindDown("refreshButton");
}
function refreshView(_58){
if(currentSelection=="places"){
map.clearOverlays();
}
var els=getjsoncats();
var len=els.length;
for(var i=0;i<len;i++){
try{
var id="categoryList_"+els[i][0];
if($(id).checked){
__onstateChange(els[i][2],els[i][1],true);
}
if(_58&&(_58==id)){
break;
}
}
catch(exp){
}
}
getSpecific();
}
function getTags(v){
var _5e;
var _5f=[];
if(v!="search"){
var el=$("filterList_"+v);
if(!el){
return [];
}
_5e=el.getElementsByTagName("li");
if(!_5e){
return [];
}
var len=_5e.length;
for(var i=0;i<len;i++){
var did=_5e[i].id+"_value";
var tag=$(did).innerHTML;
_5f.push(tag);
}
}else{
var val=$("searchField").value;
_5f.push(val);
}
return _5f;
}
function canRefreshView(){
if(currentSelection=="events"){
return true;
}
if(!oldCenter){
return true;
}
var _66=map.getCenter().distanceFrom(oldCenter);
if(_66>200){
return true;
}
return false;
}
function onZoomEnd(){
if(currentSelection=="events"){
return;
}
var z=map.getZoom();
if(z<16){
map.setZoom(17);
}else{
map.closeInfoWindow();
}
}
function updateyear(d){
}
function updateView(e){
currentDate=e.date;
refreshView();
}
function __categoryList__itemclicked(n,k,o){
if(!o){
return;
}
if(o.checked){
__onstateChange(n,k,true);
}else{
__onstateChange(n,k,false);
}
}
function __registerforExplore(n,k,_6f){
var o=new Object();
o.id=k;
o.name=n;
o.enabled=_6f;
o.cache=[];
exploreTypes.push(o);
window.setTimeout("explore();",100);
}
function __unregisterforExplore(n,k){
var len=exploreTypes.length;
for(var i=0;i<len;i++){
var o=exploreTypes[i];
if(!o){
continue;
}
if(o.id==k){
exploreTypes.splice(i,1);
break;
}
}
doNotExplore(n,k);
}
function __onstateChange(n,k,_78){
__unregisterforExplore(n,k);
if(_78||currentSelection=="events"){
__registerforExplore(n,k,true);
}
}
function hideMarkers(v,_7a){
if(!itemsCache){
return;
}
for(var i=0;i<itemsCache.length;i++){
try{
if(itemsCache[i].category&&itemsCache[i].category==v){
itemsCache[i].hide();
if(_7a){
map.removeOverlay(itemsCache[i]);
itemsCache.splice(i,1);
}
}
}
catch(ev){
}
}
}
function _RefreshControl(){
}
function createRefreshControl(){
_RefreshControl.prototype=new GControl();
_RefreshControl.prototype.initialize=function(map){
var _7d=$("refreshButton");
_7d.show();
map.getContainer().appendChild(_7d);
return _7d;
};
_RefreshControl.prototype.getDefaultPosition=function(){
return new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(9,30));
};
}
function getEventColor(k){
if(k=="Music__Concerts"){
return "#047391";
}else{
if(k=="Festivals__Fairs__Parades"){
return "#FF7900";
}else{
if(k=="Sports"){
return "#BF0000";
}else{
if(k=="Performing_Arts"){
return "#FFFF00";
}else{
if(k=="Conferences__Conventions"){
return "#D59758";
}else{
if(k=="Art__Antiques__Crafts"){
return "#FFBF00";
}else{
if(k=="Family_Fun__Kids"){
return "#29ABE2";
}else{
if(k=="Travel__Tours"){
return "#C9C900";
}else{
if(k=="Business__Finance__Investing"){
return "#2210D2";
}else{
if(k=="Other"){
return "#6495ED";
}else{
if(k=="Science"){
return "#FF8888";
}else{
if(k=="Outdoors__Recreation"){
return "#5A3D1C";
}else{
if(k=="Museums__Zoos__Attractions"){
return "#00A33D";
}else{
if(k=="Technology"){
return "#004F72";
}else{
if(k=="Singles__Social"){
return "#72A126";
}else{
if(k=="Books__Poetry__Literature"){
return "#55E7FF";
}else{
if(k=="Sales__Retail__Open_Houses"){
return "#662D91";
}else{
if(k=="Food__Cuisine__Wine"){
return "#FF00FF";
}else{
if(k=="Animals__Pets"){
return "#FF4000";
}else{
if(k=="Community__Neighborhood"){
return "#D111AD";
}else{
if(k=="Charities__Fundraisers"){
return "#CCFF00";
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function getIconUrl(_7f){
if(_7f=="Grocery, Food & Drugs"){
return rootPath+"images/ico/24/grocery.png";
}
if(_7f=="Restaurants & Bars"){
return rootPath+"images/ico/24/restaurant.png";
}else{
if(_7f=="Entertainment"){
return rootPath+"images/ico/24/entertainment.png";
}else{
if(_7f=="Museums & Galleries"){
return rootPath+"images/ico/24/art-gallery.png";
}else{
if(_7f=="Health & Beauty"){
return rootPath+"images/ico/24/beauty.png";
}else{
if(_7f=="Schools"){
return rootPath+"images/ico/24/library-school.png";
}else{
if(_7f=="Medical"){
return rootPath+"images/ico/24/medical.png";
}else{
if(_7f=="Retail Shopping"){
return rootPath+"images/ico/24/retail.png";
}else{
if(_7f=="Hotels & Lodging"){
return rootPath+"images/ico/24/lodging.png";
}else{
if(_7f=="Parks"){
return rootPath+"images/ico/24/parks.png";
}else{
return rootPath+"images/ico/24/places.png";
}
}
}
}
}
}
}
}
}
}
function _AdsControl(){
}
function createAdsControl(){
_AdsControl.prototype=new GControl();
_AdsControl.prototype.initialize=function(map){
var _81=$("adcontainer");
_81.show();
map.getContainer().appendChild(_81);
return _81;
};
_AdsControl.prototype.getDefaultPosition=function(){
return new GControlPosition(G_ANCHOR_BOTTOM_RIGHT,new GSize(2,15));
};
}
function refreshAdsOnMapViewChange(){
var ll=map.getCenter();
var z=map.getZoom();
var _84=new Object();
_84["adcontainer"]=Lat49.Ads.HALF_BANNER;
var _85=map.getBounds();
var ne=_85.getNorthEast();
var sw=_85.getSouthWest();
Lat49.updateMultiAdsByLatLon(_84,ll.lat(),ll.lng(),7,sw.lat(),sw.lng(),ne.lat(),ne.lng());
}
function clearHighlights(){
var _88=$("sideCalendar").select(".highlighted");
for(var i=0;i<_88.length;i++){
_88[i].removeClassName("highlighted");
}
}
function highlightDates(_8a){
for(var i=0;i<_8a.length;i++){
if(miniCal.containsDate(new Date(_8a[i]))){
var _8c=miniCal.getElementByDate(new Date(_8a[i]));
if(_8c&&_8c.hasClassName("dayinmonth")){
_8c.addClassName("highlighted");
}
}
}
}
function scrollToDate(_8d){
var _8e=(_8d.getMonth()+1)+"/"+_8d.getDate()+"/"+_8d.getFullYear()+"List";
if($(_8e)){
document.location.href=startURL+"#"+_8e;
}
}
Event.observe(window,"load",initPage,false);

