/*ver. 2.09*/
/*date: 13.1.2010 */
function slideSwitch(visina) {
    var $active = $('#slideshow DIV.active');
    if ( $active.length == 0 ) {
		   $active = $('#slideshow DIV.holder:first');
	}
    var $next= $active.prev(".holder").length ? $active.prev(".holder") : $('#slideshow DIV.holder:last-child');

    $next.addClass('next-active');
    $active.fadeOut(2000,function(){
    	 $active.removeClass('active next-active').show();
    	 $next.css({height:visina}).removeClass('next-active').addClass('active');
    });
}
function slideSwitchImg() {
 var $active = $('#fade IMG.active');
 if ( $active.length == 0 ) $active = $('#fade IMG:last');
 var $next = $active.next().length ? $active.next() : $('#fade IMG:first');
// var $sibs = $active.siblings();
// var rndNum = Math.floor(Math.random() * $sibs.length );
// var $next = $( $sibs[ rndNum ] );

    $next.addClass('next-active');
    $active.fadeOut(500,function(){
    	 $active.removeClass('active next-active').show();
    	 $next.removeClass('next-active').addClass('active');
    });

}







