function toggleSubmenu(id, visible) {
	var sub = new getObj("sub-" + id),
		main = new getObj("main-" + id);
		
	if (visible) {
		main.obj.className = main.obj.className + "-hover";
		sub.style.display = "block";
	} else {
		main.obj.className = main.obj.className.replace(/-hover/, "");
		sub.style.display = "none";
	}
}

function getTitle(title, color, size, width, height) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + (width ? width : '192') + '" height="' + (height ? height : '32') + '" id="text" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="flash/text.swf?text=' + title + (color ? '&color=' + color : '') + (size ? '&size=' + size : '') + '" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="flash/text.swf?text=' + title + (color ? '&color=' + color : '') + (size ? '&size=' + size : '') + '" quality="high" wmode="transparent" bgcolor="#ffffff" width="' + (width ? width : '192') + '" height="' + (height ? height : '32') + '" name="text" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function getObj(id) {
	if (document.getElementById) {
		this.obj = document.getElementById(id);
		this.style = document.getElementById(id).style;
	} else if (document.all) {
		this.obj = document.all[id];
		this.style = document.all[id].style;
	} else if (document.layers) {
		this.obj = document.layers[id];
		this.style = document.layers[id];
	}
}