browser = navigator.appName;
ie = "Microsoft Internet Explorer";
netscape = "Netscape";
os = navigator.platform;
mac = 'MacPPC'

if (browser == netscape && os != mac) {
	document.write('<link rel="stylesheet" type="text/css" href="http://expn.go.com/international.css" title="master">');

	}
else if (browser == ie && os != mac) {
	document.write('<link rel="stylesheet" type="text/css" href="http://expn.go.com/international.css" title="master">');

	}
else if (browser == netscape && os == mac) {
	document.write('<link rel="stylesheet" type="text/css" href="http://expn.go.com/international.css" title="master">');

	}
else if (browser == ie && os == mac) {
	document.write('<link rel="stylesheet" type="text/css" href="http://expn.go.com/international.css" title="master">');

	}

IE4 = (document.all) ? 1 : 0;
    NS4 = (document.layers) ? 1 : 0;
    ver4 = (IE4 || NS4) ? 1 : 0;

    if (ver4) {
        secondIm = "<img src=http://expn.starwave.com/6H.expn.go.com/i/sportnav.gif width=140 height=227 border=0  usemap=#navigation>";
        arPopups = new Array()
    }
    else { secondIm = "" }

    function setBeginEnd(which,from,to) {
        arPopups[which] = new Array();
        arPopups[which][0] = from;
        arPopups[which][1] = to;
    }

    if (ver4) {
        setBeginEnd(1,6,28);
        setBeginEnd(2,31,53);
        setBeginEnd(3,56,78);
        setBeginEnd(4,80,103);
        setBeginEnd(5,106,128);
        setBeginEnd(6,131,153);
        setBeginEnd(7,155,178);
		setBeginEnd(8,180,203);
		setBeginEnd(9,204,226);
    }

    clLeft = 0;
    clRight = 130;

    function mapOver(which,on) {
        if (!ver4) { return }
        if (IE4) { whichEspn = document.all.espnHot.style }
            else { whichEspn = document.espnMenu.document.espnHot };

        if (!on) { whichEspn.visibility = "hidden"; return }
		
        clTop = arPopups[which][0];
        clBot = arPopups[which][1];
		
	if (NS4) {
            whichEspn.clip.top = clTop;
            whichEspn.clip.bottom = clBot;
	}
	else {
            whichEspn.clip = "rect(" + clTop + " " + clRight + " " + clBot + " " + clLeft + ")";
	}

        whichEspn.visibility = "visible" 
    }

	

ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

browser = navigator.appName;
ie = "Microsoft Internet Explorer";
netscape = "Netscape";

tabsSched = new Array ("schedOne", "schedTwo");
tabsClub = new Array ("teamInfoOne", "teamInfoTwo", "teamInfoThree", "teamInfoFour");


function show(tab) {
        if (browser == netscape) {
                document.layers[tab].visibility = 'visible';
        }
    else if (browser == ie) {
                document.all[tab].style.visibility = 'visible';
    }
}

function hide(tab) {
        if (browser == netscape) {
                document.layers[tab].visibility = 'hidden';
        }
        else if (browser == ie) {
                document.all[tab].style.visibility = 'hidden';
        }
}

function display(tab, tabCookieSport) {
for (var i = 0; i < tabs.length; i++) {
if (tabs[i] == tab) {
show(tabs[i]);
show(datas[i]);
}
else {
hide(tabs[i]);
hide(datas[i]);
}
}
}

function donothing() {} 

function gotosite(site) {            
        if (site != "") {                    
                self.location=site; 
        }
}

function search() {
    if(document.seeklight.rq.selectedIndex == 0) {
        document.seeklight.action = "http://apps.espn.go.com/keyword/lookup";
    }
}

browser = navigator.appName;
ie = "Microsoft Internet Explorer";
netscape = "Netscape";

//Declaring variables for setting and manipulating navigation
var navActive   //Name of active navigation
var timerID     //Timer variable

//Creating a custom object called nav with the methods "name" and "menuExist"
function nav(name, menuExist) {
    this.name = name;
    this.menuExist = menuExist;
}

//Array of all navigation objects with variables "name" and "menuExist"
navItem = new Array()
navItem[0] = new nav('tv', 'yes');
navItem[1] = new nav('cont', 'yes');
navItem[2] = new nav('too', 'yes');
navItem[3] = new nav('ath', 'yes');
navItem[4] = new nav('comm', 'yes');
navItem[5] = new nav('vid', 'yes');


//Simple function to turn on a <DIV>
function showMenu(navInput) {
    if (browser == netscape) {
        document.layers['M' + navInput].visibility = 'visible';
    }
    else if (browser == ie) {
        document.all['M' + navInput].style.visibility = 'visible';
    }
}

//Simple function to turn off a <DIV>
function hideMenu(navInput) {
    if (browser == netscape) {
        document.layers['M' + navInput].visibility = 'hidden';
    }
    else if (browser == ie) {
        document.all['M' + navInput].style.visibility = 'hidden';
    }
}

//Simple function to turn on an image
function showNav(navInput) {
    if (browser == netscape) {
        document['V' + navInput].document[navInput].src = 'http://expn.starwave.com/6H.expn.go.com/i/tabs/' + navInput + '_ON.gif';
    }
    else if (browser == ie) {
        document.all[navInput].src = 'http://expn.starwave.com/6H.expn.go.com/i/tabs/' + navInput + '_ON.gif';
    }
}

//Simple function to turn off an image
function hideNav(navInput) {
    if (browser == netscape) {
        document['V' + navInput].document[navInput].src = 'http://expn.starwave.com/6H.expn.go.com/i/tabs/' + navInput + '.gif';
    }
    else if (browser == ie) {
        document.all[navInput].src = 'http://expn.starwave.com/6H.expn.go.com/i/tabs/' + navInput + '.gif';
    }
}

function activateMenu(navInput) {
    stopTimer()
    for (i = 0; i < navItem.length; i++) {
        if (navItem[i].name == navInput) {
            showNav(navItem[i].name);
            if (navItem[i].menuExist == 'yes') {
                showMenu(navItem[i].name);
            }
        }
        else {
            hideNav(navItem[i].name);
            if (navItem[i].menuExist == 'yes') {
                hideMenu(navItem[i].name);
            }
        }
    }
}

function setTimer(navInput) {
    for (i = 0; i < navItem.length; i++) {
        if (navItem[i].name == navInput && navItem[i].menuExist == 'yes') {
            navActive = navItem[i].name;
            timerID = setTimeout('hideNav(navActive),hideMenu(navActive)', 100);
        }
        else if (navItem[i].name == navInput) {
            navActive = navItem[i].name;
            timerID = setTimeout('hideNav(navActive)', 100);
        }
    }
}

function stopTimer() {
    clearTimeout(timerID);
}
