function subMenuHtmlGenerator(xmlFile,cat,subcat){
	 AC_FL_RunContent(
	   'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
	   'width', '1',
	   'height', '1',
	   'src', '/flash/subMenu/menuDinamico',
	   'quality', 'best',
	   'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
	   'align', 'middle',
	   'play', 'true',
	   'loop', 'false',
	   'scale', 'showall',
	   'wmode', 'transparent',
	   'devicefont', 'false',
	   'id', 'menuTopo',
	   'bgcolor', '#ffffff',
	   'name', 'topoHome',
	   'FlashVars','xmlPath='+xmlFile+'&cat='+cat+'&subcat='+subcat,
	   'menu', 'false',
	   'allowFullScreen', 'false',
	   'allowScriptAccess','sameDomain',
	   'movie', '/flash/subMenu/menuDinamico',
	   'salign', ''
	); //end AC code
}

function flashHistoria(){
	 AC_FL_RunContent(
	   'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
	   'width', '585',
	   'height', '385',
	   'src', '/flash/historia',
	   'quality', 'best',
	   'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
	   'align', 'middle',
	   'play', 'true',
	   'loop', 'false',
	   'scale', 'showall',
	   'wmode', 'transparent',
	   'devicefont', 'false',
	   'id', 'menuTopo',
	   'bgcolor', '#ffffff',
	   'name', 'topoHome',
	   'menu', 'false',
	   'allowFullScreen', 'false',
	   'allowScriptAccess','sameDomain',
	   'movie', '/flash/historia',
	   'salign', ''
	); //end AC code
}

var enablepersist="yes" //Enable saving state of content structure using session cookies? (on/off)
var collapseprevious="yes" //Collapse previously open content when opening present? (yes/no)

if (document.getElementById){
	document.write('<style type="text/css">')
	document.write('.switchcontent{display:none;}')
	document.write('</style>')
}

function getElementbyClass(classname){
	ccollect=new Array()
	var inc=0
	var alltags=document.all? document.all : document.getElementsByTagName("*")
	for (i=0; i<alltags.length; i++){
		if (alltags[i].className==classname)
		ccollect[inc++]=alltags[i]
	}
}


function expandcontent(cid){
	
	var htmlElem = document.getElementById(cid);
	
	if(htmlElem.style.display == "none"){
		htmlElem.style.display = "block";
	}else{
		htmlElem.style.display = "none";
	}
	
}

function revivecontent(){
	contractcontent("omitnothing")
	selectedItem=getselectedItem()
	selectedComponents=selectedItem.split("|")
	for (i=0; i<selectedComponents.length-1; i++)
		document.getElementById(selectedComponents[i]).style.display="block"
}