jQuery(function($){
	$('#bcr_button_1_1').hover(
      function(){$('#bcr_button_1').css('background-position','0 -45px');}, 
      function(){$('#bcr_button_1').css('background-position','0 0');}
    ).click(function(){
		this.target = '_blank';
	}); 
	$('#bcr_button_1_2').hover(
      function(){$('#bcr_button_1').css('background-position','0 -90px');}, 
      function(){$('#bcr_button_1').css('background-position','0 0');}
    );
	$('#bcr_button_2_1').hover(
      function(){$('#bcr_button_2').css('background-position','0 -45px');}, 
      function(){$('#bcr_button_2').css('background-position','0 0');}
    ).click(function(){
		this.target = '_blank';
	}); 
	$('#bcr_button_2_2').hover(
      function(){$('#bcr_button_2').css('background-position','0 -90px');}, 
      function(){$('#bcr_button_2').css('background-position','0 0');}
    );
	$('#bcr_button_3_1').hover(
      function(){$('#bcr_button_3').css('background-position','0 -46px');}, 
      function(){$('#bcr_button_3').css('background-position','0 0');}
    ).click(function(){
		this.target = '_blank';
	}); 
	$('#bcr_button_3_2').hover(
      function(){$('#bcr_button_3').css('background-position','0 -92px');}, 
      function(){$('#bcr_button_3').css('background-position','0 0');}
    );
	$('area[href*=#]').click(function()
	{
    	if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname)
		{
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            if ($target.length)
			{
         		var targetOffset = $target.offset().top;
                $('html,body').animate({scrollTop: targetOffset},1000); 
                return false;
            }
        }
    });
});
function getAnchorAndAreaLinks(){ return $('a,area'); }
