// SEAMLESS MINING PRODUCTS SCRIPTS

$(document).ready(function() {
	//MENU
	$('.menuNavThirdLevelCurrent').parent().parent().addClass('menuNavSubLevelCurrent');
	$('.menuNavSubLevelCurrent').parent().parent().addClass('menuNavTopLevelCurrent');
	//INITIALIZE
	$('.careersFormCheckBoxes input').attr('checked','true');
	$('.fade').fadeTo(0, 0.5);
	//FADE EFFECTS
	$('.fade').mouseenter(function(){$(this).stop().fadeTo(200, 1);});
	$('.fade').mouseleave(function(){$(this).stop().fadeTo(200, 0.5);});
	$('#ft-logos img').mouseenter(function(){$(this).stop().fadeTo(200, 0);});
	$('#ft-logos img').mouseleave(function(){$(this).stop().fadeTo(200, 1);});	
	//NEWS SCROLLER V2
	var visibleNewsItems = 1;//SET MAX NUMBER OF VISIBLE ITEMS
	var totalNewsItems = $('.newsTicker li').length;
	if(visibleNewsItems > totalNewsItems){
		visibleNewsItems = totalNewsItems;
	}
	$('.newsTicker').jCarouselLite({
		vertical: true,
		hoverPause: true,
		visible:visibleNewsItems,
		auto: 4000,
		speed: 1000
	});
	//CALENDAR
	$('.date').each(function(){
		var splitDate=$(this).text().split(' ');
		$(this).replaceWith('<div class="clear date"><span class="calendar">'+splitDate[0]+'</span><span class="split">&nbsp;&nbsp;'+splitDate[1]+' '+splitDate[2]+'</span></div>');
	});
	//ACCORDIAN
	$('.contact-info').hide();
	$(function(){
		$("h3").eq(100).addClass("active");
		$(".contact-info").eq(100).show();
		$("h3").click(function(){
			$(this).next(".contact-info").slideToggle("1000")
			.siblings(".contact-info:visible").slideUp("1000");
			$(this).toggleClass("active");
			$(this).siblings("h3").removeClass("active");
		});
	});
});

//BANNER
$(window).load(function() {
	$('#slider2').nivoSlider({effect:'fade', directionNav:false, controlNav:false});
});
// Share This
var switchTo5x=true;
