$(function()
{
	$('.slideshow').html($('#hidden_banner').html());
});


// - fader
$(document).ready(function(){
    $('.slideshow img').css({position: 'absolute'}).hide();
    $('.slideshow img:first').show();
    
    fadeSlideshow();
});

var fader_timer;
var current_fader = 0;
function fadeSlideshow()
{

	if($('.slideshow img').length > 1)
	{
	
		$('.slideshow img').fadeOut(500);
		$('.slideshow img:eq('+current_fader+')').fadeIn(500);
		
		current_fader++;
		
		if(current_fader >= $('.slideshow img').length)
			current_fader = 0;
		
		fader_timer = setTimeout(function(){ fadeSlideshow(); }, 3000);

	}
}
