// JavaScript Document

		//Delay (thanks Evan)
		jQuery.fn.delay = function(time,func){
			return this.each(function(){
				setTimeout(func,time);
			});
		};	
		//Unique functions
		function navHover() {
			$(this).animate({backgroundPosition:'(0px .8em)'});
		};
		function navHoverReturn() {
			$(this).animate({backgroundPosition:'(-10px .8em)'});
		};
		function logoHover() {
			$(this).animate({backgroundPosition:'(0 .2em)'});
		};
		function logoHoverReturn() {
			$(this).animate({backgroundPosition:'(-10px .2em)'});
		};	
		function contentIn(){
			var $child = $(this).children('.ih-bannerSceneContent');			
			$child.delay(1000,function(){
				$child.fadeIn(500);
			});
		};
		function contentOut() {
			var $child = $(this).children('.ih-bannerSceneContent');
			$child.fadeOut(100);
		};
		
		
		//Start functions
		$(document).ready(function() {
			
			//Hide content areas
			$('.ih-bannerSceneContent').hide();
			
			//Body Change
			$('body').addClass('ih-js');
			
			//Banner Link hover effect
			$('.ih-bannerLnk').css({backgroundPosition:'-10px .3em'});
			var configBLnk = {    
			 sensitivity: 3, interval: 100, over: logoHover, timeout: 100, out: logoHoverReturn    
			};
			$('.ih-bannerLnk').hoverIntent(configBLnk);
			
			//Left Nav hover effects
			$('.ih-bannerLnav ul li').css({backgroundPosition:'-10px .8em'});
			var configLnav = {    
			 sensitivity: 3, interval: 200, over: navHover, timeout: 100, out: navHoverReturn    
			};
			$('.ih-bannerLnav ul li').hoverIntent(configLnav);
			
			//Cycling
			$('.ih-bannerCont').cycle({fx: 'fade', speed: 750, timeout: 7000, before: contentOut, after: contentIn});
			$('.ih-bannerNews dd').cycle({fx:'curtainY', timeout:6000, speed: 500});
			
			//Flicker Bug (IE6)
			
		});