// <!--
// This file contains common the javascript necessary for all pages of the site.

// Begin Frame Busting

if (window != top) top.location.href = location.href;
// End Frame Busting



// Begin pop-up window
function popup() {
	win = window.open ("../popup.html", "popup", "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,width=627,height=445");
}

// End pop-up window



// Begin Style Sheet Method

  // assign variables
var bPlatform = 'false';
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var bStyleAll = 'link rel="stylesheet" href="../styles.css" type="text/css"';
var bStyleNavPC = 'link rel="stylesheet" href="../styles2.css" type="text/css"';

 // test for Windows Platform
if (navigator.appVersion.indexOf('Win') != -1)
  bPlatform = 'true';

if (bName == 'Netscape' && bPlatform == 'true' && bVer < 5)
  // link the netscape windows pc stylesheets
 document.write(' <' + bStyleNavPC + '> ');
else
  // for everything else...
 document.write(' <' + bStyleAll + '> ');
// End Style Sheet Method



// Preload and Rollovers for standard page buttons

homeOn = new Image(97,22);
homeOn.src = "../images/nav-home-roll.jpg";
homeOff = new Image(97,22);
homeOff.src = "../images/nav-home.jpg";

personnelOn = new Image(124,22);
personnelOn.src = "../images/nav-personnel-roll.jpg";
personnelOff = new Image(124,22);
personnelOff.src = "../images/nav-personnel.jpg";

projectsOn = new Image(118,22);
projectsOn.src = "../images/nav-projects-roll.jpg";
projectsOff = new Image(118,22);
projectsOff.src = "../images/nav-projects.jpg";

publicationsOn = new Image(97,22);
publicationsOn.src = "../images/nav-publications-roll.jpg";
publicationsOff = new Image(97,22);
publicationsOff.src = "../images/nav-publications.jpg";

contactOn = new Image(109,22);
contactOn.src = "../images/nav-contact-roll.jpg";
contactOff = new Image(109,22);
contactOff.src = "../images/nav-contact.jpg";

function imageOff(imgName) {
	imgOff = eval(imgName + "Off.src");
	document[imgName].src = imgOff;
}

function imageOn(imgName) {
	imgOn = eval(imgName + "On.src");
	document[imgName].src = imgOn;
}

function xxx() {
if (bName == "Netscape"){
var sDocHost = "";
sDocHost = document.URL;
document.location = sDocHost;
}

}
//-->



