$(function(){
	$('#header ul li')
		.css( {backgroundPosition: '0 0'} )
		.mouseover(function(){
			$(this).stop().animate(
				{backgroundPosition:'(0 -58px)'}, 
				{duration:300})
			})
		.mouseout(function(){
			$(this).stop().animate(
				{backgroundPosition:'(0 0)'}, 
				{duration:300})
			});
		$('#header ul li.active')
		.css( {backgroundPosition: '0 -58px'} )
		.mouseover(function(){
			$(this).stop().animate(
				{backgroundPosition:'(0 -58px)'}, 
				{duration:300})
			})
		.mouseout(function(){
			$(this).stop().animate(
				{backgroundPosition:'(0 -58px)'}, 
				{duration:300})
			});
		$('#header ul ul li')
		.css( {backgroundPosition: '0 0'} )
		.mouseover(function(){
			$(this).stop().animate(
				{backgroundPosition:'(-32px 0)'}, 
				{duration:300})
			})
		.mouseout(function(){
			$(this).stop().animate(
				{backgroundPosition:'(0 0)'}, 
				{duration:300})
			});
		// set opacity to nill on page load	
		$("h1 a").css("opacity","0");
		// on mouse over
		$("h1 a").hover(function () {
		// animate opacity to full
		$(this).stop().animate({
		opacity: 1
		}, 'fast');
		},
		// on mouse out
		function () {
		// animate opacity to nill
		$(this).stop().animate({
		opacity: 0
		}, 'slow');
		});
		$(".readmore a").css("opacity","0");
		// on mouse over
		$(".readmore a").hover(function () {
		// animate opacity to full
		$(this).stop().animate({
		opacity: 1
		}, 'fast');
		},
		// on mouse out
		function () {
		// animate opacity to nill
		$(this).stop().animate({
		opacity: 0
		}, 'slow'); 
		});
		
		
// callouts
	/*
	$('#content p a').qtip({
   		content: 'This is an active list element',
   		position: {
		      corner: {
		         target: 'topMiddle',
		         tooltip: 'bottomMiddle'
		      }
		   },
   		style: { 
      		name: 'dark',
      		tip: 'bottomMiddle',
      		border: {
        		width: 7,
         		radius: 5
      		}
   		},
   		show: 'mouseover',
   		show: { effect: { length: 430 } },
   		hide: 'mouseout',
   		hide: { effect: { length: 430 } }
		});
                */
					
});