	jQuery.jStyle = function(opt){
		opt = opt || {};

		var self = {};
		self.path = opt.path;
		self.id = opt.id;


		self.setPath = function(name) {
			$('#' + this.id ).attr({href:this.path + name + '.css'});//this.=self.
		};


		self.Set = function(name) {
			this.setPath(name);
			$.cookie(this.id, name, {path:'/'});
		};
		
		if($.cookie(self.id)) {
			self.setPath($.cookie(self.id));
		}
		
		return self;
	};
	var js_s;
	var js_c;
$(document).ready(function() {
	//マウスカーソル（hrefはtabが効くように）
	$('.jStyle').css("cursor", "pointer").css("cursor", "hand").attr("href", "#");
	
	
	$('.jStyle').click(function(){
		return false;
	});
	js_s = $.jStyle({ path:'/ikkrwebBrowse/material/template/css/', id:'styleSize' });
	js_c = $.jStyle({ path:'/ikkrwebBrowse/material/template/css/', id:'styleColor' });
	
	
	
	
});

