var count = 2;  //CAMBIAR VALOR SEGUN CANTIDAD DE <li>

$(document).ready(function(){
	$('.img_dr-gabe').click(function(){ 
		var active = 0;
		$('#rot_content li').each(function(){
			active++;
			if($(this).css('display') == 'block'){
				return false;
			}
		});
		if((active % count) == 0){
			var display = 1;
			var hide = count;
		}else{
			var hide = active;
			var display = (active + 1);
		}
		$('#rot_content #content' + hide).css('display','none');
		$('#rot_content #content' + display).css('display','block');		
		
	});
	
	$('#vid1').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid1"><embed src="video001.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid2').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid2"><embed src="video002.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid3').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid3"><embed src="video003.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid4').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid4"><embed src="video004.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid5').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid5"><embed src="video005.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid6').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid6"><embed src="video006.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid7').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid7"><embed src="video007.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid8').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid8"><embed src="video008.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid9').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid9"><embed src="video009.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid10').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid10"><embed src="video010.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid11').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid11"><embed src="video011.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid12').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid12"><embed src="video012.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid14').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid14"><embed src="extra-video.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
		
	$('#vid15').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid15"><embed src="video015.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid16').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid16"><embed src="video016.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid17').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid17"><embed src="video017.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
		
	$('#vid18').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid18"><embed src="video018.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
		
	$('#vid19').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid19"><embed src="video019.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
		
	$('#vid20').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid20"><embed src="video020.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
	
	$('#vid99').click(function(){
		$('#rot_content').html('');
		$('#rot_content').html('<div class="vid99"><embed src="video09b.mov" Pluginspage="http://www.apple.com/quicktime/" width="280" height="250" CONTROLLER="true" LOOP="false" autostart="true" name="Fan Cam"></embed></div>');
	});
});