$(document).ready(function() {
	$("#main_nav li").hover(
		function(){ $("ul", this).fadeIn("fast"); }, 
		function() { $("ul", this).fadeOut("fast"); } 
	);
	
	/*
	$('.articles').easyListSplitter({ 
   		colNumber: 2,
   		direction: 'horizontal' 
	});
	*/
	
	$('.news_comments').click(function() {
		$('.news_comments_form').toggle();
		return false;
	});
	
	$('.news_article:odd').css("background-color","#dbeef6");
	$('.news_article:odd').css("padding","10px");
	
	$('.bc_head').click(function() {
		$(this).parent().find('.bc_body').toggle();
	});

	$('.tabs4 > li').corner('top 15px');
	$('.tabs5 > li').corner('top 15px');
	//$('.bc_head').corner('round 15px');
	//$('.bc_body').corner('round 15px');
	$('.news_comments > a').corner('round 15px');
	$('.news_comments_box').corner('round 15px');
	$('.news_article').corner('round 15px');
	$('#trust').corner('round 15px');
	$('.yellow_round').corner('round 15px');
	
	$('.tab_content').hide();
	$('.tab_content:first').show();
	
	$('.tabs_tabs > li').click(function() {
		$('.tabs_tabs > li').removeClass('on');
		$(this).addClass('on');
		var id = $(this).attr('id');
		$('.tab_content').hide();
		$('#tab'+id).show();
		return false;
	});
	
	
	$('.force_tab_two').click(function() {
		$('.tabs_tabs > li').removeClass('on');
		$('.tabs_tabs > li#2').addClass('on');
		$('.tab_content').hide();
		$('#tab2').show();		
		return false;
	});
	$('.force_tab_three').click(function() {
		$('.tabs_tabs > li').removeClass('on');
		$('.tabs_tabs > li#3').addClass('on');
		$('.tab_content').hide();
		$('#tab3').show();		
		return false;
	});
	$('.force_tab_four').click(function() {
		$('.tabs_tabs > li').removeClass('on');
		$('.tabs_tabs > li#4').addClass('on');
		$('.tab_content').hide();
		$('#tab4').show();		
		return false;
	});
	$('.force_tab_five').click(function() {
		$('.tabs_tabs > li').removeClass('on');
		$('.tabs_tabs > li#5').addClass('on');
		$('.tab_content').hide();
		$('#tab5').show();		
		return false;
	});
	
	
	$('#trust_t,#label_t').hover(function() {
		$(this).parent().css('backgroundPosition', '0 -382px');
		$('.tco,.tco_none').hide();
		$('.tco_t').show();
		return false;
	});
	$('#trust_r,#label_r').hover(function() {
		$(this).parent().css('backgroundPosition', '0 -764px');
		$('.tco,.tco_none').hide();
		$('.tco_r').show();
		return false;
	});
	$('#trust_u,#label_u').hover(function() {
		$(this).parent().css('backgroundPosition', '0 -1146px');
		$('.tco,.tco_none').hide();
		$('.tco_u').show();
		return false;
	});
	$('#trust_s,#label_s').hover(function() {
		$(this).parent().css('backgroundPosition', '0 -1528px');
		$('.tco,.tco_none').hide();
		$('.tco_s').show();
		return false;
	});
	$('#trust_t2,#label_t2').hover(function() {
		$(this).parent().css('backgroundPosition', '0 -1910px');
		$('.tco,.tco_none').hide();
		$('.tco_t2').show();
		return false;
	});
	$('#trust_bang,#label_bang').hover(function() {
		$(this).parent().css('backgroundPosition', '0 -2292px');
		$('.tco,.tco_none').hide();
		$('.tco_bang').show();
		return false;
	});
	
	
	$("#map_ohio").hover(
		function(){ $('.map').css('backgroundPosition', '0 -382px'); }, 
		function() { $('.map').css('backgroundPosition', '0 0px'); }
	);
	$("#map_al").hover(
		function(){ $('.map').css('backgroundPosition', '0 -764px'); }, 
		function() { $('.map').css('backgroundPosition', '0 0px'); }
	);
	$("#map_nc").hover(
		function(){ $('.map').css('backgroundPosition', '0 -1146px'); }, 
		function() { $('.map').css('backgroundPosition', '0 0px'); }
	);
	$("#map_ne").hover(
		function(){ $('.map').css('backgroundPosition', '0 -1528px'); }, 
		function() { $('.map').css('backgroundPosition', '0 0px'); }
	);
	
	
	
	
	$("#dropdown_login input[type=text]").click(function() {
		$(this).val('');
	});
	$("#dropdown_login input[type=password]").click(function() {
		$(this).val('');
	});
	
	$(function() {
       var zIndexNumber = 3000;
       // Put your target element(s) in the selector below!
       $("div,ul").each(function() {
               $(this).css('zIndex', zIndexNumber);
               zIndexNumber -= 10;
       });
	});
	
	$(".no").hover(
		function() {
			$('.label').find('span').html($(this).find('span').html());
		},
		function() {
			$('.label').find('span').html('chapters');
		}
	);
		
});
