jQuery.noConflict();  
jQuery(document).ready(function(){
	
	//Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/
	
	//Remove outline from links
	jQuery("a").click(function(){
		jQuery(this).blur();
	});
	
	//When mouse rolls over
	jQuery("#home").mouseover(function(){
		jQuery(this).stop().animate({height:'105px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	jQuery("#home").mouseout(function(){
		jQuery(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});

	//When mouse rolls over
	jQuery("#cs").mouseover(function(){
		jQuery(this).stop().animate({height:'105px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	jQuery("#cs").mouseout(function(){
		jQuery(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	//When mouse rolls over
	jQuery("#specials").mouseover(function(){
		jQuery(this).stop().animate({height:'105px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	jQuery("#specials").mouseout(function(){
		jQuery(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse rolls over
	jQuery("#i_glossary").mouseover(function(){
		jQuery(this).stop().animate({height:'105px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	jQuery("#i_glossary").mouseout(function(){
		jQuery(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});

	//When mouse rolls over
	jQuery("#info").mouseover(function(){
		jQuery(this).stop().animate({height:'105px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	jQuery("#info").mouseout(function(){
		jQuery(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});	
	
	jQuery('#menu-inside ul>li>ul').hide();
	jQuery('#menu-inside ul>li').click(function(){
		// check that the menu is not currently animated
		if (jQuery('#menu-inside ul>li>ul:animated').size() == 0) {
			// create a reference to the active element (this)
			// so we don't have to keep creating a jQuery object
			$heading = jQuery(this);
			// create a reference to visible sibling elements
			// so we don't have to keep creating a jQuery object
			$expandedSiblings = $heading.siblings().find('ul:visible');
			if ($expandedSiblings.size() > 0) {
				$expandedSiblings.slideUp(500, function(){
					$heading.find('ul').slideDown(500);
					});
			}
			else {
				$heading.find('ul').slideDown(1000);
			}
		}
	});
});
