function flashSwitch1() {
    var $active = $('#flashshow1 A.active');
    if ( $active.length == 0 ) $active = $('#flashshow1 A:last');
    var $next =  $active.next().length ? $active.next()
        : $('#flashshow1 A:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}
function flashSwitch2() {
    var $active = $('#flashshow2 A.active');
    if ( $active.length == 0 ) $active = $('#flashshow2 A:last');
    var $next =  $active.next().length ? $active.next()
        : $('#flashshow2 A:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}
function flashSwitch3() {
    var $active = $('#flashshow3 A.active');
    if ( $active.length == 0 ) $active = $('#flashshow3 A:last');
    var $next =  $active.next().length ? $active.next()
        : $('#flashshow3 A:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

function ajax_flash1() {
	$(document).ready(function(){
        if (loopOne1 == 1) {
			$("#flashshow1").load("/div_banners1.cfm", function(msg) { $("#flashshow1").html(msg) })			
		//.$.ajax({
		//	type: "POST",
		//	data: "data=" + $("#data").val(),
		//	url: "div_banners1.cfm",
		//	success: function(msg){
		//		$("#flashshow1").html(msg)
		//	}
		//});
			loopOne1 = 0;
		}	
	});
}
function ajax_flash2() {
	$(document).ready(function(){
        if (loopOne2 == 1) {
			$("#flashshow2").load("/div_banners2.cfm", function(msg) { $("#flashshow2").html(msg) })			
		//$.ajax({
		//	type: "POST",
		//	data: "data=" + $("#data").val(),
		//	url: "div_banners2.cfm",
		//	success: function(msg){
		//		$("#flashshow2").html(msg)
		//	}
		//});
			loopOne2 = 0;
		}	
	});
}
function ajax_flash3() {
	$(document).ready(function(){
        if (loopOne3 == 1) {
			$("#flashshow3").load("/div_banners3.cfm", function(msg) { $("#flashshow3").html(msg) })			
		//$.ajax({
		//	type: "POST",
		//	data: "data=" + $("#data").val(),
		//	url: "div_banners3.cfm",
		//	success: function(msg){
		//		$("#flashshow3").html(msg)
		//	}
		//});
			loopOne3 = 0;
		}	
	});
}
	
	

$(function() {
    setInterval( "flashSwitch1()", 4000 );
});
$(function() {
    setInterval( "flashSwitch2()", 4000 );
});
$(function() {
    setInterval( "flashSwitch3()", 4000 );
});
$(function() {
    setInterval( "ajax_flash1()", 0 );
});
$(function() {
    setInterval( "ajax_flash2()", 0 );
});
$(function() {
    setInterval( "ajax_flash3()", 0 );
});



































