	
		function topmenu_active_page(){
			switch( $("DIV#menu UL LI A.active").attr('id') ){
				case "tm_homepage": $("DIV#menu").addClass('active_homepage'); break;
				case "tm_news": $("DIV#menu").addClass('active_news'); break;
				case "tm_about": $("DIV#menu").addClass('active_about'); break;
				case "tm_services": $("DIV#menu").addClass('active_services'); break;
				case "tm_showcase": $("DIV#menu").addClass('active_showcase'); break;
				case "tm_contact": $("DIV#menu").addClass('active_contact'); break;
				default: break;
			}
			
		}
		
		function rand ( n ){
		  return ( Math.floor ( Math.random ( ) * n + 1 ) );
		}
		
	
		function efx_find_next_pic(){
			
			next_pic					= 1;
			number_of_slideshow_pics 	= $("#panel_move UL LI").length;
			current_selected_pic 		= $( $("#right_switcher_nav UL LI A") ).index( $("#right_switcher_nav UL LI A.active") );
			
			if( (current_selected_pic) == (number_of_slideshow_pics-1) ){ next_pic = 1; }
			else next_pic = current_selected_pic + 1 + 1; // index starts from 0 ( next_pic starts from 1 )

			return next_pic;
			
		}
		
		
		
		function efx_slideshow( what_pic ){
			
			slideshow_move_speed 	= 500;
			goto_left 			 	= 0;
			page_width				= $("#panel_move UL LI").width();
			
			// goto first , left = 0
			if( what_pic == 1 ){ goto_left = 0; }
			else { 	goto_left = -1 * (what_pic-1) * page_width; }

			$("#right_switcher_nav A").removeClass('active');
			$("#right_switcher_nav A").eq(what_pic-1).addClass('active');
		
			$('#panel_move').animate({
			    left: goto_left + 'px'
			  }, slideshow_move_speed, function() {
			    	
					// callback
			    	
			    	efx_slideshow_timer = setTimeout( "efx_slideshow( efx_find_next_pic() )", slideshow_speed );
			    	
			  });
			
		}
		

