
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) { //v3.0
  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); return x;
}

function MM_swapImage() { //v3.0
  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 C3_openBrWindow(theURL,winName,features) {
  popupWindow = window.open(theURL,winName,features);
  popupWindow.focus()
}



// JavaScript Document
function chkBrowser(){
	this.ver=navigator.appVersion;
	this.agent=navigator.userAgent;
	this.dom=document.getElementById?1:0;
	this.opera5=this.agent.indexOf("Opera 5")>-1;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;this.ie=this.ie4||this.ie5||this.ie6;this.mac=this.agent.indexOf("Mac")>-1;
	this.ns6=(this.dom && parseInt(this.ver)>=5)?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.browser=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5);
	return this
}

//Broswer Setting
browser=new chkBrowser();
k=1; //menu style



//Array Definition
menuTitle=new Array('image.gif', 'Who We Serve', 'About Us');
menuContents = new Array();
menuCount = new Array (6, 4, 2)
menuElements = new Array(

    172, 57, 150, 25, //x, y, width, height
    "ent360.asp", "Enterprise360&#153;",
    "complete360_ODFirms.asp", "Leadership360&#153;",
    "completeROI.asp", "CompleteROI&#153;",
	"assessmentDelivery.asp", "Assessment Delivery Systems",
	"employeeCustFeedback.asp", "Employee and Customer Analyses",
	"dataAnalysis.asp", "Data Analysis and Consulting Services",

    321, 57, 170, 25, //x, y, width, height
    "leadershipDevelopment.asp", "Leadership and Development Consulting",
    "organizationalTraining.asp", "Organizational Training",
	"humanResources.asp", "Human Resources",
	"govAcad.asp", "Government, Academia, and Associations",

    472, 57, 129, 25, //x, y, width, height
    "aboutUs.asp", "About Us",
    "contactUs.asp", "Contact Us"
    );


whereAt=4;
for (i=0; i<menuTitle.length; i++) {
	tmpTxt="";
	for (j=0; j<menuCount[i]; j++) {
		tmpTxt=tmpTxt+"<a class='mi' href='"+menuElements[whereAt]+"'>"+menuElements[whereAt+1]+"</a>";	
		whereAt=whereAt+2;
	}
	whereAt=whereAt+4;
	menuContents[i]=tmpTxt;
	//document.write (menuContents[i]+"<br><br>");
}



	whereAt=0;
	for (i=0; i < menuTitle.length; i++){
		document.write("<div id='sb"+i+"' class='mn' style='position: absolute; top:"+menuElements[whereAt+1]+";left:"+menuElements[whereAt]+";width:"+menuElements[whereAt+2]+"' onmouseover='o["+i+"].showIt()' onmouseout='o["+i+"].hideIt()'>"+menuContents[i]+"</div>");
		whereAt=whereAt+4+(menuCount[i]*2);
	}




function lib_obj(obj,nest){
	nest=(!nest) ? "":'document.'+nest+'.';
	this.evnt=browser.dom? document.getElementById(obj):browser.ie4?document.all[obj]:browser.ns4?eval(nest+"document.layers." +obj):0;
	this.css=browser.dom||browser.ie4?this.evnt.style:this.evnt;
	this.ref=browser.dom||browser.ie4?document:this.css.document;
	this.x=parseInt(this.css.left)||this.css.pixelLeft||this.evnt.offsetLeft||0;
	this.y=parseInt(this.css.top)||this.css.pixelTop||this.evnt.offsetTop||0;
	return this
}


lib_obj.prototype.showIt = function(){this.css.visibility="visible"}
lib_obj.prototype.hideIt = function(){this.css.visibility="hidden"}


function libinit(){
	o=new Array();
	for (i=0; i < menuTitle.length; i++){
		o[i]=new lib_obj('sb'+i);
		o[i].hideIt()
	}
}

libinit()
