var item2 = "null";

	// IE stylesheet for MAC 
       //if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4 && navigator.platform == "MacPPC") {
                        //document.write ('<'+'link href="http://www.uottawa.ca/includes/styles/iestylemac.css" rel="stylesheet" type="text/css">');
		//}   
// IE stylesheet
        if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4) {
                      document.write ('<'+'link href="http://www.uottawa.ca/includes/styles/iestyle.css" rel="stylesheet" type="text/css">');					  
		}
	// Netscape Navigator for MAC stylesheet - IE stylesheet works for both                   
                else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4 && parseInt(navigator.appVersion) < 5 && navigator.platform == "MacPPC") {
                        document.write ('<'+'link href="http://www.uottawa.ca/includes/styles/ns4stylemac.css" rel="stylesheet" type="text/css">');
		}
		
 	// Netscape Navigator 4 stylesheet                  	
                else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4 && parseInt(navigator.appVersion) < 5) {
                        document.write ('<'+'link href="http://www.uottawa.ca/includes/styles/ns4style.css" rel="stylesheet" type="text/css">');
		}
  	// Netscape Navigator 6 stylesheet. Note that Netscape identifies this in detection as Netscape 5.
                else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5) {
                        document.write ('<'+'link href="http://www.uottawa.ca/includes/styles/ns5style.css" rel="stylesheet" type="text/css">');                       
                } 
		else {
                        // Unknown Browser: writes stylesheet for IE
                        document.write ('<'+'link href="http://www.uottawa.ca/includes/styles/iestyle.css" rel="stylesheet" type="text/css">');
                }

				
				//function  to jump to selected "quick link"
function gotoLink(form) {
   var OptionIndex=form.urls.selectedIndex;
  parent.location = form.urls.options[OptionIndex].value;}

var ns4=(document.layers)? true:false;
var ie4=(document.all)? true:false;
var ns6=(document.getElementById && !document.all)? true:false;

function changeBg(layerName,swapColor) {
 if (ns4) { document.layers[layerName].bgColor = swapColor; }
 if (ie4) { document.all[layerName].style.backgroundColor = swapColor; }
 if (ns6) { document.getElementById(layerName).style.backgroundColor = swapColor; }
}

function showSquare2(x){
	if (ns4) { document.layers[x].visibility = 'show'; }
	if (ie4) { document.all[x].style.visibility = 'visible'; }
	if (ns6) { document.getElementById(x).style.visibility = 'visible'; }
}

function hideSquare2(x){
	if (ns4) { document.layers[x].visibility = 'hide'; }
	if (ie4) { document.all[x].style.visibility = 'hidden'; }
	if (ns6) { document.getElementById(x).style.visibility = 'hidden'; }
}

function showSquare(x){
	if (item2 != "null"){
		hideSquare2(item2);
	}
	showSquare2(x);
	item2 = x;
}

function hideSquare(x){
}


function menuMouseOver(item, subMenu, x, y){
	if (item2 != "null"){
		hideSquare2(item2);
	}
	showSquare2(item);
	window.FW_showMenu(subMenu,x,y);
	item2 = item;
}

function menuMouseOut(item){
	FW_startTimeout();
}

function init() {

  setTimeout("window.onresize = redo", 1000);

}


function redo() {

  window.location.reload();

}
	

var your_message = "You are now leaving the University of Ottawa's official site and are about to access another location considered either external or personal. The University takes no responsibility for and exercises no control over this non-University site. The same disclaimer applies to any links the site offers, to any opinions it contains and to any product or service references it makes.";
function perso(){
	alert(your_message);
}

function add_class_qpform() {
	if (document.getElementsByName) {
		document.getElementsByName("urls")[0].className="qpform";
	}
}

