
var oxo = {
	album : {
		select : function(element){
			$("ul.albums a.active").each(function(){
				$(this).removeClass('active');
			});
		
			element.addClass('active');
			
			
			var elementId = element.attr('id').split('-');
			var albumId = elementId[1];
	
			oxo.uploadify.data.album = albumId;

			$('#selected-album').html(element.html());
			$('#album-list').fadeOut();
			$('#uploadify-select').fadeIn();
			
			setTimeout("oxo.uploadify.updateSettings()", 2000);;
		}
	},
	
	uploadify : {
		data: {
			album : null,
			PHPSESSID : null
		},
		
		updateSettings : function(){
			$('#uploadify').uploadifySettings('scriptData', oxo.uploadify.data);
		},
		
		complete : function(event, ID, fileObj, response, data){
			
			return true;
		}
	}
}

