

	//	##########################################
	//	SLIDE PHOTO
	
		var slide = new Object();
	
		function slidePhoto()
		{
			//	prepare
				slide.image = 1;
				slide.hold = false;
				slide.delay = 2500;
				
				slide.image1 = $('#photo_dot1').attr('value');
				slide.image2 = $('#photo_dot2').attr('value');
				slide.image3 = $('#photo_dot3').attr('value');
				slide.image4 = $('#photo_dot4').attr('value');
				slide.image5 = $('#photo_dot5').attr('value');
				
			//	stop
				if ( slide.image2 == null ) { return; }
//				if ( slide.image3 == null ) { slide.images = 2; } else { slide.images = 3; }
				
			//	preload
				preload_image_object = new Image();
				preload_image_object.src = slide.image1;
				preload_image_object.src = slide.image2;
				preload_image_object.src = slide.image3;
				preload_image_object.src = slide.image4;
				preload_image_object.src = slide.image5;
				
			//	shoot
				setTimeout('slidePhoto_do();',slide.delay);
		}


	//	##########################################
	//	SLIDE PHOTO DO
	
		function slidePhoto_do()
		{
			//	prepare
				slide.busy = true;
				
			//	next image
				slide.image++;
				if ( slide.image > slide.images ) { slide.image = 1; }
	
			//	get next image
    			var image = $('#photo_dot'+slide.image).attr('value');
	    			
	    		//	preload next image
				//	preload_image_object = new Image();
				//	preload_image_object.src = nextImage;
	    			
	    		//	publish next image
	    			$('#photo_next').html('<img src="'+image+'">');
	    			
	    		//	dots
	    			$('.dot a').attr('class','off');
	    			$('#photo_dot'+slide.image).attr('class','on');
	    			
	    		//	slide
	    			$('#photo_current').fadeOut('slow', function() {
	    			
	    			//	finish html
	    				$('#photo_current').remove();
	    				$('#photo_next').attr('id','photo_current');
	    				$('#photo_window').append('<div id="photo_next"></div>');
	    				
						//	busy
	    					slide.busy = false;
	
						//	delay
							setTimeout('slidePhoto_do();',slide.delay);
	    			});
		}


	//	##########################################
	//	SLIDESHOW LEGEND
	
		function slideshow_legend(image)
		{
			//	stop
				if ( slideshow.busy == true )	{ return; }
				if ( slideshow.image == image )	{ return; }
				
			//	clear delay
				clearTimeout(slideshow.delay);
			
			//	image
				slideshow.image = image;
				slideshow.image--;
				slideshow_do();
		}		


	//	##########################################
	//	SLIDESHOW CLICK
	
		function slideshow_click()
		{
			//	stop
				if ( slideshow.busy == true )	{ return; }
				if ( slideshow.image == 0 )		{ window.location.href = '?id=56'; return; }
				
			//	clear delay
			//	clearTimeout(slideshow.delay);
			
			//	get link
				var link = $('#slideshow_link_'+slideshow.image).val();
				
			//	move
				window.location.href = link;
		}		
		
