// JavaScript Document
jQuery(function($){
	if($.cookie("autholmsmyskin")){
		$("#skin").attr("href",$.cookie("autholmsmyskin"));		
	}
	$("#Cskin a").click(function(){
		var lskin = $(this).attr("href");
		$("#skin").attr("href",lskin);
		$.cookie("autholmsmyskin",lskin,{expires: 365,path:'/'});
		$("#Cskin a p").remove();
		$(this).append("<p style='width:6px;height:6px;border:1px inset #ccc;position: absolute;top:4px;left:4px;line-height:0'></p>");
		$(this).blur();
		return false;
	});
	var nowskin = $("#skin").attr("href");
	var nskins = $("#Cskin a");
	for(var i=0;i<nskins.length;i++){
		if($(nskins[i]).attr("href")==nowskin){
			$(nskins[i]).append("<p style='width:6px;height:6px;border:1px inset #ccc;position: absolute;top:4px;left:4px;line-height:0'></p>");
		}
	}
});
