

//center sliders 
jQuery(document).ready(function(){

	jQuery(".btn-slide-portal").click(function(){
		jQuery("#panel-portal").slideToggle("slow");
		jQuery(this).toggleClass("active-portal"); return false;
	});
	
	jQuery(".btn-slide-signup").click(function(){
		jQuery("#panel-signup").slideToggle("slow");
		jQuery(this).toggleClass("active-signup"); return false;
	});
	
	jQuery(".btn-slide-meeting").click(function(){
		jQuery("#panel-meeting").slideToggle("slow");
		jQuery(this).toggleClass("active-meeting"); return false;
	});
	
	 
});



jQuery(document).ready(function(){

	jQuery(".btn-slide-portal_btm").click(function(){
		jQuery("#panel-portal_btm").slideToggle("slow");
		jQuery(this).toggleClass("active-portal_btm"); return false;
	});
	
	jQuery(".btn-slide-signup_btm").click(function(){
		jQuery("#panel-signup_btm").slideToggle("slow");
		jQuery(this).toggleClass("active-signup_btm"); return false;
	});
	
	jQuery(".btn-slide-meeting_btm").click(function(){
		jQuery("#panel-meeting_btm").slideToggle("slow");
		jQuery(this).toggleClass("active-meeting_btm"); return false;
	});
	
	 
});



jQuery(document).ready(function() {

	jQuery("ul#main_nav li").hover(function() { //Hover over event on list item
	
		jQuery(this).find("ul#sub_nav").show(); //Show the subnav
		
	} , function() { //on hover out...
		
		jQuery(this).find("ul#sub_nav").hide(); //Hide the subnav
	});

});



//jQuery(document).ready(function(){
//	jQuery("#main_nav li").hover(
//		function(){
//			var iconName = jQuery(this).find("a").attr("href");
		
//			jQuery(this).find("span").attr({
//				"style": 'display:inline-block;'
//			});
			
		//	jQuery("#sub_nav").fadeIn('slow');
//		jQuery(this).find("span").animate({top: "-9"}, {queue:false, duration:400});
		

//		}, 
//		function(){
//			var iconName = jQuery(this).find("a").attr("href");
	
//		jQuery(this).find("span").animate({opacity: 0, top: "2"}, {queue:false, duration:400,timeout: 1000}, "linear",

//				function(){
//					jQuery(this).find("span").attr({"style": 'display:none'});			
//				}
//			);
//		});
//});




		

//var obj = null;

//function checkHover() {
//	if (obj) {
//		obj.find('ul#sub_nav').hide('slow');	
//	} //if
//} //checkHover

//jQuery(document).ready(function() {
//	jQuery('#main_nav > li').hover(function() {
//		if (obj) {
//			obj.find('ul#sub_nav').hide('slow');
//			obj = null;
//		} //if
		
//		jQuery(this).find('ul#sub_nav').show('slow');
//	}, function() {
//		obj = jQuery(this);
//		setTimeout(
//			"checkHover()",
//			400);
//	});
//});

