$(document).ready(function(){
	$('#loader').css('display','block');
	
	$("#nav a, #press #register, #press #login, #hold a").fancybox({
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'speedIn'		: 200, 
		'speedOut'		: 100,
		'width'  		: 800,
        'height'        : 500,
        'padding'		: 0,
        'autoScale'     : false,
        'overlayOpacity': 0.6,
        'overlayColor'	: '#000000',
        'centerOnScroll': true,
//        'scrolling'		: 'no',
        'type'          : 'iframe',
        'onStart'		: function() { $.fancybox.showActivity(); pauseVideo();},
        'onComplete'	: function() { $.fancybox.hideActivity(); }
    });
	

	$("#social img").hover(function(){
	//mouse over
		$(this).stop().animate({
			"width" 	: "40px",
			"height"	: "40px",
			"top" 		: "-5px",
			"left"		: "-5px"
		}, 100)
		.css('z-index', '100');
		
	}, function() {
	//mouse out
		$(this).stop().animate({
			"width" 	: "31px",
			"height"	: "32px",
			"top" 		: "0",
			"left"		: "0"	
		}, 100)
		.css('z-index', '1');	
	});

			
});


  
// Google Analytics
var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-508546-5']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })(); 
