// JavaScript Document

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="director.html">Directors Desk</a>'
//menu1[1]='<a href="aim.html">Aims & Objectives</a>'
menu1[2]='<a href="mission.html">Mission/ Vision</a>'
menu1[3]='<a href="history.html">History</a>'
menu1[4]='<a href="organisation_chart.html">Organisation Chart</a>'
//menu1[5]='<a href="team.html">Our Team</a>'
menu1[6]='<a href="dir.html">Directory of Officers</a>'

var menu3=new Array()
menu3[0]='<a href="industry.html">Industrial Policies</a>'
menu3[1]='<a href="biotech.html">Biotech Policies</a>'

var menu4=new Array()
menu4[0]='<a href="red.html">Red Category</a>'
menu4[1]='<a href="orange.html">Orange Category</a>'
menu4[2]='<a href="orangespec.html">Orange Specified Category</a>'
menu4[3]='<a href="green.html">Green Category</a>'

var menu5=new Array()
//menu5[0]='<a href="new_schemes.html">New Schemes</a>'
menu5[1]='<a href="capital_cont.html">Capital Contribution</a>'
menu5[2]='<a href="share_capi.html">Share Capital Category</a>'
menu5[3]='<a href="pref_pur.html">Preferential Purchase Incentive</a>'
menu5[4]='<a href="int_sub.html">Interest subsidy</a>'
menu5[5]='<a href="certi.html">Certification & Patenting</a>'
menu5[6]='<a href="women.html">Women Interpreneurs</a>'
menu5[7]='<a href="employ.html">Employment Subsidy</a>'
menu5[8]='<a href="consumption.html">Consumption Of Local Raw Materials</a>'
menu5[9]='<a href="export.html">Export Market Development</a>'
menu5[10]='<a href="central.html">Central Sponsored Schemes </a>'
//menu5[11]='<a href="state.html">State Investment Subsidy Beneficiaries </a>'

var menu6=new Array()
menu6[0]='<a href="msmed.html">MSMED Act</a>'
menu6[1]='<a href="budget.html">Budget</a>'
menu6[2]='<a href="what_we_are_paid.html">Wages</a>'

var menu7=new Array()
menu7[0]='<a href="em1.html">E.M.Part I</a>'
menu7[1]='<a href="em2.html">E.M.Part II</a>'
menu7[2]='<a href="facilitation.html">Facilitation Counter</a>'

var menu8=new Array()
menu8[0]='<a href="press.html">Press Releases</a>'

//Contents for menu 2, and so on
/*var menu2=new Array()
menu1[0]='<a href="tuvem.html">Tuem</a>'
menu1[1]='<a href="colvale.html">Colvale</a>'
menu1[2]='<a href="tivim.html">Tivim</a>'
menu1[3]='<a href="bicholim.html">Bicholim</a>'
menu1[4]='<a href="mapusa.html">Mapusa</a>'
menu1[5]='<a href="honda.html">Honda</a>'
menu1[6]='<a href="pissurlem.html">Pissurlem</a>'
menu1[7]='<a href="pilerne.html">Pilerne</a>'
menu1[8]='<a href="corlim.html">Corlim</a>'
menu1[9]='<a href="kundaim.html">Kundaim</a>'
menu1[10]='<a href="madkaim.html">Madkaim</a>'
menu1[11]='<a href="sancoale.html">Sancoale/a>'
menu1[12]='<a href="verna.html">Verna</a>'
menu1[13]='<a href="shiroda.html">Shiroda</a>'
menu1[14]='<a href="margao.html">Margao</a>'
menu1[15]='<a href="kakoda.html">Kakoda</a>'
menu1[16]='<a href="sanguem.html">Sanguem/a>'
menu1[17]='<a href="cuncolim.html">Cuncolim</a>'
menu1[18]='<a href="canacona.html">Canacona</a>'*/
		
var menuwidth='200px' //default menu width
var menubgcolor='white'  //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-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="-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-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

