/*----------ID tags-------------------------
The following tags control its content on all pages except the home page
    
   row1         = logo row
   toprow       = two cells of first row merged togo to accommodate logo width
   mruRow       = the row for the top links 
   tblmain      = main table
   leftCell     = leftcell that contain left links
   contentCell  = the cell that contains the main information
   content      = main div container that contains main info
   bottomrow    = bottom row

--------------------------------------*/








var usragt=navigator.userAgent.toLowerCase();
var version=parseInt(navigator.appVersion);
var menuarray= new Array();
var iemenu= new Array();
var activepage;
var ie4dom=(document.all && !document.getElementById)?1:0;
var newdom=(document.getElementById)?1:0;
var oldnsdom=(document.layers)?1:0;
var domstyle;
var is_ie=((usragt.indexOf("msie")!=-1)&&(usragt.indexOf("opera")==-1));
var is_firefox=(usragt.indexOf("firefox")!=-1)
var ns = (navigator.appName.indexOf("Netscape") != -1 && !is_firefox);



linktext1=new Array("Lincoln Hall treatment Program","","Lincoln Hall Athletic Program","Lincoln Hall Community Services","Lincoln Hall residential")

var homePath="http://www.lincolnhall.org/"
var tagPath="http://www.lincolnhall.org/pages/"
var pdfPath="http://www.lincolnhall.org/pdf/"
var imagesPath="http://www.lincolnhall.org/images/"

var toplinks=new Array()

toplinks[0]="<a href='"+homePath + "index.html' class=topA ><div class=topAdivs id=toplink0 onMouseover=setBackColor('toplink0','green','white'); onmouseout=restoreColor('toplink0','','white')>Home</div> </a>"
toplinks[1]="<a href='"+tagPath + "aboutus.html' class=topA ><div class=topAdivs id=toplink1 onMouseover=setBackColor('toplink1','green','white'); onmouseout=restoreColor('toplink1','','white')>About us</div></a>"

toplinks[2]="<a href='"+tagPath + "services.html' class=topA><div class=topAdivs id=toplink2 onMouseover=setBackColor('toplink2','green','white'); onmouseout=restoreColor('toplink2','','white')>Our Services</div></a>"

toplinks[3]="<a href='"+tagPath + "contactus.html' class=topA><div class=topAdivs id=toplink3 onMouseover=setBackColor('toplink3','green','white'); onmouseout=restoreColor('toplink3','','white')>Contact us</div></a>"

toplinks[4]="<a href='"+tagPath + "donateTolh.html' class=topA><div class=topAdivs id=toplink4 onMouseover=setBackColor('toplink4','green','white'); onmouseout=restoreColor('toplink4','','white')>Donate</div> </a>"

toplinks[5]="<a href='"+tagPath + "lhhr.html' class=topA><div class=topAdivs id=toplink5 onMouseover=setBackColor('toplink5','green','white'); onmouseout=restoreColor('toplink5','','white')>Careers</div> </a>"




leftlinks=new Array()
leftlinks[0]="<a href='"+tagPath + "lhhistory.html' class=leftA><div class=leftAdivs id=leftlink0 onMouseover=setBackColor('leftlink0','green','white'); onmouseout=restoreColor('leftlink0','','blue')>History of Lincoln Hall</div> </a>"
leftlinks[1]="<a href='"+tagPath + "services.html#treatment' class=leftA><div class=leftAdivs id=leftlink1 onMouseover=setBackColor('leftlink1','green','white'); onmouseout=restoreColor('leftlink1','','blue')>Lincoln Hall Treatment Program</div> </a>"
leftlinks[2]="<a href='"+tagPath + "ivesschool.html' class=leftA><div class=leftAdivs id=leftlink2 onMouseover=setBackColor('leftlink2','green','white'); onmouseout=restoreColor('leftlink2','','blue')>Lincoln Hall Ives School</div> </a>"
leftlinks[3]="<a href='"+tagPath + "lhathletics.html' class=leftA><div class=leftAdivs id=leftlink3 onMouseover=setBackColor('leftlink3','green','white'); onmouseout=restoreColor('leftlink3','','blue')>Lincoln Hall Athletic Program</div> </a>"
leftlinks[4]="<a href='"+tagPath + "services.html#community' class=leftA><div class=leftAdivs id=leftlink4 onMouseover=setBackColor('leftlink4','green','white'); onmouseout=restoreColor('leftlink4','','blue')>Lincoln Hall Community Services</div> </a>"
leftlinks[5]="<a href='"+tagPath + "services.html#residential' class=leftA><div class=leftAdivs id=leftlink5 onMouseover=setBackColor('leftlink5','green','white'); onmouseout=restoreColor('leftlink5','','blue')> Residential Life at Lincoln Hall</div></a>"



leftlinks[6]="<a href='"+tagPath+ "donateTolh.html' class=leftA><div class=leftAdivs id=leftlink6 onMouseover=setBackColor('leftlink6','green','white'); onmouseout=restoreColor('leftlink6','','blue')> Make a Donation to Lincoln Hall</div></a>"

leftlinks[7]="<a href='"+tagPath+ "directions.html' class=leftA><div class=leftAdivs id=leftlink7 onMouseover=setBackColor('leftlink7','green','white'); onmouseout=restoreColor('leftlink7','','blue')>Directions to Lincoln Hall</div></a>"



/*
leftlinks[7]="<a href='"+tagPath+ "GAMESCHEDULES.asp' class=leftA><div class=leftAdivs id=leftlink7 onMouseover=setBackColor('leftlink7','green','white'); onmouseout=restoreColor('leftlink7','','blue')> Athletic Game Schedules and more</div></a>"
*/


var myRes; //variable to hold screen resolution 

myRes=(ns)?window.innerWidth:screen.width-24;
//alert(myRes)


var smallRes=(myRes<800)?1:0
 
var largeRes=(myRes>800)?1:0   
   topawidth=(myRes/5)-2;


function initializer()
{
ivesIMG1=getObjectId("ives1") 
tbl1=getObjectId("tblmain")
 cnt=getObjectId("content")
 leftTDcell=getObjectId("leftCell")
 cntTDcell=getObjectId("contentCell") 

if(smallRes && !ns)
   {
     
    document.toplogo.src= imagesPath +"anim1/lhminilogo1.gif"
    if(document.donateIMG)document.donateIMG.width=743-330
    tbl1.style.width=743
   cnt.style.backgroundColor=""
    leftTDcell.style.width=255
    cnt.style.width=743-255
    if(ivesIMG1)ivesIMG1.style.width=743-280;
    cntTDcell.style.width=743-255

   }
if(largeRes && ! ns)
    {
     tbl1.style.width="900"
     leftCell.style.width="255"
     cntTDcell.style.width=900-255
     cnt.style.width=900-255
     
    }  
if(ns && largeRes)
   {
    
   
    if(cnt)
       { 
        cnt.style.width=900-300
        cnt.style.backgroundColor=""
       }
   
   
   }



if(ns && smallRes)
   {
    
   
   }




}

var mission

mission="Founded as the Catholic Protectorate in 1863, Lincoln Hall provides specialized services for adolescents which reflect the belief that troubled youth have the potential to become responsible individuals with a sense of self worth and respect for others. Lincoln Hall, in partnership with families, forms a community that believes in the lasting effects of focused, caring treatment enabling the youth in our care to become successful members of society."


function writeMenu(menu,where)
        {
        if(where=="horizontal")
            {
              document.write("<table cellspacing=0 cellpadding=0 height=10 width='' >")
              document.write("<tr id=topMenuBar bgcolor='' width='100%' height='100%'>")
              for(i=0;i< menu.length;i++)
                 {
                   document.write("<td class=toptdcells width='"+topawidth+"'>")
                   
                   document.write("<center>" + menu[i] +"</center>")  
                   document.write("</td>")
                 } 
              document.write("</tr></table>")
            } //end if
         else
            {
             for(v=0;v<menu.length;v++)document.write(menu[v]);

            }//end else
         }// end function



function setBackColor(whichitem,mycolor,textcol)
  {
   var elid;
   var elid_ref;
   if(newdom)
      {
       elid=document.getElementById(whichitem)
       elid.style.backgroundColor=mycolor;
        elid.style.color=textcol;           
      }


   }



function restoreColor(objid,backcol,textcol)
  { 
   
   elid=document.getElementById(objid)
   elid.style.backgroundColor=backcol;
   elid.style.color=textcol;

  }  //_______end function restoreColor()__________








var days=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
   var months=new Array()
       months[0]="January"
       months[1]="February"
       months[2]="March"
       months[3]="April"
       months[4]="May"
       months[5]="June"
       months[6]="July"
       months[7]="August"
       months[8]="September"
       months[9]="October"
       months[10]="November"
       months[11]="December"
   now=new Date()
   day=now.getDay() 
   month= now.getMonth()
   date=now.getDate()
   year=now.getYear()

   today=days[day]
   ddate=(date<10)?"0"+date:date;
   dmonth=months[month]
function displayDate()
{
   document.write("<div style='background-color:#e0e0e0;'><font size=2 color=navy>Thank You for visiting us on ")
   document.write(today + ", " +dmonth + " " +ddate + ", " + year)
   document.write("</font></div>")
   //document.write(now.toLocaleString())

}


function getObjectId(obj)
{
if(obj!="")
   {
    if(document.getElementById)
       return document.getElementById(obj)

   }
}

