/*
Designed by <theFactor.e>
http://www.tfe.nl
    $Author: Ludo Brink $
*/

// make configuration where PngObject can be found
var PngObjectServerPath = '/servlet/com.thefactore.util.web.servlet.PngObjectServlet';

replaceHyperLink = function(id,fontSize) 
{
	var po = new Tfe.PngObject(PngObjectServerPath, true);
	po.addParam('font', 'Arial Bold');
	po.addParam('fontSize', fontSize);
	po.addParam('lineHeight', fontSize * 1.10);
	po.addParam('hasHover', 'true');
	po.addParam('hoverColor', 'C4D402');
	po.addParam('backgroundColor', 'FFF');
	//po.addParam('encoding', 'ISO-8859-1');
	po.replaceElementById(id);
}
replaceHead = function(element, fontSize)
{
	var po = new Tfe.PngObject(PngObjectServerPath, true);
	po.addParam('font', 'Arial Bold');
	po.addParam('fontSize', fontSize);
	po.addParam('lineHeight', fontSize * 1.10);
	po.addParam('backgroundColor', 'FFF');
	po.addParam('width', 399);
	po.replaceElementsByName(element);
}
replaceQuote = function(id, width, fontSize)
{
	var po = new Tfe.PngObject(PngObjectServerPath, true);
	po.addParam('font', 'Arial Bold Italic');
	po.addParam('fontSize', '13');
	po.addParam('lineHeight', fontSize * 1.10);
	po.addParam('width', width);
	//po.addParam('backgroundColor','FFF');
	po.replaceElementById(id);
}
