
function FindPosition(image_name){
    if(!document.images[image_name]){
        return null;
    }
    this.image_name = image_name;
    this.xPos = 500;
    this.yPos = 500;
    this.ref_image = document.images[image_name];
    this.getRealLeft = getRealLeft;
    this.getRealTop = getRealTop;
    this.getRealLeft();
    this.getRealTop();
}

function getRealLeft(move) {
   if(!move){
        move = 0;
    }
   if(document.layers){
     this.xPos = this.ref_image.x + move;    
     return this.xPos;
   }
	this.xPos = this.ref_image.offsetLeft;
	tempEl = this.ref_image.offsetParent;
  	while (tempEl != null) {
  		this.xPos += tempEl.offsetLeft;
  		tempEl = tempEl.offsetParent;
  	}
    this.xPos = this.xPos + move;
	return this.xPos;
}

function getRealTop(move) {
    if(!move){
        move = 0;
    }
    if(document.layers){
     this.yPos = this.ref_image.y + move; 
     return this.yPos
   }
	this.yPos = this.ref_image.offsetTop;
	tempEl = this.ref_image.offsetParent;
	while (tempEl != null) {
  		this.yPos += tempEl.offsetTop;
  		tempEl = tempEl.offsetParent;
  	}
    this.yPos = this.yPos + move;
	return this.yPos;
}

var dropmenu = [];
function showMenu(menu, menu_name){
switch(menu){
case "dep":
dropmenu["deposit"] = new FindPosition("deposit");
menu_name.m["dep"].b.moveIt(dropmenu["deposit"].xPos - 172,dropmenu["deposit"].yPos + 0);
break;
case "len":
dropmenu["lending"] = new FindPosition("lending");
menu_name.m["len"].b.moveIt(dropmenu["lending"].xPos - 172,dropmenu["lending"].yPos + 0);
break;
case "cm":
dropmenu["cashmanage"] = new FindPosition("cashmanage");
menu_name.m["cm"].b.moveIt(dropmenu["cashmanage"].xPos - 172,dropmenu["cashmanage"].yPos + 0);
break;
case "int":
dropmenu["intbanking"] = new FindPosition("intbanking");
menu_name.m["int"].b.moveIt(dropmenu["intbanking"].xPos - 172,dropmenu["intbanking"].yPos + 0);
break;
case "abo":
dropmenu["about"] = new FindPosition("about");
menu_name.m["abo"].b.moveIt(dropmenu["about"].xPos - 0 + 0,dropmenu["about"].yPos + 35);
break;
case "inv":
dropmenu["investors"] = new FindPosition("investors");
menu_name.m["inv"].b.moveIt(dropmenu["investors"].xPos - 0 + 0,dropmenu["investors"].yPos + 35);
break;
case "pri":
dropmenu["privacy"] = new FindPosition("privacy");
menu_name.m["pri"].b.moveIt(dropmenu["privacy"].xPos - 0 + 0,dropmenu["privacy"].yPos + 35);
break;
case "calc":
dropmenu["calculators"] = new FindPosition("calculators");
menu_name.m["calc"].b.moveIt(dropmenu["calculators"].xPos - 0 + 0,dropmenu["calculators"].yPos + 35);
break;
case "cont":
dropmenu["contact"] = new FindPosition("contact");
menu_name.m["cont"].b.moveIt(dropmenu["contact"].xPos - 81 + 0,dropmenu["contact"].yPos + 35);
break;
case "car":
dropmenu["career"] = new FindPosition("career");
menu_name.m["car"].b.moveIt(dropmenu["career"].xPos - 81 + 0,dropmenu["career"].yPos + 35);
break;
}
menu_name.showsub(menu);
}

 
//end of file

//end file
