//-------------------------------
//
//
//-------------------------------


if (typeof ELEMENT_NODE == 'undefined'){var ELEMENT_NODE = 1;}
if (typeof TEXT_NODE == 'undefined'){var TEXT_NODE = 3;}



//$$$$$$$$$$$$$$$$$$$$
//
//
//$$$$$$$$$$$$$$$$$$$$
function chopi_menuOver(num){

 if (num){
		if (typeof $('menu_'+num) == 'undefined'){return false;}
		chopi_showItem( 'menu_'+num, 'block');
	}
	return true;
}

//$$$$$$$$$$$$$$$$$$$$
//
//
//$$$$$$$$$$$$$$$$$$$$
function chopi_menuOut(num){
	
	if (num){
		if (typeof $('menu_'+num) == 'undefined'){return false;}
		chopi_showItem( 'menu_'+num, 'none');
	
	}
	return true;
}
//$$$$$$$$$$$$$$$$$$$$
//
//
//$$$$$$$$$$$$$$$$$$$$
function chopi_showItem(objId, val) {
	$(objId).style.display = val;
}

//$$$$$$$$$$$$$$$$$$$$
//
//
//$$$$$$$$$$$$$$$$$$$$
function $(id){
	return document.getElementById(id);
}
//$$$$$$$$$$$$$$$$$$$$
//
//
//$$$$$$$$$$$$$$$$$$$$
function chopi_doAttach( obj, eventName, callback){
if (obj.addEventListener){
	// 'onmousedown' --> 'mousedown'
	var shortEventName = (eventName.substring(0,2).toLowerCase()=='on') ?eventName.substring(2):eventName ;
	obj.addEventListener(shortEventName,callback, false);
} else if(obj.attachEvent){
	obj.attachEvent(eventName,callback );

} else {
	if(document.captureEvents){
	// 'mousedown' --> 'onmousedown'
	var longEventName = (eventName.substring(0,2).toLowerCase()!='on') ? 'on'+eventName:eventName ;
	document.captureEvents(Event.CLICK | Event.KEYUP | Event.MOUSEOVER | Event.MOUSEDOWN);
	}
	obj[eventName] = callback;
	}
}
//$$$$$$$$$$$$$$$$$$$$
//
//
//$$$$$$$$$$$$$$$$$$$$
function chopi_doPulse(){
	new Effect.Pulsate('ligne_6',{ duration:20,pulses:20, from:0.5 });

}
//$$$$$$$$$$$$$$$$$$$$
//
//
//$$$$$$$$$$$$$$$$$$$$
