<!--

var divList = new Array;

var mOverCnt =0;

var ns4=1;

function dInit(name,menuTableClass){
	 divList.push(name);

   window.document.body.innerHTML = window.document.body.innerHTML + '<div dir="rtl" onmouseover="event.cancelBubble=true;"  style="position:absolute;;display:none;" id='+ name + ' ><table class="' + menuTableClass + '" border="0" cellpadding="0" cellspacing="0"  id=' + name + '_tab ><tr></tr></table></div> ';

};



function dIns(oname,id,value,url,classOn,classOff,target,menuLinkClass)

{

  var oRow,oTd;

  var oobj = document.getElementById(oname + '_tab');

  oRow = oobj.insertRow(0);

  oTd = oRow.insertCell(0);

	oTd.onmouseover='hide_all_sub("'+oname + '");show_menu("' + oname + '_' + id +'",this);';

	oTd.className="rightMenuCell";

//	oTd.onmouseout="off(this,'"+classOff+"');"

//	oTd.onclick="window.location='"+ url + "'";
  var sa
	sa = '<table  width="140" border="0" cellpadding="0" cellspacing="0" style="background-image: url(assets/images/butmenu_off.gif);height:29px;" ><tr>';
	sa += '<td height="29" nowrap align="right" class="rightMenuCell22" dir="rtl" onmouseover="this.style.backgroundImage=\'url(assets/images/butmenu_on.gif)\';" onmouseout="this.style.backgroundImage=\'url(assets/images/butmenu_off.gif)\';">';
	sa += '<IMG SRC="assets/images/bullet01.gif" WIDTH="6" HEIGHT="9" BORDER="0" ALT="">&nbsp; ';
	sa += '<a href="'+url+'"  class=rightMenuLink>' + value + "</a></td></tr></table>";
	oTd.innerHTML = sa

//	oTd.innerHTML = <a href="'+url+'" target="'+ target + "' class=rightMenuLink>" + value + " </a> </td></tr></table>";
  //  oTd.innerHTML = '<table dir="ltr" width="100%"  border="0" cellspacing="0" cellpadding="0" ><tr><td align="right" dir="rtl">&nbsp;&nbsp;<a href="'+url+'" class="'+ menuLinkClass +'" target="'+ target +'">'+value+'</a>&nbsp;</td></tr></table>';

};



function vis_menu(name){

		document.getElementById(name).style.display='block';

		var last = name.lastIndexOf('_');

		if (last == -1) return;

		name = name.substr(0,last);

		last = name.lastIndexOf('_');

		if (last == -1) return;

		vis_menu(name);

}


function getElementLeft(Elem) {
	if (ns4) {
		var elem = getObjNN4(document, Elem);
		return elem.pageX;
	} else {
		var elem;
		if(document.getElementById) {
			var elem = document.getElementById(Elem);
		} else if (document.all){
			var elem = document.all[Elem];
		}
		xPos = elem.offsetLeft;
		tempEl = elem.offsetParent;
  		while (tempEl != null) {
  			xPos += tempEl.offsetLeft;
	  		tempEl = tempEl.offsetParent;
  		}
		return xPos;
	}
}


function getElementTop(Elem) {
	if (ns4) {
		var elem = getObjNN4(document, Elem);
		return elem.pageY;
	} else {
		if(document.getElementById) {	
			var elem = document.getElementById(Elem);
		} else if (document.all) {
			var elem = document.all[Elem];
		}
		yPos = elem.offsetTop;
		tempEl = elem.offsetParent;
		while (tempEl != null) {
  			yPos += tempEl.offsetTop;
	  		tempEl = tempEl.offsetParent;
  		}
		return yPos;
	}
}


function show_menu(name,me){

try {
//event.cancelBubble=true;
var elem = me;

yPos = elem.offsetTop;
		tempEl = elem.offsetParent;
		while (tempEl != null) {
  			yPos += tempEl.offsetTop;
	  		tempEl = tempEl.offsetParent;
  		}
			

		xPos = elem.offsetLeft;

		tempEl = elem.offsetParent;
  		while (tempEl != null) {
  			xPos += tempEl.offsetLeft;

	  		tempEl = tempEl.offsetParent;
  		}


		var e = me;


		if (me.style.display=='block') return;

		
		var d = document.getElementById(name);

		d.style.display='block';
		d.style.top = yPos +"px";
		
/*
				d.style.top = e.getBoundingClientRect().top-2+document.body.scrollTop;

				d.style.right = e.getBoundingClientRect().left;

				d.style.right = d.getBoundingClientRect().right;


*/
				d.style.left = ((parseInt(xPos) - parseInt(d.offsetWidth)) +0)+"px";

	
	
				vis_menu(name);

				

} catch (e) { return; }
	

}



function hide_all(){

  for (i=0;i<divList.length;i++) {

	   document.getElementById(divList[i]).style.display='none';

	}//for

}//func



function hide_all_sub(prefix){

//alert(prefix);

  for (i=0;i<divList.length;i++) {

//	   alert ('prefix.lenght : ' + prefix.length + ' divlist :' + divList[i].substr(0,prefix.lenght));

	   if ((divList[i].length > prefix.length) && (divList[i].substr(0,prefix.length) == prefix))

 	    document.getElementById(divList[i]).style.display='none';

	}//for

}//func





-->


