$(window).load(function() {

/*	
	// get the grooveshark artist id
	var grooveSharkId = $.jStorage.get('artistGroovesharkID');
	
	// if the artist grooveshark id exists...
	if (grooveSharkId && grooveSharkId != "")
	{
		var grooveSharkName = $.jStorage.get('artistGroovesharkName');
		var grooveSharkURL = 'http://tinysong.com/s/' + grooveSharkName + '?format=json&limit=30&key=2387fae320c81af2d2cc8af2a20c8ebd';
		
		// attempt to get the grooveshark data...
		$.ajax({
		  	url: grooveSharkURL,
			error: function ( data ) { 
				// todo 
				console.log(data);
			},
		  	success: function( data ) {
				console.log(data);
		  	},
			dataType: 'json',
			type: 'GET'
		});

	}
	*/
	
	/*
	var musicSample = $.jStorage.get('music-sample');
	if (musicSample)
	{
		// run the jplayer
	    $('div#music_sampler div.music_item').jPlayer({
	        swfPath: '/workspace/assets/js/libs/jplayer/',
	        solution: 'html, flash',
	        supplied: 'mp3',
	        preload: 'metadata',
	        volume: 0.8,
	        muted: false,
	        cssSelectorAncestor: "",
			cssSelector: {
				play: "",
				pause: "",
				stop: "",
				videoPlay: "",
				seekBar: "",
				playBar: "",
				mute: "",
				unmute: "",
				volumeBar: "",
				volumeBarValue: "",
				currentTime: "",
				duration: ""
			},
	        errorAlerts: false,
	        warningAlerts: false,
			ready: function () {
				$(this).jPlayer("setMedia", {
					mp3: musicSample
				});
			}
	    });
	
		// play / pause
		$("div#music_sampler ul.music_actions a.play").click( function() {
			$("div#music_sampler div.music_item").jPlayer("play");
			$("div#music_sampler ul.music_actions li.play").hide();
			$("div#music_sampler ul.music_actions li.pause").show();
			return false;
		});
		$("div#music_sampler ul.music_actions a.pause").click( function() {
			$("div#music_sampler div.music_item").jPlayer("pause");
			$("div#music_sampler ul.music_actions li.play").show();
			$("div#music_sampler ul.music_actions li.pause").hide();
			return false;
		});
	}
	*/
});




