$(document).ready(function(){
	
	/* Sliding Panels Feature */
    $('.panels').cycle({
		pager:  '#featNav',
		pagerEvent: 'mouseover', 
		pagerAnchorBuilder: function(idx, slide) { 
	        return '#featNav li.s' + idx + ' a'; 
    	} 
	});
	$('#featNav li a').click(function(){
		$(this).css('cursor','pointer');
		var href = $(this).attr('href');
		window.location = href;
	});
	
	
	/* Opening Times */
	var term_time = true;

	if(term_time == true){

	//Term Times
	$('#holiday').hide();
	
	$('#termTime p.toggle a').click(function(){
		$('#termTime').slideUp(function(){$('#holiday').slideDown();});
		return false;
	});
	$('#holiday p.toggle a').click(function(){
		$('#holiday').slideUp(function(){$('#termTime').slideDown();});
		return false;
	});
	}else{




	//Holiday Time	
       	$('#termTime').hide();

        $('#holiday p.toggle a').click(function(){
                $('#holiday').slideUp(function(){$('#termTime').slideDown();});
                return false;
        });
        $('#termTime p.toggle a').click(function(){
                $('#termTime').slideUp(function(){$('#holiday').slideDown();});
                return false;
        });
	}


	/* Highlight Special Sessions */
	$('.ao').hover(function(){
		$('.ao').addClass('highlight');
	},function(){
		$('.ao').removeClass('highlight');
	});
	$('.fo').hover(function(){
		$('.fo').addClass('highlight');
	},function(){
		$('.fo').removeClass('highlight');
	});
	
	
	
	$('form#booking.done').slideUp();

});





/*--------------------------------------------------------- IE Warning ---------------------------------------------------------- */
var $buoop = {} 
$buoop.ol = window.onload; 
window.onload=function(){ 
 if ($buoop.ol) $buoop.ol(); 
 var e = document.createElement("script"); 
 e.setAttribute("type", "text/javascript"); 
 e.setAttribute("src", "http://browser-update.org/update.js"); 
 document.body.appendChild(e); 
}



