// Font Size Changer Scripts

function changeFontSize(dir){

var content = document.getElementById('wpsColumn1');

//for ie
if(content.currentStyle){
var cs = content.currentStyle['fontSize'];
var size = cs.substring(0,cs.indexOf('p'));
	if(dir=='b' && size<15){
	content.style.fontSize = eval(size)+1+'px';
	createCookie('fontsize',eval(size)+1,'21');
	}else if(dir=='s' && size>10){
	content.style.fontSize = eval(size)-1+'px';
	createCookie('fontsize',eval(size)-1,'21');
	}

}
// for mozilla
else if(window.getComputedStyle){
var cs = document.defaultView.getComputedStyle(content,null).getPropertyValue('font-size');
var size = cs.substring(0,cs.indexOf('p'));
	if(dir=='b' && size<15){
	content.style.fontSize = eval(size)+1+'px';
	createCookie('fontsize',eval(size)+1,'21');
	}else if(dir=='s' && size>10){
	content.style.fontSize = eval(size)-1+'px';
	createCookie('fontsize',eval(size)-1,'21');
	}
}
}

function changeFontSizeDefault(){
var content = document.getElementById('wpsColumn1');
content.style.fontSize = 11+'px';
createCookie('fontsize','11','21');
}