
function openGallery(aux) {
	popupWin = window.open(aux,'ImageGallery', 'top=5,left=5,width=700,height=600,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no')
}

function openCustomPopUp(aux, iwidth, iheight) {
	popupWin = window.open(aux,'Details', 'top=5,left=5,width=' + iwidth + ',height=' + iheight + ',buttons=no,scrollbars=yes,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no')
}

function openCalendar(aux) {
	popupWin = window.open(aux,'Calendar', 'top=5,left=5,width=370,height=280,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no')
}
function openMap(aux) {
	popupWin = window.open(aux,'Map', 'top=5,left=5,width=430,height=550,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no')
}
// hide-show elements using display
function changeDisplayElement(element, display) {
	document.getElementById(element).style.display=display;
}

//
function topicOnChange(){
	var index, dropList;
	dropList = document.getElementById("Subject");
	index = dropList.options[dropList.selectedIndex].value;
	//alert(index);
	changeDisplayElement("rCircuitInfo", "none");
	changeDisplayElement("rTourInfo", "none");
	changeDisplayElement("rHotelInfo", "none");
	changeDisplayElement("rBookConf", "none");
	changeDisplayElement("rDate2", "none");
	changeDisplayElement("rDate3", "none");
	changeDisplayElement("rDate4", "none");
	changeDisplayElement("rDate5", "none");
	changeDisplayElement("rDate6", "none");
	changeDisplayElement("rDate7", "none");

	if (index == "contacttopicctcon") {
	    changeDisplayElement("rBookConf", "");
	} else if (index == "contacttopicctinf") {
		changeDisplayElement("rCircuitInfo", "");
	} else if (index == "contacttopicctrat") {
		changeDisplayElement("rCircuitInfo", "");
		changeDisplayElement("rDate2", "");
		changeDisplayElement("rDate3", "none");
		changeDisplayElement("rDate4", "");
		changeDisplayElement("rDate5", "");
		changeDisplayElement("rDate6", "");
		
	} else if (index == "contacttopichocon") {
	    changeDisplayElement("rBookConf", "");
	} else if (index == "contacttopichoinf") {
		changeDisplayElement("rHotelInfo", "");
	} else if (index == "contacttopichorat") {
		changeDisplayElement("rHotelInfo", "");
		changeDisplayElement("rDate2", "");
		changeDisplayElement("rDate3", "none");
		changeDisplayElement("rDate4", "");
		changeDisplayElement("rDate5", "");
		changeDisplayElement("rDate6", "");
		changeDisplayElement("rDate7", "");
		
	} else if (index == "contacttopictocon") {
	    changeDisplayElement("rBookConf", "");
	} else if (index == "contacttopictoinf") {
		changeDisplayElement("rTourInfo", "");
	} else if (index == "contacttopictorat") {
		changeDisplayElement("rTourInfo", "");
		changeDisplayElement("rDate2", "");
		changeDisplayElement("rDate3", "none");
		changeDisplayElement("rDate4", "");
		changeDisplayElement("rDate5", "");
		changeDisplayElement("rDate6", "");
	} else if (index == "contacttopiczsome") {
	}	
}
function topicBlock(iIndex){
	var control;
	control = document.getElementById("Subject");
	control.selectedIndex = iIndex;
	control.disabled = true;
}

setupMenu = function() {
	j=1;
	if (document.all&&document.getElementById) {
	    var navRoot = document.getElementById("nvl1").getElementsByTagName("LI");
    	for (var i=0; i<navRoot.length; i++) {
		navRoot[i].onmouseover=function() {
			this.className+=" over";
		}
		navRoot[i].onmouseout=function() {
			this.className=this.className.replace(" over", "");
		}
	}

	}
}
window.onload=setupMenu;    