function openWin(URL){
	if (URL == "socrates.html" || URL == "aristotle.html" || URL == "plato.html"){
		aWindow=window.open(URL, "thewindow", "toolbar=no, width=210, height=325, status=no, scrollbars=no, resize=no, menubar=no");
	}
	else{
	aWindow=window.open(URL, "thewindow", "toolbar=no, width=660, height=320, status=no, scrollbars=no, resize=no, menubar=no");
	}
}



	// dreamweaver generated methods for layers**********
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);


function MM_findObj(n, d) { //v4.0
  var p,i,x;  
  if(!d) 
    d=document; 

  if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
     n=n.substring(0,p);
  }

  if(!(x=d[n])&&d.all)
     x=d.all[n]; 

  for (i=0;!x&&i<d.forms.length;i++) 
     x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
     x=MM_findObj(n,d.layers[i].document);

  if(!x && document.getElementById) 
    x=document.getElementById(n); 

  return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3)
     if ((obj=MM_findObj(args[i]))!=null) { 
         v=args[i+2];
         if (obj.style) { 
            obj=obj.style;
            v=(v=='show')?'visible':(v='hide')?'hidden':v;
         }
         obj.visibility=v; 
     }
}

// end dreamweaver methods ************



// begin methods for display of home page layers ***************
function goInstructor(){
	MM_showHideLayers('instructor','','show','desc','','hide','prereq','','hide','require','','hide',
			'room','','hide', 'rhetoric','','hide','reqText','','hide');
}

function goDesc(){
	MM_showHideLayers('instructor','','hide','desc','','show','prereq','','hide','require','','hide',
			'room','','hide', 'rhetoric','','hide','reqText','','hide');
}

function goPrereq(){
	MM_showHideLayers('instructor','','hide','desc','','hide','prereq','','show','require','','hide',
			'room','','hide', 'rhetoric','','hide','reqText','','hide');
}

function goReq(){
	MM_showHideLayers('instructor','','hide','desc','','hide','prereq','','hide','require','','show',
			'room','','hide', 'rhetoric','','hide','reqText','','hide');
}

function goRoom(){
	MM_showHideLayers('instructor','','hide','desc','','hide','prereq','','hide','require','','hide',
			'room','','show', 'rhetoric','','hide','reqText','','hide');
}

function goText(){
	MM_showHideLayers('instructor','','hide','desc','','hide','prereq','','hide','require','','hide',
			'room','','hide', 'rhetoric','','hide','reqText','','show');
}

function homeLoad(){
	MM_showHideLayers('instructor','','hide','desc','','hide','prereq','','hide','require','','hide',
			'room','','hide','reqText','','hide');
}
// end home page layers display methods ************




// begin methods for display of test your mettle layers **********
function goExmp1(){
	MM_showHideLayers('exmp1','','show','exmp2','','hide','exmp3','','hide');		
	
}

function goExmp2(){
	MM_showHideLayers('exmp1','','hide','exmp2','','show','exmp3','','hide');		
	
}

function goExmp3(){
	MM_showHideLayers('exmp1','','hide','exmp2','','hide','exmp3','','show');		
	
}
// end test your mettle layers *********



// begin methods for display of concepts layers **********
function goRhet(){
	MM_showHideLayers('flash','','hide','rhet','','show','dial','','hide','nar','','hide');
}

function goDial(){
	MM_showHideLayers('flash','','hide','rhet','','hide','dial','','show','nar','','hide');
}


function goNar(){
	MM_showHideLayers('flash','','hide','rhet','','hide','dial','','hide','nar','','show');
}

function goFlash(){
	MM_showHideLayers('rhet','','hide','flash','','show','dial','','hide','nar','','hide');
	openWin('flashmap.html');
}
// end concepts layers display *************



// ||||||||||||||||||||||||||||||||||||||||||||||||||
// Fix Explorer Mac overflow bug
// Language: JavaScript
// Author: Travis Beckham | squidfingers.com
function beforeOnLoad(){
	var agent = navigator.userAgent.toLowerCase(); 
	if(agent.indexOf("mac") != -1 && document.all && document.getElementsByTagName){
		if(document.body.clientHeight > 500){
			document.getElementsByTagName("body")[0].style.overflow = "hidden";
		}
	}
}

// ||||||||||||||||||||||||||||||||||||||||||||||||||

// Language: JavaScript
// Author: Travis Beckham | squidfingers.com
// Description: Remove anchor outlines from all links in the document
function blurAnchors(){
  if(document.getElementsByTagName){
    var a = document.getElementsByTagName("a");
    for(var i = 0; i < a.length; i++){
      a[i].onfocus = function(){this.blur()};
    }
  }
}
window.onload = blurAnchors;



