function flashTitles() {
	var agent = navigator.userAgent.toLowerCase();
	var _m = document.getElementsByTagName("meta");
	for (var i = 0; i < _m.length; i++) { if (/content-type/i.test(_m[i].getAttribute("http-equiv")) && /xml/i.test(_m[i].getAttribute("content"))) { hasXML = true; } else { hasXML = false; } }
	els = document.getElementsByTagName("h1");
	for (el in els) {
		if (undefined != els[el].innerHTML) {
			_e = els[el];
			title = _e.innerHTML;
			if ((/gecko/.test(agent) && !/applewebkit/.test(agent)) || hasXML) {
				while(_e.hasChildNodes()) {
					_e.removeChild(_e.firstChild);
				}
				if (hasXML && typeof document.createElementNS != "undefined") {
					_obj = document.createElementNS("http://www.w3.org/1999/xhtml", "object");
				} else {
					_obj = document.createElement("object");
				}
				_obj.setAttribute("type", "application/x-shockwave-flash");
				_obj.setAttribute("data", "img/title86a7.swf?tit="+title);
				_obj.setAttribute("width", 510);
				_obj.setAttribute("height", 45);
				_obj.setAttribute("wmode", "transparent");
				_e.appendChild(_obj);
			} else {
				_e.innerHTML = '<embed type="application/x-shockwave-flash" src="' + "/img/title.swf?tit="+title+'" width="510" height="45" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent"></embed>';
			}
		}
	}
}
window.onload = function () {
	flashTitles();
}