var currentFontSize = 12;
var currentFontType = 1;
var currentStyle = "White";
var currentWidth = 990;
function revertStyles(){
	currentFontType = 1;
	setFontFace(1);
	
	currentFontSize = 12;
	changeFontSize(0);
	
	currentStyle = "White";
	setColor("White");
	
	currentWidth = 990;
	setWidth(990);
}

function changeFontSize(sizeDifference){
	currentFontSize = parseInt(currentFontSize) + parseInt(sizeDifference);

	if(currentFontType == 1){
		if(currentFontSize > 16){
			currentFontSize = 16;
		}else if(currentFontSize < 8){
			currentFontSize = 8;
		}
	}else{
		if(currentFontSize > 19){
			currentFontSize = 19;
		}else if(currentFontSize < 8){
			currentFontSize = 8;
		}
	}
	setFontSize(currentFontSize);
};
function setFontSize(fontSize){
	var stObj = (document.getElementById) ? document.getElementById('ContentArea') : document.all('Content');
	stObj.style.fontSize = fontSize + 'px';
};
function toggleSerif(){
	currentFontType = parseInt(currentFontType);
	if(currentFontType == 1){
		currentFontType = 2;
	}else{
		currentFontType = 1;
	}
	setFontFace(currentFontType);
};
function setFontFace(fontType){
	var stObj = (document.getElementById) ? document.getElementById('ContentArea') : document.all('ContentArea');
	if(fontType == 2){
		stObj.style.fontFamily = 'georgia,times,times new roman,serif';
		changeFontSize(1);
	}else{
		stObj.style.fontFamily = 'verdana,geneva,arial,helvetica,sans-serif';
		changeFontSize(-1);
	}
}
