<!--

function mmLoadMenus() {
  if (window.mm_menu_0_0) return;
//Sub menu for calendars
window.mm_menu_1_0_1 = new Menu("Calendars",130,17,"Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#2924d6","#EBEBEB","left","middle",3,0,1000,-5,7,true,true,true,0,false,false);
  mm_menu_1_0_1.addMenuItem("General","location='/calendar.asp'");
  mm_menu_1_0_1.addMenuItem("EVCU","location='/calendar.asp?calType=EVCU'");
   mm_menu_1_0_1.hideOnMouseOut=true;
   mm_menu_1_0_1.bgColor='#8f8f8f';
   mm_menu_1_0_1.menuBorder=1;
   mm_menu_1_0_1.menuLiteBgColor='#8f8f8f';
   mm_menu_1_0_1.menuBorderBgColor='#000000';
//Root menu for myevc
   //mm_menu_0_0.addMenuItem("calendar","window.open('/calendar.asp', '_blank');");
window.mm_menu_0_0 = new Menu("root",105,17,"Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#2924d6","#EBEBEB","left","middle",3,0,200,-5,7,true,true,true,0,false,false);
//   mm_menu_0_0.addMenuItem("MyEVC","location='/pagedown.asp'");
   mm_menu_0_0.addMenuItem("EVC News","location='/news.asp'");
//   mm_menu_0_0.addMenuItem("Login","location='/pagedown.asp'");
   mm_menu_0_0.addMenuItem(mm_menu_1_0_1,"location='/calendar.asp'");
   mm_menu_0_0.addMenuItem("Give Online","location='/give.asp'");
   mm_menu_0_0.addMenuItem("evcWire","location='/evcWire.asp'");
   mm_menu_0_0.addMenuItem("Photo Album","location='/photoalbum.asp'");
   mm_menu_0_0.hideOnMouseOut=true;
   mm_menu_0_0.bgColor='#8f8f8f';
   mm_menu_0_0.menuBorder=1;
   mm_menu_0_0.menuLiteBgColor='#8f8f8f';
   mm_menu_0_0.menuBorderBgColor='#000000';
//Root menu for Resources
window.mm_menu_1_0 = new Menu("root",145,17,"Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#2924d6","#EBEBEB","left","middle",3,0,200,-5,7,true,true,true,0,false,false);
//  mm_menu_1_0.addMenuItem("Resources","location='/pagedown.asp'");
//  mm_menu_1_0.addMenuItem("Online Bible Study","location='/pagedown.asp'");
  mm_menu_1_0.addMenuItem("Sermon Audio","location='/sermons'");  
//  mm_menu_1_0.addMenuItem("Recommended Reading","location='/pagedown.asp'");
  mm_menu_1_0.addMenuItem("Offsite Resources","location='/links.asp'");
   mm_menu_1_0.hideOnMouseOut=true;
   mm_menu_1_0.bgColor='#8f8f8f';
   mm_menu_1_0.menuBorder=1;
   mm_menu_1_0.menuLiteBgColor='#8f8f8f';
   mm_menu_1_0.menuBorderBgColor='#000000';
//Root menu for MINISTRIES
window.mm_menu_2_0 = new Menu("root",130,17,"Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#2924d6","#EBEBEB","left","middle",3,0,200,-5,7,true,true,true,0,false,false);
  //mm_menu_2_0.addMenuItem("Ministries","location='/pagedown.asp'");
  //mm_menu_2_0.addMenuItem("Mercy Outreach","window.open('http://www.mercyoutreachdfw.com/', '_blank');");
  mm_menu_2_0.addMenuItem("Kaleo Outreach","location='/kaleooutreach.asp'");
  mm_menu_2_0.addMenuItem("EVCU","location='http://www.evcu.org'");
  mm_menu_2_0.addMenuItem("Youth","location='/access'");
  mm_menu_2_0.addMenuItem("Children's","location='/childrensministry.asp'");
  mm_menu_2_0.addMenuItem("Preschool","location='/evcpreschool.asp'");
  //mm_menu_2_0.addMenuItem("Men's Ministry","location='/mensministry.asp'");
  mm_menu_2_0.addMenuItem("Women's Ministry","location='/womensministry.asp'");
  mm_menu_2_0.addMenuItem("C.S. Karate","window.open('http://www.christiansoldierskarateonline.com/', '_blank');");
  mm_menu_2_0.addMenuItem("Life Groups","location='/lifegroups.asp'");
  mm_menu_2_0.addMenuItem("Worship","location='/worship'");
   mm_menu_2_0.hideOnMouseOut=true;
   mm_menu_2_0.bgColor='#8f8f8f';
   mm_menu_2_0.menuBorder=1;
   mm_menu_2_0.menuLiteBgColor='#8f8f8f';
   mm_menu_2_0.menuBorderBgColor='#000000';
//About Us
window.mm_menu_3_0 = new Menu("root",105,17,"Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#2924d6","#EBEBEB","left","middle",3,0,200,-5,7,true,true,true,0,false,false);
  mm_menu_3_0.addMenuItem("About Us","location='/aboutus.asp'");
  mm_menu_3_0.addMenuItem("What We Believe","location='/beliefs.asp'");
  mm_menu_3_0.addMenuItem("Leaders & Staff","location='/leadersandstaff.asp'");
   mm_menu_3_0.hideOnMouseOut=true;
   mm_menu_3_0.bgColor='#8f8f8f';
   mm_menu_3_0.menuBorder=1;
   mm_menu_3_0.menuLiteBgColor='#8f8f8f';
   mm_menu_3_0.menuBorderBgColor='#000000';
//Contact Us
window.mm_menu_5_0 = new Menu("root",105,17,"Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#2924d6","#EBEBEB","left","middle",3,0,200,-5,7,true,true,true,0,false,false);
  mm_menu_5_0.addMenuItem("Contact Us","location='/contactus.asp'");
  mm_menu_5_0.addMenuItem("Contact Form","location='/welcome.asp'");
   mm_menu_5_0.hideOnMouseOut=true;
   mm_menu_5_0.bgColor='#8f8f8f';
   mm_menu_5_0.menuBorder=1;
   mm_menu_5_0.menuLiteBgColor='#8f8f8f';
   mm_menu_5_0.menuBorderBgColor='#000000';

//set mm to max index value
mm_menu_2_0.writeMenus();
} // mmLoadMenus()

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.01
  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 && d.getElementById) x=d.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];}
}


var win= null;
function NewWindow(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=yes';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

var win= null;
function printCalendar(mypage,myname,w,h,scroll,menu){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
	  settings +='menubar='+menu+',';
      settings +='resizable=yes';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
function calPopup(lnk, winHeight, winWidth, winTop, winLeft) { 

windowSpecs = "fullscreen=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height=" + winHeight + ",width=" + winWidth + ",scrollbars=no,top=" + winTop + ",left=" + winLeft
window.open(lnk, "miniCalendar",windowSpecs) 

} 

//-->
<!--
//************************SOUND MANAGER START***********************************************************************************
var isIE = navigator.appName.toLowerCase().indexOf('internet explorer')+1;
var isMac = navigator.appVersion.toLowerCase().indexOf('mac')+1;

function SoundManager(container) {
  // DHTML-controlled sound via Flash
  var self = this;
  this.movies = []; // movie references
  this.container = container;
  this.unsupported = 0; // assumed to be supported
  this.defaultName = 'default'; // default movie
  
  this.FlashObject = function(url) {
    var me = this;
    this.o = null;
    this.loaded = false;
    this.isLoaded = function() {
      if (me.loaded) return true;
      if (!me.o) return false;
      me.loaded = ((typeof(me.o.readyState)!='undefined' && me.o.readyState == 4) || (typeof(me.o.PercentLoaded)!='undefined' && me.o.PercentLoaded() == 100));
      return me.loaded;
    }
    this.mC = document.createElement('div');
    this.mC.className = 'movieContainer';
    with (this.mC.style) {
      // "hide" flash movie
      position = 'absolute';
      left = '-256px';
      width = '64px';
      height = '64px';
    }
	//alert('url='+url);
    var html = ['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"><param name="movie" value="'+url+'"><param name="quality" value="high"></object>','<embed src="'+url+'" width="1" height="1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>'];
    //alert(html);
	if (navigator.appName.toLowerCase().indexOf('microsoft')+1) {
      this.mC.innerHTML = html[0];
      this.o = this.mC.getElementsByTagName('object')[0];
    } else {
      this.mC.innerHTML = html[1];
      this.o = this.mC.getElementsByTagName('embed')[0];
    }
    document.getElementsByTagName('div')[0].appendChild(this.mC);
  }

  this.addMovie = function(movieName,url) {
    self.movies[movieName] = new self.FlashObject(url);
  }

  this.checkMovie = function(movieName) {
    movieName = movieName||self.defaultName;
    if (!self.movies[movieName]) {
      self.errorHandler('checkMovie','Exception: Could not find movie',arguments);
      return false;
    } else {
      return (self.movies[movieName].isLoaded())?self.movies[movieName]:false;
    }
  }

  this.errorHandler = function(methodName,message,oArguments,e) {
    writeDebug('<div class="error">soundManager.'+methodName+'('+self.getArgs(oArguments)+'): '+message+(e?' ('+e.name+' - '+(e.message||e.description||'no description'):'')+'.'+(e?')':'')+'</div>');
  }

  this.play = function(soundID,loopCount,noDebug,movieName) {
    if (self.unsupported) return false;
    movie = self.checkMovie(movieName);
    if (!movie) return false;
    if (typeof(movie.o.TCallLabel)!='undefined') {
      try {
        self.setVariable(soundID,'loopCount',loopCount||1,movie);
        movie.o.TCallLabel('/'+soundID,'start');
        if (!noDebug) writeDebug('soundManager.play('+self.getArgs(arguments)+')');
      } catch(e) {
        self.errorHandler('play','Failed: Flash unsupported / undefined sound ID (check XML)',arguments,e);
      }
    }
  }

  this.stop = function(soundID,movieName) {
    if (self.unsupported) return false;
    movie = self.checkMovie(movieName);
    if (!movie) return false;
    try {
      movie.o.TCallLabel('/'+soundID,'stop');
      writeDebug('soundManager.stop('+self.getArgs(arguments)+')');
    } catch(e) {
      // Something blew up. Not supported?
      self.errorHandler('stop','Failed: Flash unsupported / undefined sound ID (check XML)',arguments,e);
    }
  }

  this.getArgs = function(params) {
    var x = params?params.length:0;
    if (!x) return '';
    var result = '';
    for (var i=0; i<x; i++) {
      result += (i&&i<x?', ':'')+(params[i].toString().toLowerCase().indexOf('object')+1?typeof(params[i]):params[i]);
    }
    return result
  }

  this.setVariable = function(soundID,property,value,oMovie) {
    // set Flash variables within a specific movie clip
    if (!oMovie) return false;
    try {
      oMovie.o.SetVariable('/'+soundID+':'+property,value);
      // writeDebug('soundManager.setVariable('+self.getArgs(arguments)+')');
    } catch(e) {
      // d'oh
      self.errorHandler('setVariable','Failed',arguments,e);
    }
  }

  this.setVariableExec = function(soundID,fromMethodName,oMovie) {
    try {
      oMovie.o.TCallLabel('/'+soundID,'setVariable');
    } catch(e) {
      self.errorHandler(fromMethodName||'undefined','Failed',arguments,e);
    }
  }

  this.callMethodExec = function(soundID,fromMethodName,oMovie) {
    try {
      oMovie.o.TCallLabel('/'+soundID,'callMethod');
    } catch(e) {
      // Something blew up. Not supported?
      self.errorHandler(fromMethodName||'undefined','Failed',arguments,e);
    }
  }

  this.callMethod = function(soundID,methodName,methodParam,movieName) {
    movie = self.checkMovie(movieName||self.defaultName);
    if (!movie) return false;
    self.setVariable(soundID,'jsProperty',methodName,movie);
    self.setVariable(soundID,'jsPropertyValue',methodParam,movie);
    self.callMethodExec(soundID,methodName,movie);
  }

  this.setPan = function(soundID,pan,movieName) {
    self.callMethod(soundID,'setPan',pan,movieName);
  }

  this.setVolume = function(soundID,volume,movieName) {
    self.callMethod(soundID,'setVolume',volume,movieName);
  }

  // constructor - create flash objects

  if (isIE && isMac) {
    this.unsupported = 1;
  }

  if (!this.unsupported) {
    this.addMovie(this.defaultName,'/assets/library/soundcontroller.swf');
    // this.addMovie('rc','rubber-chicken-audio.swf');
  }

}

function SoundManagerNull() {
  // Null object for unsupported case
  this.movies = []; // movie references
  this.container = null;
  this.unsupported = 1;
  this.FlashObject = function(url) {}
  this.addMovie = function(name,url) {}
  this.play = function(movieName,soundID) {
    return false;
  }
  this.defaultName = 'default';
}

function writeDebug(msg) {
  var o = document.getElementById('debugContainer');
  if (!o) return false;
  var d = document.createElement('div');
  d.innerHTML = msg;
  o.appendChild(d);
}

var soundManager = null;

function soundManagerInit() {
  soundManager = new SoundManager();
}
//-->
//************************SOUND MANAGER END***********************************************************************************
