// JavaScript Document

var menu1=new Array()

menu1[0]='<a href="management.php" class="psub1">Message of MD</a>'

menu1[1]='<a href="ahyundai.php" class="psub1">History of Hyundai</a>'

menu1[2]='<a href="about.php" class="psub1">History of Koba Electronics</a>'

menu1[3]='<a href="sisterconcern.php" class="psub1">Sister Concern</a>'



var menu2=new Array()

menu2[0]='<a href="branch_list.php" class="psub1">Show Room</a>'

menu2[1]='<a href="dealerlist.php" class="psub1">Dealer List</a>'

menu2[2]='<a href="exclu_dealerlist.php" class="psub1">Exclusive Dealer List</a>'



var menu3=new Array()





var menu4=new Array()







var menu5=new Array()

menu5[0]='<a href="downloads/jumbo_icf.pdf" target="_blank" class="psub1"></a>'

menu5[1]='<a href="docs/insurance_terms.asp" class="psub1"></a>'

menu5[2]='<a href="downloads/index.asp" class="psub1"></a>'

menu5[3]='<a href="shopper_guide.asp" class="psub1"></a>'



var menu6=new Array()

menu6[0]='<A href="television.php" class="psub1">Television</A>'

menu6[1]='<A href="lcdtelevision.php" class="psub1">LCD Television</A>'

menu6[2]='<A href="refregarator.php" class="psub1">Refrigerator</A>'

menu6[3]='<A href="generator.php" class="psub1">Generator</A>'

menu6[4]='<A href="frezer.php" class="psub1">Freezers</A>'

menu6[5]='<A href="dvdplayer.php" class="psub1">DVD Player</A>'

menu6[6]='<A href="microwave.php" class="psub1">Microwave Oven</A>'

menu6[7]='<A href="airconditioners.php" class="psub1">Air Conditioner</A>'

menu6[8]='<A href="washing.php" class="psub1">Washing Machines </A>'

menu6[9]='<A href="others.php" class="psub1">Other Items </A>'







var menuwidth='165px' //default menu width

var menubgcolor='#4A7DE2'  //menu bgcolor

var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)

var hidemenu_onclick="yes" //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 windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18

dropmenuobj.contentmeasure=dropmenuobj.offsetHeight

if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)

edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight

}

return edgeoffset

}



function populatemenu(what){

if (ie4||ns6)

dropmenuobj.innerHTML=what.join("")

}





function dropdownmenu(obj, e, menucontents, menuwidth,mn){

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")+-30+"px"

dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+4+"px"

if (mn=="mn2")

	{

dropmenuobj.style.left=dropmenuobj.x+145+"px"

dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight-12+"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