//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="ceo.php" class="nav3">CEO Message</a>'
menu1[1]='<a href="coo.php" class="nav3">COO Message</a>'
menu1[2]='<a href="profile.php" class="nav3">Profile</a>'
menu1[3]='<a href="certificates.php" class="nav3">Certificates</a>'
menu1[4]='<a href="#" class="nav3">Factor View</a>'
menu1[5]='<a href="#" class="nav3">Manufacturing</a>'
menu1[6]='<a href="exibition.php" class="nav3">Exibitions</a>'
menu1[7]='<a href="future_goals.php" class="nav3">Future Goals</a>'
menu1[8]='<a href="organization_chart.php" class="nav3">Organization Chart</a>'
menu1[9]='<a href="production_flow_chart.php" class="nav3">Production Charts</a>'
menu1[10]='<a href="career.php" class="nav3">Career</a>'
menu1[11]='<a href="privacy_policy.php" class="nav3">Privacy Policy</a>'
menu1[12]='<a href="company_policy.php" class="nav3">Company Policy</a>'
menu1[13]='<a href="quality_policy.php" class="nav3">Quality Policy</a>'
menu1[14]='<a href="policies_emloyes.php" class="nav3">Policies on Employes</a>'
menu1[15]='<a href="hr_policies.php" class="nav3">H.R Policies</a>'

var menu2=new Array()
menu2[0]='<a href="balls_page.php" class="nav3">Balls</a>'
menu2[1]='<a href="gloves_page.php" class="nav3">Gloves</a>'
menu2[2]='<a href="shinguards_page.php" class="nav3">Shinguards</a>'
menu2[3]='<a href="#" class="nav3">Apparels</a>'
menu2[4]='<a href="#" class="nav3">Promotional Items</a>'

var menu3=new Array()
menu3[0]='<a href="rd.php" class="nav3">R & D Facilities</a>'
menu3[1]='<a href="balls_quality_test.php" class="nav3">Balls Quality Test</a>'
menu3[2]='<a href="balls_tech.php" class="nav3">Balls Tech</a>'
menu3[3]='<a href="gloves_tech.php" class="nav3">Gloves Tech</a>'
menu3[4]='<a href="shinguards_tech.php" class="nav3">Shinguards Tech</a>'
menu3[5]='<a href="apparel_tech.php" class="nav3">Apparels Tech</a>'

var menu4=new Array()
menu4[0]='<a href="wallpapers.php" class="nav3">Wallpapers</a>'

var menuwidth='130px' //default menu width  
var menubgcolor='#595553'  //menu bgcolor
var disappeardelay=350  //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-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>');	

function getposOffset(what, offsettype){
	var totaloffset=(offsettype=="right")? 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-18 : 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 (hidemenu_onclick=="yes")
			document.onclick=hidemenu

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

