// set default interval time
var slideIntervalTime = 6000;

// adjust interval time per site
if ('/' == '/Institutional/') {
    slideIntervalTime = 9000;
}

// initialise easyAccordion
$(document).ready(function () {
	$('#accordion-1').easyAccordion({ 
                slideNum: false,
                autoStart: true,
                pauseOnHover: true,
                slideInterval: slideIntervalTime
	});

        // makes whole element clickable
        // requires element to contain a single <a href="..."> 
	$("#accordion-1 dd").css('cursor', 'pointer').click(function(){
		var thisUrl = $(this).find("a").attr("href");
		if (thisUrl) {
			window.location=thisUrl;
		}
		return false;
	});
});
