$(document).ready(function() {
	// Stuff to do as soon as the DOM is ready;
	Cufon.replace('h2.record-header');
	Cufon.replace('#artist_utility a', {
		hover: true
	});
	$('#nav > li').hover(function(){
		$(this).children('ul').show();
	}, function(){
		$(this).children('ul').hide();
	});
//________ end nav _________\\
	$('#rightcoltext a#loggin_trigger').click(function(){
		$('#login_box').slideToggle(200);
		return false;
	});
//________ end nav bg and login _________\\
	$('a[href$=.mp3]').media( { width: 228, height: 24, bgColor: '', autoplay: false, flashvars: { backcolor: '0xEFEFEF', showdownload: 'false' } } ); //, skin: 'accelsite/themes/temp999.6/glow.zip'
//_________ end jQuery CSS music player _________\\
	$('a.listen-trigger').click(function(){
		$(this).parents('div.featured-links').siblings('div.artist-media-widget').slideToggle(500);
		return false;
	});
	$('a.perf-button.listen-trigger').click(function(){
		$(this).parents('div.performance-date').next('div.performance-left').children('div.artist-media-widget').slideToggle(500);
		return false;
	});
//________ end home listen trigger_________\\
	var youTube = $("#content a[class^='youtube']");

	youTube.each(function(){
		var youTubeVideo = $(this).attr('href').match(/v=([a-zA-Z0-9\-_]+)/)[1]; 
		$(this).attr('href','http://youtube.com/v/'+youTubeVideo);
		$(this).addClass('{width:675, height:477, type:\'swf\'}');
		$(this).media( { bgColor: '', flashvars: { backcolor: '0xFFFFFF'} } );
	});
//_________ end youtube converter _________\\
	//$('#genre_list').tinyscrollbar();
//_________ end genre scroller _________\\
	$('div.profile-image a:not(.fullscreen)').attr('rel','prettyPhoto[profile]');
	$("div.profile-image a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
//_________ end profile images _________\\
	$('#wrapper h2.record-header').click(function(){
		window.location="http://"+window.location.hostname+window.location.pathname;
	});
//_________ end home link _________\\

var socialLink = $('#social_links').find('a.social-link');
	socialLink.css('opacity',0.5);
	socialLink.hover(function(){
		$(this).css('opacity',1);
	},
	function(){
		$(this).css('opacity',0.5);
	});
//_________ end social link hover _________\\

});

