/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//Contents for menu 1
var menu1=new Array()

//Contents for menu 2, and so on  NEWS
var menu2=new Array()
menu2[1]='<a href="http://www2.nbc4i.com/cmh/news/">Local</a>'
menu2[2]='<a href="http://hosted.ap.org/dynamic/fronts/OHIOLATEST?SITE=WCMHTV&SECTION=US">State</a>'
menu2[3]='<a href="http://hosted.ap.org/dynamic/fronts/US?SITE=WCMHTV&SECTION=NATIONAL">National</a>'
menu2[4]='<a href="http://hosted.ap.org/dynamic/fronts/WORLD?SITE=WCMHTV&SECTION=INTERNATIONAL">World</a>'
menu2[5]='<a href="http://hosted.ap.org/dynamic/fronts/BUSINESS?SITE=WCMHTV&SECTION=BUSINESS">Business News</a>'
menu2[6]='<a href="http://www2.nbc4i.com/cmh/business/markets/">Market Data</a>'
menu2[7]='<a href="http://www2.nbc4i.com/cmh/news/crime/">Crime</a>'
menu2[8]='<a href="http://hosted.ap.org/dynamic/fronts/STRANGE?SITE=WCMHTV&SECTION=STRANGE">Notable</a>'
menu2[9]='<a href="http://www2.nbc4i.com/cmh/news/politics/">Politics</a>'
menu2[10]='<a href="http://www2.nbc4i.com/cmh/news/investigates/">NBC 4 Investigates</a>'
menu2[11]='<a href="http://www.nbc4i.com/cmh/external_templates/spec_tech/?widgetClass=IDG&destination=1377">Technology</a>'
menu2[12]='<a href="http://www2.nbc4i.com/cmh/news/highschool">High School News</a>'
menu2[13]='<a href="http://www2.nbc4i.com/cmh/news/neighborhoods/">Neighborhood News</a>'


//Contents for menu 3  SPORTS
var menu3=new Array()
menu3[0]='<a href="http://www2.nbc4i.com/cmh/sports/">Local</a>'
menu3[1]='<a href="http://www2.nbc4i.com/cmh/sports/college/college_football/ohio_state_football/">Buckeye Nation</a>'
menu3[2]='<a href="http://www2.nbc4i.com/cmh/sports/high_school_football/">Football Friday Nite</a>'
menu3[3]='<a href="http://www2.nbc4i.com/cmh/sports/high_school_prep/">High School</a>'
menu3[4]='<a href="http://www2.nbc4i.com/cmh/sports/professional/">Professional</a>'
menu3[5]='<a href="http://www2.nbc4i.com/cmh/sports/college/">Collegiate</a>'
menu3[6]='<a href="http://www.wcmhblogs.com/sports/">Deep Thoughts Blog</a>'
menu3[7]='<a href="http://www.jjhuddle.com/nbc4i/index.php">The Score</a>'
menu3[8]='<a href="http://www2.nbc4i.com/cmh/sports/soccer/">Soccer Info</a>'

//Contents for menu 4  ENTERTAINMENT
var menu4=new Array()
menu4[0]='<a href="http://www2.nbc4i.com/cmh/entertainment/">News</a>'
menu4[1]='<a href="http://www2.nbc4i.com/cmh/entertainment/lottery/">Lottery</a>'
menu4[2]='<a href="http://www2.nbc4i.com/cmh/entertainment/horoscope/">Horoscope</a>'
menu4[3]='<a href="http://www2.nbc4i.com/cmh/entertainment/tv_listings/">TV Listings</a>'
menu4[4]='<a href="http://www2.nbc4i.com/cmh/gaming/">Games</a>'
menu4[5]='<a href="http://www2.nbc4i.com/cmh/entertainment/entertainment/">Celebrity News</a>'
menu4[6]='<a href="http://www2.nbc4i.com/cmh/entertainment/sudoku/">Sudoku</a>'
menu4[7]='<a href="http://www2.nbc4i.com/cmh/entertainment/box_office_movies/">Box Office Movies</a>'

//Contents for menu 5  LIFESTYLES
var menu5=new Array()
menu5[0]='<a href="http://www2.nbc4i.com/cmh/social_networking/blogs/">Blogs</a>'
menu5[1]='<a href="http://www2.nbc4i.com/cmh/lifestyles/home_garden/">Home &amp; Garden</a>'
menu5[2]='<a href="http://www2.nbc4i.com/cmh/lifestyles/health_med_fit/">Health</a>'
menu5[3]='<a href="http://www2.nbc4i.com/cmh/lifestyles/contests/">Contests</a>'
menu5[4]='<a href="http://ww2.wcmh.com/Global/category.asp?C=113077">4 Your Health</a>'
menu5[5]='<a href="http://www2.nbc4i.com/cmh/lifestyles/flights/">Flight Tracking</a>'
menu5[6]='<a href="http://www2.nbc4i.com/cmh/lifestyles/exercise/">Daily Exercise</a>'
menu5[7]='<a href="http://www2.nbc4i.com/cmh/lifestyles/recipes/">Cooking Recipes</a>'
menu5[8]='<a href="http://www2.nbc4i.com/cmh/lifestyles/health_med_fit/breasthealth/">Think Breast Health</a>'

//Contents for menu 6  WEATHER
var menu6=new Array()
menu6[0]='<a href="http://weather.nbc4i.com">Forecast</a>'
menu6[1]='<a href="http://www2.nbc4i.com/cmh/weather/school_closings/">Closings &amp; Delays</a>'
menu6[2]='<a href="http://www2.nbc4i.com/cmh/weather/radar/">Live Titan Radar</a>'
menu6[3]='<a href="http://weather.nbc4i.com/us/oh/columbus/warnings.html">Severe Weather</a>'
menu6[4]='<a href="http://www.wcmhblogs.com/weather/">Weather Blog</a>'
menu6[5]='<a href="http://www2.nbc4i.com/cmh/weather/skycam/">SkyCam</a>'
menu6[6]='<a href="http://www2.nbc4i.com/cmh/weather/interactive_radar/">My Live Titan</a>'

//Contents for menu 13  VIDEO
var menu13=new Array()
menu13[0]='<a href="http://www2.nbc4i.com/cmh/video/archive/News">News</a>'
menu13[1]='<a href="http://www2.nbc4i.com/cmh/video/archive/Sports">Sports</a>'
menu13[2]='<a href="http://www2.nbc4i.com/cmh/video/archive/Entertainment">Entertainment</a>'
menu13[3]='<a href="http://www2.nbc4i.com/cmh/video/archive/Business">Business</a>'
menu13[4]='<a href="http://www2.nbc4i.com/cmh/video/archive/Lifestyles">Lifestyles</a>'
menu13[5]='<a href="http://www2.nbc4i.com/cmh/video/archive/Weather">Weather</a>'
menu13[6]='<a href="http://www2.nbc4i.com/cmh/video/">All Video</a>'

//Contents for menu 7  TOOLS
var menu7=new Array()
menu7[0]='<a href="http://www2.nbc4i.com/cmh/special_sections/idata/">iData</a>'
menu7[1]='<a href="http://www2.nbc4i.com/cmh/online/#rss">RSS Feeds</a>'
menu7[2]='<a href="http://www2.nbc4i.com/cmh/online/#email">Email Alerts</a>'
menu7[3]='<a href="http://www2.nbc4i.com/cmh/online/#mobile">Mobile Text Alerts</a>'
menu7[4]='<a href="http://www2.nbc4i.com/cmh/news/traffic/">Traffic</a>'
menu7[5]='<a href="http://pix.nbc4i.com/">NBC 4 Pix: Upload Video & Photos</a>'
menu7[6]='<a href="http://www2.nbc4i.com/cmh/online/#wap">nbc4i Mobile Site</a>'
menu7[7]='<a href="http://www2.nbc4i.com/cmh/online/mpg/">MPG Analysis</a>'
menu7[8]='<a href="http://www2.nbc4i.com/cmh/weather/skycam/">SkyCam</a>'

//Contents for menu 8  NBC 4
var menu8=new Array()
menu8[0]='<a href="http://www2.nbc4i.com/cmh/online/site_information/contacts/">Contact Us</a>'
menu8[1]='<a href="http://www2.nbc4i.com/cmh/online/on_the_square/">On The Square</a>'
menu8[2]='<a href="http://www2.nbc4i.com/cmh/online/site_information/news_team/">News Team</a>'
menu8[3]='<a href="http://users.nbc4i.com/site_feedback_form/">Feedback</a>'
menu8[4]='<a href="http://www2.nbc4i.com/cmh/online/childrens_programming/">Children\'s Programs</a>'
menu8[5]='<a href="http://www2.nbc4i.com/cmh/online/dtv/">Digital TV</a>'
menu8[6]='<a href="http://www2.nbc4i.com/cmh/online/jobs_internships/">Work at NBC 4</a>'
menu8[7]='<a href="http://www2.nbc4i.com/cmh/lifestyles/contests/">Contests</a>'
menu8[8]='<a href="http://www2.nbc4i.com/cmh/online/weekend/">Weekends</a>'
menu8[9]='<a href="http://www.nbc4i.com/cmh/online/retro_television_network/">Retro TV</a>'

//Contents for menu 12  SOCIAL NETWORKING
var menu12=new Array()
menu12[0]='<a href="http://www2.nbc4i.com/cmh/online/nbc_4_on_twitter/">NBC 4 On Twitter</a>'
menu12[1]='<a href="http://www.facebook.com/pages/NBC-4/38342932750">NBC 4 On Facebook</a>'
menu12[2]='<a href="http://www2.nbc4i.com/cmh/social_networking/blogs/">Blogs</a>'

//Contents for menu 9  CLASSIFIEDS
var menu9=new Array()
menu9[0]='<a href="http://nbc4i.oodle.com/job/">Jobs</a>'
menu9[1]='<a href="http://nbc4i.oodle.com/vehicle/">Cars</a>'
menu9[2]='<a href="http://nbc4i.oodle.com/housing/sale/">Homes</a>'
menu9[3]='<a href="http://nbc4i.oodle.com/sale/pet/">Pets</a>'
menu9[4]='<a href="http://nbc4i.oodle.com/post/">Post a Free Ad</a>'


//Contents for menu 10  THINGS TO DO
var menu10=new Array()    
menu10[0]='<a href="http://events.nbc4i.com">Calendar</a>'
menu10[1]='<a href="http://events.nbc4i.com/movies">Movies</a>'
menu10[2]='<a href="http://events.nbc4i.com/venues">Nightlife</a>'
menu10[3]='<a href="http://events.nbc4i.com/restaurants">Dining</a>'
menu10[4]='<a href="http://events.nbc4i.com/events/new">Submit an Event</a>'
menu10[5]='<a href="http://www2.nbc4i.com/cmh/special_sections/firefighters_4_kids">NBC 4 Events</a>'

//Contents for menu 11  SHOPPING
var menu11=new Array()    
menu11[0]='<a href="http://www.dealtaker.com/">Deals and Coupons</a>'
menu11[1]='<a href="http://www.tkqlhce.com/click-3273660-10547303">NBC Universal Store</a>'


var menuwidth='165px' //default menu width
var menubgcolor='white'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////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:'+menuwidth+';background-color:'+menubgcolor+'" 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="-500px"
if (menuwidth!=""){
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 < 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 up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth, class_name){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
dropmenuobj.style.zIndex="6000"
dropmenuobj.setAttribute("class", class_name);
dropmenuobj.setAttribute("className", class_name);
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")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"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)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu