var flashvars = {};
		flashvars.xml = "http://90watts.com/modules/cu3er/config.php";
		flashvars.font = "http://90watts.com/media/flash/cu3er/myFont.swf";
		var attributes = {};
		attributes.wmode = "transparent";
		attributes.id = "slider";
		swfobject.embedSWF("http://90watts.com/media/flash/cu3er/cu3er.swf", "cu3er-container", "940", "300", "9", "expressInstall.swf", flashvars, attributes);
		
		var menuYloc = null;

$(document).ready(function() {
	
	
	
	
    $('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	
	$(".tweet").tweet({
            username: "90watts",
            join_text: "auto",
            avatar_size: 32,
            count: 1,
            auto_join_text_default: "90watts said,",
            auto_join_text_ed: "90watts",
            auto_join_text_ing: "90watts was",
            auto_join_text_reply: "90watts replied to",
            auto_join_text_url: "90watts was checking out",
            loading_text: "loading twitter feed..."
     });
     
            $('.releasebox.slidedown').hover(function(){
            	$(".cover", this).stop().animate({top:'440px'},{queue:false,duration:600});
            }, function() {
	            $(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
            });
            //Horizontal Sliding
            $('.releasebox.slideright').hover(function(){
	            $(".cover", this).stop().animate({left:'325px'},{queue:false,duration:300});
            }, function() {
	            $(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
            });
            //Diagnal Sliding
            $('.releasebox.thecombo').hover(function(){
	            $(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300});
            }, function() {
	            $(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
            });
            //Partial Sliding (Only show some of background)
            $('.releasebox.peek').hover(function(){
	            $(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160});
            }, function() {
	            $(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
            });
            //Full Caption Sliding (Hidden to Visible)
            $('.releasebox.captionfull').hover(function(){
	            $(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
            }, function() {
	            $(".cover", this).stop().animate({top:'260px'},{queue:false,duration:160});
            });
            //Caption Sliding (Partially Hidden to Visible)
            $('.releasebox.caption').hover(function(){
	            $(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
            }, function() {
	            $(".cover", this).stop().animate({top:'220px'},{queue:false,duration:160});
            });
            
            
            $('.artistbox.slidedown').hover(function(){
	            $(".cover", this).stop().animate({top:'140px'},{queue:false,duration:300});
            }, function() {
	            $(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
            });
            $('.artistbox.slideright').hover(function(){
	            $(".cover", this).stop().animate({left:'140px'},{queue:false,duration:300});
            }, function() {
	            $(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
            });
            $('.latest_releases_box.slidedown').hover(function(){
	            $(".cover", this).stop().animate({top:'140px'},{queue:false,duration:600});
            }, function() {
	            $(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
            });
            
            
            var pagecontent=new virtualpaginate({
            piececlass: "virtualpage", //class of container for each piece of content
            piececontainer: "div", //container element type (ie: "div", "p" etc)
            pieces_per_page: 7, //Pieces of content to show per page (1=1 piece, 2=2 pieces etc)
            defaultpage: 0, //Default page selected (0=1st page, 1=2nd page etc). Persistence if enabled overrides this setting.
            wraparound: false,
            persist: true //Remember last viewed page and recall it when user returns within a browser session?
            })

            pagecontent.buildpagination(["nav_headlines"])
            
            menuYloc = parseInt($("#floatMenu").css("top").substring(0,$("#floatMenu").css("top").indexOf("px")))
			$(window).scroll(function () { 
			offset = menuYloc+$(document).scrollTop()+"px";
			$("#floatMenu").animate({top:offset},{duration:200,queue:false});
			});
     
});