function elc() {
	//var navWidth = $("div.header ul").width();
	//$("div.page").css({width:navWidth});
	
	$("div.fader a.button").append("<span></span>");
	
	var calloutsHeight = $("div.callouts").height();
	var calloutHeight = calloutsHeight - 92;
	$("div.callout div.content").css({height:calloutHeight});
	
	$("div.callout ").hover(
      function () { $(this).addClass("active"); }, 
      function () { $(this).removeClass("active"); }
    );
	$("div.callout").click(function () {
		var url = $(this).find("a").attr('href');
		window.location = url;
	}); 
	
	$("div.resources div.resource h3").append("<a class='close'>close</a>");
	$("map#elc_map area").click(function(){
		$("div.resources div.resource").slideUp(200);
		$("div.resources div#" + this.id).slideDown(200);
		$("a.close").click(function(){
			$(this).parent("h3").parent("div.resource").slideUp(200);
		});
	});
	
	$("div.header ul li").hover(
		function () {
			$(this).addClass("active");
			$(this).children("div").show();
		}, 
		function () {
			$(this).removeClass("active");
			$(this).children("div").hide();
		}
    );
}

function innerfade(){
	$('div.fader').innerfade({ timeout: 6000, speed: 750, type: 'sequence', containerheight: '315px' });
	
	$('div.ticker ul li#ticker-1').innerfade({ timeout: 50, animationtype: 'slide', speed: 10, type: 'sequence', containerheight: '25px' }); 	
	$('div.ticker ul li#ticker-2').innerfade({ timeout: 510, animationtype: 'slide', speed: 300, type: 'sequence', containerheight: '25px' }); 	
	$('div.ticker ul li#ticker-3').innerfade({ timeout: 5400, animationtype: 'slide', speed: 300, type: 'sequence', containerheight: '25px' }); 	
	$('div.ticker ul li#ticker-4').innerfade({ timeout: 54300, animationtype: 'slide', speed: 300, type: 'sequence', containerheight: '25px' }); 	
	$('div.ticker ul li#ticker-5').innerfade({ timeout: 543300, animationtype: 'slide', speed: 300, type: 'sequence', containerheight: '25px' }); 	
	$('div.ticker ul li#ticker-6').innerfade({ timeout: 5433300, animationtype: 'slide', speed: 300, type: 'sequence', containerheight: '25px' }); 	
	$('div.ticker ul li#ticker-7').innerfade({ timeout: 54333300, animationtype: 'slide', speed: 300, type: 'sequence', containerheight: '25px' }); 	
	$('div.ticker ul li#ticker-8').innerfade({ timeout: 543333300, animationtype: 'slide', speed: 300, type: 'sequence', containerheight: '25px' }); 	
}

