// search for '01/07/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-01-07&eDate=2009-01-08&eventID=599&linkTypeID=14&clickSourceID=5\' target=\'_blank\' class=\'direct_price_link\'>$79.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-01-07&eDate=2009-01-08&eventID=599&linkTypeID=5&clickSourceID=5\' target=\'_blank\'>' + jrs_button_img + '</a>\n';
jrs_button_hooks['1S531TB13D']+='</div></div>\n';
jrs_button_hooks['1S531TB13D']+='\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-01-07&eDate=2009-01-08&eventID=815&linkTypeID=14&clickSourceID=5\' target=\'_blank\' class=\'direct_price_link\'>$114.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-01-07&eDate=2009-01-08&eventID=815&linkTypeID=5&clickSourceID=5\' target=\'_blank\'>' + jrs_button_img + '</a>\n';
jrs_button_hooks['ZYO151NW51']+='</div></div>\n';
jrs_button_hooks['ZYO151NW51']+='\n';
jrs_button_hooks['3Z3J977MWQ']='<div class=\'jrs_buttons\'><div class=\'jrs_buttons_pad\'>\n';
jrs_button_hooks['3Z3J977MWQ']+='<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-01-07&eDate=2009-01-08&eventID=839&linkTypeID=14&clickSourceID=5\' target=\'_blank\' class=\'direct_price_link\'>$49.99*</a>\n';
jrs_button_hooks['3Z3J977MWQ']+='<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-01-07&eDate=2009-01-08&eventID=839&linkTypeID=5&clickSourceID=5\' target=\'_blank\'>' + jrs_button_img + '</a>\n';
jrs_button_hooks['3Z3J977MWQ']+='</div></div>\n';
jrs_button_hooks['3Z3J977MWQ']+='\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-01-07&eDate=2009-01-08&eventID=795&linkTypeID=15&clickSourceID=5\' target=\'_blank\' class=\'direct_click_price_link\'><span style=\'font-size: 12px;\'>Check Price</span></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-01-07&eDate=2009-01-08&eventID=795&linkTypeID=5&clickSourceID=5\' target=\'_blank\'>' + jrs_button_img + '</a>\n';
jrs_button_hooks['ORT9773V33']+='</div></div>\n';
jrs_button_hooks['ORT9773V33']+='\n';
jrs_button_hooks['1357Z19A7R']='<div class=\'jrs_buttons\'><div class=\'jrs_buttons_pad\'>\n';
jrs_button_hooks['1357Z19A7R']+='<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-01-07&eDate=2009-01-08&eventID=804&linkTypeID=15&clickSourceID=5\' target=\'_blank\' class=\'direct_click_price_link\'><span style=\'font-size: 12px;\'>Check Price</span></a>\n';
jrs_button_hooks['1357Z19A7R']+='<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-01-07&eDate=2009-01-08&eventID=804&linkTypeID=5&clickSourceID=5\' target=\'_blank\'>' + jrs_button_img + '</a>\n';
jrs_button_hooks['1357Z19A7R']+='</div></div>\n';
jrs_button_hooks['1357Z19A7R']+='\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
	});
}
