// enabling Cumulus with jQuery & swfobject
$(document).ready(function () {
	$('.tagscloudflashcontent').each(function(){
        var taglist = '';
        $(this).children().children().each(function(indx, element){
          taglist += '<a href="' + $(element).attr('href') + '" style="' + $(element).attr('style') + '">' + $(element).html() + '</a>';          
        });
        $(this).flash(
			{ 
				swf: '/cumulus/tagcloud.swf',
				width: 250,
				height: 250,
	            wmode: 'transparent',			
				allowScriptAccess: 'always',
	            allowFullScreen: false,
				flashvars: { 
    				tcolor: '0xE40101',
    				tcolor2: '0x964B00',			
    				mode: 'tags', 
    				distr: 'true', 
    				tspeed: '70', 
    				tagcloud: '<tags>' + taglist + '</tags>'
				}
			},
				{ version: 8 }
			);
      });	
});
