$(document).ready(function() {
	/*HIDE CONTENT*/
	var FullscreenrOptions = { width: 1000, height: 920, bgID: '#background' };
	jQuery.fn.fullscreenr(FullscreenrOptions);	
	
	/*EXTERNAL LINKS*/
	$("a[rel='external']").attr('target','_blank');
	
	/*SLIDESHOW*/
	$('#slideshow-imgs').cycle({
		fx: 'fade',
		sync: true,
		delay: 200,
		timeout: 5500,
		prev: '.prev',
		next: '.next'
    });
    $(window).keydown(function(e){
		if(e.which == 37){ $('#slideshow-prev a').click(); }
		else if(e.which == 39){ $('#slideshow-next a').click(); }
	});

	/*STYLE YOUTUBE VIDEOS*/
	$('a[href^="http://youtube.com"]').flash(
        { height: 313, width: 385 },
        { version: 8 },
        function(htmlOptions) {
            $this = $(this);
            htmlOptions.src = $this.attr('href');
            $this.before($.fn.flash.transform(htmlOptions));						
        }
    );

	/*ALBUM SCROLL LOCK*/
  /*  $(window).scroll(function(){
        if  ($(window).scrollTop() > 1785){
            $("#music").css({"position":"fixed", "top":"-1450px"});
        } else {
            $("#music").css({"position":"relative", "top":"0"});
        }
    });	*/
});
