HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/awaldron/www/archive/mg/js/main.js
jQuery.noConflict();

jQuery(document).ready(function() {
		
        jQuery('.fade').css({ opacity: 0 });
        jQuery('.fade').waypoint(function (event, direction) {
            var targetOpacity = 1;
            jQuery(this).stop().animate({ "opacity": targetOpacity }, 500, function () { jQuery(this).css('filter', ''); });
        }, {
            offset: '85%'
        });
		
		jQuery('.mgbtn').append('<i class="fa fa-play yellow"></i>');

		jQuery('form .required').prepend('<span class="red"><i class="fa fa-asterisk"></i></span>&nbsp;');
		
		jQuery('#tempreqhome').click(function() {
			jQuery(this).closest('form').submit();
			return false;
		});
		

		var i = 0;	
			
		if (jQuery("#page-splash").length > 0) {

			// DEFINE INTERVALS
			var splashTime = 6000;
			var splashCtr = jQuery(".guards").length;
			
			jQuery('#splasho .fa').click(function(ev) {
				var thisId = jQuery(this).attr('id').substr(2);
				i = parseInt(thisId);
				loopSplash( i, splashCtr );
				i++;
			});
			jQuery('.splashguard').hover(
				function() { jQuery('.arr-next').show(); },
				function() { jQuery('.arr-next').hide(); }
			);
			jQuery('.splashtext').hover(
				function() { jQuery('.arr-prev').show(); },
				function() { jQuery('.arr-prev').hide(); }
			);
			jQuery('.arr-next').click(function() {
				i = i % splashCtr;
				if (i == 0) i = splashCtr;
				jQuery('#fa'+i).click();
			});
			jQuery('.arr-prev').click(function() {
				i = (i - 2) % splashCtr;
				if (i == 0) i = splashCtr;
				jQuery('#fa'+i).click();
			});	
						
			jQuery('#fa1').click();					
			var tid = setInterval( function() { loopSplash( i, splashCtr ); i = i+1; }, splashTime);
			jQuery("#page-splash").hover(function(ev){
				clearInterval(tid);
			}, function(ev){
				tid = setInterval( function() { loopSplash( i, splashCtr ); i = i+1; }, splashTime);
			});

	
		}
		
		
});


function loopSplash( i, ctr ) {
	var next = i%ctr; 
	next = (next==0 ? ctr : next);
	jQuery('.splashy:visible').fadeOut( function() { jQuery('#splash'+next).fadeIn(); });
	jQuery('#splasho .fa').removeClass('fa-circle').addClass('fa-circle-o').attr('style','color:#18355e');
	jQuery('#fa'+next).addClass('fa-circle').attr('style','color:#ae2128');
	//jQuery('#responsive').html(i+':'+next);
}



var show = false;

jQuery(window).scroll(function() {

	var w = jQuery(window).width();
	if (w > 767) {
	 
		var y = jQuery(window).scrollTop();
			var lhtop = 65 - y;
			var pos = 65 - y;
			
		
			if (lhtop < 5) {
				lhtop = 5;
				var logoH = jQuery('#logo-head').height();
				if ((logoH >= 74) && (show == false)) {
					jQuery("#logo-head").animate({ height:'37px', width:'168px', marginTop:'5px' }, 300);
					show = true;
				}
			
			} else if (lhtop > 47) {
				lhtop = 51;
				var logoH = jQuery('#logo-head').height();
				if ((logoH <= 38) && (show == true)) {
					jQuery("#logo-head").animate({ height:'75px', width:'341px', marginTop:'65px' }, 300);
					show = false;
				}
			
			} else {
				jQuery("#logo-head").css('margin-top',lhtop);
			}
	} else {
		jQuery("#logo-head").hide();
	}
});

jQuery(window).resize(function() {
	var w = jQuery(window).width();
	if (w > 767) {
		jQuery("#logo-head, .arr-next, .arr-prev").show();
	} else {
		jQuery("#logo-head, .arr-next, .arr-prev").hide();
	}
});