 
function slideSwitch() {
	if(slide_num==(mySlide.length-1)) {
		slide_num=0;
	}
	slide_num=slide_num+1;	
	document.getElementById("transitional_counter").innerHTML=slide_num+" of&nbsp;";
	
    var $active = jQuery('#slideshow DIV.active');
 
    if ( $active.length == 0 ) $active = jQuery('#slideshow DIV:last');
 
    // use this to pull the divs in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : jQuery('#slideshow DIV:first');
 

    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

function slideSwitchBack() {
	slide_num=slide_num-1;
	if(slide_num==0) {
		slide_num=(mySlide.length-1);
	}
	document.getElementById("transitional_counter").innerHTML=slide_num+" of&nbsp;";

    var $active = jQuery('#slideshow DIV.active');
 
    if ( $active.length == 0 ) $active = jQuery('#slideshow DIV:first');
 
    // use this to pull the divs in the order they appear in the markup
    var $prev =  $active.prev().length ? $active.prev()
        : jQuery('#slideshow DIV:last');
 
    // uncomment below to pull the divs randomly
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = jQuery( $sibs[ rndNum ] );
    $active.addClass('last-active');
    $prev.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });		
}

function setSlides() {
document.getElementById("transitional_counter").innerHTML="1 of&nbsp;";
document.getElementById("transitional_total").innerHTML=(mySlide.length-1);
}

function setClick(action) {
	clearInterval(myShow);
	myShow = setInterval( "slideSwitch()", 10000 );
}

