// search for '07/06/2009'
jrs_button_img='<img src=\'http://www.jackrabbitsystems.com/images/trip_images/buttons/716hotel.jpg\' style=\'display: block; float: none; left:0px; top: 0px; margin:0px; padding:0px; border: 0px none;\'/>\n';
jrs_button_hooks = new Array();
jrs_button_hooks['1S531TB13D']='<div class=\'jrs_buttons\'><div class=\'jrs_buttons_pad\'>\n';
jrs_button_hooks['1S531TB13D']+='<a href=\'http://newmexico-trips.com/redirect.php?group_id=39&cloneID=1&nights=1&rooms=1&adults=1&kids=0&catID=103&sDate=2009-07-06&eDate=2009-07-07&eventID=599&linkTypeID=14&clickSourceID=5\' target=\'_blank\' class=\'direct_price_link\'>$74.99*</a>\n';
jrs_button_hooks['1S531TB13D']+='<a href=\'http://newmexico-trips.com/redirect.php?group_id=39&cloneID=1&nights=1&rooms=1&adults=1&kids=0&catID=103&sDate=2009-07-06&eDate=2009-07-07&eventID=599&linkTypeID=5&clickSourceID=5\' target=\'_blank\'><img src=\'http://www.jackrabbitsystems.com/images/trip_images/buttons/bookDirectWithHotel_BTN.gif\' class=\'direct_link_image\'></a>\n';
jrs_button_hooks['1S531TB13D']+='</div></div>\n';
jrs_button_hooks['1S531TB13D']+='\n';
jrs_button_hooks['ORT9773V33']='<div class=\'jrs_buttons\'><div class=\'jrs_buttons_pad\'>\n';
jrs_button_hooks['ORT9773V33']+='<a href=\'http://newmexico-trips.com/redirect.php?group_id=39&cloneID=1&nights=1&rooms=1&adults=1&kids=0&catID=103&sDate=2009-07-06&eDate=2009-07-07&eventID=795&linkTypeID=14&clickSourceID=5\' target=\'_blank\' class=\'direct_price_link\'>$129.00*</a>\n';
jrs_button_hooks['ORT9773V33']+='<a href=\'http://newmexico-trips.com/redirect.php?group_id=39&cloneID=1&nights=1&rooms=1&adults=1&kids=0&catID=103&sDate=2009-07-06&eDate=2009-07-07&eventID=795&linkTypeID=5&clickSourceID=5\' target=\'_blank\'><img src=\'http://www.jackrabbitsystems.com/images/trip_images/buttons/bookDirectWithHotel_BTN.gif\' class=\'direct_link_image\'></a>\n';
jrs_button_hooks['ORT9773V33']+='</div></div>\n';
jrs_button_hooks['ORT9773V33']+='\n';
jrs_button_hooks['ZYO151NW51']='<div class=\'jrs_buttons\'><div class=\'jrs_buttons_pad\'>\n';
jrs_button_hooks['ZYO151NW51']+='<a href=\'http://newmexico-trips.com/redirect.php?group_id=39&cloneID=1&nights=1&rooms=1&adults=1&kids=0&catID=103&sDate=2009-07-06&eDate=2009-07-07&eventID=815&linkTypeID=14&clickSourceID=5\' target=\'_blank\' class=\'direct_price_link\'>$109.95*</a>\n';
jrs_button_hooks['ZYO151NW51']+='<a href=\'http://newmexico-trips.com/redirect.php?group_id=39&cloneID=1&nights=1&rooms=1&adults=1&kids=0&catID=103&sDate=2009-07-06&eDate=2009-07-07&eventID=815&linkTypeID=5&clickSourceID=5\' target=\'_blank\'><img src=\'http://www.jackrabbitsystems.com/images/trip_images/buttons/bookDirectWithHotel_BTN.gif\' class=\'direct_link_image\'></a>\n';
jrs_button_hooks['ZYO151NW51']+='</div></div>\n';
jrs_button_hooks['ZYO151NW51']+='\n';

function jrs_choose_date(thedate, thedatepicker) {
	arrival = new Date(thedate);
	arrival_day = arrival.getDate();
	arrival_month = arrival.getMonth() + 1; // Jan = 0
	arrival_year = arrival.getFullYear();
	var newUrl = $.query.remove("").set("sDay", arrival_day).set("sMonth", arrival_month).set("sYear", arrival_year).toString();
	newUrl = newUrl.replace(/(sDay|sMonth)=(\d)\b/g, "$1=0$2")
  window.location.search = newUrl;
}

function jrs_show_calendar(code) {
	var now = new Date();
	$.datepicker.dialogDatepicker(now, jrs_choose_date, {
		showOn: 'none',  // no automatic anything!  click only!
		clearText: ' ',
		minDate: now,
		hideglitched: false
	});
}
