/* 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 () {

	
	
    // home top stage
    $('#jcarousel .stgslide').cycle({
        fx: 'fade',
        timeout: 4000,
        speed: 500,
        before: onBefore
    });

    $('#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());
}

