// JavaScript Document
// Function Part
  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;
  }

function setactions(obj,l,u,n)
{	
	var content = false; 
	if(n)		
	{
		var showContent = new Array(new Array("news",false),		
						  new Array("partners",false),		
						  new Array("training",false),			
						  new Array("services",false),			
						  new Array("downloads",false),
						  new Array("ktcc",false));//CHANGED			
		
		var layercontentdisplay= new Array()
		layercontentdisplay[0] = document.layers? document.layers['news_content'] : document.all? document.all['news_content'].style : document.getElementById? document.getElementById('news_content').style : null;
		layercontentdisplay[1] = document.layers? document.layers['partners_content'] : document.all? document.all['partners_content'].style : document.getElementById? document.getElementById('partners_content').style : null;
		layercontentdisplay[2] = document.layers? document.layers['training_content'] : document.all? document.all['training_content'].style : document.getElementById? document.getElementById('training_content').style : null;
		layercontentdisplay[3] = document.layers? document.layers['services_content'] : document.all? document.all['services_content'].style : document.getElementById? document.getElementById('services_content').style : null;
		layercontentdisplay[4] = document.layers? document.layers['downloads_content'] : document.all? document.all['downloads_content'].style : document.getElementById? document.getElementById('downloads_content').style : null;
		layercontentdisplay[5] = document.layers? document.layers['ktcc_content'] : document.all? document.all['ktcc_content'].style : document.getElementById? document.getElementById('ktcc_content').style : null;//CHANGED
	}
	else
	{
		var showContent = new Array( new Array("partners",true),		
						  new Array("training",true),			
						  new Array("services",false),			
						  new Array("downloads",false),
						  new Array("ktcc",false));//CHANGED
		var layercontentdisplay= new Array()
		layercontentdisplay[0] = document.layers? document.layers['partners_content'] : document.all? document.all['partners_content'].style : document.getElementById? document.getElementById('partners_content').style : null;
		layercontentdisplay[1] = document.layers? document.layers['training_content'] : document.all? document.all['training_content'].style : document.getElementById? document.getElementById('training_content').style : null;
		layercontentdisplay[2] = document.layers? document.layers['services_content'] : document.all? document.all['services_content'].style : document.getElementById? document.getElementById('services_content').style : null;
		layercontentdisplay[3] = document.layers? document.layers['downloads_content'] : document.all? document.all['downloads_content'].style : document.getElementById? document.getElementById('downloads_content').style : null;
		layercontentdisplay[4] = document.layers? document.layers['ktcc_content'] : document.all? document.all['ktcc_content'].style : document.getElementById? document.getElementById('ktcc_content').style : null;
	}
	for(e=0;e<showContent.length;e++)	
	{	if(showContent[e][0]==l)	
		{
			 content = showContent[e][1];	
				e=showContent.length;		
		}
	}
	var mainaction = parent.document.getElementById('state').value;	
	var mainlayers = new Array();	
	for(ml=0;ml<showContent.length;ml++)	
	{
		mainlayers[ml] = document.layers? document.layers[showContent[ml][0]] : document.all? document.all[showContent[ml][0]].style : document.getElementById? document.getElementById(showContent[ml][0]).style : null;	
	}			 
if((lY = findPosY(obj))<45)
	{  	
		sublayers('hidden',layercontentdisplay,n);
		clickedobj = document.layers? document.layers[l] : document.all? document.all[l].style : document.getElementById? document.getElementById(l).style : null;
		clickedobj.top = 143;
		clickedobj.overflow = 'hidden';		
		for (i=0;i<mainlayers.length;i++)//for
		{	 
			if(showContent[i][0]!=l)
			{
				mainlayers[i].top = 143;
				mainlayers[i].overflow = 'hidden';
			}
			else
				layercontentdisplay[i].top =205;
			layercontentdisplay[i].height =0;
			layercontentdisplay[i].visibility = 'hidden';
			mainlayers[i].overflow = 'hidden';
		}
		parent.document.getElementById('state').value = false;		
		if(mainaction!=l)
		 	setactions(obj,l,false,n)
	}
	else	
	{
		if(content)
		{
			sublayers('visible',layercontentdisplay,n);
		
			while(lY>44)
			{
				lY--;
				clickedobj = document.layers? document.layers[l] : document.all? document.all[l].style : document.getElementById? document.getElementById(l).style : null;
				clickedobj.top = lY;
			}
		
			for (i=0;i<mainlayers.length;i++)
			{
				if(showContent[i][0]!=l)
					mainlayers[i].top = clickedobj.top;
				else
				{	
				
					layercontentdisplay[i].top =170;//top of subcontent layer
					layercontentdisplay[i].height =230;
					layercontentdisplay[i].visibility = 'visible';
				}
			}
			clickedobj.overflow = 'visible';
			parent.document.getElementById('state').value = l;
		}
	}
	if(u)
		//window.location.href=(l+'/default.htm');
		window.location.href=(l+'default.htm');
}

function sublayers(v,slay,n)
{
	var leftprop;
	if (n)
		leftprop ='35px'
	else
		leftprop ='100px'		
	if(v=='visible')
		slay.left = leftprop;
	else
		slay.left = '-9999px'
	slay.visibility = v
}
function setcontentlogo(holder,l)//For Partners
{	
	var img =  document.getElementById(l).src
	cut = img.lastIndexOf("/");
	
	
fullen = img.length	
leftURL=img.slice(0,++cut);

	
 	var links = new Array(new Array("closed","content_blank_logo.gif"),
						  new Array("Weidenhammer","content_hammer_logo.png"),
						  new Array("IBM","content_ibm_logo.png"),
						  new Array("KTC Custom","content_ktcc_logo.png"),
						  new Array("EDUSTRUCTURES","content_edu_logo.png"),
						  new Array("CIC","content_cic_logo.png"),
						  new Array("ICS","content_ics_logo.png"),
						  new Array("eschoolmall","content_eschool_logo.png"),
						  new Array("VERSATRANS","content_versa_logo.png"),
						  new Array("alio","content_alio_logo.png"),
						  new Array("Cims","content_cims_logo.png"),
						  new Array("INTEGRITY","content_integrity_logo.png"));
	for(i=0;i<links.length;i++)
		if(holder==links[i][0])
		{
			leftURL+=links[i][1];
				document.getElementById(l).src = leftURL;
				break;
		}	
			img.src = links[i][1];
}
  function sizer(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;
	if(curtop>400)
		parent.window.document.getElementById('super_iframe').height = (document.body.offsetHeight+15) ;
	else
		parent.window.document.getElementById('super_iframe').height = '440px' ;
  }
  function seter(id,n)
	{
		var reloadaction = parent.document.getElementById(id).value;
		if(reloadaction!='false')
		{
			var obj = document.getElementById(reloadaction);
			setactions(obj,reloadaction,false,n);
		}
	}
	function build_table(main_directive,pages,partner,details,infoL,infoT)
	{	
		if(partner=='ibm')
		{
		document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr> <td background="../images/partners/'+partner+'/content_left.png"><table width="950" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" valign="top"><img src="../images/partners/'+partner+'/content'+main_directive+'.gif" name="main_content" width="920" height="674" id="main_content" /></td><td background="../images/partners/'+partner+'/content_left.png" valign="top">');
		document.write('<table border="0" cellspacing="0" cellpadding="0"><tr><td height="44">&nbsp;</td></tr><tr><td><table border="0" cellpadding="0" cellspacing="0">');
		for(c=1;c<pages;++c)
			if(c==main_directive)
				document.write('<tr><td><img src="../images/partners/'+partner+'/'+main_directive+'over.gif" alt="" name="b'+main_directive+'" width="30" height="18" border="0" id="b'+main_directive+'" /></td></tr>');
			else
				document.write('<tr><td><a href="'+partner+'.htm?content='+c+'" target="_self" onclick="MM_nbGroup(\'down\',\'group1\',\'b'+c+'\',\'\',1)" onmouseover="MM_nbGroup(\'over\',\'b'+c+'\',\'../images/partners/'+partner+'/'+c+'over.gif\',\'\',1)" onmouseout="MM_nbGroup(\'out\')"><img src="../images/partners/'+partner+'/'+c+'.gif" alt="" name="b'+c+'" width="30" height="18" border="0" id="b'+c+'" /></a></td></tr>');
		document.write('</table></td></tr></table></td></tr></table></td></tr></table>');
		}
		
		if(partner=='alio')
		{
			document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td style=" background-image:url(../images/partners/'+partner+'/alio_header_01.gif); background-repeat:no-repeat;">');
			document.write('<img src="../images/partners/'+partner+'/alio_header_01.gif" width="645" height="23" />');
			document.write('<a href="alio.htm" target="_self" onclick="MM_nbGroup(\'down\',\'group1\',\'back\',\'\',1)" onmouseover="MM_nbGroup(\'over\',\'back\',\'../images/partners/alio/buttons/back_over.gif\',\'\',1)" onmouseout="MM_nbGroup(\'out\')"><img src="../images/partners/alio/buttons/back_off.gif" alt="" name="back" width="113" height="23" border="0" id="back" onload="" /></a>');
			document.write('<a href="../content.htm" target="_self" onclick="MM_nbGroup(\'down\',\'group1\',\'home\',\'\',1)" onmouseover="MM_nbGroup(\'over\',\'home\',\'../images/partners/alio/buttons/home_over.gif\',\'\',1)" onmouseout="MM_nbGroup(\'out\')"><img src="../images/partners/alio/buttons/home_off.gif" alt="" name="home" width="83" height="23" border="0" id="home" onload="" /></a>');
			document.write('<a href="javascript:window.print();" target="_top" onclick="MM_nbGroup(\'down\',\'group1\',\'print\',\'\',1)" onmouseover="MM_nbGroup(\'over\',\'print\',\'../images/partners/alio/buttons/print_over.gif\',\'\',1)" onmouseout="MM_nbGroup(\'out\')"><img src="../images/partners/alio/buttons/print_off.gif" alt="" name="print" width="109" height="23" border="0" id="print" onload="" /></a><br />');
			if(details[(main_directive-1)][1])
				document.write('<a href="javascript:alio_detail_layer('+main_directive+');" target="_self" onmouseover="MM_swapImage(\'detail\',\'\',\'../images/partners/'+partner+'/buttons/alio_headers_d_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/partners/'+partner+'/buttons/alio_headers_d.gif" name="detail" width="950" height="41" border="0" id="detail" /></a>');
			else
				document.write('<img src="../images/partners/'+partner+'/buttons/alio_headers_nd.gif" width="950" height="41" />');
			if(main_directive==1)
			{
				document.write('</td></tr><tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="28">&nbsp;</td><td width="894" valign="top" onmouseover="infoLayer.style.visibility=\'hidden\';"><img src="../images/partners/alio/alio_overview.gif">');
				document.write('<table width="880" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td><table width="880" border="0" cellspacing="15" cellpadding="15"><tr><td width="50%" valign="top"><p align="left"><span class="style1">General System Overview</span><br /><br /><strong>alio&trade;</strong> is a complete family of software products for the support of administrative functions in government and education. The software is designed to enhance decision making by providing timely and accurate information to the administrator, in an interactive environment.</p><p align="left">The <strong>alio</strong> Financial Accounting System (FAS) is designed to meet the budgeting and accounting needs of educational institutions. Since the system has extensive security features, FAS may be used in centralized or decentralized organizations, where, for example, the input of requisitions is allowed at the site level. User access is restricted to those accounts and functions that are specific to their authorized location.</p><p align="left"> All accounting and budgetary data is integrated into one database in FAS, completely eliminating redundant input. The consolidation of data allows users to maintain and report all related information in a timely,effective manner. The systems unique Drill-thru allows users to drill from summary to detailed data, as well as from one application to the other, providing a paperless option for information gathering.</p><p align="left"></p></td><td width="50%" valign="top"><p align="left"><span class="style1">System Features</span><br /><br />System administration of your <strong>alio</strong> products includes system security and operational control. System administration helps you streamline the use of your <strong>alio</strong> applications.</p><p align="left"> <strong>alio</strong> software benefits users through flexibility in definition of user access to programs and data. Comprehensive security is provided on a field, function, program, menu and/or application level to allow administrators to easily define the proper access for each user.</p><p align="left"> The system offers definition of different levels of access for each user and role. For example, user access can be defined to allow for access levels such as view, add, modify, or delete for each program and screen.</p><p align="left"> Favorites menus can be developed by each user, based on their security access. Shortcuts provide users a way to navigate quickly to programs. Users can also search for programs based on any portion of the program name. All systems are fully interactive with menus, scroll bars, &quot;radio buttons&quot; drop-down lists and &quot;hot keys&quot;&nbsp;for ease of operation.</p></td></tr></table></td></tr><tr><td><img src="../images/partners/alio/alio_highlight.gif" width="880" height="45"></td></tr><tr><td height="335" background="../images/partners/alio/alio_list_BG.gif"><ul><li>Controls user access by application, menu, program, function and/or field.</li><li>Fields can be relabeled, hidden or made required within each program.</li><li>Enables tailoring of user menus, HELP text, and program descriptions.</li><li> All user documentation available in PDF format.</li> <li> All reports can be previewed on the screen and generated in PDF, XML, HTML, RTF or delimited files.</li><li> Supports database &quot;Roll-Back&quot; so the database can mirror any prior date.</li><li> Integration to Microsoft Excel, Word and Access office products.</li><li> Ability to store scanned images in the database and attach the images to specific records.</li></ul></td></tr></table>');
				document.write('</td><td valign="top">');
			}
			else
				document.write('</td></tr><tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="28">&nbsp;</td><td width="894" valign="top"><img src="../images/partners/'+partner+'/'+main_directive+'.gif" width="894" border="0" onmouseover="infoLayer.style.visibility=\'hidden\';" /></td><td valign="top">');
			var cN = 0
			for(c=1;c<pages;++c)
			{	
				d = details[cN++][0];
			if(c==main_directive)
				document.write('<img src="../images/partners/'+partner+'/buttons/alio_nav_'+main_directive+'_over.gif" alt="" name="b'+main_directive+'" width="23" height="19" border="0" id="b'+main_directive+'" /></br>');
			else
				document.write('<a href="'+partner+'_detail.htm?content='+c+'" target="_self" onmouseover=" setLayer('+c+',document.page'+c+',\''+infoL+'\',\''+d+'\')"><img src="../images/partners/'+partner+'/buttons/alio_nav_'+c+'.gif" alt="'+d+'" name="page'+c+'" width="23" height="19" border="0" id="page'+c+'" onload="" /></a></br>');
			}
		document.write('</table></td></tr></table></td></tr></table></td></tr></table>');
	
			document.write('</table></td></tr></table></center></td></tr><tr><td><img src="../images/partners/'+partner+'/alio_bottom.gif" /></td></tr></table>');
		}
	}
function alio_detail_layer(md)
{
	searchLayer = 10;
	if(searchLayer==md)
	{	details_layer.style.visibility='visible';
		parent.alio_detail_state.value=true;
	}
	else	
		window.location=('alio/detail'+md+'.htm');
}
function setLayer(n,m,l,d)
{
			L = document.layers? document.layers[l] : document.all? document.all[l].style : document.getElementById? document.getElementById(l).style : null;
			T = this.infoText;
			C = this.infoCount;
			C.value = n;
			var boxLen = d.length;
			T.size = boxLen;
			T.value = ' '+d;
			//yp =findPosY(m)
			L.top = (findPosY(m)-1)+'px';
			L.right='0px';
			L.visibility = 'visible';
}
function loadNext(url)
{
	U = this.infoCount.value;
	window.location = 'alio_detail.htm?content='+U
}	
	function getURLParam(strParamName)
	{
  		var strReturn = "";
  		var strHref = window.location.href;
  		if ( strHref.indexOf("?") > -1 )
		{
    		var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
   			var aQueryString = strQueryString.split("&");
    		for ( var iParam = 0; iParam < aQueryString.length; iParam++ )
			{
      			if (aQueryString[iParam].indexOf(strParamName.toLowerCase() + "=") > -1 )
				{
        			var aParam = aQueryString[iParam].split("=");
        			strReturn = aParam[1];
        			break;
      			}
   			}
 		}
  		return unescape(strReturn);
	}
	function build_menu()
	{
		document.write('<div id="div_menu" style="position:absolute;	left:400px;	top:0px;	width:154px;	height:25px;	z-index:99;	visibility:visible;"><a href="../content.htm" target="_self" onclick="MM_nbGroup(\'down\',\'group1\',\'homeB\',\'\',1)" onmouseover="MM_nbGroup(\'over\',\'homeB\',\'../images/buttons/home_over.gif\',\'\',1)" onmouseout="MM_nbGroup(\'out\')"><img src="../images/buttons/home.gif" alt="" name="homeB" width="75" height="25" border="0" id="homeB" onload="" /></a><a href="javascript:window.print()" target="_self" onclick="MM_nbGroup(\'down\',\'group1\',\'printB\',\'\',1)" onmouseover="MM_nbGroup(\'over\',\'printB\',\'../images/buttons/print_over.gif\',\'\',1)" onmouseout="MM_nbGroup(\'out\')"><img src="../images/buttons/print.gif" alt="" name="printB" width="75" height="25" border="0" id="printB" onload="" /></a></div>');

	}
	function build_menu2()//temporary function cause of server forder permissions
	{
		document.write('<div id="div_menu" style="position:absolute;	left:400px;	top:0px;	width:154px;	height:25px;	z-index:99;	visibility:visible;"><a href="content.htm" target="_self" onclick="MM_nbGroup(\'down\',\'group1\',\'homeB\',\'\',1)" onmouseover="MM_nbGroup(\'over\',\'homeB\',\'images/buttons/home_over.gif\',\'\',1)" onmouseout="MM_nbGroup(\'out\')"><img src="images/buttons/home.gif" alt="" name="homeB" width="75" height="25" border="0" id="homeB" onload="" /></a><a href="javascript:window.print()" target="_self" onclick="MM_nbGroup(\'down\',\'group1\',\'printB\',\'\',1)" onmouseover="MM_nbGroup(\'over\',\'printB\',\'images/buttons/print_over.gif\',\'\',1)" onmouseout="MM_nbGroup(\'out\')"><img src="images/buttons/print.gif" alt="" name="printB" width="75" height="25" border="0" id="printB" onload="" /></a></div>');

	}
	function build_menu_partner()
	{
		document.write('<div id="div_menu" style="position:absolute;	left:400px;	top:0px;	width:154px;	height:25px;	z-index:99;	visibility:visible;"><a href="../partnersdefault.htm" target="_self" onclick="MM_nbGroup(\'down\',\'group1\',\'homeB\',\'\',1)" onmouseover="MM_nbGroup(\'over\',\'homeB\',\'../images/buttons/home_over.gif\',\'\',1)" onmouseout="MM_nbGroup(\'out\')"><img src="../images/buttons/home.gif" alt="" name="homeB" width="75" height="25" border="0" id="homeB" onload="" /></a><a href="javascript:window.print()" target="_self" onclick="MM_nbGroup(\'down\',\'group1\',\'printB\',\'\',1)" onmouseover="MM_nbGroup(\'over\',\'printB\',\'../images/buttons/print_over.gif\',\'\',1)" onmouseout="MM_nbGroup(\'out\')"><img src="../images/buttons/print.gif" alt="" name="printB" width="75" height="25" border="0" id="printB" onload="" /></a></div>');

	}
	function build_height_control()
	{
		document.write('<img src="../images/blank.gif" name="heightControl" id="heightControl" width="5" height="5" />');
	}
function build_sublayer(id,bgfile,l,t,w,h,z,contents)//subcontent layers
{	
	document.write('<div id="'+id+'" style="position:absolute; left:'+l+'px; top:'+t+'px; width:'+w+'px; height:'+h+'px; z-index:'+z+'; background-image: url(images/'+bgfile+'); visibility:hidden; font-family:Arial, Helvetica, sans-serif;">'+contents+'</div>');
}

function build_layer(id,b,bgfile,titlefile,l,t,w,h,z,n,counter)//for menu image layers
{
	document.write('<div id="'+id+'" style="position:absolute; overflow: hidden;left:'+l+'px;top:'+t+'px;width:'+w+'px;height:'+h+'px;z-index:'+z+';" onclick="setactions(this,\''+id+'\','+b+','+n+')">');
	document.write('<table width="160" border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr><td height="125" background="images/'+bgfile+'">');
	document.write('<table style="margin-top:14px;" width="150" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td>');     
		  myString = new String(titlefile);
			rExp = /.jpg/;
newString = new String ("_off.jpg");
off_file = myString.replace(rExp, newString);
            document.write('<img src="images/'+off_file+'" width="150" height="100" onmouseover="this.src=\'images/'+titlefile+'\'" onmouseout="this.src=\'images/'+off_file+'\'">');
			document.write('</td></tr></table></td></tr></table></div>');
}
	function MM_swapImgRestore() 
	{
		var i,x,a=document.MM_sr;
		for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
			x.src=x.oSrc;
	}
	function MM_preloadImages()
	{ //v3.0
		var d=document;
		if(d.images)
		{
			if(!d.MM_p)
				d.MM_p=new Array();
    		var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
			for(i=0; i<a.length; i++)
    	if (a[i].indexOf("#")!=0)
		{
			d.MM_p[j]=new Image;
		d.MM_p[j++].src=a[i];}}
	}
	function MM_findObj(n, d) 
	{ //v4.01
  		var p,i,x;
		if(!d)
			d=document;
		if((p=n.indexOf("?"))>0&&parent.frames.length)
		{
    		d=parent.frames[n.substring(p+1)].document;
			n=n.substring(0,p);
		}
  		if(!(x=d[n])&&d.all) 
			x=d.all[n];
		for (i=0;!x&&i<d.forms.length;i++)
			x=d.forms[i][n];
  		for(i=0;!x&&d.layers&&i<d.layers.length;i++)
			x=MM_findObj(n,d.layers[i].document);
  		if(!x && d.getElementById)
			x=d.getElementById(n);
		return x;
	}
	function MM_swapImage() 
	{ //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments;
	  document.MM_sr=new Array;
	  for(i=0;i<(a.length-2);i+=3)
	   	if ((x=MM_findObj(a[i]))!=null)
		{
			document.MM_sr[j++]=x;
			if(!x.oSrc)
				x.oSrc=x.src;
			x.src=a[i+2];
		}
	}
function MM_nbGroup(event, grpName)
{ //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}