

var menupath
menupath='a'

var msaree=new Array()
msaree[0]='<a href="items.asp?cid=1&stype=DC" class="leftmenutext">Designer&rsquo;s Choice</a>'
msaree[1]='<a href="new_arrival.asp?cid=1" class="leftmenutext">New Arrival</a>'
msaree[2]='<a href="items.asp?cid=1&stype=ED" class="leftmenutext">Ready Stock</a>'
msaree[3]='<a href="items.asp?cid=1&stype=SL" class="leftmenutext">On Sale</a>'
msaree[4]='<a href="items.asp?cid=1" class="leftmenutext">All</a>'

var mcholi=new Array()
mcholi[0]='<a href="items.asp?cid=3&stype=DC" class="leftmenutext">Designer&rsquo;s Choice</a>'
mcholi[1]='<a href="items.asp?cid=3&stype=NA" class="leftmenutext">New Arrival</a>'
mcholi[2]='<a href="items.asp?cid=3&stype=ED" class="leftmenutext">Ready Stock</a>'
mcholi[3]='<a href="items.asp?cid=3&stype=SL" class="leftmenutext">On Sale</a>'
mcholi[4]='<a href="items.asp?cid=3" class="leftmenutext">All</a>'

var msalwar=new Array()
msalwar[0]='<a href="items.asp?cid=2&stype=DC" class="leftmenutext">Designer&rsquo;s Choice</a>'
msalwar[1]='<a href="items.asp?cid=2&stype=NA" class="leftmenutext">New Arrival</a>'
msalwar[2]='<a href="items.asp?cid=2&stype=ED" class="leftmenutext">Ready Stock</a>'
msalwar[3]='<a href="items.asp?cid=2&stype=SL" class="leftmenutext">On Sale</a>'
msalwar[4]='<a href="items.asp?cid=2" class="leftmenutext">All</a>'
var mindo=new Array()
mindo[0]='<a href="items.asp?cid=9" class="leftmenutext">Tunics</a>'
mindo[1]='<a href="items.asp?cid=11" class="leftmenutext">Shawl</a>'

var maccs=new Array()
maccs[0]='<a href="items.asp?cid=12" class="leftmenutext">Jewellery</a>'
maccs[1]='<a href="items.asp?cid=13" class="leftmenutext">Bag </a>'



var menum=new Array()


var menums=new Array()



var menumm=new Array()
menumm[0]='<a href="frmGenProduct.asp"><font color="#ffffff">Product Entry</font></a>'
menumm[1]='<a href="Pr_Modproduct.asp"><font color="#ffffff">Product Modify</font></a>'




//menums[5]='<a href="newuser.asp"><font color="#ffffff">New User Creation</font></a>'
//menums[5]='<a href="userselect.asp"><font color="#ffffff">User Password Modification</font></a>'




//Contents for menu 1
var menu1=new Array()

/**
menu1[6]='<a href="moneyreceive.asp" title="Accounts Receive"><font color="#ffffff">Accounts Receive</a>'
menu1[7]='<a href="pr_moneyreceive.asp" title="Accounts Receive Modification"><font color="#ffffff">Accounts Receive Modify</font></a>'
menu1[8]='<a href="paymentvoucher.asp" title="Accounts Payment"><font color="#ffffff">Accounts Payment</font></a>'
menu1[9]='<a href="pr_paymentvoucher.asp" title="Accounts Payment Modification"><font color="#ffffff">Accounts Payment Modify</font></a>'
**/
//Contents for menu 2, and so on
var menu2=new Array()



//menu2[6]='<a href="Pr_CashLedger.asp" title="Cash Ledger"><font color="#ffffff">Cash Ledger</font></a>'
var menuwidth='150px' //default menu width
var menubgcolor='#ffffff' //'#fdecda'  //'#e81e1e' //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; z-index:100; position:absolute ; width:'+menuwidth+';background-color:'+menubgcolor+';text-align:left; float:left;" 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){
//alert(menucontents)
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+7-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"

//document.write("<iframe  style=width:500;height=400;display:none></iframe")

//document.getElementById('div2').style["display"]="block" ;

var hobj=document.getElementById('div3')
 if(hobj == "[object]")
   {
   document.getElementById('div3').style["visibility"]="hidden"
   }
}

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"
//document.getElementById('div3').style["visibility"]="visible"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu






