function montre(main, sub, a)
{
	target = document.getElementById(main) ;
	target.style.width = '137px' ;
	target.style.marginRight = '0px' ;
	target.style.backgroundColor = '#fff' ;
	target.style.color = '#000' ;

	ahref = document.getElementById(a) ;
	ahref.style.paddingRight = '12px' ;
	ahref.className = 'over' ;
/*	ahref.style.backgroundColor = '#fff' ;
	ahref.style.color = '#000' ;*/

	
	
	with (document)
	{
		if (getElementById)
			getElementById(sub).style.display = 'block';
		else if (all)
			all[sub].style.display = 'block';
		else
			layers[sub].display = 'block';
	}
}

function cache(main, sub, a){
	target = document.getElementById(main) ;
	target.style.width = '125px' ;
	target.style.marginRight = '12px' ;
	target.style.paddingRight ='0px' ;
	target.style.backgroundColor = '#000' ;
		target.style.color = '#000' ;
	ahref = document.getElementById(a) ;
	ahref.style.paddingRight = '0px' ;
		ahref.className = '' ;
	/*ahref.style.backgroundColor = '#000' ;
	ahref.style.color = '#fff' ;*/
	
	with (document)
	{
		if (getElementById)
			getElementById(sub).style.display = 'none';
		else if (all)
			all[sub].style.display = 'none';
		else
			layers[sub].display = 'none';
	}
}


function hide(item) {
	item.style.display = "none" ;
	container = item.parentNode ;
	
	if (navigator.appName == "Microsoft Internet Explorer") {
		menuSub = container.lastChild ;
	}else {
		menuSub = container.childNodes[3] ;
	}
	
	menuSub.style.display = "block" ;
	
	

}

function hideSub(e) {
	
	
		
		console.log(e.originalTarget.nodeName) ;

	
	/*
	container = item.parentNode ;
	
	if (navigator.appName == "Microsoft Internet Explorer") {
		menuMain = container.firstChild ;
	}else {
		menuMain = container.childNodes[1] ;
	}
	
	menuMain.style.display = "block" ;*/
}

function doSomething(item) {
	console.log(item) ;
	/*if (!e) var e = window.event;
	var tg = (window.event) ? e.srcElement : e.target;
	if (tg.nodeName != 'DIV') return;
	var reltg = (e.relatedTarget) ? e.relatedTarget : e.toElement;
	while (reltg != tg && reltg.nodeName != 'BODY')
		reltg= reltg.parentNode
	if (reltg== tg) return;
	// Mouseout took place when mouse actually left layer
	// Handle event
	console.log('da') ;*/
}
