function changeStyleSheet (styleSheet) {
	var url=unescape(window.location.pathname);
	datum = new Date();
	
	if (styleSheet=="0") {
		datum.setFullYear(datum.getFullYear()-1);
		setCookie("style", "", datum);
	}
	else {
		browName = navigator.appName;
		browVerze = parseInt(navigator.appVersion);
		if (browName=="Microsoft Internet Explorer" & browVerze >=3 ) {
			this.document.styleSheets[0].addImport("URL('ms_"+ styleSheet +"');");
		}
		else {
			this.document.styleSheets[0].ownerNode.href = styleSheet;
		}
		datum.setFullYear(datum.getFullYear()+1);
		setCookie("style", styleSheet, datum);
	}
	window.location.href = url;
}

function setCookie(name, value, expires) {
  if (!expires) expires = new Date(); 

	document.cookie = name + "=" + escape(value) + "; expires=" + expires.toGMTString() + "; path=/";
}
