
$(document).ready(function() {
	
	
	
	
	
	// Background position
	$('.headerBox a')
	.css( {backgroundPosition: "-600px 0px"} )
	.mouseover(function(){
		
	var outerWidth = $(this).outerWidth() - 600;
	
		$(this).stop().animate(
			{backgroundPosition :"(" + outerWidth + "px 50%)",
			}, 
			{duration:300,  easing: "easeInOutCirc"})
		})
	.mouseout(function(){
		$(this).stop().animate(
			{backgroundPosition:"(-600px 50%)",
			 }, 
			{duration:500, easing: "easeInOutCirc"})
		})
		
	
	$('.sideBar')
	.not ('.sideBlog')
	.find('a')
	.not ('.active')
	.css( {backgroundPosition: "-250px 0px"} )
	.mouseover(function(){
		if (!$(this).hasClass('active')) {
	var outerWidth = $(this).outerWidth() - 222;
	
		$(this).stop().animate(
			{backgroundPosition :"(" + outerWidth + "px 50%)",
			}, 
			{duration:300, easing: "easeInOutCirc"});
		}
		
		})
		
		
	.mouseout(function(){
		if (!$(this).hasClass('active')) {
		$(this).stop().animate(
			{backgroundPosition:"(-222px 50%)",
			 }, 
			{duration:350, easing: "easeInOutCirc"})
		}
		})
		
	var outerWidthA = $('.sideBar li.active li a.active').outerWidth() - 220;
		
	$('.sideBar li.active li a.active')
	.css({backgroundPosition: "-250px 0px"}).delay(200).animate({backgroundPosition :"(" + outerWidthA + "px 50%)",}, {duration:300, easing: "easeInOutCirc"});		
		
		
	var rCntrHeight = $('#rightCntr, .aboutBox').height();
	
	var selectors = '.columnBox, .helpBox, .headingLine, .processItem, .processGraph';
	
	$(selectors).fadeOut(0);
	
	$('#rightCntr, .aboutBox').animate({'height': rCntrHeight}, 0, 
	
	function () { 
	
		jQuery(selectors).each(function(i){
		jQuery(this).delay(i*200).fadeIn(400,function(){
		  
		 });
		});
	
	});

	});

