
 /* CT SIMPLE MENU V 0.6.0 |CrystalTeam.net| */

	ct_MN_cls_timer=null;
	ct_MN=null;

    function ct_O(obj,path){
	for(var i=0;i<path.length;i++){var K=path.charAt(i);
	    if(K=='<') obj=obj.parentNode; else obj=obj.childNodes[K]}
	return obj}

    function ct_MN_Out(){
	try{clearTimeout(ct_MN_cls_timer)}catch(e){};
	ct_MN_cls_timer=setTimeout('ct_MN_Hide_all();',1000)}

    function ct_MN_Show(e){if(!e.target) e.target=e.srcElement;
	var A=e.target;
	    if(A.nodeName!='A') return;
	try{clearTimeout(ct_MN_cls_timer)}catch(e){};
	ct_MN_Hide(ct_O(A,'<<<<<<<<'));
	try{var TH=ct_O(A,'<<<10')}catch(e){var TH=ct_O(A,'<<1')}
	try{ct_O(TH,ct_O(TH,'0').nodeName=='#text'?'1':'0').style.visibility='visible'}catch(e){}}

    function ct_MN_Hide(obj){
	var buf=obj.getElementsByTagName('TABLE');
	for(var i=0;i<buf.length;i++)
	    if(buf[i].className=='ct-mb') buf[i].style.visibility='hidden'}

    function ct_MN_Hide_all(){
	ct_MN_Hide(ct_MN)}

    function ct_MN_Init(sel_item){
	ct_MN=document.getElementById('ct-menu');
	ct_MN_Hide_all();
	ct_MN_Prepare(sel_item)}

    function ct_MN_Prepare(sel_item){
	var All_B=ct_MN.getElementsByTagName('TABLE');
	var All_A=ct_MN.getElementsByTagName('A'),i=0;
	for(;i<All_B.length;i++) if(All_B[i].className=='ct-mb') ct_O(All_B[i],'<<0').className+=' parent';
	for(i=0;i<All_A.length;i++){
	    All_A[i].innerHTML=All_A[i].innerHTML.replace(/ /gi,'&nbsp;');
	    if(All_A[i].href.slice(All_A[i].href.length-(''+sel_item).length)==sel_item) All_A[i].className+=' selected'}}


