// JavaScript Document


	var theoldcell = ""

	function showhide(thecell)

	{	

		if(theoldcell == thecell){

			document.getElementById(thecell).style.display = 'none'

			theoldcell = ""

		}else{

			if(theoldcell != thecell){

				if(theoldcell != "")

					document.getElementById(thecell).style.display = 'none'

				document.getElementById(thecell).style.display = ''

				theoldcell = thecell

			}

		}

	}

    var currentRow = 0;
	var numMenuRow = 30;
    function moveUp(obj)
    {
       tr = obj.parentNode.parentNode;
       tbl = tr.parentNode;
       
       if (tbl.rows.length < numMenuRow) return;
       currentRow -= numMenuRow;
	   if (currentRow < 0) currentRow=0;
	   for (i=0;i<numMenuRow;i++)
	   {
		   tbl.rows[currentRow+i].style.display = '';
		   if (currentRow+i+numMenuRow <tbl.rows.length-1)
			   tbl.rows[currentRow+i+numMenuRow].style.display = 'none';
	   }
	   displayMoveButton(tbl.rows.length);	   	
    }
    
    function moveDown(obj)
    {
       tr = obj.parentNode.parentNode;
       tbl = tr.parentNode;
       
       if (tbl.rows.length < numMenuRow) return;
       currentRow += numMenuRow;
	   	   
	   if (currentRow > tbl.rows.length-numMenuRow -1 ) currentRow = tbl.rows.length-numMenuRow-1;

	   for(i=0;i<numMenuRow;i++)
	   {
		   if (currentRow+i <tbl.rows.length-1)
		       tbl.rows[currentRow+i].style.display = '';    	   
	   }
	   for(i=0;i<currentRow;i++)
		   tbl.rows[i].style.display = 'none';
	   displayMoveButton(tbl.rows.length);
    }
	function displayMoveButton(rows)
	{	
	
		
		if (currentRow == 0) 
		 	document.getElementById('divMoveUp').style.backgroundColor = 'gray';
		else
			document.getElementById('divMoveUp').style.backgroundColor = '';
		
		if (currentRow >= rows-numMenuRow-1)	
			document.getElementById('divMoveDown').style.backgroundColor = 'gray';
		else
			document.getElementById('divMoveDown').style.backgroundColor = '';
				
	}
	function MouseDown(obj)
	{
		if (obj.style.backgroundColor=="")
			obj.style.borderStyle='inset';
	}
	function MouseUp(obj)
	{
		obj.style.borderStyle='outset';
	}
	function MouseOver(obj)
	{
		if (obj.style.backgroundColor=="")
			obj.style.backgroundColor='brown';
	}
	function MouseOut(obj)
	{
		if (obj.style.backgroundColor=="brown")
			obj.style.backgroundColor='';
	}
	function showAll()
	{
		alert(document.getElementById('menuContent').style.height);
		return false;
	}

function setLyr(obj,lyr)

{

	var newX = findPosX(obj)+153;

	var newY = findPosY(obj)-1;

	lyr.style.top = newY + 'px';

	lyr.style.left = newX + 'px';

}

function mouseX(evt) {if (!evt) evt = window.event; if (evt.pageX) return evt.pageX; else if (evt.clientX)return evt.clientX + (document.documentElement.scrollLeft ?  document.documentElement.scrollLeft : document.body.scrollLeft); else return 0;}
function mouseY(evt) {if (!evt) evt = window.event; if (evt.pageY) return evt.pageY; else if (evt.clientY)return evt.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop); else return 0;}


function findPosX(obj) 

  {

    var curleft = 0;

    if(obj.offsetParent)

        while(1) 

        {

          curleft += obj.offsetLeft;

          if(!obj.offsetParent)

            break;

          obj = obj.offsetParent;

        }

    else if(obj.x) 

        curleft += obj.x;

    return curleft;

  }



  function findPosY(obj)

  {

    var curtop = 0;

    if(obj.offsetParent)

        while(1)

        {

          curtop += obj.offsetTop;

          if(!obj.offsetParent)

            break;

          obj = obj.offsetParent;

        }

    else if(obj.y)

        curtop += obj.y;

    return curtop;

  }





<!--



window.name='lno';



	function mOvr(src) {

		if (!src.contains(event.fromElement)) {

		src.style.cursor = 'hand';

		src.children.tags('A')[0].style.color = '#FFFF00';

		src.bgColor = '';

		}



	}

	

	

	function mOvr2(src) {



		if (!src.contains(event.fromElement)) {



		src.style.cursor = 'hand';



		src.children.tags('A')[0].style.color = '#FFFFFF';



		src.bgColor = '';



		}



	}



	function mOut(src) {



		if (!src.contains(event.toElement)) {



		src.style.cursor = 'default';



		src.children.tags('A')[0].style.color = "";



		src.bgColor = '';



		}



	}



	function mClk(src) {



		if(event.srcElement.tagName=='TD'){



		src.children.tags('A')[0].click();



		}



	}



//-->




