/***********************************************
* 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 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://inauguration.mgnetwork.com/ine/special_sections/ap_video/">Video</a>'
menu2[1]='<a href="http://inauguration.mgnetwork.com/ine/news/consumer/">Consumer</a>'
menu2[2]='<a href="http://inauguration.mgnetwork.com/ine/business/">Business</a>'
menu2[3]='<a href="http://inauguration.mgnetwork.com/ine/news/local/education/">Education</a>'
menu2[4]='<a href="http://inauguration.mgnetwork.com/ine/news/i_team/">I-Team</a>'
menu2[5]='<a href="http://inauguration.mgnetwork.com/ine/news/news_links/">News Links</a>'
menu2[6]='<a href="http://www.obitservices.com/">Obituaries</a>'
menu2[7]='<a href="http://www.turnto10.com/jar/news/politics">Politics</a>'
menu2[8]='<a href="http://inauguration.mgnetwork.com/ine/news/traffic/">Traffic</a>'
menu2[9]='<a href="http://inauguration.mgnetwork.com/ine/news/web_extras/">Web Extras</a>'
menu2[10]='<a href="http://inauguration.mgnetwork.com/ine/news/10_at_10/">10 at 10</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="http://weather.turnto10.com/wx.php?config=&user=JAR&place=providence&state=ri&zipcode=02901&country=us&county=44007&zone=riz002&icao=KPVD&cwa=BOX&forecast=warnings">Severe Weather</a>'
menu3[1]='<a href="http://weather.turnto10.com/?user=JAR&forecast=pass&pass=general&w=vipir">Radar Loop</a>'
menu3[2]='<a href="http://weather.turnto10.com/wx.php?config=&user=JAR&place=providence&state=ri&zipcode=02901&country=us&county=44007&zone=riz002&icao=KPVD&cwa=BOX&forecast=pass&pass=general&w=cams">Weather Cams</a>'
menu3[3]='<a href="http://inauguration.mgnetwork.com/ine/weather/closings_and_delays/">Closings &amp; Delays</a>'
menu3[4]='<a href="http://weather.turnto10.com/wx.php?config=&user=JAR&forecast=tropsystems">Hurricanes</a>'
menu3[5]='<a href="http://inauguration.mgnetwork.com/ine/weather/weather_watchers/">Weather Watchers</a>' 


//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="http://inauguration.mgnetwork.com/ine/entertainment/horoscope/">Horoscopes</a>'
menu4[1]='<a href="http://inauguration.mgnetwork.com/ine/entertainment/lottery/">Lottery</a>'
menu4[2]='<a href="http://inauguration.mgnetwork.com/ine/gaming/">Games</a>'
menu4[3]='<a href="http://events.turnto10.com/movies">Movies</a>'
menu4[4]='<a href="http://inauguration.mgnetwork.com/ine/entertainment/television/">TV Listings</a>'
menu4[5]='<a href="http://inauguration.mgnetwork.com/ine/entertainment/rhode_bytes/">Rhode Bytes</a>'
menu4[6]='<a href="http://inauguration.mgnetwork.com/ine/entertainment/weekend_sunrise/">Weekend Sunrise</a>'
menu4[7]='<a href="http://events.turnto10.com/">Hey Do This!</a>'
menu4[8]='<a href="http://www.turnto10.com/jar/entertainment/holidays/">Celebrate Holidays</a>'

//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://events.turnto10.com">Calendar</a>'
menu5[1]='<a href="http://inauguration.mgnetwork.com/ine/news/tuesdays_child/">Tuesday\'s Child</a>'
menu5[2]='<a href="http://inauguration.mgnetwork.com/ine/news/pick_a_pet/">Pick a Pet</a>'
menu5[3]='<a href="http://inauguration.mgnetwork.com/ine/news/coffee_cup_salute/">Coffee Cup Salute</a>'
menu5[4]='<a href="http://inauguration.mgnetwork.com/ine/news/first_birthdays/">First Birthdays</a>'

//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="http://inauguration.mgnetwork.com/ine/sports/varsity_life/">Varsity Life</a>'
menu6[1]='<a href="http://customwire.ap.org/dynamic/fronts/FOOTBALL?SITE=WJARTV&SECTION=FOOTBALL">NFL</a>'
menu6[2]='<a href="http://customwire.ap.org/dynamic/fronts/BASEBALL?SITE=WJARTV&SECTION=BASEBALL">MLB</a>'
menu6[3]='<a href="http://customwire.ap.org/dynamic/fronts/BASKETBALL?SITE=WJARTV&SECTION=BASKETBALL">NBA</a>'
menu6[4]='<a href="http://customwire.ap.org/dynamic/fronts/HOCKEY?SITE=WJARTV&SECTION=HOCKEY">NHL</a>'
menu6[5]='<a href="http://customwire.ap.org/dynamic/fronts/COLLEGEBASKETBALL?SITE=WJARTV&SECTION=MCOLBASKETBALL">NCAA Basketball</a>'
menu6[6]='<a href="http://hosted.ap.org/dynamic/fronts/COLLEGEFOOTBALL_25?SITE=WJARTV&SECTION=COLFOOTBALL">NCAA Football</a>'
menu6[7]='<a href="http://customwire.ap.org/dynamic/fronts/GOLF?SITE=WJARTV&SECTION=GOLF">Golf</a>'
menu6[8]='<a href="http://hosted.ap.org/dynamic/fronts/NASCAR05?SITE=WJARTV&SECTION=HOME">Auto Racing</a>'

//Contents for menu 7
var menu7=new Array()
menu7[0]='<a href="http://inauguration.mgnetwork.com/ine/lifestyles/contests/">Contests</a>'
menu7[1]='<a href="http://inauguration.mgnetwork.com/ine/social_networking/blogs/">Blogs</a>'
menu7[2]='<a href="http://inauguration.mgnetwork.com/ine/lifestyles/food_cooking/">Cooking With Class</a>'
menu7[3]='<a href="http://inauguration.mgnetwork.com/ine/lifestyles/health_med_fit/">Health Check 10</a>'
menu7[4]='<a href="http://inauguration.mgnetwork.com/ine/lifestyles/home_garden/">Home &amp; Garden</a>'
menu7[5]='<a href="http://inauguration.mgnetwork.com/ine/lifestyles/wedding_101/">Wedding</a>'
menu7[6]='<a href="http://inauguration.mgnetwork.com/ine/classifieds/travel_center/">Travel</a>'
menu7[7]='<a href="http://www.diningquest.com/Turnto10/">Dining</a>'
menu7[8]='<a href="http://ww2.turnto10.com/global/Category.asp?c=128746">Healthfit Connections</a>'
menu7[9]='<a href="http://www.obitservices.com/">Obituaries</a>'


//Contents for menu 8
var menu8=new Array()
menu8[0]='<a href="http://inauguration.mgnetwork.com/ine/online/#rss">RSS</a>'
menu8[0]='<a href="http://inauguration.mgnetwork.com/ine/special_sections/">Database Center</a>'
menu8[1]='<a href="http://inauguration.mgnetwork.com/ine/online/#email">Email Alerts</a>'
menu8[2]='<a href="http://inauguration.mgnetwork.com/ine/online/#mobile">Mobile Text Alerts</a>'
menu8[3]='<a href="http://inauguration.mgnetwork.com/ine/online/site_information/live_chat/">Live Chat</a>'
menu8[4]='<a href="http://snap.turnto10.com/">Upload Photos</a>'
menu8[5]='<a href="http://inauguration.mgnetwork.com/ine/online/nbc10widget/">NBC 10 Widget</a>'

//Contents for menu 9
var menu9=new Array()
menu9[0]='<a href="http://inauguration.mgnetwork.com/ine/classifieds/auto_splash_page/">Autos</a>'
menu9[1]='<a href="http://turnto10.oodle.com/post/">Post an Ad</a>'

//Contents for menu 10
var menu10=new Array()
menu10[0]='<a href="http://www.dealtaker.com">DealTaker</a>'

//Contents for menu 11
var menu11=new Array()
menu11[0]='<a href="http://inauguration.mgnetwork.com/ine/online/site_information/contacts/">Contact Us</a>'
menu11[1]='<a href="http://inauguration.mgnetwork.com/ine/online/site_information/news_team/">News Team</a>'
menu11[2]='<a href="http://inauguration.mgnetwork.com/ine/online/site_information/advertising/">Advertising</a>'
menu11[3]='<a href="http://inauguration.mgnetwork.com/ine/online/site_information/connect_with_10/">Get On 10</a>'
menu11[4]='<a href="http://inauguration.mgnetwork.com/ine/online/site_information/video_sales/">Video Sales</a>'
menu11[5]='<a href="http://inauguration.mgnetwork.com/ine/online/site_information/dtv/">Digital TV</a>'
menu11[6]='<a href="http://inauguration.mgnetwork.com/ine/online/site_information/studio_rental/">Studio Rental</a>'
menu11[7]='<a href="http://inauguration.mgnetwork.com/ine/online/site_information/closed_captioning/">Closed Captioning</a>'
menu11[8]='<a href="http://inauguration.mgnetwork.com/ine/news/opinion/">Viewer\'s Voice</a>'
menu11[9]='<a href="http://inauguration.mgnetwork.com/ine/online/site_information/tour/">Virtual Tour</a>'


var menuwidth='165px' //default menu width
var menubgcolor='blue'  //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