


function InitStyle()
{
	var strCss = getCookie("css");

	if(typeof(strCss) == "undefined")
		strCss = "Normal";
	
		/*alert(strCss + ': int');*/


	
	if(strCss == "Small"){
		document.write('<link rel="stylesheet" title="Small" href="/wprp/css/province/textsmall1.css" type="text/css">');					
		document.write('<link rel="stylesheet" title="Small" href="/wprp/css/province/mainsmall1.css" type="text/css">');}
	
	if(strCss == "Normal"){
		document.write('<link rel="stylesheet" title="Normal" href="/wprp/css/province/textsmall2.css" type="text/css">');		
		document.write('<link rel="stylesheet" title="Normal" href="/wprp/css/province/mainsmall2.css" type="text/css">');}

	if(strCss == "Large"){
		document.write('<link rel="stylesheet" title="Large" href="/wprp/css/province/textsmall3.css" type="text/css">');		
		document.write('<link rel="stylesheet" title="Large" href="/wprp/css/province/mainsmall3.css" type="text/css">');}

	if(strCss == "ExtraLarge"){
		document.write('<link rel="stylesheet" title="ExtraLarge" href="/wprp/css/province/textsmall4.css" type="text/css">');		
		document.write('<link rel="stylesheet" title="ExtraLarge" href="/wprp/css/province/mainsmall4.css" type="text/css">');}
	

	return true;
}

function SetStyle(strName)
{
	var intCount;

	for(intCount = 0;intCount < document.styleSheets.length; intCount++) {
		if(document.styleSheets[intCount].title == strName)
			document.styleSheets[intCount].disabled = false;
		//else
			//document.styleSheets[intCount].disabled = true;
	}
	
	/*alert(strName + ': set');*/

	setCookie("css", strName, 30, "/", null);
}

function UpdateStyle()
{
	var strName;

	strName = getCookie("css");

	if((typeof(strName) != "undefined")&&(strName != null))
		setCookie("css", strName, 30, "/", null);
}
