

				/* This is the universal find dom script */

var isDHTML = 0;
var isID = 0;
var isAll = 0;
var isLayers = 0;


if (document.getElementById) {isID = 1; isDHTML = 1;}
else {
if (document.all) {isAll = 1; isDHTML = 1;}
else {
browserVersion = parseInt(navigator.appVersion);
if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {isLayers = 1; isDHTML = 1;}
}}

function findDOM(objectID,withStyle) {
	if (withStyle == 1) {
		if (isID) { return (document.getElementById(objectID).style) ; }
		else { 
			if (isAll) { return (document.all[objectID].style); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
	else {
		if (isID) { return (document.getElementById(objectID)) ; }
		else { 
			if (isAll) { return (document.all[objectID]); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
}



				/* This is the universal find dom with frame script */

function findDOMFrame(objectID,frameName,withStyle) {if (document.getElementById) {isID = 1; isDHTML = 1;}else {if (document.layers) {isLayers = 1; isDHTML = 1;}else {if (document.all) {isAll = 1; isDHTML = 1;}}}
	if (withStyle == 1) {
		if (isID) { return (parent [frameName].document.getElementById(objectID).style) ; }
		else { 
			if (isAll) { return (parent [frameName].document.all[objectID].style); }
		else {
			if (isLayers) {  return (parent [frameName].document.layers[objectID]); }
		};}
	}
	else {
		if (isID) { return (parent [frameName].document.getElementById(objectID)) ; }
		else { 
			if (isAll) { return (parent [frameName].document.all[objectID]); }
		else {
			if (isLayers) { return (parent [frameName].document.layers[objectID]); }
		};}
	}
}



				/* This is the clam shell menu for the catalogs script */

function toggleMenu(objectID) {
	if (isAll || isID) {
		domStyle = findDOM(objectID,1);
		if (domStyle.display =='block')  domStyle.display='none';
		else domStyle.display='block';
	}
	else {
		destination = objectID + '.html';
		self.location = destination;
	}
	return;
}



				/* This is the clam shell menu with close others for the nav pages script */

function toggleClamShellMenu(objectID) {
	if (isAll || isID) {
		domStyle = findDOM(objectID,1);
		if (domStyle.display =='block')  domStyle.display='none';
		else domStyle.display='block', closeOthers(objectID); 		
	}

	else {
		destination = objectID + '.html';
		self.location = destination;
	}

	return;
}


/* Grad Version */
function toggleClamShellMenuGrad(objectID) {
	if (isAll || isID) {
		domStyle = findDOM(objectID,1);
		if (domStyle.display =='block')  domStyle.display='none';
		else domStyle.display='block', closeOthersGrad(objectID); 		
	}

	else {
		destination = objectID + '.html';
		self.location = destination;
	}

	return;
}









function closeOthers(x){
if      (x =="menu1") domStyle = findDOM("menu2",1), domStyle.display='none',domStyle = findDOM("menu3",1), domStyle.display='none',domStyle = findDOM("menu4",1), domStyle.display='none',domStyle = findDOM("menu5",1), domStyle.display='none',domStyle = findDOM("schedualChoices",1), domStyle.display='none';
else if (x =="menu2") domStyle = findDOM("menu1",1), domStyle.display='none',domStyle = findDOM("menu3",1), domStyle.display='none',domStyle = findDOM("menu4",1), domStyle.display='none',domStyle = findDOM("menu5",1), domStyle.display='none',domStyle = findDOM("schedualChoices",1), domStyle.display='none';
else if (x =="menu3") domStyle = findDOM("menu1",1), domStyle.display='none',domStyle = findDOM("menu2",1), domStyle.display='none',domStyle = findDOM("menu4",1), domStyle.display='none',domStyle = findDOM("menu5",1), domStyle.display='none',domStyle = findDOM("schedualChoices",1), domStyle.display='none';
else if (x =="menu4") domStyle = findDOM("menu1",1), domStyle.display='none',domStyle = findDOM("menu2",1), domStyle.display='none', domStyle = findDOM("menu3",1), domStyle.display='none',domStyle = findDOM("menu5",1), domStyle.display='none',domStyle = findDOM("schedualChoices",1), domStyle.display='none';
else if (x =="menu5") domStyle = findDOM("menu1",1), domStyle.display='none',domStyle = findDOM("menu2",1), domStyle.display='none', domStyle = findDOM("menu3",1), domStyle.display='none',domStyle = findDOM("menu4",1), domStyle.display='none',domStyle = findDOM("schedualChoices",1), domStyle.display='none';

else if (x =="schedualChoices") domStyle = findDOM("menu1",1), domStyle.display='none',domStyle = findDOM("menu2",1), domStyle.display='none', domStyle = findDOM("menu3",1), domStyle.display='none',domStyle = findDOM("menu4",1), domStyle.display='none',domStyle = findDOM("menu5",1), domStyle.display='none';

}


				/* This is the close others for the admissions and schedual links script */
function closeOtherMenus(){
domStyle = findDOM("menu1",1), domStyle.display='none',domStyle = findDOM("menu2",1), domStyle.display='none', domStyle = findDOM("menu3",1), domStyle.display='none', domStyle = findDOM("menu4",1), domStyle.display='none';
}


/* Graduate has fewer menus*/
function closeOthersGrad(x){
if      (x =="menu1") domStyle = findDOM("menu2",1), domStyle.display='none',domStyle = findDOM("menu3",1), domStyle.display='none',domStyle = findDOM("menu4",1), domStyle.display='none',domStyle = findDOM("schedualChoices",1), domStyle.display='none';
else if (x =="menu2") domStyle = findDOM("menu1",1), domStyle.display='none',domStyle = findDOM("menu3",1), domStyle.display='none',domStyle = findDOM("menu4",1), domStyle.display='none',domStyle = findDOM("schedualChoices",1), domStyle.display='none';
else if (x =="menu3") domStyle = findDOM("menu1",1), domStyle.display='none',domStyle = findDOM("menu2",1), domStyle.display='none',domStyle = findDOM("menu4",1), domStyle.display='none',domStyle = findDOM("schedualChoices",1), domStyle.display='none';
else if (x =="menu4") domStyle = findDOM("menu1",1), domStyle.display='none',domStyle = findDOM("menu2",1), domStyle.display='none', domStyle = findDOM("menu3",1), domStyle.display='none',domStyle = findDOM("schedualChoices",1), domStyle.display='none';

else if (x =="schedualChoices") domStyle = findDOM("menu1",1), domStyle.display='none',domStyle = findDOM("menu2",1), domStyle.display='none', domStyle = findDOM("menu3",1), domStyle.display='none',domStyle = findDOM("menu4",1), domStyle.display='none';

}













				/* These are the close all - open all scripts */


function closeAll(WhatDiv,Count) {
for (i=1; i<=Count;i=i+1)
domStyle = findDOMFrame("menu"+i,WhatDiv,1), domStyle.display='none';

}

function openAll(WhatDiv,Count) {
for (i=1; i<=Count;i=i+1)
domStyle = findDOMFrame("menu"+i,WhatDiv,1), domStyle.display='block';
}





				/* This is the faculty section with array and previous and next buttons */


var FacultyPage=new Array("facultyMain.html","Basile.html","Dorchak.html","Falcone.html","Heim.html","Magot.html","Malinowski.html","Noble.html","Peltzer.html","Rozensthein.html","White.html")

var currentIndex;



function nextFaculty(){

if (currentIndex==10) {parent.facultyMain.location.href=FacultyPage[1], currentIndex=1;}
else {
currentIndex = currentIndex+1;
parent.facultyMain.location.href=FacultyPage[currentIndex];}
}


function preFaculty(){
if (currentIndex<=1) {parent.facultyMain.location.href=FacultyPage[10], currentIndex=10;}
else {
currentIndex= currentIndex-1;
parent.facultyMain.location.href=FacultyPage[currentIndex];}
}




				/* This is the dynamic button section */
				
								/* This is the src for the buttons script */

function buttonFaculty(WhatIndex)
{parent.facultyMain.location.href=FacultyPage[WhatIndex], currentIndex=WhatIndex;}

function buttonTop(WhatPage)
{parent.bottomFrame.location.href=WhatPage}

function buttonUnder(WhatPage)
{parent.underGradMain.location.href=WhatPage}

function buttonGrad(WhatPage)
{parent.GradMain.location.href=WhatPage}

function buttonAdmissions(WhatPage)
{top.location.href=WhatPage}






								/* This is the script for the appearence of the top buttons*/


function over(WhatID,backColor,highLite,shadow)
{
domStyle = findDOM(WhatID,1);
	domStyle.backgroundColor=backColor;
	domStyle.borderLeftColor=highLite;
	domStyle.borderTopColor=highLite;
	domStyle.borderRightColor=shadow;
	domStyle.borderBottomColor=shadow;
	domStyle.paddingLeft='3px';
	domStyle.paddingTop='3px';
	domStyle.paddingRight='5px';
	domStyle.paddingBottom='5px';
}

function out(WhatID,backColor)
{
domStyle = findDOM(WhatID,1);
	domStyle.backgroundColor=backColor;
	domStyle.borderLeftColor=backColor;
	domStyle.borderTopColor=backColor;
	domStyle.borderRightColor=backColor;
	domStyle.borderBottomColor=backColor;
	
	domStyle.paddingLeft='4px';
	domStyle.paddingTop='4px';
	domStyle.paddingRight='4px';
	domStyle.paddingBottom='4px';
}


function down(WhatID,backColor,highLite,shadow)
{
domStyle = findDOM(WhatID,1);
	domStyle.backgroundColor=backColor;
	domStyle.borderLeftColor=shadow;
	domStyle.borderTopColor=shadow;
	domStyle.borderRightColor=highLite;
	domStyle.borderBottomColor=highLite;
	
	domStyle.paddingLeft='5px';
	domStyle.paddingTop='5px';
	domStyle.paddingRight='3px';
	domStyle.paddingBottom='3px';	
}



								/* This is the script for the appearence of all other buttons*/

function facOver(WhatID,whatArea)
{
if (whatArea=='1')textColor='#f5445b';
	else if(whatArea=='2')textColor='#28b192';
		else if (whatArea=='3')textColor='#2460c5';


domStyle = findDOM(WhatID,1);
	domStyle.backgroundColor='#fff';
	domStyle.borderLeftColor='#ccc';
	domStyle.borderTopColor='#ccc';
	domStyle.borderRightColor='#333';
	domStyle.borderBottomColor='#333';
	domStyle.color=textColor;
	
	domStyle.paddingLeft='3px';
	domStyle.paddingTop='3px';
	domStyle.paddingRight='5px';
	domStyle.paddingBottom='5px';
}

function facOut(WhatID,whatArea)
{

if (whatArea=='1')textColor='#933';
	else if(whatArea=='2')textColor='#066';
		else if (whatArea=='3')textColor='#0f2b5b';
		
		
domStyle = findDOM(WhatID,1);
	domStyle.backgroundColor='#fff';
	domStyle.borderLeftColor='#fff';
	domStyle.borderTopColor='#fff';
	domStyle.borderRightColor='#fff';
	domStyle.borderBottomColor='#fff';
	domStyle.color=textColor;
	
	domStyle.paddingLeft='4px';
	domStyle.paddingTop='4px';
	domStyle.paddingRight='4px';
	domStyle.paddingBottom='4px';
}


function facDown(WhatID)
{
domStyle = findDOM(WhatID,1);
	domStyle.backgroundColor='#eee';
	domStyle.borderLeftColor='#333';
	domStyle.borderTopColor='#333';
	domStyle.borderRightColor='#ccc';
	domStyle.borderBottomColor='#ccc';
	
	domStyle.paddingLeft='5px';
	domStyle.paddingTop='5px';
	domStyle.paddingRight='3px';
	domStyle.paddingBottom='3px';
}



