var titles = ["-regular","-enlarged","-enlarged2","-small"];
function setActiveStyleSheet(ind) {
	 _proxy_jslib_assign('',  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("modCss"), 'href', '=', ( "/globals/css/enbrel" +  _proxy_jslib_handle(titles, (ind), 0, 0) + ".css"));
	createCookie("styleIndex", ind, 355);
	styleIndex = ind;
}
function createCookie(name,value,days) {
	if (days)
	{
		var date = new (Date)();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else expires = "";
	 _proxy_jslib_assign('', document, 'cookie', '=', ( name+"="+ _proxy_jslib_handle(null, 'value', value, 0, 0)+expires+"; path=/"));
}
function readCookie(name) {
	var nameEQ = name + "=";
	var ca =  _proxy_jslib_handle(document, 'cookie', '', 0, 0).split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c =  _proxy_jslib_handle(ca, (i), 0, 0);
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
function getNextIndex(ind) {
	for (var i = 0; i < titles.length; i++)
	{
		if (ind == i)
		{
			if (i == titles.length - 1)
			{
				return 0;
			}
			else
			{
				return (i + 1);
			}
		}
	}
}
var cookie = readCookie("styleIndex");
var styleIndex = ( _proxy_jslib_handle(null, 'cookie', cookie, 0, 0) != null) ?  _proxy_jslib_handle(null, 'cookie', cookie, 0, 0) : 0;
if (styleIndex > 0)
{
	setActiveStyleSheet(styleIndex);
} ;
_proxy_jslib_flush_write_buffers() ;