/*
* lounches the comments reply/edit popup
*/
function comments_reply(replyType, quote, id, urlToSend)
{
    var url = '/addcomments.php?runpath0=comment&runpath1=frontend&runpath2=';
    if(replyType == 'reply')
        url = url + 'replypage';
    else
        url = url + 'editpage';
    url = url + '&quote=' + quote;
    url = url + '&url=' + urlToSend;
    url = url + '&id=' + id;
    newwin = window.open(url, 'commenteditreply'," height=512,width=508,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no");
    newwin.focus();
}

function setUpTextSizer(){
	$('a#textSmall').click(function(){
		var currentSize = $('#content').css('font-size');
		currentSize = parseInt(currentSize);
		currentSize = currentSize - 2;
		if(currentSize > 10){
			currentSize = currentSize + 'px';
			$('#content, #content p, #content a').css('font-size',currentSize);
		}
		return false;
	});
	
	$('a#textLarge').click(function(){
		var currentSize = $('#content').css('font-size');
		currentSize = parseInt(currentSize);
		currentSize = currentSize + 2;
		if(currentSize < 24){
			currentSize = currentSize + 'px';
			$('#content, #content p, #content a').css('font-size',currentSize);
		}
		return false;
	});
}