var prefsLoaded=false;var currentFontSize=12;var currentFontType=1;var currentWidth=740;setUserOptions();function setUserOptions(){if(!prefsLoaded){cookie=readCookie("pageWidth");currentWidth=cookie?cookie:740;setWidth(currentWidth);cookie=readCookie("fontFace");currentFontType=cookie?cookie:1;setFontFace(currentFontType);cookie=readCookie("fontSize");currentFontSize=cookie?cookie:12;setFontSize(currentFontSize);prefsLoaded=true}}function revertStyles(){currentFontType=1;setFontFace(1);currentFontSize=12;changeFontSize(0);currentWidth=740;setWidth(740)}function toggleWidth(){currentWidth=parseInt(currentWidth);var A=740;if(currentWidth==740){A=1200}setWidth(A);currentWidth=A}function setWidth(B){var A=document.getElementById("outer");var C=document.getElementById("centrecontent");if(B!=740){newWidth=1200;A.style.width="1015px";C.style.width="81%"}else{A.style.width="740px";C.style.width="550px"}}function changeFontSize(A){currentFontSize=parseInt(currentFontSize)+parseInt(A);if(currentFontType==1){if(currentFontSize>20){currentFontSize=20}else{if(currentFontSize<8){currentFontSize=8}}}else{if(currentFontSize>22){currentFontSize=22}else{if(currentFontSize<8){currentFontSize=8}}}setFontSize(currentFontSize)}function setFontSize(B){var A=document.getElementById("outer");var C=document.getElementById("listMenuWrapper");A.style.fontSize=B+"px";C.style.fontSize=B-1+"px"}function toggleSerif(){currentFontType=parseInt(currentFontType);if(currentFontType==1){currentFontType=2}else{currentFontType=1}setFontFace(currentFontType)}function setFontFace(A){if(A==2){document.getElementById("outer").style.fontFamily="Cambria, times new roman, times, georgia, serif";changeFontSize(1)}else{document.getElementById("outer").style.fontFamily="Candara, Verdana, Arial, Helvetica, sans-serif";changeFontSize(-1)}}function createCookie(C,D,E){if(E){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));var A="; expires="+B.toGMTString()}else{A=""}document.cookie=C+"="+D+A+"; path=/"}function readCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}window.onunload=saveSettings;function saveSettings(){createCookie("fontSize",currentFontSize,365);createCookie("fontFace",currentFontType,365);createCookie("pageWidth",currentWidth,365)};