// JavaScript Document

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="class2.asp?id=small&anid=47&nid=252">Aeromarine</a>'
menu1[1]='<a href="class2.asp?id=small&anid=47&nid=253">Bentley</a>'
menu1[2]='<a href="class2.asp?id=small&anid=47&nid=281">Sea wolf</a>'
menu1[3]='<a href="class2.asp?id=small&anid=47&nid=256">Winderider</a>'
menu1[4]='<a href="class2.asp?id=small&anid=47&nid=254">Navitimer</a>'
menu1[5]='<a href="class2.asp?id=small&anid=47&nid=282">Others</a>'


//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="class2.asp?id=small&anid=46&nid=283">Tank</a>'
menu2[1]='<a href="class2.asp?id=small&anid=46&nid=246">Panthere</a>'
menu2[2]='<a href="class2.asp?id=small&anid=46&nid=247">Pasha</a>'
menu2[4]='<a href="class2.asp?id=small&anid=46&nid=248">Roadster</a>'
menu2[3]='<a href="class2.asp?id=small&anid=46&nid=249">Santos</a>'
menu2[4]='<a href="class2.asp?id=small&anid=46&nid=245">Others</a>'

//Contents for menu 3, and so on
var menu3=new Array()
menu3[0]='<a href="class2.asp?id=small&anid=40&nid=221">Constellation</a>'
menu3[1]='<a href="class2.asp?id=small&anid=40&nid=222">Seamaster</a>'
menu3[2]='<a href="class2.asp?id=small&anid=40&nid=224">Speedmaster</a>'
menu3[3]='<a href="class2.asp?id=small&anid=40&nid=223">De Ville</a>'
menu3[4]='<a href="class2.asp?id=small&anid=40&nid=220">Others</a>'


var menu4=new Array()
menu4[0]='<a href="class2.asp?id=small&anid=42&nid=288">Air king</a>'
menu4[1]='<a href="class2.asp?id=small&anid=42&nid=289">Chronometer</a>'
menu4[2]='<a href="class2.asp?id=small&anid=42&nid=228">Day-Date</a>'
menu4[3]='<a href="class2.asp?id=small&anid=42&nid=227">Date-Just</a>'
menu4[4]='<a href="class2.asp?id=small&anid=42&nid=225">Daytona</a>'
menu4[5]='<a href="class2.asp?id=small&anid=42&nid=230">Explorer</a>'
menu4[6]='<a href="class2.asp?id=small&anid=42&nid=229">GMT Master</a>'
menu4[7]='<a href="class2.asp?id=small&anid=42&nid=226">Submariner</a>'
menu4[8]='<a href="class2.asp?id=small&anid=42&nid=257">Yacht Master</a>'
menu4[9]='<a href="class2.asp?id=small&anid=42&nid=231">Cellini</a>'

var menu5=new Array()
menu5[0]='<a href="class2.asp?id=small&anid=44&nid=233">Carrear</a>'
menu5[1]='<a href="class2.asp?id=small&anid=44&nid=234">Monaco</a>'
menu5[2]='<a href="class2.asp?id=small&anid=44&nid=236">Formula 1</a>'
menu5[3]='<a href="class2.asp?id=small&anid=44&nid=232">Link</a>'
menu5[4]='<a href="class2.asp?id=small&anid=44&nid=235">Others</a>'

var menu6=new Array()
menu6[0]='<a href="class2.asp?id=small&anid=45&nid=238">Submersible</a>'
menu6[1]='<a href="class2.asp?id=small&anid=45&nid=244">Luminor Arktos</a>'
menu6[2]='<a href="class2.asp?id=small&anid=45&nid=287">Luminor Daylight</a>'
menu6[3]='<a href="class2.asp?id=small&anid=45&nid=240">Luminor GMT</a>'
menu6[4]='<a href="class2.asp?id=small&anid=45&nid=239">Luminor Marina</a>'
menu6[5]='<a href="class2.asp?id=small&anid=45&nid=291">Luminor Tantalium</a>'
menu6[6]='<a href="class2.asp?id=small&anid=45&nid=242">Radiomir</a>'
menu6[7]='<a href="class2.asp?id=small&anid=45&nid=243">Power Reserve</a>'
menu6[8]='<a href="class2.asp?id=small&anid=45&nid=290">8 DAYS</a>'
menu6[9]='<a href="class2.asp?id=small&anid=45&nid=292">Marina Militare</a>'
menu6[10]='<a href="class2.asp?id=small&anid=45&nid=293">Flyback</a>'
menu6[11]='<a href="class2.asp?id=small&anid=45&nid=294">Regatta</a>'
menu6[12]='<a href="class2.asp?id=small&anid=45&nid=295">Slytech</a>'
menu6[13]='<a href="class2.asp?id=small&anid=45&nid=311">Others</a>'

var menu7=new Array()
menu7[0]='<a href="class2.asp?id=small&anid=15&nid=134">Baume&Mercier</a>'
menu7[1]='<a href="class2.asp?id=small&anid=15&nid=136">A.Lange&Sohne</a>'
menu7[2]='<a href="class2.asp?id=small&anid=15&nid=309">Burberry</a>'
menu7[3]='<a href="class2.asp?id=small&anid=15&nid=135">Breguet</a>'
menu7[4]='<a href="class2.asp?id=small&anid=14&nid=123">Ck</a>'
menu7[5]='<a href="class2.asp?id=small&anid=15&nid=138">Concord</a>'
menu7[6]='<a href="class2.asp?id=small&anid=14&nid=169">Emporio Armani</a>'
menu7[7]='<a href="class2.asp?id=small&anid=15&nid=176">Franck Muller</a>'
menu7[8]='<a href="class2.asp?id=small&anid=15&nid=177">GP</a>'
menu7[9]='<a href="class2.asp?id=small&anid=14&nid=171">Hermes</a>'
menu7[10]='<a href="class2.asp?id=small&anid=15&nid=180">Longines</a>'
menu7[11]='<a href="class2.asp?id=small&anid=15&nid=140">Jacob</a>'
menu7[12]='<a href="class2.asp?id=small&anid=15&nid=181">Movado</a>'
menu7[13]='<a href="class2.asp?id=small&anid=15&nid=184">Oris</a>'
menu7[14]='<a href="class2.asp?id=small&anid=15&nid=276">Porsche</a>'
menu7[15]='<a href="class2.asp?id=small&anid=15&nid=192">Technomarine</a>'
menu7[16]='<a href="class2.asp?id=small&anid=15&nid=318">U-Boat</a>'
menu7[17]='<a href="class2.asp?id=small&anid=14&nid=174">Versace</a>'
menu7[18]='<a href="class2.asp?id=small&anid=15&nid=194">Zenith</a>'

		
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

/////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: 160px" 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
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-obj.offsetWidth < 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 menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
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")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"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)
}
