<!--

// FILE NAME:  SITE_FUNCTIONS.JS
// AUTHORS:    Steven D. Winter
// PURPOSE:    THIS FILE HOLDS COMMON CODE USED BY MOST PAGES IN ALL SUREWEST SITES
// MODIFIED:   02-2003 - Steven D. Winter (SureWest Communications) - included condition for
//             detection of NS6 and application of different style sheet than
//             NS 4.x

/******************************************************************************/

// VERSION OF SITE BUILD/WEB ROOT CODE AND FILES
var sitebuild_ver="n/a";

/******************************************************************************/

//  BROWSER DETECTION

var NS  = false;
var NS6 = false;
var NS7 = false;
var IE  = false;
var PC  = false;
var MAC = false;

if(document.all) {
    IE = true;
} else {
    NS = true;
    if (parseInt(navigator.appVersion.substring(0,3)) > 4) {
        NS6 = true;
    }
}

if(navigator.platform.indexOf("Win32") != -1) {
    PC = true;
} else {
    MAC = true;
}

/******************************************************************************/

// INCLUDE THE APPROPRIATE STYLESHEET

    if (IE) {
        if (PC) {
            document.write('<LINK rel="stylesheet" type="text/css" href="/ref/css/main.css" title="style1">');
        } else {
            document.write('<LINK rel="stylesheet" type="text/css" href="/ref/css/main.css" title="style1">');}

    } else if (NS6) {
        if (PC) {
            document.write('<LINK rel="stylesheet" type="text/css" href="/ref/css/main.css" title="style1">');
        } else {
            document.write('<LINK rel="stylesheet" type="text/css" href="/ref/css/main.css" title="style1">');}
    } else {
        if (PC) {
            document.write('<LINK rel="stylesheet" type="text/css" href="/ref/css/main_plus.css" title="style1">');
        } else {
            document.write('<LINK rel="stylesheet" type="text/css" href="/ref/css/main_plus.css" title="style1">');}
    }
// break out of frame
if (self != top) { top.location.href = self.location.href } 
//-->