
	$(function() {
		
		var x0 = 10000;
		
		$(".size ul li").each(function (i) { 
			var x = $(this).offset().left;
			if(x < x0) { $(this).addClass('f'); }
			x0 = x;
		});
		
		$('.close').click(function() { $(this).parent('div').fadeOut('slow'); return false; });
		$('.more').click(function() { $(this).fadeOut(); $('.moretext').slideDown('slow'); return false; });
		$('.less').click(function() { $('.moretext').slideUp('slow',function() { $('.more').css('display','block'); }); return false; });
		
		$('#nav > li').each(function() { $(this).css('background-image',$(this).children('a').css('background-image').replace(/.jpg/,'_on.jpg')); } );
		$('#nav > li').hover( function() { $(this).addClass('hover'); }, function() { $(this).removeClass('hover'); } );

        $('a[rel="share_widget"]').click( function() {
            var widget = window.open( $(this).attr('href'), 'Share', 'toolbar=0,status=0,width=626,height=436,scrollbars=0,resizable=0' );
            widget.focus();
            return false;
        });
        $('a[rel="ms_w"]').click( function() {
            var widget = window.open( $(this).attr('href'), 'Do512Widget', 'toolbar=0,status=0,width=630,height=545,scrollbars=0,resizable=0' );
            widget.focus();
            return false;
        });

		/* Playlist and YouTube Popup */
        $('a[rel="band_play"]').click( function() {
            var widget = window.open( $(this).attr('href'), 'Lollapalooza2009', 'toolbar=0,status=0,width=1000,height=500,scrollbars=0,resizable=0' );
            widget.focus();
            return false;
        });

	});