/*$(document).ready(function() {
	$('div.banner ul').cycle({ fx:'fade', pause: 1 });
});

$(document).ready(function() {
	$('div.banner1 ul').cycle({ fx:'fade', pause: 1 });
});

$(document).ready(function() {
	$('div.banner2 ul').cycle({ fx:'fade', pause: 1 });
});*/


function slideShowbanner1() {
    
	var $active = $('#banner1 img.active');
	var $next = $active.next();
	if ( $next.length == 0 ) $next = $('#banner1 img:first');
   
   $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    var $active = $('#banner1 img.active');
    if ( $active.length != 0 )setInterval( "slideShowbanner1()", 4000 );
});

function slideShowbanner2() {
    
	var $active = $('#banner2 img.active');
	var $next = $active.next();
	if ( $next.length == 0 ) $next = $('#banner2 img:first');
   
   $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    var $active = $('#banner2 img.active');
    if ( $active.length != 0 )setInterval( "slideShowbanner2()", 4000 );
});

function slideShowbanner3() {
	var $active = $('#banner3 img.active');
	var $next = $active.next();
	if ( $next.length == 0 ) $next = $('#banner3 img:first');
   
   $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
	var $active = $('#banner3 img.active');
    if ( $active.length != 0 )setInterval( "slideShowbanner3()", 4000 );
});


function slideShowbannerTop() {
    
	var $active = $('#banner img.active');
	var $next = $active.next();
	if ( $next.length == 0 ) $next = $('#banner img:first');
   
   $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
     var $active = $('#banner img.active');
    if ( $active.length != 0 )setInterval( "slideShowbannerTop()", 4000 );
});

function slideShowbannerCenter() {
    
	var $active = $('#bannercenter img.active');
	var $next = $active.next();
	if ( $next.length == 0 ) $next = $('#bannercenter img:first');
   
   $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
     var $active = $('#bannercenter img.active');
    if ( $active.length != 0 )setInterval( "slideShowbannerCenter()", 4000 );
});


