// Detect if browser is Netscape 3 + or IE 4 +.
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
    if ((bName == "Netscape" && bVer >= 3) || 
        (bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3"; 
    else br = "n2";

// Create tab image objects, preload all active and inactive images.
    if (br== "n3") { 
        
    img1dis = new Image();                     // Secondary rollover 
    img1dis.src = "images/navdetoff.gif";      // description images are
    img2dis = new Image();                     // displayed when the mouse moves on
    img2dis.src = "images/navdetconton.gif";   // the navigation tabs
    img3dis = new Image();
    img3dis.src = "images/navdetlocaon.gif";
    img4dis = new Image();
    img4dis.src = "images/navdetdocson.gif";
    img5dis = new Image();
    img5dis.src = "images/navdetprocon.gif";
    img6dis = new Image();
    img6dis.src = "images/navdethospon.gif";

    }

// Function to "activate" tab images.
function imgAct(imgName) {
    if (br == "n3") {
    document["holder"].src = eval(imgName + "dis.src");
    }
}

// Function to "deactivate" tab images.
function imgInact(imgName) {
    if (br == "n3") {
    document["holder"].src = "images/navdetoff.gif";
    }
}


// ==============================================================================
// Function to open the glossary window
function PopupGlossary(url, name){
    if (br == "n3") {
    popupWin = window.open(url, name, "width=450,height=300,scrollbars=yes");
	}
}

// ==============================================================================
// Function to open a link window
function PopupLink(url, name){  
    if (br == "n3") {
    popupWin = window.open(url, name, "resizable=yes,status=yes,toolbar=yes,menubar=yes,location=yes,width=640,height=400,scrollbars=yes");
	}
}

// ==============================================================================
// procedures jump to box
function makeArray() {
var args = makeArray.arguments;
    for (var i = 0; i < args.length; i++) {
    this[i] = args[i];
    }
this.length = args.length;
}

// This array holds the descriptions and names of the jump pages.

var pages = new makeArray("More procedures...",
                          "Arthroscopy",
                          " - Knee",
                          " - Shoulder",
                          "The Knee",
                          " - Arthroscopy",
                          " - ACL",
                          " - ACL Protocol",
                          "The Hip",
                          "The Shoulder",
                          " - Arthroscopy",
			  "The Spine",
			  " - Spine Fusion",
			  " - Spinal Stabilization",
                          "Pediatric Info");

// This array hold the URLs of the jump pages.

var urls = new makeArray("",
                         "arthro.htm",
                         "kneearthro.htm",
                         "shoulderarthro.htm",
                         "knee.htm",
                         "kneearthro.htm",
                         "kneeACL.htm",
                         "kneeprotocol.htm",
                         "hip.htm",
                         "shoulder.htm",
                         "shoulderarthro.htm",
			 "spine.htm",
			 "spinefusion.htm",
			 "spinalstabilization.htm",
                         "ped_procs.htm");
                         
// This function determines which page is selected and jumps to it.

function goPage(form) {
i = form.menu.selectedIndex;            
    if (i != 0) {
    window.location.href = urls[i];  
    }
}
