function jsInclude(filename)
{
	var head = document.getElementsByTagName('head')[0];
	
	script = document.createElement('script');
	script.src = filename;
	script.type = 'text/javascript';
	
	head.appendChild(script)
}
function cssInclude(filename)
{
	var head = document.getElementsByTagName('head')[0];
	
	script = document.createElement('link');
	script.href = filename;
	script.type = 'text/css';
	script.rel = 'stylesheet';
	
	head.appendChild(script)
}
function populateCount()
{
	var ddNights = document.getElementById("nights");
	while(ddNights.length > 0) ddNights.remove(0);
	for(i = 1;i <= 14; i++)
	{
		var ddOpt = document.createElement('option');
		ddOpt.text = i;
		ddOpt.value = i;
		if (i == 2) ddOpt.selected = true;
		try {
			ddNights.add(ddOpt, null); // standards compliant; doesn't work in IE
		} catch(ex) {
			ddNights.add(ddOpt); // IE only
		}
	}
}
jsInclude('/availability/utilities.js');
jsInclude('/availability/calendar-min.js');
jsInclude('/availability/yuihelp.js');
jsInclude('/availability/multi_cal.js');
jsInclude('/availability/avcode.js');
jsInclude('/availability/calendar.js');
cssInclude('/availability/calendar.css');
cssInclude('/availability/search_bar.css');