function createMenu() {
	$(".artgasmator-menu").buildMenu(
			{
			menuWidth:120,
			openOnRight:false,
			openOnClick:false,
			menuSelector: ".menuContainer",
			hasImages:false,
			fadeInTime:120,
			fadeOutTime:50,
			adjustLeft:2,
			adjustTop:10,
			opacity:1,
			shadow:true,
			closeOnMouseOut:true,
			closeAfter:800,
			minZindex:200,
			hoverIntent:0
		});
}

function createExtruder() {
	$("#extruder").buildMbExtruder({
		position:"right",
		width:350,
		flapMargin:100,
		extruderOpacity:1,
		onExtOpen:function(){
	    },
		onExtContentLoad:function(){},
		onExtClose:function(){}
	});
}

function renderMusicPlayer() {
	var playlist = [ {
		mp3:'mix/1.mp3',
		oga:'mix/1.ogg',
        rating:4.5,
        title:'Crack the skye',
        duration:'4:28',
        artist:'Mastodon',
        cover:'http://gritosysusurroshefzi.files.wordpress.com/2011/04/mastodon-crack_the_skye-album_art.jpg'
	 },
	 {
			mp3:'mix/1.mp3',
			oga:'mix/1.ogg',
	        rating:4.5,
	        title:'The Czar',
	        duration:'4:28',
	        artist:'Mastodon',
	        cover:'http://gritosysusurroshefzi.files.wordpress.com/2011/04/mastodon-crack_the_skye-album_art.jpg'
		 },
		 {
				mp3:'mix/1.mp3',
				oga:'mix/1.ogg',
		        rating:4.5,
		        title:'Ghost of Karelia',
		      
		        duration:'4:28',
		        artist:'Mastodon',
		        cover:'images/cover.jpg'
			 }
		 ,{
				mp3:'mix/1.mp3',
				oga:'mix/1.ogg',
		        rating:4.5,
		        title:'The Sparrow',
		       
		        duration:'4:28',
		        artist:'Mastodon',
		        cover:'images/cover.jpg'
			 }
		 ,
		 {
				mp3:'mix/1.mp3',
				oga:'mix/1.ogg',
		        rating:4.5,
		        title:'Curl Of The Burl',
		        
		        duration:'4:28',
		        artist:'Mastodon',
		        cover:'images/cover.jpg'
			 }];
	
    $('#music-player').ttwMusicPlayer(playlist, {
        autoPlay:false, 
        tracksToShow:5,
        jPlayer:{
            swfPath:'../swf/jquery-jplayer' //You need to override the default swf path any time the directory structure changes
        }
    });
}