/* At least we're getting our $$'s worth out of our taxes */

/*mainNav = function() {
	$("#topnav li").bind("mouseenter",function(){
                this.className += "_over over";
	}).bind("mouseleave",function(){
                this.className = this.className.replace("_over over", "");
	});
}*/

jQuery(document).ready(function () {

    $('#bottom-banners-container').hide();
    $('#content-container').hide();

    // home top stage
    $('#jcarousel .stgslide').cycle({
        fx: 'fade',
        timeout: 3500,
        speed: 550,
        before: onBefore,
        pager: '.stgbtnwrpr .stgbtngrp',
        pagerAnchorBuilder: function (idx, slide) {
            idxNUM = idx + 1;
            return '<div class="stgbtnoff">' + idxNUM + '</div>';
        }
    });

    $('#jcarousel .stgbtngrp .stgbtnoff').click(function () {
        $('#jcarousel .stgslide').cycle('stop');
    });

    $.fn.cycle.updateActivePagerLink = function (pager, currSlideIndex) {
        $(pager).find('div').removeClass('stgbtnon')
        .filter('div:eq(' + currSlideIndex + ')').addClass('stgbtnon');
    };


});






function onBefore() {
	$('.stghrimg').html($('.stgslideheading', this).html());
	$('.stghrtxt').html($('.stgslidecontent', this).html());
}

