$(document).ready(function() {
	<!-- Hero Banner -->
	$('#slider').nivoSlider();
	$('.controlSlider, #dna_information_over, #dna_integration_over, #dna_automation_over, .nivo-controlNav, .paragraph, .over, .h2-over').hide();
	
	<!-- Set Menu Active -->
	$('li.home').addClass('active');
	
	<!-- Text Resizer -->
	var increaseclicks = 0;
        var decreaseclicks = 0;
        // Reset Font Size
        var originalFontSize = $('html').css('font-size');
            $(".resetFont").click(function(){
            $('html').css('font-size', originalFontSize);
            increaseclicks = 0;
            decreaseclicks = 0;
        });
        // Increase Font Size
        $(".increaseFont").click(function(){
            var currentFontSize = $('html').css('font-size');
            var currentFontSizeNum = parseFloat(currentFontSize, 13);
            // use styles for tags. {IE6 fix} (because tag font size do not change on IE6)
            var newFontSize = currentFontSizeNum + 1;
            if (increaseclicks <2) {
            $('html').css({'font-size': newFontSize});
            increaseclicks++;
            decreaseclicks--;
            }
            return true;
            });
         // Decrease Font Size
        $(".decreaseFont").click(function(){
            var currentFontSize = $('html').css('font-size');
            var currentFontSizeNum = parseFloat(currentFontSize, 13);
            var newFontSize = currentFontSizeNum - 1;
            if (decreaseclicks <2) {
                // $(’html’).css(’font-size’, newFontSize); braces is an IE6 fix.
                $('html').css({'font-size': newFontSize});
                decreaseclicks++;
                increaseclicks--;
            }
            return false;
        });
		
		<!-- News Headlines -->
		$('.newsfader').innerfade({
			animationtype: 'fade',
			speed: 1000,
			timeout: 5000,
			type: 'sequence',
			containerheight: '42px'
		});
		
		<!-- Tabbed Content -->
		$(".tab_content").hide(); //Hide all content
		$("ul.tabs li:first").addClass("first-tab active").show(); //Activate first tab
		$(".tab_content:first").show(); //Show first tab content		
		//On Click Event
		$("ul.tabs li").click(function() {		
			$("ul.tabs li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$(".tab_content").hide(); //Hide all tab content
			var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
			$(activeTab).fadeIn(); //Fade in the active ID content
			return false;
		});		
		
		$("#newsAlertButton").click(function () {
			SendNewsAlertsEmail();
			return false;
		});
});
