function switchSidebar(h){
	if (h && ($('#right').length == 1)){
		var s = $('<DIV id="switchSidebar" />').hide();
		var id = (h['id']) ? h['id'] : '0';
		var image = (h['image']) ? h['image'] : '000M';
		var name = (h['name']) ? h['name'] : 'Unknown';
		var slot = (h['slot']) ? h['slot'] : 'Unknown';
		var level = (h['level']) ? h['level'] : 'Unknown';
		var item = (h['item']) ? h['item'] : 'None';
		
		s.css({ backgroundImage: 'url(' + image + ')', opacity: 1, height: $('#rs').outerHeight(), marginTop: (-1 * $('#rs').outerHeight()) });
		
		s.append($('<DIV class="h">' + name + '</DIV><P><STRONG>Roster Slot:</STRONG> ' + slot + '<BR /><STRONG>Level:</STRONG> ' + level + '<BR /><STRONG>Item:</STRONG> ' + item + '</P>'));
		
		var d = $('<P class="c" />');
		var mS = $('<A href="change_roster.php?Slot=1&id=' + id + '">Make Starter</A>');
		var sR = $('<A>Show Roster</A>').click(function(){
				hideSidebar();
		});
		
		d.append(mS, ' | ', sR);
		s.append(d);
		$('#rs').after(s);

	
		$('#switchSidebar').fadeIn('slow');
	}
}
function hideSidebar(){
	if ($('#switchSidebar').length == 1){
		$('#switchSidebar').fadeOut('slow', function(){ $(this).remove(); });
	}
}
