jQuery(document).ready(function($){
	
	// support popup windows
	$('.popup').click(function(){
		var href=$(this).attr('href');
		window.open(href,'','menubar=0,location=0,toolbar=0,width=980,scrollbars=1,height=700');
		return false;
	}); 
	
	// support external links
	$("a[rel='external']").click(function(){
		window.open($(this).attr("href"));
		return false;
	});
	
	// For the speaker Bio's
	$(".speaker-bio-info").hide();
	$(".speaker-bio-toggle").click(function(){
		$(this).next(".speaker-bio-info").slideToggle(0);
	});
	
	// expand all
	$(".speaker-bio-toggle-all").click(function(){
		$(".speaker-bio-info").slideToggle(0);
	});
	
	/*~~~~~~~~~~~~~~ Navigation Menu ~~~~~~~~~~~~~~~~~~*/
	
	// subnavs
	$(".main_menu ul.mm  li").hover(function() {
		// over
		$(this).children("ul.sub_menu").hide().fadeIn(300).css({'zIndex' : '200'});
	}, function() {
		// out
		$(this).children("ul.sub_menu").fadeOut(300).css({'zIndex' : '200'});
	}); 
	
	// active page class
	var currentPath = $(location).attr('pathname').split('/');
	var currentPage = currentPath[currentPath.length-1];
	$('.main_menu a[href="'+currentPage+'"]').each(function(){
		$(this).parent().addClass('current');
	});

});



  
