jQuery().ready(function(){
	
if (!jQuery.browser.msie) {
	jQuery("#navTop li[class!=active]").hover(
		function () {
			jQuery(this).stop().animate( { borderBottomWidth:"4px" }, 100);
		}, 
		function () {
			jQuery(this).stop().animate( { borderBottomWidth:"0" }, 200);
		}
	);  
} else {
	jQuery("#navTop li[class!=active]").hover(
		function () {
			jQuery(this).stop().css( { borderBottomWidth:"4px", 'margin-bottom' : 0 }, 100);
		}, 
		function () {
			jQuery(this).stop().css( { borderBottomWidth:"0",  'margin-bottom' : '4px'}, 200);
		}
	);
	
} 
	
	jQuery('#logo a, h1').pulse({
    	textColors: ['#999999','#7db236', '#999999', '#ff6d00'],
    	speed: 3500
	});

	jQuery(".dir").hover(
		function () {
			var index = jQuery('.dir').index(this);
			jQuery(".dir ul:eq("+index+")").stop().slideDown(400);
			jQuery(".menuItem:eq("+index+")").animate( { borderBottomWidth:"4px" }, 100);
				jQuery(".menuBg:eq("+index+")").fadeTo(400, 0.80);
				jQuery(".circleBg:eq("+index+")").fadeTo(400, 0.30);
		}, 
		function () {
			var index = jQuery('.dir').index(this);
			jQuery(".dir ul:eq("+index+")").stop().slideUp(400);
			jQuery(".menuItem:eq("+index+")").animate( { borderBottomWidth:"0" }, 200);
				jQuery(".menuBg:eq("+index+")").fadeTo(400, 0.30);
				jQuery(".circleBg:eq("+index+")").fadeTo(400, 0);
		}
	); 

	
	jQuery("#imageHover").hover(
			function () {
				jQuery(this).stop().fadeTo(400, 0.80);
			}, 
			function () {
				jQuery(this).stop().fadeTo(400, 0);
			}
	);
	jQuery(".circleBg").hover(
			function () {
				jQuery(this).stop().fadeTo(400, 0.30);
				var index = jQuery(".circleBg").index(this);
				jQuery(".menuBg:eq("+index+")").fadeTo(400, 0.80);
				
			}, 
			function () {
				jQuery(this).stop().fadeTo(400, 0);
				var index = jQuery(".circleBg").index(this);
				jQuery(".menuBg:eq("+index+")").fadeTo(400, 0.30);
			}
		);
 
});