$(document).ready(function(){
	$('ul#main-nav li').css('cursor', 'pointer');
	
	$('ul#main-nav li').click(function(){
		var link = $(this).find('a').attr('href');
		window.location = link;
	});
	
	$('ul#main-nav li').hover(function(){
		$(this).addClass('nav-hover');
	}, function(){
		$(this).removeClass('nav-hover');
	});
	
	
	//	BLOG-POST
	$('.boxgrid.caption').hover(function(){
		$(".cover", this).stop().animate({top:'0'},{queue:false,duration:160});
	}, function() {
		$(".cover", this).stop().animate({top:'-95px'},{queue:false,duration:160});
	});
	
	$('.boxgrid.caption').click(function(){
		var link = $(this).find('a').attr('href');
		window.location = link;
	});
	
	//	FRESH POST FUNCTIONS
	$('.freshbox.caption').hover(function(){
		$(".cover", this).stop().animate({top:'0'},{queue:false,duration:160});
	}, function() {
		$(".cover", this).stop().animate({top:'-55px'},{queue:false,duration:160});
	});
	
	$('.freshbox.caption').click(function(){
		var link = $(this).find('a').attr('href');
		window.location = link;
	});
	
	
	//	SOCIAL ICON LINKS - STARTPAGE
	$('ul#start-social li').css('cursor', 'pointer');
	$('#on-the-social-side ul#start-social li:odd').addClass('social-odd');
	$('#on-the-social-side ul#start-social li:even').addClass('social-even');
	
	$('ul#start-social li:odd').hover(function(){
		$(this).stop().animate({paddingLeft: '50px'},{duration:160});
	}, function(){
		$(this).stop().animate({paddingLeft:'45px'},{duration:160});
	});
	
	$('ul#start-social li:even').hover(function(){
		$(this).stop().animate({paddingLeft: '50px', width: '105px'},{duration:160});
	}, function(){
		$(this).stop().animate({paddingLeft:'45px', width: '110px'},{duration:160});
	});
	
	$('#on-the-social-side').find('li').click(function(){
		var link = $(this).find('a').attr('href');
		window.location = link;
	});
	
	//	SOCIAL ICON LINKS - SIDEBAR
	$('ul#social li').css('cursor', 'pointer');
	
	$('ul#social li').hover(function(){
		$(this).stop().animate({paddingLeft: '50px'},{duration:160});
	}, function(){
		$(this).stop().animate({paddingLeft:'45px'},{duration:160});
	});
	
	$('ul#social').find('li').click(function(){
		var link = $(this).find('a').attr('href');
		window.location = link;
	});
	
	/*
		SIDEBAR LI - LINKS
	*/
	$('ul.bloglist li').find('a').hover(function(){
		$(this).stop().animate({paddingLeft: '10px'},{duration:160});
	}, function(){
		$(this).stop().animate({paddingLeft:'0'},{duration:160});
	});
	
	$('.sidebar').find('li').click(function(){
		var link = $(this).find('a').attr('href');
		window.location = link;
	});
	
	
});

/*
		CUFON
*/
Cufon.replace('h1', { fontFamily: 'cf_harabara' });
Cufon.replace('h2', { fontFamily: 'cf_harabara' });
Cufon.replace('h3', { fontFamily: 'cf_harabara' });
Cufon.replace('h4', { fontFamily: 'cf_harabara' });