/**
 * Hiero 1.0.0b - Flash Headline Generator 
 * (c) 2009 by SALON91 GmbH (http://www.salon91.com)
 */

function changeDiv(divname, new_width, new_height) {
	var e = document.getElementById(divname);
    e.width = new_width;
	e.height = new_height;
}
		
function getHead(div) {
	var e = document.getElementById(div);
	return e.innerHTML;
}


// Pushes the Hiero Replacement with help of SWFObject
// Params: pushHiero ( divname, h2name, linkadress )

function pushHiero(divname, h2_tag, linkadress, color) {
	document.writeln("<script type=\"text/javascript\">");	
	document.writeln("swfobject.embedSWF('http://blog.gloss-postproduction.com/wp-content/themes/gloss/images/hiero.swf', '" + divname + "', '1', '1', '9.0.45', 'http://blog.gloss-postproduction.com/wp-content/themes/gloss/images/expressinstall.swf', {color: \"" + color + "\", linkadress: \"" + linkadress + "\", headline_text: \"" + getHead(h2_tag) + "\", idname: \"" + divname + "\"}, {wmode: 'transparent', menu: 'false'}, {id: '" + divname + "'})");
 	document.writeln("</script>");
}