var prefsLoaded = true;
var defaultFontSize = 12;
var defaultLineHeight = 17;
var currentFontSize = defaultFontSize;
var currentLineHeight = defaultLineHeight;

function changeFontSize(sizeDifference){
	currentFontSize = parseInt(currentFontSize) + parseInt(sizeDifference * 2);

	if(currentFontSize > 18){
		currentFontSize = 18;
	}else if(currentFontSize < 8){
		currentFontSize = 8;
	}

	currentLineHeight = currentFontSize + 5;
	setFontSize(currentFontSize);
};

function setFontSize(fontSize){
	var stObj = (document.getElementById) ? document.getElementById('rightContent') : document.all('rightContent');
	stObj.style.fontSize = fontSize + 'px';
	lineHeight = fontSize + 5;
	stObj.style.lineHeight = lineHeight+ 'px';
	
	
	
	fontSize2 = fontSize + 14;
	lineHeight2 = fontSize2 + 5;
	var stObj2 = document.getElementsByTagName('h1');
	for(i=0;i<stObj2.length;i++) {
		stObj2[i].style.fontSize = fontSize2 + 'px';
		stObj2[i].style.lineHeight = lineHeight2+ 'px';
	}
	
	fontSize3 = fontSize + 2;
	lineHeight3 = fontSize3 + 5;
	var stObj3 = document.getElementsByTagName('h2');
	for(i=0;i<stObj3.length;i++) {
		stObj3[i].style.fontSize = fontSize3 + 'px';
		stObj3[i].style.lineHeight = lineHeight3+ 'px';
	}
	

	
};
