// course dropdown memu script
$(document).ready(function() {
		
	// enable tooltip for "navdn" element. use the "slide" effect
	$("#coursedn").tooltip({ 
		effect: 'slide',
		direction: 'down',
	    position: 'bottom center',
		slideInSpeed: -100,
		slideOutSpeed: -100, 
		offset: [-9, 15]  
	}); 
});

// contact overlay script
$(function() {
    // make all links with the 'rel' attribute open overlays
	// if the function argument is given to overlay,
	// it is assumed to be the onBeforeLoad event listener
	$("a[rel]").overlay({
		expose: '#70635A',
		effect: 'apple',
		onBeforeLoad: function() {
			// grab wrapper element inside content
			var wrap = this.getContent().find(".contentWrap");
			// load the page specified in the trigger
			wrap.load(this.getTrigger().attr("href"));
		}
	});
});
     
// popup windows
function info_popup(){document.getElementById('infopopup').style.display='block';}
function info_close(){document.getElementById('infopopup').style.display='none';}
function feedbk_popup(){document.getElementById('fdbkpopup').style.display='block';}
function feedbk_close(){document.getElementById('fdbkpopup').style.display='none';}