// JavaScript Document
function start(){
document.getElementById("photos").src =images[i];
//Set the Opacity to 100%
obj = document.getElementById("photos");
setOpacity(obj, 100);
fadeIn("photos",100);

i++;
if (i>=images.length){
i = 0;
}
swapImage(i);
}

function setOpacity(obj, opacity) {
  opacity = (opacity == 100)?99.999:opacity;
   // Safari<1.2, Konqueror
  obj.style.KHTMLOpacity = opacity/100;
  
  // Older Mozilla and Firefox
  obj.style.MozOpacity = opacity/100;
  
  // Safari 1.2, newer Firefox and Mozilla, CSS3
  obj.style.opacity = opacity/100;
  
  // IE/Win
  obj.style.filter = 'alpha(opacity:'+opacity+')';
 
}
//
//The following was created by Paul Weber based on code by Richard Rutter
//
function fade(objId,opacity) {//v1.0
  if (document.getElementById) {
    obj = document.getElementById(objId);
      setOpacity(obj, opacity);
    }
  }

function fadeIn(objId,opacity) {
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity >= 0) {
      setOpacity(obj, opacity);
      opacity -= 10;
      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);
	} else {
	 timer = setTimeout("start();", 4000);
	}
  }
}
function swapImage(i){
document.getElementById("Image").style.backgroundImage = "url("+images[i]+")";
//document.getElementById("bottomimage").style.backgroundImage = "url(img/conv_thumb.jpg)";
}
function begin() {
	swapImage(i);
	 //Alter this to speed it up...
	 obj = document.getElementById("photos");
setOpacity(obj, 0);
	 timer = setTimeout("start();", 4000);
}
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 mmLoadMenus() {
  if (window.mm_menu_0614102605_0) return;
      window.mm_menu_0614102605_0 = new Menu("root",300,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#FFFFFF","#003366","#336699","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0614102605_0.addMenuItem("Counseling&nbsp;and&nbsp;Case&nbsp;Management","location='counseling.html'");
  mm_menu_0614102605_0.addMenuItem("Residential","location='residential.html'");
  mm_menu_0614102605_0.addMenuItem("Veterans&nbsp;Alternative&nbsp;to&nbsp;Incarceration&nbsp;Program","location='vatip.html'");
   mm_menu_0614102605_0.fontWeight="normal";
   //mm_menu_0614102605_0.fontStyle="italic";
   mm_menu_0614102605_0.hideOnMouseOut=true;
   mm_menu_0614102605_0.bgColor='#000066';
   mm_menu_0614102605_0.menuBorder=1;
   mm_menu_0614102605_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0614102605_0.menuBorderBgColor='#000033';
window.mm_menu_0614103042_0 = new Menu("root",268,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#FFFFFF","#003366","#336699","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0614103042_0.addMenuItem("Employment&nbsp;and&nbsp;Training","location='employment.html'");
  mm_menu_0614103042_0.addMenuItem("Veterans&nbsp;Community&nbsp;Technology&nbsp;Center","location='vctc.html'");
  mm_menu_0614103042_0.addMenuItem("Quartermaster&nbsp;Club","location='quartermaster.html'");
    mm_menu_0614103042_0.addMenuItem("Job&nbsp;Fairs&nbsp;and&nbsp;Stand&nbsp;Downs","location='jobfairs.html'");
   mm_menu_0614103042_0.fontWeight="normal";
   //mm_menu_0614103042_0.fontStyle="italic";
   mm_menu_0614103042_0.hideOnMouseOut=true;
   mm_menu_0614103042_0.bgColor='#000066';
   mm_menu_0614103042_0.menuBorder=1;
   mm_menu_0614103042_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0614103042_0.menuBorderBgColor='#000033';
  window.mm_menu_0614103253_0 = new Menu("root",221,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#FFFFFF","#003366","#336699","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
   mm_menu_0614103253_0.addMenuItem("The&nbsp;Campaign&nbsp;for&nbsp;Veterans" ,"location='campaign.html'");
  mm_menu_0614103253_0.addMenuItem("United&nbsp;Way","location='unitedway.html'");
  mm_menu_0614103253_0.addMenuItem("Living&nbsp;Legacy","location='livinglegacy.html'");
   mm_menu_0614103253_0.fontWeight="normal";
   //mm_menu_0614103253_0.fontStyle="italic";
   mm_menu_0614103253_0.hideOnMouseOut=true;
   mm_menu_0614103253_0.bgColor='#000066';
   mm_menu_0614103253_0.menuBorder=1;
   mm_menu_0614103253_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0614103253_0.menuBorderBgColor='#000033';
window.mm_menu_0614104134_0 = new Menu("root",183,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#FFFFFF","#003366","#336699","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0614104134_0.addMenuItem("Calendar&nbsp;of&nbsp;Events","location='events.html'");
  mm_menu_0614104134_0.addMenuItem("Volunteer&nbsp;Opportunities","location='volunteer.html'");
  mm_menu_0614104134_0.addMenuItem("Employment&nbsp;Opportunities","location='employmentopportunties.html'");
   mm_menu_0614104134_0.fontWeight="normal";
   //mm_menu_0614104134_0.fontStyle="italic";
   mm_menu_0614104134_0.hideOnMouseOut=true;
   mm_menu_0614104134_0.bgColor='#000066';
   mm_menu_0614104134_0.menuBorder=1;
   mm_menu_0614104134_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0614104134_0.menuBorderBgColor='#000033';

mm_menu_0614104134_0.writeMenus();
} // mmLoadMenus()