

function makeMenuHome()
{
//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties
oCMenu.pxBetween=15
//Using the cm_page object to place the menu ----
oCMenu.fromLeft=7
//oCMenu.fromTop=112
oCMenu.fromTop=85 
oCMenu.rows=1
oCMenu.menuPlacement=0

oCMenu.offlineRoot=""
oCMenu.onlineRoot=""
oCMenu.resizeCheck=1
oCMenu.wait=1000
oCMenu.fillImg="support/images/cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth=745
oCMenu.barHeight="22"
oCMenu.barClass="clBar"
oCMenu.barX=7
oCMenu.barY=85
//oCMenu.barY=108
oCMenu.barBorderX=0
oCMenu.barBorderY=1
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be specified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width="150"
oCMenu.level[0].height=18
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
*************************************/
oCMenu.makeMenu('top0','','&nbsp;Departments','','','','','support/images/departments.gif')





oCMenu.makeMenu('top1','','&nbsp;HR Forms','','','','','support/images/forms.gif')
  oCMenu.makeMenu('sub10','top1','Introduction','intro.html','_blank')
  oCMenu.makeMenu('sub11','top1','Learn to Swim (pdf)','forms/LetsLearntoSwimFlyer.pdf','_blank')
  oCMenu.makeMenu('sub12','top1','Learn to Swim (doc)','forms/LetsLearntoSwimFlyer.doc','_blank')



oCMenu.makeMenu('top2','','&nbsp;Links','','','','','support/images/links.gif')
  oCMenu.makeMenu('sub20','top2','USA Swimming','http://www.usaswimming.org','_blank')
  oCMenu.makeMenu('sub21','top2','Georgia Swimming','http://www.gaswim.org/','_blank')
  oCMenu.makeMenu('sub22','top2','ASCA','http://www.swimmingcoach.org/','_blank')
  oCMenu.makeMenu('sub23','top2','FINA','http://www.fina.org/','_blank')
  oCMenu.makeMenu('sub24','top2','Medem Medical Library','http://www.medem.com/MedLB/articleslb.cfm?sub_cat=405','_blank')
  oCMenu.makeMenu('sub25','top2','ILSF','http://www.ilsf.org/','_blank')
  oCMenu.makeMenu('sub26','top2','American Red Cross','http://www.redcross.org/services/hss/courses/','_blank')
  oCMenu.makeMenu('sub27','top2','US Swim School Assoc.','http://www.usswimschools.org/','_blank')
  oCMenu.makeMenu('sub28','top2','CDC - Swimming','http://www.cdc.gov/healthyswimming/','_blank')



//Leave this line - it constructs the menu
oCMenu.construct()
}







function makeMenu()
{
//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties
oCMenu.pxBetween=15
//Using the cm_page object to place the menu ----
oCMenu.fromLeft=7
//oCMenu.fromTop=112
oCMenu.fromTop=104 
oCMenu.rows=1
oCMenu.menuPlacement=0

oCMenu.offlineRoot=""
oCMenu.onlineRoot=""
oCMenu.resizeCheck=1
oCMenu.wait=1000
oCMenu.fillImg="support/images/cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth=745
oCMenu.barHeight="22"
oCMenu.barClass="clBar"
oCMenu.barX=7
oCMenu.barY=104
//oCMenu.barY=108
oCMenu.barBorderX=0
oCMenu.barBorderY=1
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be specified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width="150"
oCMenu.level[0].height=18
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
*************************************/
oCMenu.makeMenu('top0','','&nbsp;Departments','','','','','support/images/departments.gif')
  oCMenu.makeMenu('sub00','top0','HOME Page','index.html')
  oCMenu.makeMenu('sub01','top0','Individual Lessons','safety/Frame.htm')
  oCMenu.makeMenu('sub02','top0','Instructor Training','sales/Frame.htm')
  oCMenu.makeMenu('sub03','top0','Program Development','safety/Frame.htm')
  oCMenu.makeMenu('sub04','top0','CPR and Lifesaving','sales/Frame.htm')
  oCMenu.makeMenu('sub05','top0','Bookstore','sales/Frame.htm')



oCMenu.makeMenu('top1','','&nbsp;HR Forms','','','','','support/images/forms.gif')
  oCMenu.makeMenu('sub10','top1','Class Registration','http://www.google.com','_blank')
  oCMenu.makeMenu('sub11','top1','Private Lesson Request','http://www.dictionary.com','_blank')
  oCMenu.makeMenu('sub12','top1','Medical History','http://www.mapquest.com','_blank')
  oCMenu.makeMenu('sub13','top1','Policy and Release','http://www.imdb.com','_blank')
  oCMenu.makeMenu('sub14','top1','Lesson Schedule','http://www.fandango.com/my_box_office.asp?remotefilter=REGL&txtCityZip=30005','_blank')


oCMenu.makeMenu('top2','','&nbsp;Links','','','','','support/images/links.gif')
  oCMenu.makeMenu('sub20','top2','USA Swimming','http://www.usaswimming.org','_blank')
  oCMenu.makeMenu('sub21','top2','Georgia Swimming','http://www.gaswim.org/','_blank')
  oCMenu.makeMenu('sub22','top2','ASCA','http://www.swimmingcoach.org/','_blank')
  oCMenu.makeMenu('sub23','top2','FINA','http://www.fina.org/','_blank')
  oCMenu.makeMenu('sub24','top2','Medem Medical Library','http://www.medem.com/MedLB/articleslb.cfm?sub_cat=405','_blank')
  oCMenu.makeMenu('sub25','top2','ILSF','http://www.ilsf.org/','_blank')
  oCMenu.makeMenu('sub26','top2','American Red Cross','http://www.redcross.org/services/hss/courses/','_blank')
  oCMenu.makeMenu('sub27','top2','US Swim School Assoc.','http://www.usswimschools.org/','_blank')
  oCMenu.makeMenu('sub28','top2','CDC - Swimming','http://www.cdc.gov/healthyswimming/','_blank')



//Leave this line - it constructs the menu
oCMenu.construct()
}

function Cdate()           
{
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("<font size='1' color='333366' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</b></font>")
}

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_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_findObj(n, d) { //v4.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);
  if(!x && document.getElementById) x=document.getElementById(n); 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 MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function MM_setTextOfTextfield(objName,x,newText) { //v3.0
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}
