function Flash(path, width, height, title){
	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+' height='+height+' title='+title+'>');
	document.write('<param name="movie" value="'+path+'" />');
	document.write('<param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="scale" value="noborder" />');
	document.write('<embed src='+path+' quality="high" wmode="opaque" scale="noborder"  pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+width+' height='+height+'></embed></object>');
}

function init(id){
	
	
	document.getElementById(id).style.color = '#d6ae4e';
	document.getElementById(id).parentNode.style.backgroundColor = '#ddd';

	if(document.getElementById(id).className == 'level2'){
		
		document.getElementById(id).parentNode.parentNode.className = 'show';
		document.getElementById(id).parentNode.parentNode.parentNode.parentNode.className = 'show';
		
		document.getElementById(id).parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor = '#ddd';
		document.getElementById(id).parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('ul')[0].className = 'show';
		if (navigator.appName=="Microsoft Internet Explorer") document.getElementById(id).parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor = '#ddd';
		
	}
	if(document.getElementById(id).className == 'level1'){
		
		document.getElementById(id).parentNode.parentNode.className = 'show';
		document.getElementById(id).parentNode.parentNode.parentNode.className = 'show';
		
		document.getElementById(id).parentNode.parentNode.parentNode.style.backgroundColor = '#ddd';
		
		if (navigator.appName=="Microsoft Internet Explorer") document.getElementById(id).parentNode.parentNode.parentNode.parentNode.style.backgroundColor = '#ddd';
	}
}

function menu(source){
		
	
	var root = $('id0');
	var e = $(source);
	
	var aroot = e.getElementsByClassName('show');
	
	aroot.each(function(item) {
  		// Your code working on item here...
  		item.addClassName('hide');
	});
	
	e.parentNode.getElementsByTagName('ul')[0].addClassName('show');
}
