//Menu object creation
var winW = 630, winH = 460, adjuster=0

if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth;
  winH = window.innerHeight;
   }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
	adjuster=-10;
  winW = document.body.offsetWidth;
  winH = document.body.offsetHeight;
 }
}
//alert("width factor- "+((winW/2)+(32+adjuster)-160));

oCMenuTraining=new makeCM("oCMenuTraining") //Making the menu object. Argument: menuname
oCMenuTraining.frames = 0
//Menu properties   
oCMenuTraining.pxBetween=30
// this names this routine, and also uses the variable
Rname="Training";
// the following sets the threshold between larger and smaller screens and wheteher this uses and absolute value of not
threshold=515;
//the following is the adjustment factor (varies for each menu)
position_factor=59;
// the following is when the browser window is small (>368 px) and positions the menu absolutely, NOT in terms of the windo size
left_position=718;
// This next line positions the menu on the page

if (((winW/2)+(adjuster)-position_factor)>threshold) {
oCMenuTraining.fromLeft=(winW/2)+(adjuster)-position_factor;
//alert(Rname+" width factor- Large: "+((winW/2)+(adjuster)-position_factor));
}
else
{
oCMenuTraining.fromLeft=left_position;
//alert(Rname+" width factor- small: "+((winW/2)+(adjuster)-position_factor));
	}

oCMenuTraining.fromTop=42   
oCMenuTraining.rows=1 
oCMenuTraining.menuPlacement="left"
                                                             
//oCMenuTraining.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/" 
oCMenuTraining.onlineRoot=''//"http://SeatoftheSoul.com/" 
oCMenuTraining.resizeCheck=1 
oCMenuTraining.wait=100 
oCMenuTraining.fillImg="cm_fill.gif"
oCMenuTraining.zIndex=3

//Background bar properties
oCMenuTraining.useBar=0
oCMenuTraining.barWidth="100%"
oCMenuTraining.barHeight="menu" 
oCMenuTraining.barClass="clBar"
oCMenuTraining.barX=990 
oCMenuTraining.barY=0
oCMenuTraining.barBorderX=0
oCMenuTraining.barBorderY=0
oCMenuTraining.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenuTraining.level[0]=new cm_makeLevel() //Add this for each new level
oCMenuTraining.level[0].width=88
oCMenuTraining.level[0].height=22 
oCMenuTraining.level[0].regClass="clLevel0"
oCMenuTraining.level[0].overClass="clLevel0over"
oCMenuTraining.level[0].borderX=1
oCMenuTraining.level[0].borderY=1
oCMenuTraining.level[0].borderClass="clLevel0border"
oCMenuTraining.level[0].offsetX=-12
oCMenuTraining.level[0].offsetY=0
oCMenuTraining.level[0].rows=0
oCMenuTraining.level[0].arrow=0
oCMenuTraining.level[0].arrowWidth=0
oCMenuTraining.level[0].arrowHeight=0
oCMenuTraining.level[0].align="bottom"

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenuTraining.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenuTraining.level[1].width=oCMenuTraining.level[0].width+137
oCMenuTraining.level[1].height=22
oCMenuTraining.level[1].regClass="clLevel1"
oCMenuTraining.level[1].overClass="clLevel1over"
oCMenuTraining.level[1].borderX=1
oCMenuTraining.level[1].borderY=1
oCMenuTraining.level[1].align="right" 
oCMenuTraining.level[1].offsetX=-22//(oCMenuTraining.level[0].width-2)/2+20
oCMenuTraining.level[1].offsetY=0
oCMenuTraining.level[1].borderClass="clLevel1border"

//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenuTraining.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenuTraining.level[2].width=150
oCMenuTraining.level[2].height=20
oCMenuTraining.level[2].offsetX=0
oCMenuTraining.level[2].offsetY=0
oCMenuTraining.level[2].regClass="clLevel2"
oCMenuTraining.level[2].overClass="clLevel2over"
oCMenuTraining.level[2].borderClass="clLevel2border"
/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oCMenuTraining.makeMenu('top4','','&nbsp;','http://HigherSpeech.com/resources.asp')
	oCMenuTraining.makeMenu('sub36','top4','Master Communicators Workshops','http://HigherSpeech.com/workshops.asp')
		//oCMenuTraining.makeMenu('sub34','top4','Impact, Influence, & Income Seminar','http://HigherSpeech.com/Seminar')
	oCMenuTraining.makeMenu('sub35','top4','Personal Speaking Coaching','http://HigherSpeech.com/coaching.asp')
oCMenuTraining.makeMenu('sub33','top4','Study Materials','http://HigherSpeech.com/store.asp')
	//oCMenuTraining.makeMenu('sub31','top4','Speaker&rsquo;s Database','http://HigherSpeech.com/SDB/index.asp')
	//oCMenuTraining.makeMenu('sub30','top4','Free Speaking Tips','http://HigherSpeech.com/tips.asp')	
	//oCMenuTraining.makeMenu('sub34','top4','Speaking-Related Links','http://HigherSpeech.com/links.asp')
	//oCMenuTraining.makeMenu('sub37','top4','Tell a friend about HigherSpeech.com','http://HigherSpeech.com/tellafriend.asp')
	//	oCMenuTraining.makeMenu('sub38','top4','Toastmasters Page','http://HigherSpeech.com/Toastmasters/')
	//oCMenuTraining.makeMenu('sub35','top4','Online Speaking Course','course.asp')
	//oCMenuTraining.makeMenu('sub36','top4','Higher Speech Newsletter','newsletter.asp')
	//oCMenuTraining.makeMenu('sub37','top4','Member Information','members.asp')
                 
//Leave this line - it constructs the menu
oCMenuTraining.construct()		
                  
					   
					
