function slideSwitch() {
    var $active = $('#slideshow LI.active');
    if ( $active.length == 0 ) $active = $('#slideshow LI:last');
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow LI:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}
$(document).ready(function() {
	$("#title").fadeIn(700, function(){
		$("#cmsep img").fadeTo(700, 0.3, function(){
			$("#ccedl img").fadeTo(700, 0.3)
			$("#bar").animate({
				opacity: 0.86,
				left: 0 }, 900 );
		});
	});
	$("#cmsep").mouseover(function(event){
		$("#cmsep img").fadeTo(500,1);
		$("#txt1").fadeIn();
	});
	$("#cmsep").mouseout(function(event){
		$("#txt1").fadeOut();
		$("#cmsep img").fadeTo(500,0.3);
	});
	$("#ccedl").mouseover(function(event){
		$("#ccedl img").fadeTo(500,1);
		$("#txt2").fadeIn();
	});
	$("#ccedl").mouseout(function(event){
		$("#txt2").fadeOut();
		$("#ccedl img").fadeTo(500,0.3);
	});
	$(function() {
    setInterval( "slideSwitch()", 6500 );
	});
});
