oM=new makeCM("oM"); 
oM.resizeCheck=0; 
oM.rows=1;  
oM.onlineRoot=""
oM.offlineRoot=""
oM.pxBetween=0; 
oM.fillImg=imgdir+"clearpix.gif"; 
oM.fromTop=0; 
oM.fromLeft=0; 
oM.wait=300; 
oM.zIndex=400;
oM.useBar=0; 
oM.barWidth="0"; 
oM.barHeight="menu"; 
oM.barX=0;
oM.barY="menu"; 
oM.barClass="clB";
oM.barBorderX=0; 
oM.barBorderY=0;
db='&nbsp;';

//oM.level[0]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
oM.level[0]=new cm_makeLevel(0,0,"bordercolor","bordercolor",0,0,"clB",0,"bottom",0,0,0,0,0);
oM.level[0].filter="PROGID:DXImageTransform.Microsoft.Alpha(opacity=100, finishopacity=100, style=1)";
oM.level[1]=new cm_makeLevel(300,20,"item_on","item_off",1,1,"bordercolor",0,"right",0,0,templateimages+"dhtml-arrow.gif",8,9);



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;
/* original
	this.xPos += (this.ref_image.width - this.ref_image.width / 5);
*/
	this.xPos += this.ref_image.width; // customized for this FI
	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;
    this.yPos += (this.ref_image.height / 3);
/* original
    this.yPos += this.ref_image.height;
*/
	return this.yPos;
}

var dropmenu1 = new  FindPosition("pn");
var dropmenu2 = new  FindPosition("per");
var dropmenu3 = new  FindPosition("bs");
var dropmenu4 = new  FindPosition("mg");
var dropmenu5 = new  FindPosition("ln");
var dropmenu6 = new  FindPosition("ca");
var dropmenu7 = new  FindPosition("rt");
var dropmenu8 = new  FindPosition("hm");
var dropmenu9 = new  FindPosition("ab");
var dropmenu10 = new  FindPosition("crs");
var dropmenu11 = new  FindPosition("loc");
var dropmenu12 = new  FindPosition("cs");

function showMenu(menu){
	switch(menu){
		case "pn":
		oM.m["pn"].b.moveIt(dropmenu1.xPos - 169,dropmenu1.yPos + 15);
		break;
		case "per":
		oM.m["per"].b.moveIt(dropmenu2.xPos - 125,dropmenu2.yPos + 15);
		break;
		case "bs":
		oM.m["bs"].b.moveIt(dropmenu3.xPos - 125,dropmenu3.yPos + 15);
		break;
		case "mg":
		oM.m["mg"].b.moveIt(dropmenu4.xPos - 115,dropmenu4.yPos + 15);
		break;
		case "ln":
		oM.m["ln"].b.moveIt(dropmenu5.xPos - 85,dropmenu5.yPos + 15);
		break;
		case "ca":
		oM.m["ca"].b.moveIt(dropmenu6.xPos - 80,dropmenu6.yPos + 15);
		break;
		case "rt":
		oM.m["rt"].b.moveIt(dropmenu7.xPos - 45,dropmenu7.yPos + 15);
		break;
		case "hm":
		oM.m["hm"].b.moveIt(dropmenu8.xPos - 45,dropmenu8.yPos + 15);
		break;
		case "ab":
		oM.m["ab"].b.moveIt(dropmenu9.xPos-58,dropmenu9.yPos+12);
		break;
		case "crs":
		oM.m["crs"].b.moveIt(dropmenu10.xPos-50,dropmenu10.yPos+12);
		break;
		case "loc":
		oM.m["loc"].b.moveIt(dropmenu11.xPos-85,dropmenu11.yPos+12);
		break;
		case "cs":
		oM.m["cs"].b.moveIt(dropmenu12.xPos-85,dropmenu11.yPos+12);
		break;
	} 
	oM.showsub(menu);
	
}



//end of file
