/*
 * Change css on the fly
 *
 * Copyright (c) 2008 Shawphy (shawphy.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-04-18 02:34:34 +0800
 * $Rev: 1 $
 */

jQuery(function() {
	$("#changecss").attr("href","css/"+$.cookie("style")+".css");
	$("#sidebar>ul>li>a").click(function() {
		$("#changecss").attr("href","css/"+$.trim($(this).text())+".css");
		$("#headerMain").html($(this).text());
		$.cookie("style",$.trim($(this).text()),{ expires: 365})
		this.blur();
		return false;
	}).css({"width":"220px","display":"block"});
});
