/*
 * Accordian Effects
 * Copyright © 2009 Leonard Chan
 * All rights reserved.
*/
		
	jQuery().ready(function(){

		// second simple accordion with special markup
		jQuery('#navigation').accordion({
			active: ".current",
			header: '.head',
            animated:false,
            autoHeight:true,
            fillSpace: false,
            navigation:true
		});
		
		// Using custom settings for breadcrumbs
		jQuery("#breadCrumb0").jBreadCrumb();
    jQuery("#breadCrumb1").jBreadCrumb();
		$("#navigation a").click(function(event){ event.stopPropagation(); });
		
		// Using custom settings for pop up window effect
		$("a.single_image").fancybox(); 
		$("a#inline").fancybox({ 'hideOnContentClick': true 
	 
	 }); 
	 
	 $("a.group").fancybox({ 
		 'speedIn': 300, 
		 'speedOut': 300, 
		 'overlayShow': true,
		 'titleShow':false
	 });
	 
	$("a.registerform").fancybox({ 
	 	'width': 335,
	 	'height': 305,
	 	'hideOnContentClick': false,
	 	'overlayShow': true
	 }); 
	 
	  $("a.researchvideo").fancybox({ 
			'width': 640,
			'height': 385,
			'hideOnContentClick': false,
			'callbackOnClose': function() {
			$("#fancy_content").empty();
			}
	 });
		
		$("a.video").fancybox({ 
	 	'width': 640,
         'height': 385,
         'hideOnContentClick': false,
         'callbackOnClose': function() {
         $("#fancy_content").empty();
         }
	 });
	 $("a.video425").fancybox({ 
	 	'width': 425,
         'height': 344,
         'hideOnContentClick': false,
         'callbackOnClose': function() {
         $("#fancy_content").empty();
         }
	 });
	$("a.gallery").fancybox({ 
	 	'width': 488,
         'height': 366,
         'hideOnContentClick': false,
         'callbackOnClose': function() {
         $("#fancy_content").empty();
         }
	 });
	});

	
/*
 * Content slide effects
 *
 * Copyright © 2009 Jennifer Pan
 * All rights reserved.
*/	

$(document).ready(function(){
		$("dd").hide();
		$("dt a").click(function(){
			$("dd:visible").slideUp("slow");
			$(this).parent().next().slideDown("fast");
			return false;
		});
	});
