var lastDiv = "default";
var divlist = "whyvilla difference occupancy nights perperson highlow deposits tax staff services meals costs cellphone internet power currency transport packing hurricanes security payments cancel airfare surcharge";

function addIEOverLI(ulID) {
	if (document.all&&document.getElementById) {
		lilist = document.getElementById(ulID);
		for (i=0; i<lilist.childNodes.length; i++) {
			node = lilist.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
function showAnswer() {
	return function(e) {
		//alert(e.currentTarget.getAttribute('href').split("#")[1].split("_")[0]);
		showDiv(e.currentTarget.getAttribute('href').split("#")[1].split("_")[0]);
		e.preventDefault();
		e.stopPropagation();
		return false;
	}
}
function addlLoads() {
	//hide divs for initial page state
	var dlist = divlist.split(" ");
	for (var i = 0;i<dlist.length;i++) {
		addClass(dlist[i],"hidediv");
	}
	// add showAnswer function to qalink onclicks
	addEvent(getElementsByClass("qalink"),"click",showAnswer());
}
function loadPage() {
	addEvent("airquote1", "click", event_popup_features(airquoteParms));
	addEvent("airquote2", "click", event_popup_features(airquoteParms));
	addlLoads();
}

addLoadEvent(loadPage);

