$(document).ready(function(){
	$('body').addClass('js');
	//fading content effect
	var $container = $("#container");
		$container.hide();
	if(1) {
		 //hide initially so it can fade in

		//$container.fadeOut(0);
		$container.fadeIn(500);
		$('.twitter-head').fadeIn(1400);

		$(".fadeLink").live('click', function(e) {
			e.preventDefault();
			var link = this;
			$container.fadeOut(200, function() {
				document.location = link.href;
			});
			$('.twitter-head').fadeOut(200);
		});
	}
	// adding class "fadeLink" to all links
		$("a").addClass("fadeLink");
});

$(document).ready(function(){	
	//animating left UL navbar
	if($('body').hasClass('home')){
	   	$('#navigation a').css({'marginLeft':'-2px'});
    	$('#navigation a').stop().animate({'marginLeft':'-85px'},1000);
    } 
    $('#navigation > li').hover(
        function () {
            $('a',$(this)).stop().animate({'marginLeft':'-2px'},50);
        },
        function () {
            $('a',$(this)).stop().animate({'marginLeft':'-85px'},300);
        }
    );
 
});

jQuery(function ($) {
	// Load dialog on page load
	//$('#basic-modal-content').modal();

	// Load dialog on click
	$('#content .basic').click(function (e) {
		$('#basic-modal-content').modal();

		return false;
	});
});
