$(document).ready(function(){
	$('.scroll_pane').jScrollPane({scrollbarWidth:27});

	$(".karen").hide();
	$(".alex").hide();
	
	$(".all").hide();
	$(".m1").show();
	
	$("#c1").css("background", "url(../site/bg_team_numbers.png)");
	$("#c1").css({backgroundPosition: '-30px -29px'});
	
	$("#switcher #people").css("background", "url(../site/bg_page_team_switcher.png)");
	$("#switcher #people").css({backgroundPosition: '0px -148px'});
	
	$(".scroll_pane").jScrollPane({ autoRefresh:2000 });

	$("#switcher #people").hover(function(){
		$(".karen").hide();
		$(".alex").hide();
		$(".people").show();
		$(".boxes").css("background", "none");
		$(this).css("background", "url(../site/bg_page_team_switcher.png)");
		$(this).css({backgroundPosition: '0px -148px'});
		$(".scroll_pane").jScrollPane({ autoRefresh:2000 });
	});
	
	$("#switcher #alex").hover(function(){
		$(".karen").hide();
		$(".people").hide();
		$(".alex").show();
		$(".boxes").css("background", "none");
		$(this).css("background", "url(../site/bg_page_team_switcher.png)");
		$(this).css({backgroundPosition: '-226px -148px'});
		$(".scroll_pane").jScrollPane({ autoRefresh:2000 });
	});
	
	$("#switcher #karen").hover(function(){
		$(".people").hide();
		$(".alex").hide();
		$(".karen").show();	
		$(".boxes").css("background", "none");
		$(this).css("background", "url(../site/bg_page_team_switcher.png)");
		$(this).css({backgroundPosition: '-385px -148px'});
		$(".scroll_pane").jScrollPane({ autoRefresh:2000 });
	});
	
	$("#c1").hover(function() {
		$(".numbers").css("background", "none");
		$(this).css("background", "url(../site/bg_team_numbers.png)");
		$(this).css({backgroundPosition: '-30px -29px'});
		$(".all").hide();
		$(".m1").show();
		$(".scroll_pane").jScrollPane({ autoRefresh:2000 });
	});
	
	$("#c2").hover(function() {
		$(".numbers").css("background", "none");
		$(this).css("background", "url(../site/bg_team_numbers.png)");
		$(this).css({backgroundPosition: '-61px -29px'});
		$(".all").hide();
		$(".m2").show();
		$(".scroll_pane").jScrollPane({ autoRefresh:2000 });
	});
	
	$("#c3").hover(function() {
		$(".numbers").css("background", "none");
		$(this).css("background", "url(../site/bg_team_numbers.png)");
		$(this).css({backgroundPosition: '-92px -29px'});
		$(".all").hide();
		$(".m3").show();
		$(".scroll_pane").jScrollPane({ autoRefresh:2000 });
	});
	
	$("#c4").hover(function() {
		$(".numbers").css("background", "none");
		$(this).css("background", "url(../site/bg_team_numbers.png)");
		$(this).css({backgroundPosition: '-123px -29px'});
		$(".all").hide();
		$(".m4").show();
		$(".scroll_pane").jScrollPane({ autoRefresh:2000 });
	});
	

	$('.obfuscate').nospam({ filterLevel: 'low' });
});
