previous_drop = "";
current_dropdown = "";
lock_drop = false;
var timers=new Array();
tmp_dropdown = "";
var show_timers = new Array();
var drop_width = 0;

function onNode(index) {
		document.getElementById("left"+index).className='node_left_part';
		document.getElementById("right"+index).className='node_right_part';
		document.getElementById("center"+index).style.background='#005076';
		document.getElementById("center"+index).style.color='#fff';
		document.getElementById("center"+index).style.borderBottom='1px solid #005076';
}

function outNode(index) {

		document.getElementById("left"+index).className='node_left_part_hide';
		document.getElementById("right"+index).className='node_right_part_hide';
		document.getElementById("center"+index).style.background='none';
		document.getElementById("center"+index).style.color='#005076';
		document.getElementById("center"+index).style.borderBottom='1px dashed #005076';
}

function hidePrev(current){
	
	if ( previous_drop != "" && previous_drop != current)
			document.getElementById(previous_drop).style.display='none';
}

function hideDrop(drop){
	document.getElementById(drop).style.display="none";
	/*timer = setTimeout("hideHIDE('"+drop+"')",1000);
	timers.push(timer);*/
}


function hideHIDE(drop)
{
	
	document.getElementById(drop).style.display="none";
	//overOver();
	//clearTimeout(timer);

	//timers.length=0;

}



function showDrop(drop){
	
showShow(drop);

/*while(timers.length>0)
{
	clearTimeout(timers.pop());
}

//clearTimeout(timer);
t = setTimeout("showShow('"+drop+"')",1000);
show_timers.push(t);*/
}

function showShow(drop){
//clearTimeout(timer);
document.getElementById(drop).style.display="block";
drop_width = document.getElementById(drop).offsetWidth;
}

function overContent(){
	if ( previous_drop != "" )
	{
		//alert("HIDE");
		//setTimeout("overOver()",2000);
			document.getElementById(previous_drop).style.display='none';
			document.getElementById(previous_drop).style.background='none';
	}
}

function overOver(){
	if ( previous_drop != "" )
	{
		
			
			document.getElementById(previous_drop).style.display='none';
			document.getElementById(previous_drop).style.background='none';
	}
}

function hideFromDrop(drop){
	if ( current_dropdown != drop && previous_drop != "" )
	{
			
			document.getElementById(previous_drop).style.display='none';
	}
}
