$(document).ready(function(){

	Cufon.replace('h1, h2, .cuf, .cuf2');

	$('.newsNav:first').show();
	$('.ln_item:first').show();
	$('.spotPrev').hide();
	
	$('.spotNext').click(function() {
		$('.newsNav:first').hide();
		$('.newsNav:last').show();
		$(this).hide();
		$('.spotPrev').show();
		$('.newsNav span').removeClass("newsSwitchActive");
	});
	
	$('.spotPrev').click(function() {
		$('.newsNav:first').show();
		$('.newsNav:last').hide();
		$(this).hide();
		$('.spotNext').show();
		$('.newsNav span').removeClass("newsSwitchActive");
	});

	$('.backSocialLoad').click(function() {
		$(".twitterLoad").hide();
		$(".socialLoad").show();
	});
	
	$('.tweetShowTrigger').click(function() {
		$(".twitterLoad").show();
		$(".socialLoad").hide();
	});	

	$('.newsSwitch_01').click(function() {
		$(this).addClass("newsSwitchActive");
		$(this).siblings().removeClass("newsSwitchActive");
		$('.ln_01').show();
		$('.ln_01').siblings(".ln_item").hide();	
	});
	
	$('.newsSwitch_02').click(function() {
		$(this).addClass("newsSwitchActive");
		$(this).siblings().removeClass("newsSwitchActive");
		$('.ln_02').show();
		$('.ln_02').siblings(".ln_item").hide();		
	});
	
	$('.newsSwitch_03').click(function() {
		$(this).addClass("newsSwitchActive");
		$(this).siblings().removeClass("newsSwitchActive");
		$('.ln_03').show();
		$('.ln_03').siblings(".ln_item").hide();
	});

	$('.newsSwitch_04').click(function() {
		$(this).addClass("newsSwitchActive");
		$(this).siblings().removeClass("newsSwitchActive");
		$('.ln_04').show();
		$('.ln_04').siblings(".ln_item").hide();
	});

	$('.newsSwitch_05').click(function() {
		$(this).addClass("newsSwitchActive");
		$(this).siblings().removeClass("newsSwitchActive");
		$('.ln_05').show();
		$('.ln_05').siblings(".ln_item").hide();
	});

	$('.newsSwitch_06').click(function() {
		$(this).addClass("newsSwitchActive");
		$(this).siblings().removeClass("newsSwitchActive");
		$('.ln_06').show();
		$('.ln_06').siblings(".ln_item").hide();
	});

	$('.newsSwitch_07').click(function() {
		$(this).addClass("newsSwitchActive");
		$(this).siblings().removeClass("newsSwitchActive");
		$('.ln_07').show();
		$('.ln_07').siblings(".ln_item").hide();
	});

	$('.newsSwitch_08').click(function() {
		$(this).addClass("newsSwitchActive");
		$(this).siblings().removeClass("newsSwitchActive");
		$('.ln_08').show();
		$('.ln_08').siblings(".ln_item").hide();
	});

	$('.newsSwitch_09').click(function() {
		$(this).addClass("newsSwitchActive");
		$(this).siblings().removeClass("newsSwitchActive");
		$('.ln_09').show();
		$('.ln_09').siblings(".ln_item").hide();
	});

	$('.newsSwitch_10').click(function() {
		$(this).addClass("newsSwitchActive");
		$(this).siblings().removeClass("newsSwitchActive");
		$('.ln_10').show();
		$('.ln_10').siblings(".ln_item").hide();
	});

	$('.newsSwitch_11').click(function() {
		$(this).addClass("newsSwitchActive");
		$(this).siblings().removeClass("newsSwitchActive");
		$('.ln_11').show();
		$('.ln_11').siblings(".ln_item").hide();
	});

	$('.newsSwitch_12').click(function() {
		$(this).addClass("newsSwitchActive");
		$(this).siblings().removeClass("newsSwitchActive");
		$('.ln_12').show();
		$('.ln_12').siblings(".ln_item").hide();
	});

	$("#nav_02").hoverIntent(function(){
		$(".solutionSub").slideDown('fast');
		}, function(){
		$(".solutionSub").slideUp("fast");
	});	
	
	$(".showBanner2").click(function(){
	  $(".goGreenCopy").hide();
	  $(".goGreenImage").hide();
	  $(".goGreenCopyFull").slideDown();
	});

	$(".showBanner1").click(function(){
	  $(".goGreenCopy").slideDown();
	  $(".goGreenImage").slideDown();
	  $(".goGreenCopyFull").hide();
	});

	$(".tafTrigger").click(function(){
	  $(".tafTrigger").addClass("tafTriggerActive");
	  $(".hideTaf").slideDown();
	  $(".lowerContent").slideUp();
	  $(".closeTaf").fadeIn();
	});

	$(".closeTaf").click(function(){
	  $(".tafTrigger").removeClass("tafTriggerActive");
	  $(".hideTaf").slideUp();
	  $(".lowerContent").slideDown();
	  $(".closeTaf").fadeOut();
	});

});
