function goLocation( thisFormSelect ){
  var thisSelection = thisFormSelect.options[thisFormSelect.selectedIndex].value;
  if (thisSelection != "") {
    location = thisSelection;
}
}
//Contents for menu 1
var menu1=new Array()
menu1[1]='<a href="http://kamu.publicbroadcasting.net/kamutelevision.html">TV Page</a>'
menu1[2]='<a href="http://kamu.publicbroadcasting.net/televisionschedule.html">TV Schedule</a>'
//menu1[3]='<a href="http://kamu.tamu.edu/schedule/schedule.php">TV Guide - Xtra/Campus</a>'
menu1[3]='<a href="http://kamu.publicbroadcasting.net/tvstreaming.html">Streaming TV</a>'
menu1[4]='<a href="http://kamu.publicbroadcasting.net/localshows.html">Local TV Shows</a>'
menu1[5]='<a href="http://kamu.publicbroadcasting.net/kamu-dt.html">HD \"Hi-Def\" TV</a>'
menu1[6]='<a href="http://kamu.publicbroadcasting.net/supportkamu.html">Support KAMU-TV</a>'
/*
menu1[5]='<a href="http://www.kamu.tamu.edu/showcase/showcase.php" target="blank">TV Showcase</a>'
*/


//Contents for menu 2

var menu2=new Array()
menu2[0]='<a href="http://kamu.publicbroadcasting.net/kamuradio.html">Radio Page</a>'
menu2[1]='<a href="http://kamu.publicbroadcasting.net/radiostreaming.html">Listen to KAMU Radio</a>'
menu2[2]='<a href="http://www.publicbroadcasting.net/kamu/guide.guidemain?t=2">FM and HD1 Schedule</a>'
menu2[3]='<a href="http://www.publicbroadcasting.net/kamuhd2/guide.guidemain?t=2">HD2 <i>TALK</i> Schedule</a>'
menu2[4]='<a href="http://www.publicbroadcasting.net/kamu/guide.guidemain?action=searchPlaylist&playlistID=0">Music Playlist</a>'
menu2[5]='<a href="http://kamu.tamu.edu/fmlocal/fmlocalshows.php">Local Radio Shows</a>'
//menu2[4]='<a href="http://kamu.publicbroadcasting.net/fm_listings.html">National Program List</a>'
menu2[6]='<a href="http://kamu.tamu.edu/fmlocal/fmlocalshows.php">Program Archives</a>'
menu2[7]='<a href="http://kamu.publicbroadcasting.net/fm_staff">Staff Photos</a>'
menu2[8]='<a href="http://kamu.publicbroadcasting.net/supportkamu.html">Support KAMU Radio</a>'


//Contents for menu 3, and so on

var menu3=new Array()
menu3[0]='<a href="http://kamu.publicbroadcasting.net/education.html">Education Page</a>'
menu3[1]='<a href="http://kamu.publicbroadcasting.net/educ_orgs.html">Resource Sites</a>'
menu3[2]='<a href="http://ttvn.tamu.edu" target="_blank">TTVN - Texas A&M Videoconferencing</a>'


//Contents for menu 4, and so on

var menu4=new Array()
menu4[0]='<a href="http://kamu.publicbroadcasting.net/supportkamu.html">Ways To Give</a>'
menu4[1]='<a href="http://secure.publicbroadcasting.net/kamu/pledge.pledgemain">Online Giving</a>'
menu4[2]='<a href="http://kamu.publicbroadcasting.net/underwritinginfo.html">Underwriting</a>'
menu4[3]='<a href="http://kamu.publicbroadcasting.net/supportkamu.html#supporters">KAMU Supporters</a>'
menu4[4]='<a href="http://kamu.publicbroadcasting.net/devstaff.html">Staff Photos</a>'

/* Replaced the 3 items below with "Outstanding Supporters"
menu4[3]='<a href="http://kamu.publicbroadcasting.net/bbb.html">Business Board</a>'
menu4[4]='<a href="http://kamu.publicbroadcasting.net/fmunderwriters.html">Radio Underwriters</a>'
menu4[5]='<a href="http://kamu.publicbroadcasting.net/tvunderwriters.html">TV Underwriters</a>'
*/


//Contents for menu 5, and so on
/*
var menu5=new Array()
menu5[0]='<a href="http://ttvn.tamu.edu" target="_blank">TTVN Home Page</a>'
menu5[1]='<a href="http://ttvn2.tamu.edu/home/?p=form" target="_blank">Scheduling</a>'
menu5[2]='<a href="http://ttvn2.tamu.edu/home/?p=contact" target="_blank">Contact TTVN Staff</a>'
*/

var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
src="http://www.pbs.org/modules/tvschedules/includes/multichannel.pbspopupscript.js"
