<!--
COPYRIGHT = "&copy; ";

function writeCopyright()
   {
      document.write(COPYRIGHT, new Date().getFullYear(), " Carleton University");
   }

function year() 
	{
		var now = new Date();
        document.write(now.getFullYear());
     }
   
function printWindow() {
	bV = parseInt(navigator.appVersion);
	if (bV >= 4) window.print();
}   

function P7_v4StyleSheet(a,b){ //v1.1 by PVII-www.projectseven.com
var m=false,tS='<l'+'ink re'+'l="sty'+'lesheet" t'+'ype="tex'+'t/css" hr'+'ef="'+b+'">';
 m=(a==0)?(!document.getElementById):(document.layers);
 if(m){document.write(tS);}
}
P7_v4StyleSheet(0,'http://www.carleton.ca/cu/template_files/_css/old_browsers.css');
   
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// <![CDATA[
function setVisible(index){

    switch(index)
    {
        case 0:
            show_row("current",true);
            show_row("faculty_staff",true);
            show_row("prospective",true);
            break;
        case 1:
            show_row("current",true);
            show_row("faculty_staff",false);
            show_row("prospective",false);
            break;
        case 2:
            show_row("current",false);
            show_row("faculty_staff",true);
            show_row("prospective",false);
            break;
        case 3:    
            show_row("current",false);
            show_row("faculty_staff",false);
            show_row("prospective",true);
            break;
    }
}
function show_row(obj,bool){
        
// see if it's a document id, if it's not, then it must be an obj reference
        if(typeof obj == "string")
            obj = document.getElementById(obj);

// if user chose false, then lets see if the obj needs to be hidden,
//and if it does, then hide it.
	
        if(bool == false){
            if(obj.style.display != 'none');
            obj.style.display = 'none';
        }

// the user chose true, or omitted the second parameter.
//see if the object is visible. If it isn't, the show it.

        else { 
            if(obj.style.display != 'none');
             if (navigator.appName == "Netscape") 
				obj.style.display = 'table-row'
			else
				obj.style.display = 'table-header-group';
        }
}
// ]]>

//-->

