	
	var myrules = {
		'#HelpIdentification' : function(element){
			element.onclick = function(){
				setVisible('BHelpIdentification');
			}
		},
		'#HelpIdentificationCloseSymbol' : function(element){
			element.onclick = function(){
				setHidden('BHelpIdentification');
			}
		},
		'#HelpIdentificationCloseName' : function(element){
			element.onclick = function(){
				setHidden('BHelpIdentification');
			}
		},
		'#someid u' : function(element){
			element.onmouseover = function(){
				this.innerHTML = "BLAH!";
			}
		}
	};


Behaviour.register(myrules);

function setVisible(v_id)
{
	if(document.getElementById(v_id))
	{
		obj = document.getElementById(v_id);
		obj.style.visibility =  'visible';

		if(document.all && !window.opera) 
		{
			obj.style.marginLeft =-265+'px';
			obj.style.marginTop =22+'px';	
		}
		else if(window.opera)
		{
			obj.style.marginLeft =-97+'px';
			obj.style.marginTop =2+'px';
		}
		else
		{	
			obj.style.marginLeft =-115+'px';
			obj.style.marginTop =2+'px';
		}
		ifrlayer.make(obj);
	}
}

function setHidden(v_id)
{ 	
	if(document.getElementById(v_id))
	{
		obj = document.getElementById(v_id);
		obj.style.visibility = 'hidden';
		ifrlayer.hide(obj);
	}
}

/* genere une iframe pour faire passer les divs par dessus des selects sous IE */
ifrlayer = {
	make:function(obj) {
		if(!obj) return; obj = (typeof(obj)=="string") ? document.getElementById(obj) : obj; 
		if(!obj) return;
		if(document.all && !window.opera && document.getElementById)
		{
			if(obj.parentNode && !obj.iframelayer) 
			{
				var ifr = obj.parentNode.insertBefore(document.createElement('<iframe src="javascript:false"></iframe>'), obj);
				if(obj.currentStyle.zIndex != "" && parseInt(obj.currentStyle.zIndex)>1 ) 
				{
					ifr.style.zIndex = parseInt(obj.currentStyle.zIndex)-1;
				}
			with(ifr.style) 
			{
				filter = "mask()";
				position = "absolute";
			}
			obj.iframelayer = ifr;
			}
		}
		if(obj.iframelayer) 
		{
			obj.iframelayer.style.visibility="visible";
			ifrlayer.resize(obj);
			ifrlayer.move(obj)
		}
		},
		 hide:function(obj) {
		 if(!obj) return; obj = typeof(obj)=="string" ? document.getElementById(obj) : obj; if (!obj) return;
		 var ifr = obj.iframelayer;
		 if(ifr) {
		 ifr.style.visibility="hidden";
		 }
		 },
		 move:function(obj) {
		 if(obj && obj.iframelayer) {
		 with(obj.iframelayer.style) {
		 top = obj.offsetTop+"px"; left = obj.offsetLeft+"px"
		 }
		 }
		 },
		 resize:function(obj) {
		 if(obj && obj.iframelayer) {
		 with(obj.iframelayer.style) {
		 width = obj.offsetWidth+"px";
		 height = obj.offsetHeight+"px";
		 }
		}
	}
}
