function  myTags(mytags){  
mytags=mytags.replace(/<A/g, '<a')  
.replace(/\/A>/g, "/a>")  
.replace(/(target=_)(\w*)/g, 'target="_$2"')  
.replace(/(class=)(?!")(\w*)/g, 'class="$2"')  
.replace(/(name=)(?!")(\w*)/g, 'name="$2"')  
.replace(/(id=)(?!")(\w*)/g, 'id="$2"');  
mytags=encodeURIComponent(mytags).replace(/!/g, '%21')  
.replace(/'/g, '%27').replace(/\(/g, '%28')  
.replace(/\)/g, '%29').replace(/\*/g, '%2A');  
var rnumber = Math.floor(Math.random()*9999999);  
var flashvars = {  
tcolor:"0xFF0000",  
tcolor2:"0x0000FF",  
hicolor:"0x000000",  
tspeed:"150",  
distr:"true",  
mode:"tags",  
tagcloud:mytags  
};  
var params = {  
allowScriptAccess:"always",  
bgcolor:'#ffffff' 
};  
var attributes = {  
id:"flash_cloud" 
};  
swfobject.embedSWF("wp-cumulus/tagcloud.swf?r="+rnumber,  
"tags", "420", "280", "9.0.0",  
"wp-cumulus/expressInstall.swf", flashvars,  
params, attributes);  
}  
window.onload=function(){  
var mytags="<tags>" 
+document.getElementById('tags').innerHTML  
+"</tags>";  
myTags(mytags);  
};  

