function tagcloud_create_tags() {
	var output = '<tags>';
	var tags = [
	    'http://www.3alitytechnica.com/configure/', '0xff0000:0x00cc00', 'Configurator',
	    'http://www.3alitytechnica.com/3D-rigs/Atom.php', '0xff0000:0x00cc00', 'Atom',
	    'http://www.3alitytechnica.com/3D-rigs/TS5.php', '0xff0000:0x00cc00', 'TS5',
	    'http://www.3alitytechnica.com/3D-rigs/TS5.php', '0xff0000:0x00cc00', 'TS2',
	    'http://www.3alitytechnica.com/technica3D-controls/', '0xff0000:0x00cc00', 'THC',
	    'http://www.3alitytechnica.com/3D-basics/brief-history.php', '0xff0000:0x00cc00', 'Stereography',
	    'http://www.3alitytechnica.com/3D-basics/what-is-Quasar.php', '0xff0000:0x00cc00', 'Quasar',
	    'http://www.3alitytechnica.com/rental-map/', '0xff0000:0x00cc00', 'Rent',
	    'http://www.3alitytechnica.com/reseller-map/', '0xff0000:0x00cc00', 'Resellers',
	    'http://www.3alitytechnica.com/contact/', '0xff0000:0x00cc00', 'Contact',
	    'http://www.3alitytechnica.com/3D-rigs/', '0xff0000:0x00cc00', 'Rigs',
	    'http://www.3alitytechnica.com/qualified-rig-techs/', '0xff0000:0x00cc00', 'Techs',
	    'http://www.3alitytechnica.com/gallery/', '0xff0000:0x00cc00', 'Gallery',
	    'http://www.3alitytechnica.com/forums/', '0xff0000:0x00cc00', 'Forums',
	    'http://www.3alitytechnica.com/support/', '0xff0000:0x00cc00', 'Support',
	    'http://www.3alitytechnica.com/press/videos/', '0xff0000:0x00cc00', 'Videos',
	    'http://www.3alitytechnica.com/3D-rigs/SIP.php', '0xff0000:0x00cc00', 'SIP',
	    'http://shop.antimonkeybutt.com/products/Anti%252dMonkey-Butt-Powder.html', '0xff0000:0x00cc00', 'Monkey Butt',
	    
	    null, null, 'Side-By-Side',
	    null, null, 'Beam Splitter', 
	    null, null, 'Training',	    
	            ];
	
	for(var i = 0; i < tags.length; i = i + 3) {
		var url = tags[i];
		var text = tags[i + 2];
		var html = '';
		var style;
		
		if (url == null) {
			url = '';
			style = 12;
		} else {
			style = 22;
		}
		
		if (url != null) {
			var colors;
			
			if (tags[i + 1] != null) {
				colors = tags[i + 1].split(':');
			} else {
				colors = ['', ''];
			}

			html += "<a href='" + url + "' style='" + style + "' color='";
			html += colors[0] + "' hicolor='" + colors[1] + "'>"
		}
		
		html += text;
		
		if (url != null) {
			html += "</a>";
		}
		 
		
		output += html;
		
	}
	
	output += '</tags>';
	
	return output;
}

function tagcloud_init_swf(target) {
	var so = new SWFObject("/scripts/tagcloud.swf", "tagcloud", "310", "250", "5", "#ffffff");
	// uncomment next line to enable transparency
	//so.addParam("wmode", "transparent");
	so.addVariable("tcolor", "0x333333");
	so.addVariable("mode", "tags");
	so.addVariable("distr", "true");
	so.addVariable("tspeed", "50");
	so.addVariable("tagcloud", tagcloud_create_tags());
	so.write(target);
}

