
var defaultelements = new Array('-1','-1','-1','-1','-1','-1','-1','-1','-1');
function ChangeFont(Opt) {
	var elements = new Array(
		'.SubMenuContainer h1', 
		'.SubMenuContainer #Description', 
		'#ArticleContent h1', 
		'#ArticleContent h2', 
		'#ArticleContent h3', 
		'#ArticleContent h4', 
		'#ArticleContent h5', 
		'#ArticleContent h6', 
		'#ArticleContent p', 
		'#ArticleContent li');
		
	
	
	for (i = 0 ; i <= 9 ; i++) {
		$(elements[i]).each(function() {
			
			if (defaultelements[i] == -1) {
				defaultelements[i] = parseInt($(this).css("fontSize"));
			}
			
			if (Opt == 'increase') {
				thisnewfontsize = parseInt($(this).css("fontSize"))+1;
		  }
			if (Opt == 'decrease') {
				thisnewfontsize = parseInt($(this).css("fontSize"))-1;
		  }		  
		  if (Opt == 'default') {
		  	thisnewfontsize = defaultelements[i];
		  }
			thisnewlineheight = thisnewfontsize+6;
			$(this).css({fontSize: thisnewfontsize+'px', lineHeight: thisnewlineheight+'px'});
		});
	}
}

function ResetFontSize() {
	ChangeFont('default')
 }
