//Function FadeIn FadeOut Banner
function slideSwitch2() {
    var active = $('#slidebannershow DIV.active');
    if ( active.length == 0 ) active = $('#slidebannershow DIV:last');
    var next =  active.next().length ? active.next()
        : $('#slidebannershow DIV#first_slide');
    active.addClass('last-active');
    next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            active.removeClass('active last-active');
        });
}
$(function() {
    setInterval( "slideSwitch2()", 3000);
});
//Function FadeIn FadeOut Banner
function slideSwitch() {
    var active = $('#slideshow DIV.active');
    if ( active.length == 0 ) active = $('#slideshow DIV:last');
    var next =  active.next().length ? active.next()
        : $('#slideshow DIV#first_slide');
    active.addClass('last-active');
    next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            active.removeClass('active last-active');
        });
}
$(function() {
    setInterval( "slideSwitch()", 3000);
});

$(document).ready(function(){
	//Examples of how to assign the ColorBox event to elements
	$(".group1").colorbox({rel:'group1'});
});
