$(function() {
					 
					 
	
	// Cycle
	$('.box-container .box .box-inner') .each(function(i, e) {
		$(this).after('<div class="nav"><div id="nav'+i+'" class="nav-inner">') 
		.cycle({ 
			fx:     		'scrollUp', 
			speed:  		800, 
			timeout: 		4000, 
			pager:  		'#nav'+i ,
			pause:			true,
			pauseOnPagerHover: true
		});
	});
	
	
	
	// Media
	$.fn.media.defaults.flvPlayer = '/CircuitoMusicaPlugin/js/mediaplayer-viral/player-viral.swf';
	$.fn.media.defaults.mp3Player = '/CircuitoMusicaPlugin/js/mediaplayer-viral/player-viral.swf';
	$('.media-audio').media( { width: 429, height: 20, autoplay: true } ); 
	$('.media-video').media({ 
		width: 			470,
		height: 		320,
		autoplay: 	true,
		bgColor:		'#000000'
	});
	
	
	
	// Footer CM
	$('#footer_cm #footer_cm-groups') .cycle({ 
		fx:     		'fade', 
		speed:  		400, 
		timeout: 		4000, 
		pause:			true
	});
	
	$('#footer_cm #footer_cm-contacts input, #footer_cm #footer_cm-contacts textarea').each(function() {
		var label = $(this).parent().find('label').text().replace(' *', '');
  	if($(this).val() === '') {$(this).val(label);}
  
	  $(this).focus(function() {
	   	if($(this).val() === label) {$(this).val('').addClass('focused');}
	  });
  
	  $(this).blur(function() {
	   	if($(this).val() === '') {$(this).val(label).removeClass('focused');}
	  });
 });

	
							
});
