$(document).ready(function(){

    $(".b_menu").mouseenter(function(){
		$(this).animate({width: "+=8px", height: "+=3px", left: "-=4px", top: "-=1.5px"}, 80);
	   return false;
    }); 
    $(".b_menu").mouseleave(function(){
		$(this).animate({width: "-=8px", height: "-=3px", left: "+=4px", top: "+=1.5px"}, 80);
	   return false;
    }); 
	
        $(".bp_button").toggle(
		function(){
		  $(this).parents(".bp").children(".span_switch").toggle(0);
		  $(this).children(".m_m").animate({Opacity: "hide"},0);
		},
		function(){
		  $(this).parents(".bp").children(".span_switch").toggle(0);
		  $(this).children(".m_m").animate({Opacity: "show"},0); 
		return false;
		}		
    ); 	
	
    $(".button").mousedown(function(){
		$(this).animate({top: "+=2px"},0);
	   return false;
    }); 
    $(".button").mouseup(function(){
		$(this).animate({top: "-=2px"},0);
	   return false;
    }); 	
	
    $(".add_block").click(function(){
		$(".mtfbtch").animate({Opacity: "show"},0);
	   return false;
    });
	
    $(".banner_ico").click(function(){
		$(".presentation").attr('src', "http://www.aionplanet.ws/banners/aionplanet_banner_0" + $(this).children("img").attr("src")[$(this).children("img").attr("src").lastIndexOf(".")-1] + ".png"); 
		$(".p_size").html($(".presentation").width() + " x " + $(".presentation").height());
	   return false;
	});
	
});


