
// ******************************************************************************************
// Global Vars...

var bFade = false;

//  *****************************************************************************************
//  Function onload for home pages
//function homeLoad(pWin)
//{               
//  settime();  
//}  

//  *****************************************************************************************
//  Function to enlarge pictures
//function imgClick(sFilename,sDesc)
//  var iTop = parseInt(document.body.scrollTop) * 0.45 + 23;
  
//  s1  = '<html><head><link rel="stylesheet" href="css/subs.css" type="text/css" /></head><body>';
//  s1 += '<div style="position:absolute;left:30;top:'+iTop+';"><img src="images/'+sFilename+'.jpg"><p>'+sDesc+'</p></div></body></html>';
//  document.content.location = 'about:'+s1;
  
//}

//  *****************************************************************************************
//  Function will Fade an object to a Target opacity, with the speed of the Interval, and the 
//  procression rate of the Amount.  Function returns true if object is still being faded,
//  false if process is done with.

function fadeObj(ovObj,iTarget,iAmt,iInterval)
{        
  if (ovObj.filters.alpha.opacity == iTarget)
    bFade = false;
  else
  {
    if (ovObj.filters.alpha.opacity > iTarget)
      ovObj.filters.alpha.opacity -= iAmt;      
    else                                        
      ovObj.filters.alpha.opacity += iAmt;      
  
    eval('setTimeout("fadeObj("+ovObj.uniqueID+","+iTarget+","+iAmt+")","+iInterval+")');  
    bFade = true;
  }

}    


//  *****************************************************************************************
//  Next two functions are used to get the left & top of the windows client height
//  minus the width of the object.  This will place the object in perfect center.

function getLeftCenter(ovDoc,iWidth)
{
  return parseInt( (ovDoc.body.clientWidth-iWidth) / 2);
}

function getTopCenter(ovDoc,iHeight)
{
  return parseInt( (ovDoc.body.clientHeight-iHeight) / 2);
}

//  *****************************************************************************************

//function settime()
//{
//
//  dt = new Date();
//  if (dt.getSeconds() < 10)
//    sec = '0' + dt.getSeconds()
//  else
//    sec = dt.getSeconds()
//
//  if (dt.getMinutes() < 10)
//    min = '0' + dt.getMinutes()
//  else
//    min = dt.getMinutes()
//
//  if (dt.getHours() < 10)
//    hrs = '0' + dt.getHours()
//  else
//    hrs = dt.getHours()
//
//  day = dt.getDate();
//  year = dt.getYear();
//  month = dt.getMonth()+1;
//
//  clock.innerHTML = day+'/'+month+'/'+year + '  '+hrs +':'+ min +':'+sec;
//  setTimeout("settime()", 1000);
//}                          

//  *****************************************************************************************
                                                                       

// function used to call linked menu page..and go to top of called page
//function menuLinks(ovTop,ovDoc,sLink)
//{   
//  ovTop.document.body.scrollTop=0
//  ovDoc.location = sLink; 
//}
