	$(document).ready(function(){	
	
		$('#container').fadeIn(1000);
	
		Cufon.replace('h1');
		Cufon.replace('h2');
		Cufon.replace('h3');
		
		$(".twitter_rollover").css({'opacity':'0'});
		
		$(".facebook_rollover").css({'opacity':'0'});
	 
		$('.share a').hover(
			function() {
				$(this).find('.twitter_rollover').stop().fadeTo(250, 1);
			},
			function() {
				$(this).find('.twitter_rollover').stop().fadeTo(250, 0);
			}
		)

	});
	
		$("#sidebar .right ul li a").mouseover(function() {
				 $(this).animate({ marginLeft: "-5px", color: "#000" }, 100);
		});
	 
	    $("#sidebar .right ul li a").mouseleave(function() {
	         $(this).animate({ marginLeft: "0px", color: "#8a8a8a" }, 100);
		});
	
		$('#s').focus(function(){
			if($(this).val() == 'Search + Enter'){
				$(this).animate({
					color: '#fff'
					//your input background color.
				}, 200, 'linear', function(){
					$(this).val('').css('color','#8a8a8a'); 
					//this is done so that when you start typing, you see the text again :P
				});
			}
		}).blur(function(){
			if($(this).val() == ''){
				$(this).val('Search + Enter').css('color','#fff');
				$(this).animate({
					color: '#a8a8a8'
				}, 200, 'linear');
			}
		});
	
	$('#container').infinitescroll({

		debug           : false,
		nextSelector    : "div.navigation a:first",
		loadingImg      : "http://www.syamey.com/wp-content/themes/default/images/loader.gif",
		loadingText     : "",
		donetext        : "<em>Congratulations, you've reached the end of the internet.</em>",
		navSelector     : "div.navigation",
		contentSelector : "#container",
		itemSelector    : "#container div.post"
    
	},function(){ 
	
		Cufon.replace('h1');
		Cufon.replace('h2');
		Cufon.replace('h3');	

    });
