jQuery.fn.styleSwitcher = function(){
	$(this).click(function(){
		loadStyleSheet(this);
		// return false;
	});
		
	function loadStyleSheet(obj){
		var color = $('a.current').attr("id");
	
		$('.outer-container').append('<div id="inside-overlay" />');
		$('#inside-overlay').css({
			display: 'none',
			position: 'absolute',
			top: 0,
			left: 0,
			width: '750px',
			height: '566px',
			zIndex: 1000,
			background: 'black url(img/loading.gif) no-repeat center'
		}).fadeIn(600, function(){
			$('#colorchange').attr('href', 'css/' +color+ '.css');
			$('#inside-overlay').fadeOut(600, function(){
				$(this).remove();
				// alert('crap');
			});
		});
	}
}