

var menu1=new Array()

//  Chess Greats
menu1[0]='<a href="chessgreats.php" id="menu1_1" title="World Chess Champions"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">World Chess Champions </span></a>'
menu1[1]='<a href="womenchesschampions.php" id="menu1_2" title="Women World Chess Champions"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Women World Chess Champions</span></a>'
menu1[2]='<a href="juniorchesschampions.php" id="menu1_3" title="World Junior Chess Champions"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">World Junior Chess Champions</span></a>'
menu1[3]='<a href="contenderslist.php" id="menu1_4" title="Great Contenders"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Great Contenders</span></a>'
menu1[4]='<a href="gmlist.php" id="menu1_5" title="GM List"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">GM List</span></a>'
menu1[5]='<a href="imlist.php" id="menu1_6" title="IM List"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">IM List</span></a>'

//Contents for menu 5, and so on

//  WCC
var menu2=new Array()

menu2[0]='<a href="wcc_history.php" id="menu2_1" title="WCC History"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">WCC History</span></a>'
menu2[1]='<a href="wccrules.php" id="menu2_2" title="WCC Rules"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">WCC Rules</span></a>'
menu2[2]='<a href="chessstournament.php" id="menu2_3" title="WCC Tournaments"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">WCC Tournaments</span></a>'
menu2[3]='<a href="wcc_title.php" id="menu2_4" title="WCC Titles"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">WCC Titles</span></a>'
menu2[4]='<a href="eloratings.php" id="menu2_5" title="WCC Ratings"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">WCC Ratings</span></a>'
menu2[5]='<a href="wcc_finalgames.php" id="menu2_6" title="WCC Finals Games"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">WCC Finals Games</span></a>'


//  Chess Wisdom
var menu3=new Array()

menu3[0]='<a href="chesshistory.php" id="menu3_1" title="Chess History"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess History</span></a>'
menu3[1]='<a href="understanding_chess.php" id="menu3_2" title="Understanding the Chess Game"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Understanding the Chess Game</span></a>'
menu3[2]='<a href="chessopedia.php" id="menu3_3" title="Chess Dictionary"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess Dictionary</span></a>'
menu3[3]='<a href="booksandarticles.php" id="menu3_4" title="Chess Articles/Ebooks"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess Articles/Ebooks</span></a>'
//menu3[4]='<a href="video_album.php" title="Chess Videos">Chess Videos</span></a>'



//  Chess Techniques
var menu4=new Array()


menu4[0]='<a href="chessopenings.php" id="menu4_1" title="Openings"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess Openings</span></a>'
menu4[1]='<a href="middlegame.php" id="menu4_2" title="Middle Games / Chess Tactics"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Middle Games / Chess Tactics</span></a>'
menu4[2]='<a href="endgame.php" id="menu4_3" title="End Games"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">End Games</span></a>'
//menu4[3]='<a href="chesstips_tricks.php" title="WCC Tips">WCC Tips</span></a>'



var menu5=new Array()


menu5[0]='<a href="softwarechesshistory.php" id="menu5_1" title="Software Chess History"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Software Chess History</span></a>'
menu5[1]='<a href="wcc_computer.php" id="menu5_2" title="World Computer Chess Champions"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">World Computer Chess Champions</span></a>'
menu5[2]='<a href="kasparovVsdeepblue.php" id="menu5_3" title="Kasparov V/s Deep Blue"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Kasparov V/s Deep Blue</span></a>'



var menu6=new Array()

menu6[0]='<a href="rybka.php" id="menu6_1" title="World Champion - Rybka"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">World Champion - Rybka</span></a>'
menu6[1]='<a href="chessengine.php" id="menu6_2" title="Very Powerful - Shredder Chess"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Very Powerful - Shredder Chess  </span></a>'
menu6[2]='<a href="3d_chess.php" id="menu6_3" title="3D Beginner Chess"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">3D Beginner Chess </span></a>'
//menu6[3]='<a href="chessengine.php" title="Correspondence Chess"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Correspondence Chess</span></a>'
menu6[3]='<a href="game_main_menu.php" id="menu6_4" title="Live Chess"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Live Chess</span></a>'
menu6[4]='<a href="chess_puzzle.php" id="menu6_5" title="Chess Puzzles"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess Puzzles</span></a>'





//Chess Mentor
var menu7=new Array()

menu7[0]='<a href="chessschool.php" id="menu7_1"  title="Chess Schools"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess Schools</span></a>'
menu7[1]='<a href="chessstrainer.php" id="menu7_2" title="Chess Trainers"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess Trainers</span></a>'
menu7[2]='<a href="chessclub.php" id="menu7_3" title="Chess Trainers"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess Club</span></a>'
//menu7[3]='<a href="softwarechessmentor.php" title="Software Chess Mentor">Software Chess Mentor</span></a>'
menu7[3]='<a href="general_gmap.php" id="menu7_4" title="Location Maps"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Location Maps</span></a>'

var menu8=new Array()
menu8[0]='<a href="chessnews.php" id="menu8_1" title="Chess News"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess News</span></a>'


// Media Gallery
var menu9=new Array()
menu9[0]='<a href="picture_album.php" id="menu9_1" title="Picture Library"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Picture Library</span></a>'
menu9[1]='<a href="video_album.php" id="menu9_2" title="Video Library"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Video Library</span></a>'
//menu9[2]='<a href="#" title="Blogs">Blogs</span></a>'
//menu9[3]='<a href="#" title="Forums">Forums</span></a>'



// Chess Community
var menu10=new Array()

//menu10[0]='<a href="#" title="Online Gamers Hall of Fame">Online Gamers Hall of Fame</span></a>'
menu10[0]='<a href="view_registered_members.php" id="menu10_1" title="Members List"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Members List</span></a>'
menu10[1]='<a href="invite_friend.php"  id="menu10_2" title="Invite a Friend"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Invite a Friend</span></a>'
menu10[2]='<a href="groups.php"  id="menu10_3" title="Online Chess Groups "><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Online Chess Groups </span></a>'
//menu10[4]='<a href="clubs.php" title="Chess Clubs">Chess Chess Clubs</span></a>'
menu10[3]='<a href="chess_votes.php"  id="menu10_4" title="Chess Votes"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess Votes</span></a>'

//var menu11=new Array()



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


//menu12[0]='<a href="amazon_store.php?Cat=Assistant"  id="menu12_1" title="Store Assistant"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Store Assistant </span></a>'
menu12[0]='<a href="amazon_store.php?Cat=Books" id="menu12_2" title="Books"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Books</span></a>'
menu12[1]='<a href="amazon_store.php?Cat=Softwares" id="menu12_3" title="Softwares"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Softwares</span></a>'
menu12[2]='<a href="amazon_store.php?Cat=Computers" id="menu12_4" title="Chess Computers"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess Computers</span></a>'
menu12[3]='<a href="amazon_store.php?Cat=DVDs" id="menu12_5" title="CDs/DVDs/ Blue Ray"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">CDs/DVDs/ Blue Ray</span></a>'
menu12[4]='<a href="amazon_store.php?Cat=Equipments" id="menu12_6" title="Chess Equipments"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess Equipments</span></a>'
menu12[5]='<a href="amazon_store.php?Cat=Accessories" id="menu12_7" title="Chess Accessories"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Chess Accessories</span></a>'
menu12[6]='<a href="amazon_store.php?Cat=Kids" id="menu12_8" title="Kids Chess Corner"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Kids Chess Corner</span></a>'
menu12[7]='<a href="convekta_store.php" id="menu12_9" title="Kids Chess Corner"><span style="background:url(images/right_arrow.gif) no-repeat left;padding-left:14px;">Convekta Store</span></a>'




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

var menubgcolor='#000000'  //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

