$(document).ready(function(){

$('#thesocial_fb').hide();

$('#twitterbutton').mouseenter (function() {
	$(this).css({backgroundPosition: '-35px 0px'});
})

$('#twitterbutton').mouseleave (function() {
	$(this).css({backgroundPosition: '0px 0px'});
})

$('#facebookbutton').mouseenter (function() {
	$(this).css({backgroundPosition: '-47px 0px'});
})

$('#facebookbutton').mouseleave (function() {
	$(this).css({backgroundPosition: '0px 0px'});
})

$('#vimeobutton').mouseenter (function() {
	$(this).css({backgroundPosition: '-33px 0px'});
})

$('#vimeobutton').mouseleave (function() {
	$(this).css({backgroundPosition: '0px 0px'});
})

$('#flickrbutton').mouseenter (function() {
	$(this).css({backgroundPosition: '-28px 0px'});
})

$('#flickrbutton').mouseleave (function() {
	$(this).css({backgroundPosition: '0px 0px'});
})

$('#tweetsDisclaimer').click (function() {
	$(this).fadeTo(1100, 0.0)
	$(this).hide(1100);
	
	return false;
	})
	
$('#facebookbutton').click (function() {
	setTimeout( function(){
		$('#maininfo').css("margin-top","121px")}, 200)
	$('#thesocial').fadeTo(1100, 0.0)
	$('#thesocial').hide(1100)
	$('#thesocial_fb').fadeTo(3100, 1.0)
	$('#thesocial_fb').show(3100)
	$('#twitterbutton').show(3100);
	
	
	return false;
	})
	
$('#twitterbutton').click (function() {
	$('#thesocial_fb').fadeTo(1100, 0.0)
	$('#thesocial_fb').hide(1100)
	$('#thesocial').fadeTo(3100, 1.0)
	$('#thesocial').show(3100);
	
	
	return false;
	})

})
