var currentFontSize = 1.0;

function changeFontSize(sizeDifference){

	currentFontSize = parseFloat(currentFontSize) + parseFloat(sizeDifference);
	//alert("Curent Font Size: " + currentFontSize.toString());


	//if(currentFontType == 1){

		if(currentFontSize > 1.5){

			currentFontSize = 1.5;

		}else if(currentFontSize < 0.5){

			currentFontSize = 0.5;

		}

	/*}else{

		if(currentFontSize > 19){

			currentFontSize = 19;

		}else if(currentFontSize < 8){

			currentFontSize = 8;

		}

	}*/

	setFontSize(currentFontSize);

};

function setFontSize(fontSize){

	var stObj = document.getElementById('maincopyType1');
	
	if (!stObj)
		stObj = document.getElementById('maincopyType2');

	var newSize = fontSize.toString().substring(0, 3) + 'em';
	//alert("New Size: " + newSize);
	stObj.style.fontSize = newSize;	
};