/* Nothing here needs to be modified */
this.setCSS = function(style)
{
	var i, cacheobj;
	for(i=0;(cacheobj=document.getElementsByTagName("link")[i]);i++)
	{
		if(cacheobj.getAttribute("rel").indexOf("style") != -1 && cacheobj.getAttribute("title"))
		{
			cacheobj.disabled=true;
			if(cacheobj.getAttribute("title")==style)
				cacheobj.disabled=false;
		}
	}
}
this.SwatchCSS = function(style)
{
	if(document.getElementById)
	{
		setCSS(style);
		setCookie("SwatchCSS", style);
	}
}
this.getCookie = function(Name)
{
	var replace = new RegExp(Name+"=[^;]+", "i");
	if(document.cookie.match(replace))
		return document.cookie.match(replace)[0].split("=")[1]
		return null
}
this.setCookie= function(name, value)
{
	var expires = new Date();
	var expires_str=expires.setDate(expires.getDate()+parseInt(365));
	document.cookie = name+"="+value+"; expires="+expires.toGMTString()+"; path=/";
}
var currentCSS=getCookie("SwatchCSS");
if(document.getElementById && currentCSS!=null)	setCSS(currentCSS);