
document.WM = new Object();
document.WM.hirelist = new Object();
document.WM.hirelist.expandos = new Array();
document.WM.hirelist.heights = new Array();
document.WM.hirelist.names = new Array();

function WM_toggle(id) 
{
    if (document.all)
    {
        if(document.all[id].style.display == 'none')
        { document.all[id].style.display = ''; } 
        else 
        { document.all[id].style.display = 'none'; }
    } 
    else if (document.getElementById)
    {
        if(document.getElementById(id).style.display == 'none')
        { document.getElementById(id).style.display = 'block'; } 
        else 
        { document.getElementById(id).style.display = 'none'; }
    }
    else if(document.layers) 
    {
        if(parseInt(id + 1))
        { ditem = id + 1; } 
        else 
        { ditem = document.WM.hirelist.names[id]; }

        if(document.WM.hirelist.expandos[ditem].clip.bottom == 0) 
        { document.WM.hirelist.expandos[ditem].clip.bottom = document.WM.hirelist.heights[ditem]; } 
        else 
        { document.WM.hirelist.expandos[ditem].clip.bottom = 0; }
        WM_align();
    }
}

function WM_show(id) 
{
    if (document.all)
    {       
        document.all[id].style.display = 'block';
        
    } 
    else if (document.getElementById)
    {
        document.getElementById(id).style.display = 'block';
    }    
}
 
function WM_align() 
{
    var i,j,stupid_netscape_array_infinate_loop_error;
    stupid_netscape_array_infinate_loop_error = document.WM.hirelist.expandos.length;
    for(i=0; i<stupid_netscape_array_infinate_loop_error; i++) 
    {
        j = i + 1;
   		if(document.WM.hirelist.expandos[j])
        {
   	    	if(document.layers) 
            { document.WM.hirelist.expandos[j].top = document.WM.hirelist.expandos[i].top + document.WM.hirelist.expandos[i].clip.bottom; }
   		}
    }
}

function mOvr(src, cType)
{
  if (!src.contains(event.fromElement))
  {
  	src.style.cursor = 'hand'; 
	src.className = cType; 
  }
}

function mOut(src, cType)
{
  if (!src.contains(event.toElement))
  {
  	src.style.cursor = 'default'; 
	src.className = cType; 
  }
}
