function CreateCookie(name,value) {
	document.cookie = name + '=' + value;
}

function ReadCookie(name) {
	var nameEQ = name + '=';
	var akey = document.cookie.split(';');

	for(var i = 0; i < akey.length; i++) {
		var key = akey[i];
		while (key.charAt(0) == ' ') {
			key = key.substring(1, key.length);
		}

		if (key.indexOf(nameEQ) == 0) {
			return key.substring(nameEQ.length, key.length);
		}
	}
	return '';
}

function SetStyleSheet(swi) {
	var c = 'aikido-style';
	var s = ReadCookie(c);
	if(document.all && navigator.appName == "Microsoft Internet Explorer") {
	if (swi) {
		if (s == 'tbe.css') {
			s = 'style.css';
		} else {
			s = 'tbe.css';
		}
		CreateCookie(c,s);
		document.styleSheets[0].href=s;
	} else {
		if (s.length > 0) {
			document.styleSheets[0].href=s;
		}
	}
	}
}


