



function findObj(theObj, theDoc)

{  var p, i, foundObj;
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
 for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
   foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  return foundObj;
}

function showHideLayers()
{   var i, visStr, visStr1, obj, args = showHideLayers.arguments;
 	mn1.className = 'mouseOut';
	mn2.className = 'mouseOut';
	mn3.className = 'mouseOut';
	mn4.className = 'mouseOut';
	mn5.className = 'mouseOut';
	mn6.className = 'mouseOut';
	fn1.className = 'arrowOut';
	fn2.className = 'arrowOut';
	fn3.className = 'arrowOut';
	fn4.className = 'arrowOut';
	fn5.className = 'arrowOut';
	fn6.className = 'arrowOut';
	
	 for (i=0; i<(args.length-2); i+=3)
  {
   if ((obj = findObj(args[i])) != null)
    { visStr = args[i+2];
      if (obj.style)
      {  obj = obj.style;
        if(visStr == 'show') visStr1 = 'visible';
        else if(visStr == 'hide') visStr1 = 'hidden';
      }
      obj.visibility = visStr1;
    }

	
	if ((args[i+1]=='mn1') && (visStr=='show'))
	{ mn1.className = 'mouseOv'; fn1.className = 'arrowOv';}
  if ((args[i+1]=='mn2') && (visStr=='show'))
   { mn2.className = 'mouseOv'; fn2.className = 'arrowOv';}
 if ((args[i+1]=='mn3') && (visStr=='show')) 
 { mn3.className = 'mouseOv'; fn3.className = 'arrowOv';}
 if ((args[i+1]=='mn4') && (visStr=='show'))
 { mn4.className = 'mouseOv'; fn4.className = 'arrowOv';}
 if ((args[i+1]=='mn5') && (visStr=='show')) 
 { mn5.className = 'mouseOv'; fn5.className = 'arrowOv';}
 if ((args[i+1]=='mn6') && (visStr=='show')) 
 { mn6.className = 'mouseOv'; fn6.className = 'arrowOv';}
  
  }
  
}

function show4Layers()
{   var i, visStr, visStr1, obj, args = show4Layers.arguments;
 	mn1.className = 'mouseOut';
	mn2.className = 'mouseOut';
	mn3.className = 'mouseOut';
	mn4.className = 'mouseOut';
	fn1.className = 'arrowOut';
	fn2.className = 'arrowOut';
	fn3.className = 'arrowOut';
	fn4.className = 'arrowOut';

	
	 for (i=0; i<(args.length-2); i+=3)
  {
   if ((obj = findObj(args[i])) != null)
    { visStr = args[i+2];
      if (obj.style)
      {  obj = obj.style;
        if(visStr == 'show') visStr1 = 'visible';
        else if(visStr == 'hide') visStr1 = 'hidden';
      }
      obj.visibility = visStr1;
    }

	
	if ((args[i+1]=='mn1') && (visStr=='show'))
	{ mn1.className = 'mouseOv'; fn1.className = 'arrowOv';}
  if ((args[i+1]=='mn2') && (visStr=='show'))
   { mn2.className = 'mouseOv'; fn2.className = 'arrowOv';}
 if ((args[i+1]=='mn3') && (visStr=='show')) 
 { mn3.className = 'mouseOv'; fn3.className = 'arrowOv';}
 if ((args[i+1]=='mn4') && (visStr=='show'))
 { mn4.className = 'mouseOv'; fn4.className = 'arrowOv';}

  
  }
  
}


function show3Layers()
{   var i, visStr, visStr1, obj, args = show3Layers.arguments;
 	mn1.className = 'mouseOut';
	mn2.className = 'mouseOut';
	mn3.className = 'mouseOut';	
	fn1.className = 'arrowOut';
	fn2.className = 'arrowOut';
	fn3.className = 'arrowOut';
	
	
	 for (i=0; i<(args.length-2); i+=3)
  {
   if ((obj = findObj(args[i])) != null)
    { visStr = args[i+2];
      if (obj.style)
      {  obj = obj.style;
        if(visStr == 'show') visStr1 = 'visible';
        else if(visStr == 'hide') visStr1 = 'hidden';
      }
      obj.visibility = visStr1;
    }

	
	if ((args[i+1]=='mn1') && (visStr=='show'))
	{ mn1.className = 'mouseOv'; fn1.className = 'arrowOv';}
  if ((args[i+1]=='mn2') && (visStr=='show'))
   { mn2.className = 'mouseOv'; fn2.className = 'arrowOv';}
 if ((args[i+1]=='mn3') && (visStr=='show')) 
 { mn3.className = 'mouseOv'; fn3.className = 'arrowOv';}
 
  }
  
}
function showHideCube()
{   var i, visStr, visStr1, obj, args = showHideCube.arguments;
 	//mn1.className = 'mouseOut';
	//mn2.className = 'mouseOut';
	//mn3.className = 'mouseOut';
	//mn4.className = 'mouseOut';
	//fn1.className = 'arrowOut';
	//fn2.className = 'arrowOut';
	//fn3.className = 'arrowOut';
	//fn4.className = 'arrowOut';

	
	 for (i=0; i<(args.length-2); i+=3)
  {
   if ((obj = findObj(args[i])) != null)
    { visStr = args[i+2];
      if (obj.style)
      {  obj = obj.style;
        if(visStr == 'show') visStr1 = 'visible';
        else if(visStr == 'hide') visStr1 = 'hidden';
      }
      obj.visibility = visStr1;
    }

	
//	if ((args[i+1]=='mn1') && (visStr=='show'))
//	{ mn1.className = 'mouseOv'; fn1.className = 'arrowOv';}
//  if ((args[i+1]=='mn2') && (visStr=='show'))
//   { mn2.className = 'mouseOv'; fn2.className = 'arrowOv';}
// if ((args[i+1]=='mn3') && (visStr=='show')) 
// { mn3.className = 'mouseOv'; fn3.className = 'arrowOv';}
// if ((args[i+1]=='mn4') && (visStr=='show'))
 //{ mn4.className = 'mouseOv'; fn4.className = 'arrowOv';}

  
  }
  
}

function showHideCred()
{   var i, visStr, visStr1, obj, args = showHideCred.arguments;
 	
	 for (i=0; i<(args.length-2); i+=3)
  {
   if ((obj = findObj(args[i])) != null)
    { visStr = args[i+2];
      if (obj.style)
      {  obj = obj.style;
        if(visStr == 'show') visStr1 = 'visible';
        else if(visStr == 'hide') visStr1 = 'hidden';
      }
      obj.visibility = visStr1;
    }


  }
  
}