jQuery(document).ready(function(){

	
	jQuery('input').example(function() {
    	return $(this).attr('title');
    });	
    
    jQuery('input[type="hidden"]').addClass("displayNone");   
    
    /* @Albums */
      
    $("#mainAlbums .albumMin a").hover
	     (
		function()
		{
			$(this).children("h3").fadeOut(200);
		}
		,function()
		{
			$(this).children("h3").fadeIn(500);
		}
	);
	
	$("#view").hover
	     (
		function()
		{
			$(this).children("#viewCopyright").fadeOut(200);
		}
		,function()
		{
			$(this).children("#viewCopyright").fadeIn(500);
		}
	);
	

	$("a.fancyboxImg",this).fancybox({
		'overlayOpacity': 0.8,
		'overlayColor' 	: '#000',
		'padding'		: 5,
		'titleShow'		: false
	});
	
	$("a.fancyboxVideo",this).fancybox({
		'overlayOpacity': 0.8,
		'overlayColor' 	: '#000',
		'padding'		: 0,
		'titleShow'		: false,			
		'width'			: '425',
		'height'		: '344',
		'autoScale'		: false,		
		'transitionIn'	: 'none',
		'transitionOut'	: 'none'

	});
	
	$("a.fancyboxIframe",this).fancybox({
		'overlayOpacity': 0.8,
		'overlayColor' 	: '#000',
		'padding'		: 0,
		'titleShow'		: false,			
		'width'			: '425',
		'height'		: '344',
		'autoScale'		: false,		
		'transitionIn'	: 'none',
		'transitionOut'	: 'none'

	});
	
	$("a.gallerygroup").fancybox({
		'overlayOpacity': 0.8,
		'overlayColor' 	: '#000',
		'padding'		: 5,
		'transitionIn'	: 'none',
		'transitionOut'	: 'none',
		'titlePosition' : 'over',
		'titleFormat'	: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	
	
	$('#carteleraPanel').jScrollPane();
	
	
	$("ul.tabs").tabs("div.panes > div"); 

	
});
