$(function(){	
	
	$.krypton.tooltip();
	$.krypton.zebra();
	

	$("#ct_bar_block").css({ opacity: 0.5 });
	
	
	$(window).load(function () {
        //alert('loaded');
        $('#slider_block_wrapper').delay(1500).fadeOut(750);
    	$('#splash_wrapper').fadeIn(750);
    });
	
	
	
	var $window = $(window);
	var $firstBG = $('#body_wrapper');
	
	$window.bind('scroll', function(){ //when the user is scrolling...
		//alert('scrolling');
	});
	
	
	$(".stageHeader").hover(function() {
			$(this).children('.plus').stop(true, true).html("-");
			$(this).children('.plus').addClass('plus_hover').removeClass('plus');
			$(this).children('.stage_dropdown').stop(true, true).slideDown(200);
			
		}, function() {
			$(this).children('.plus_hover').html("+");
			$(this).children('.plus_hover').addClass('plus').removeClass('plus_hover');
			$(this).children('.stage_dropdown').stop(true, true).slideUp(200);
	});
	
	$(".artist_name td").hover(function() {
			// $(this).children("em").animate({opacity: "show", bottom: 50}, "slow");
		}, function() {
			//$(this).children("em").animate({opacity: "hide", bottom: 0}, "fast");
			
	});
	
$("#youtube").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'title'			: this.title,
			'width'		: 680,
			'height'		: 495,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});
	
$(".yt").click(function(e) {
    $.fancybox({
            'padding' : '10',
            'type' : 'swf',
     //       'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
            'swf' : { 'wmode' : 'transparent', 'allowfullscreen' : 'true' }
        });
    e.preventDefault();
});


$(".yt2").click(function(e) {
    $.fancybox({
   		'width'				: '75%',
		'height'			: '75%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe' });
    e.preventDefault();
});
				
	
	
});	
	
