/***********************************************
* 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
***********************************************/

// ARTICLES MENU
var menuarticles=new Array()
menuarticles[0]='<a href="http://blog.worldvillage.com/arts/">Arts</a>'
menuarticles[1]='<a href="http://blog.worldvillage.com/business/">Business</a>'
menuarticles[2]='<a href="http://blog.worldvillage.com/computers/">Computers</a>'
menuarticles[3]='<a href="http://blog.worldvillage.com/family/">Family</a>'
menuarticles[4]='<a href="http://blog.worldvillage.com/games/">Games</a>'
menuarticles[5]='<a href="http://blog.worldvillage.com/health/">Health</a>'
menuarticles[6]='<a href="http://blog.worldvillage.com/home/">Home</a>'
menuarticles[7]='<a href="http://blog.worldvillage.com/recreation/">Recreation</a>'
menuarticles[8]='<a href="http://blog.worldvillage.com/science/">Science</a>'
menuarticles[9]='<a href="http://blog.worldvillage.com/society/">Society</a>'
menuarticles[10]='<a href="http://blog.worldvillage.com/sports/">Sports</a>'
menuarticles[11]='<a href="http://www.travelswithsheila.com">Travel</a>'


// REVIEWS MENU
var menureviews=new Array()
menureviews[0]='<a href="http://www.worldvillage.com/sitereviews/bald.html">Multimedia</a>'
menureviews[1]='<a href="http://www.worldvillage.com/sitereviews/believers.html">Believer\'s Weekly</a>'
menureviews[2]='<a href="http://www.worldvillage.com/wonderstation/reviews/cat/cat.htm">Children\'s</a>'
menureviews[3]='<a href="http://www.worldvillage.com/softwarereviews/educational.html">Educational</a>'
menureviews[4]='<a href="http://www.familyfirst.com/">Family Site of the Day</a>'
menureviews[5]='<a href="http://www.worldvillage.com/softwarereviews/games.html">Games</a>'
menureviews[6]='<a href="http://www.worldvillage.com/softwarereviews/internet.html">Internet</a>'
menureviews[7]='<a href="http://www.worldvillage.com/softwarereviews/multimedia.html">Multimedia</a>'
menureviews[8]='<a href="http://www.worldvillage.com/sitereviews/school.html">School House</a>'


// NEWS MENU 
var menunews=new Array()
menunews[0]='<a href="http://news.worldvillage.com/business_general.html" class="menu-link">Business: general</a>'
menunews[1]='<a href="http://news.worldvillage.com/business_media.html" class="menu-link">Business: media</a>'
menunews[2]='<a href="http://news.worldvillage.com/companies.html" class="menu-link">Companies</a>'
menunews[3]='<a href="http://news.worldvillage.com/entertainment.html" class="menu-link">Entertainment</a>'
menunews[4]='<a href="http://news.worldvillage.com/finance.html" class="menu-link">Finance</a>'
menunews[5]='<a href="http://news.worldvillage.com/industry.html" class="menu-link">Industry</a>'
menunews[6]='<a href="http://news.worldvillage.com/internet.html" class="menu-link">Internet</a>'
menunews[7]='<a href="http://news.worldvillage.com/lifestyle.html" class="menu-link">Lifestyle</a>'
menunews[8]='<a href="http://news.worldvillage.com/regional.html" class="menu-link">Regional</a>'
menunews[9]='<a href="http://news.worldvillage.com/science.html" class="menu-link">Science</a>'
menunews[10]='<a href="http://news.worldvillage.com/society.html" class="menu-link">Society</a>'
menunews[11]='<a href="http://news.worldvillage.com/sports.html" class="menu-link">Sports</a>'
menunews[12]='<a href="http://news.worldvillage.com/technology.html" class="menu-link">Technology</a>'
menunews[13]='<a href="http://news.worldvillage.com/top_stories.html" class="menu-link">Top stories</a>'
menunews[14]='<a href="http://news.worldvillage.com/us_regional.html" class="menu-link">US regional</a>'


// SHOPPING MENU
var menushopping=new Array()
menushopping[0]='<a href="http://www.dealofday.com">Coupon Codes</a>'
menushopping[1]='<a href="http://www.flowersfast.com/">Send Flowers</a>'
menushopping[2]='<a href="http://www.creditapplications.info/">Credit Cards</a>'
menushopping[3]='<a href="http://wireless.dealofday.com/">Wireless Store</a>'



// GAMES MENU
var menugames=new Array()
menugames[0]='<a href="http://www.wordsearchfun.com/">Word Search Maker</a>'
menugames[1]='<a href="http://www.theadsensegame.com/">The AdSense Game</a>'
menugames[2]='<a href="http://www.themapgame.com/">The Map Game</a>'
menugames[3]='<a href="http://www.worldvillage.com/games/index.html">WorldVillage Arcade</a>'
menugames[3]='<a href="http://www.sudokupuzzlesonline.com">Sudoku</a>'

// KIDZ MENU
var menukidz=new Array()
menukidz[0]='<a href="http://www.worldvillage.com/kidz/board/hoppers.htm">Clip Art</a>'
menukidz[1]='<a href="http://www.worldvillage.com/kidz/games/games.htm">Games</a>'
menukidz[2]='<a href="http://www.worldvillage.com/kidz/postcard.htm">Postcards</a>'
menukidz[3]='<a href="http://www.worldvillage.com/kidz/puz-main.htm">Puzzles</a>'
menukidz[4]='<a href="http://www.worldvillage.com/kidz/newsletr/newsletr.htm">News Letter</a>'


// COMMUNITY MENU
var menucommunity=new Array()
menucommunity[0]='<a href="http://my.worldvillage.com">My WorldVillage</a>'
menucommunity[1]='<a href="http://www.worldvillage.com/community/chat.html">Live Chat</a>'
menucommunity[2]='<a href="http://forum.dealofday.com/">Shopping Forum</a>'
menucommunity[3]='<a href="http://www.burpit.com">Tupperware Forums</a>'
menucommunity[4]='<a href="http://www.adsensechat.com">AdSense Chat</a>'


// MORE MENU
var menumore=new Array()
menumore[0]='<a href="http://www.worldvillage.com/justforfun/index.html">Just for Fun</a>'
menumore[0]='<a href="http://www.caption-this.com">Caption This!</a>'
menumore[0]='<a href="http://www.virtual-whassup.com">Greeting Cards</a>'
menumore[1]='<a href="http://www.freebitz.com">Free Stuff</a>'
menumore[2]='<a href="http://www.worldvillage.com/downloads/index.html">Downloads</a>'
menumore[3]='<a href="http://www.worldvillage.com/office/index.html">WorldVillage Office</a>'


///// DO NOT EDIT BELOW THIS POINT
///// DO NOT EDIT BELOW THIS POINT
///// DO NOT EDIT BELOW THIS POINT
///// DO NOT EDIT BELOW THIS POINT
///// DO NOT EDIT BELOW THIS POINT

var menuwidth='175px' //default menu width
var menubgcolor='#efffda'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenuonclick="no" //hide menu when user clicks within menu?



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=-500
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){
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")+"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 (hidemenuonclick=="yes")
document.onclick=hidemenu