/*START DROPDOWN MENU CREATE*/
//===============================================ABOUT US=============================================//
var AboutUs=new Array();
AboutUs[0]='<div class="menu" style="height:22px;"><a class=menu1 href="companyprofile.aspx">Company Profile</a></div>';
AboutUs[1]='<div class="navigation"></div>';
AboutUs[2]='<div class="menu" style="height:20px"><a class=menu1 href="aboutus.aspx">Message from director</a></div>';
AboutUs[3]='<div class="navigation"></div>';
AboutUs[4]='<div class="menu1" style="height:20px"><a class=menu1 href="philosophy.aspx">Corporate Philosophy</a></div>';
AboutUs[5]='<div class="navigation"></div>';
AboutUs[6]='<div class="menu1" style="height:22px"><a class=menu1 href="organisation.aspx">organisational Structure</a></div>';

//===============================================ABOUT US=============================================//
//===============================================VISION=============================================//
var PracticeArea=new Array();
PracticeArea[0]='<div class="menu1" style="height:20px"><a class=menu1  href="Corporate_Goal.aspx">Corporate Goal</a></div>';
PracticeArea[2]='<div class="navigation"></div>';
PracticeArea[3]='<div class="menu1" style="height:20px"><a class=menu1 href="Our_Commitment.aspx">Our Commitment</a></div>';
PracticeArea[2]='<div class="navigation"></div>';
//===============================================VISION=============================================//

//===============================================PRODUCT=============================================//
var ModelBased=new Array();
ModelBased[0]='<div class="menu1" style="height:20px"><a class=menu1 href="Product_Information.aspx">Products Information</a></div>';
ModelBased[1]='<div class="navigation"></div>';
ModelBased[2]='<div class="menu1" style="height:20px"><a class=menu1 href="Gallery.aspx">Gallery</a></div>';
ModelBased[3]='<div class="navigation"></div>';
ModelBased[4]='<div class="menu1" style="height:20px"><a class=menu1 href="drums.aspx">Knowledge of Drums</a></div>';
//===============================================PRODUCT=============================================//
//===============================================CLIENTS=============================================//
var Client=new Array();
Client[0]='<div class="menu1" style="height:20px"><a class=menu1 href="FootPrints.aspx">Footprints</a></div>';
Client[1]='<div class="navigation"></div>';
Client[2]='<div class="menu1" style="height:20px"><a class=menu1 href="Export_countries.aspx">Exporting Countries</a></div>';
Client[3]='<div class="navigation"></div>';
Client[4]='<div class="menu1" style="height:20px"><a class=menu1 href="Exhibition.aspx">Exhibition</a></div>';
Client[5]='<div class="navigation"></div>';
Client[6]='<div class="menu1" style="height:20px"><a class=menu1 href="membership.aspx">Membership</a></div>';
//===============================================CLIENTS=============================================//


//===============================================CONTACT US=============================================//
var Product=new Array();
Product[0]='<div class="menu1" style="height:20px"><a class=menu1 href="Location.aspx">Location </a></div>';
Product[1]='<div class="navigation"></div>';
Product[2]='<div class="menu1" style="height:20px"><a class=menu1 href="Address.aspx">Address</a></div>';

//===============================================CONTACT US=============================================//
 
/*END DROPDOWN MENU CREATE*/
function dropdownmenu(obj, e, menucontents, menuwidth,setting)
{

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"

/*START TOP ALIGN AND LEFT ALIGN*/

if(setting=="AboutUs")		
{
    if(screen.width==1280||screen.height==800)
         dropmenuobj.style.left="310px";
    
    if(screen.width==1024||screen.height==750)
        dropmenuobj.style.left="170px";
    
    if(screen.width==800   ||screen.height==600)
        dropmenuobj.style.left="100px";
}

if(setting=="PracticeArea")		
{
 if(screen.width==1280||screen.height==800)
         dropmenuobj.style.left="440px";
    
    if(screen.width==1024||screen.height==750)
        dropmenuobj.style.left="280px";
    
    if(screen.width==800   ||screen.height==600)
        dropmenuobj.style.left="150px";
}


if(setting=="Industries")		
{
if(screen.width==1280||screen.height==800)
         dropmenuobj.style.left="400px";
    
    if(screen.width==1024||screen.height==768)
        dropmenuobj.style.left="550px";
    
    if(screen.width==800   ||screen.height==600)
        dropmenuobj.style.left="150px";

}

if(setting=="Product")		
{
    if(screen.width==1280||screen.height==800)
         dropmenuobj.style.left="810px";
    
    if(screen.width==1024||screen.height==768)
        dropmenuobj.style.left="700px";
    
    if(screen.width==800   ||screen.height==600)
        dropmenuobj.style.left="0px";
}

if(setting=="ModelBased")		
{
if(screen.width==1280||screen.height==800)
         dropmenuobj.style.left="570px";
    
    if(screen.width==1024||screen.height==768)
        dropmenuobj.style.left="425px";
    
    if(screen.width==800||screen.height==600)
        dropmenuobj.style.left="0px";
}

if(setting=="Client")		
{
if(screen.width==1280||screen.height==800)
         dropmenuobj.style.left="700px";
    
    if(screen.width==1024||screen.height==768)
        dropmenuobj.style.left="550px";
    
    if(screen.width==800||screen.height==600)
        dropmenuobj.style.left="100px";

}

dropmenuobj.style.top="170px"
}

/*END TOP ALIGN AND LEFT ALIGN*/

return clickreturnvalue()
}

function delayhidemenu()
{
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

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 getposOffset(what, offsettype)
{
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="center")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}

return totaloffset;
}
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden";
}
}
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 dynamichide(e)
{
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
//===================Ending By Shailendra================================//

<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function MM_swapImage() { 
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];}
}

function clickreturnvalue()
{
if (ie4||ns6) return false
else return true
}
function populatemenu(what)
{
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}
function clearhidemenu()
{
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

/*DROP DOWN DIV DESIGN*/

var ie4=document.all
var ns6=document.getElementById&&!document.all
var menuwidth='400px' //default menu width
var menubgcolor='black'  //menu bgcolor..WhiteSmoke..Gainsboro

var disappeardelay='300'  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" 

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';POSITION: absolute;z-index:1;border:1px; border-color:white; border-style:solid;background-color:'+menubgcolor+';font-family:Arial;font-weight:normal; padding:0px; font-size:14px; cursor:pointer; filter: alpha(opacity=60); -moz-opacity:.50; background-color:#000000; position:absolute; top:0px;" onMouseover="clearhidemenu()" onMouseout="delayhidemenu()"></div>')


