function mainmenu(){
$("#bav .inner ul ul").css({display: "none"}); // Opera Fix
$("#bav .inner ul li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(400, 'backout');
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
}
function dbutton(){
$(".button3d").hover(function(){
		$(this).css({borderBottom:"4px solid #2e7200",borderRight:"4px solid #2e7200", top:"3px", left:"3px", marginRight:"23px"});
		$(this).find('span').css({ opacity: 1, right:"-4px" ,width:"4px" , height:"4px" });
		$(this).find('em').css({ opacity: 1, bottom:"-4px" ,width:"4px" , height:"4px" });
		},function(){
		$(this).css({borderBottom:"7px solid #2e7200",borderRight:"7px solid #2e7200", top:"0px", left:"0px", marginRight:"20px" });
		$(this).find('span').css({ opacity: 1, right:"-7px" ,width:"7px" , height:"7px" });
		$(this).find('em').css({ opacity: 1, bottom:"-7px" ,width:"7px" , height:"7px" });
		});
}
function bulletmenu(){
$(".bullet li").hover(function(){
		$(this).find('span').animate({ opacity: 0 }, 300);
		$(this).find('a').animate({paddingLeft:"50px"}, 300);
		},function(){
		$(this).find('span').animate({ opacity: 1 }, 300);
		$(this).find('a').animate({paddingLeft: "30px"}, 300);
		});
}
function notlinks(){
$(".not li").hover(function(){
		$('.not li').not(this).stop().animate({ opacity: 0.4 }, 400);
		},function(){
		$('.not li').not(this).stop().animate({ opacity: 1 }, 400);
		});
}
$(document).ready(function() {
				mainmenu();
				notlinks();
				bulletmenu();
				dbutton();
$('.downloadbtn').hover(function() { //mouse in
		$(this).find('span').animate({ opacity: '0' }, 400);
	}, function() { //mouse out
		$(this).find('span').animate({ opacity: '1' }, 400);
	});

$('.downloadbtn-lighten').hover(function() { //mouse in
		$(this).find('span').animate({ opacity: '0' }, 400);
		$(this).find('em').animate({ top: '64px' }, 400);
	}, function() { //mouse out
		$(this).find('span').animate({ opacity: '1' }, 400);
		$(this).find('em').animate({ top: '-64px' }, 400);
	});
$('.downloadbtn-gloss').hover(function() { //mouse in
		$(this).find('span').animate({ top: '64px' }, 400);
	}, function() { //mouse out
		$(this).find('span').animate({ top: '-64px' }, 400);
	});
$('.blocklink2').hover(function() { //mouse in
		$(this).find('span').animate({ top: '0px' }, 400);
	}, function() { //mouse out
		$(this).find('span').animate({ top: '-60px' }, 400);
	});
$('.blocklink3').hover(function() { //mouse in
		$(this).find('span').animate({ left: '-101px' }, 400);
		$(this).find('em').animate({ right: '-101px' }, 400);
	}, function() { //mouse out
		$(this).find('span').animate({ left: '-202px' }, 400);
		$(this).find('em').animate({ right: '-202px' }, 400);
	});
$('.simple li').hover(function() { //mouse in
		$(this).find('span').animate({ right: '0' }, 200);
	}, function() { //mouse out
		$(this).find('span').animate({ right: '-200px' }, 200);
	});
$('.simple-left li').hover(function() { //mouse in
		$(this).find('span').animate({ left: '0' }, 200);
	}, function() { //mouse out
		$(this).find('span').animate({ left: '-200px' }, 200);
	});
$(".simple-top li span").css({display: "none"});
$('.simple-top li').hover(function() { //mouse in
		$(this).find('span').css({visibility: "visible",display: "none"}).slideDown(400, 'backout');
	}, function() { //mouse out
		$(this).find('span').css({visibility: "hidden"});
	});
$("#bav ul li ul").each(function(i){
      $(this).hover(function(){
        $(this).parent().find("a").slice(0,1).addClass("active");
      },function(){
        $(this).parent().find("a").slice(0,1).removeClass("active");
      });
	   });
$(".blocklink em").css({opacity: "0"});
$(".blocklink span").css({opacity: "0"});
$('.blocklink').hover(function() { //mouse in
		$(this).find('span').animate({ opacity: '1' }, 400);
		$(this).find('em').animate({ opacity: '1' }, 700);
	}, function() { //mouse out
		$(this).find('span').animate({ opacity: '0' }, 400);
		$(this).find('em').animate({ opacity: '0' }, 700);
	});
	});

Cufon.replace('ul:has(ul) > li   a',{
textShadow: 'white 1px 1px',
hover: 'true'
});
Cufon.replace('.not li a',{
textShadow: 'black 1px 1px',
hover: 'true'
});