function homeInitialize() {
	
	// Handle slider
	slider();
	
}

function pageInitialize() {
	$(function() {
		// for performance first init the quickFlip
		$(".quickFlip").quickFlip();
		
		// set up a hover effect for each of the quickflip wrappers
		for ( var i = 0; i < $.quickFlip.wrappers.length; i++ ) {
			var thisOne = $.quickFlip.wrappers[i];
	
			$( thisOne.wrapper ).hover( function(ev) {
				var $target = $(ev.target);
				// make sure it isn't a child node
				if ( !$target.hasClass("quickFlip") ) $target = $target.parent();
				
				$target.quickFlipper();
				
			}, function() {});
		}
	});
	
	// Handle slider
	caption();
	
	// Handle sidebar link animation
	move_effect();

}


	// Apply coda slider on homepage
	function slider(){
		$('#coda-slider-1').codaSlider({
		crossLinking:false,
		firstPanelToLoad:10,
		autoSlide:true,
 		autoSlideInterval:5000,
		autoSlideStopWhenClicked:true,
		dynamicArrows:false,
		dynamicTabs:false,
		autoHeight: false,
		autoHeightEaseDuration:1,
		slideEaseDuration:1
		});
	}
	
	// Apply jcaption on right-sidebar
		function caption(){
		$("#right-sidebar a img").jcaption({
		copyStyle:true,
		animate:true,
		show:{height:"show"},
		hide:{height:"hide"}
		});
	}
	
	
	// Sidebar links animation
	function move_effect(){
	 $(".left-column-content ul li a").hover(function(){
	 $(this).find('span').stop().animate({marginLeft:'10px'},{queue:false, duration:300, easing: 'easeOutBounce'})
	 },function(){
	 $(this).find('span').stop().animate({marginLeft:'0px'},{queue:false, duration:300, easing: 'easeOutBounce'})
	 });
	
	 $(".left-column-content ul li a").hover(function(){
	 $(this).find('span').stop().animate({marginLeft:'10px'},{queue:false, duration:300, easing: 'easeOutBounce'})
	 },function(){
	 $(this).find('span').stop().animate({marginLeft:'0px'},{queue:false, duration:300, easing: 'easeOutBounce'})
	 });
	}


