var menu1=new Array()


menu1[0]='<a href="../chessgrates.php" title="World Chess Champions">World Chess Champions </a>'
menu1[1]='<a href="../womenchesschampions.php" title="Women World Chess Champions">Women World Chess Champions</a>'
menu1[2]='<a href="../juniorchesschampions.php" title="World Junior Chess Champions">World Junior Chess Champions</a>'
menu1[3]='<a href="#" title="Great Contenders">Great Contenders</a>'
menu1[4]='<a href="../gmlist.php" title="GM List">GM List</a>'
menu1[5]='<a href="../imlist.php" title="IM List">IM List</a>'

//Contents for menu 5, and so on

var menu2=new Array()


menu2[0]='<a href="../wcc_history.php" title="WCC History">WCC History</a>'
menu2[1]='<a href="../wccrules.php" title="WCC Rules">WCC Rules</a>'
menu2[2]='<a href="../chessstournament.php"title="WCC Tournaments">WCC Tournaments</a>'
menu2[3]='<a href="../wcc_title.php" title="WCC Titles">WCC Titles</a>'
menu2[4]='<a href="../eloratings.php" title="WCC Ratings">WCC Ratings</a>'
menu2[5]='<a href="../wcc_finalgames.php" title="WCC Finals Games">WCC Finals Games</a>'


var menu3=new Array()


menu3[0]='<a href="../chesshistory.php" title="Chess History">Chess History</a>'
menu3[1]='<a href="../understanding_chess.php" title="Understanding the Chess Game">Understanding the Chess Game</a>'
menu3[2]='<a href="../chessopedia.php" title="Chess Dictionary">Chess Dictionary</a>'
menu3[3]='<a href="../booksandarticles.php" title="Chess Articles/Ebooks">Chess Articles/Ebooks</a>'
menu3[4]='<a href="#" title="Chess Videos">Chess Videos</a>'



var menu4=new Array()


menu4[0]='<a href="../chessopenings.php" title="Openings">Openings</a>'
menu4[1]='<a href="../middlegame.php" title="Middle Games / Chess Tactics">Middle Games / Chess Tactics</a>'
menu4[2]='<a href="../endgame.php" title="End Games">End Games</a>'
menu4[3]='<a href="../chesstips_tricks.php" title="WCC Tips">WCC Tips</a>'



var menu5=new Array()


menu5[0]='<a href="#" title="Software Chess History">Software Chess History</a>'
menu5[1]='<a href="#" title="World Computer Chess Champions">World Computer Chess Champions</a>'
menu5[2]='<a href="#" title="Kasparov V/s Deep Blue">Kasparov V/s Deep Blue</a>'



var menu6=new Array()

menu6[0]='<a href="#" title="Advanced Chess">Advanced Chess</a>'
menu6[1]='<a href="#" title="Intermediate Chess">Intermediate Chess</a>'
menu6[2]='<a href="#" title="Beginner\'s Chess">Beginner\'s Chess</a>'
menu6[3]='<a href="#" title="Correspondence Chess">Correspondence Chess</a>'
menu6[4]='<a href="#" title="Chess Puzzles">Chess Puzzles</a>'





var menu7=new Array()

menu7[0]='<a href="../chessschool.php" title="Chess Schools">Chess Schools</a>'
menu7[1]='<a href="../chessstrainer.php" title="Chess Trainers">Chess Trainers</a>'
menu7[2]='<a href="../softwarechessmentor.php" title="Software Chess Mentor">Software Chess Mentor</a>'
menu7[3]='<a href="#" title="Location Maps">Location Maps</a>'

//var menu8=new Array()


var menu9=new Array()
menu9[0]='<a href="#" title="Picture Library">Picture Library</a>'
menu9[1]='<a href="#" title="Video Library">Video Library</a>'
menu9[2]='<a href="#" title="Blogs">Blogs</a>'
menu9[3]='<a href="#" title="Forums">Forums</a>'

var menu10=new Array()


menu10[0]='<a href="#" title="Online Gamers Hall of Fame">Online Gamers Hall of Fame</a>'
menu10[1]='<a href="#" title="Members List">Members List</a>'
menu10[2]='<a href="#" title="Invite a Friend">Invite a Friend</a>'
menu10[3]='<a href="../groups.php" title="Online Chess Groups ">Online Chess Groups </a>'
menu10[4]='<a href="../clubs.php" title="Chess Clubs">Chess Clubs</a>'
menu10[5]='<a href="#" title="Chess Votes">Chess Votes</a>'

//var menu11=new Array()



var menu12=new Array()

menu12[0]='<a href="../amazon_store.php?k=&c=7" title="Store Assistant ">Store Assistant </a>'
menu12[1]='<a href="../amazon_store.php?c=1&x=Books" title="Books">Books</a>'
menu12[2]='<a href="../amazon_store.php?k=&c=3" title="Softwares">Softwares</a>'
menu12[3]='<a href="../amazon_store.php?k=&c=4" title="Chess Computers">Chess Computers</a>'
menu12[4]='<a href="../amazon_store.php?k=&c=2" title="CDs/DVDs/ Blue Ray">CDs/DVDs/ Blue Ray</a>'
menu12[5]='<a href="../amazon_store.php?k=&c=5" title="Chess Equipments">Chess Equipments</a>'
menu12[6]='<a href="../amazon_store.php?k=&c=6" title="Chess Accessories">Chess Accessories</a>'
menu12[7]='<a href="../amazon_store.php?k=&c=8" title="Kids Chess Corner">Kids Chess Corner</a>'



var menuwidth='100px' //default menu width

var menubgcolor='#D2DBDE'  //menu bgcolor

//var menubgcolor=''  //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-image:'+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-30

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 true

else return false

}



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




