// DOM Drop Down Menus
// Version 1.1
// Sahab Yazdani (for Mars Scales Corporation)

function DropDownRelocator( id ) { // Relocates a tag to be underneath another tag
 var divID = "dd" + id;
 var aID = id;
 var tag;
 var xPos = 0;
 var yPos = 0;    
 
 tag = document.getElementById( aID );
 yPos+=tag.offsetHeight - 1;
 while ( tag!=null ) {
  xPos += tag.offsetLeft;
  yPos += tag.offsetTop;
  tag = tag.offsetParent;
 }
 tag = document.getElementById( divID );
 tag.style.left = xPos + "px";
 tag.style.top = yPos + "px";
 tag.style.display = "none";
}

function Show( id, show ) {
 var divID = "dd" + id;
 var tag = document.getElementById( divID );
 
 if ( show )
  tag.style.display = "block";
 else
  tag.style.display = "none";
}   

function DropDownALL() {
//Add lines similar to the one below as new drop down menus are added
   DropDownRelocator( "priceList" );
   DropDownRelocator( "order" );
}
