window.onerror=function(){return true;}

function showNext(obj){

if(obj!==null){

backDissap();

while(obj=obj.nextSibling)
if(obj.tagName=="DIV") break;



	if(obj.innerHTML!='')
	obj.style.visibility='visible';

reShowParents(obj);

}

}


function backDissap(){

var menu=document.getElementById("menu").getElementsByTagName("DIV");

for(i=0;i<menu.length;i++)

if(typeof menu[i]!='undefined')

if(menu[i].className.indexOf("l2")!=-1||menu[i].className.indexOf("l3")!=-1)
menu[i].style.visibility="hidden";



}


function reShowParents(obj){


if(typeof obj !='undefined')
while(obj.tagName!="body")
{

obj=obj.parentNode;

	if(typeof obj=='undefined') return;

	if(obj==null || obj==false) return;
	
		if(obj.className.indexOf("l3")!=-1||obj.className.indexOf("l2")!=-1) obj.style.visibility="visible";

}//loop

}

function b_check(e){

e=e||window.event;

if(!childOfMenu(e.toElement||e.relatedTarget))
backDissap();

}


function childOfMenu(obj){


if(obj.tagName!="")
while(obj.tagName=="DIV")

{  obj=obj.parentNode; if(obj.id=="menu") return true;}

return false;

}
