if (document.images) {
	
	
//Main Navigation//	

    aboutusup       = new Image();
    aboutusup.src   = "images/abtus_a.gif" ;
    aboutusdown     = new Image() ;
    aboutusdown.src = "images/abtus_b.gif" ;

    curriculumup       = new Image();
    curriculumup.src   = "images/curriculum_a.gif" ;
    curriculumdown     = new Image() ;
    curriculumdown.src = "images/curriculum_b.gif" ;
	
	whylogicmillsup       = new Image();
    whylogicmillsup.src   = "images/whylogicmills_a.gif" ;
    whylogicmillsdown     = new Image() ;
    whylogicmillsdown.src = "images/whylogicmills_b.gif" ;
	
	courseup       = new Image();
    courseup.src   = "images/course_a.gif" ;
    coursedown     = new Image() ;
    coursedown.src = "images/course_b.gif" ;	
	
	ourteachingup       = new Image();
    ourteachingup.src   = "images/ourteaching_a.gif" ;
    ourteachingdown     = new Image() ;
    ourteachingdown.src = "images/ourteaching_b.gif" ;	
	
	faqup       = new Image();
    faqup.src   = "images/faq_a.gif" ;
    faqdown     = new Image() ;
    faqdown.src = "images/faq_b.gif" ;	
	
/////////////////////////////////////////////////////



	}
	


function buttondown( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "down.src" );
    }
}
function buttonup ( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "up.src" );
    }
}


function newbrowser(TheLink) {
        window.open(TheLink,"","width=800,height=600,menubar=1,scrollbars=yes,resizable=yes,left=100,top=125");
}

function openwin(TheLink) {
        window.open(TheLink,"","width=710,height=600,menubar=0,scrollbars=yes,resizable=no,left=100,top=125");
}






/***********************************************
* Highlight Table Cells Script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Specify highlight behavior. "TD" to highlight table cells, "TR" to highlight the entire row:
var highlightbehavior="TD"

var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TABLE")
return
while(source.tagName!=highlightbehavior && source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changeback(e,originalcolor){
if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TABLE")
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=yes,directories=yes,status=yes,menubar=yes,toolbar=yes,resizable=yes';
win=window.open(mypage,myname,settings);}

