  <!--
  //JavaScript Rotating Banners
  //copyright daxassist, 2000-2004 -- Modified by Ross Towbin, Above Technologies, 2008
  //specify interval between rotating banners (in mili seconds)
  var currentlink = 0;
  var currentimage = 0;
  
  var delay = 8500;				     //specify interval between rotating banners (in mili seconds)  (2000=2 seconds, 5000=5 seconds)

  if(document.images) {
    banpics = new Array();			// path to image
    banlinks = new Array();			// URL to go when user clicks on image
    banlinktargets = new Array();	//specify banner link target (true = new browser window; false = existing browser window)
    banwidth = new Array();		    //specify banner width
    var imgctr=0;

// To add a banner to an existing page
// 1. Add the following line somewhere in the <HEAD> section:
//        <script type="text/javascript" src="javascript/banner_ads.js" language="JavaScript"></script>
//
// 2. Add the following text within the <BODY> statement
//        onload="bannerchanger('banner');
//    An example of this would be:
//        <body onload="bannerchanger('banner');highlight();">
// 3. Add the following "graphic" (the banner) where you want the images to appear:
//        <a href="javascript:FollowLink();"><img id="banner" name="banner" src="images/banners/place_ad.jpg" border="0" width="255" height="70" align="middle" /></a>
//    The graphic in the above 'src=' section should match the first graphic (see banpics[imgctr] below)

// Images used in Banners
// If you want to open a new window when you click on the banner
//    then set "BanLinkTargets" to TRUE
//    if this is set to FALSE, then the new URL is displayed in the same browser window.
//    My two-cents -- If the banner is somewhere on this site, set this to FALSE
//    but if the banner takes you to a different site, set this to TRUE.
//
// You may need to set the Width of the Image (BanWidth)
// 

		                
// Banner
    banpics[imgctr] = new Image();    banpics[imgctr].src = "/home/images/banners/room_ad.jpg";
    banlinks[imgctr] = "/home/membership/room_rental.htm";
    banlinktargets[imgctr] = false;
    banwidth[imgctr] = 275;
	imgctr++;
	
// Banner
    banpics[imgctr] = new Image();    banpics[imgctr].src = "/home/images/banners/NAR_Banner_201007.gif";
    banlinks[imgctr] = "http://www.Houselogic.com";
    banlinktargets[imgctr] = true;
    banwidth[imgctr] = 468;
	imgctr++;
       
// Banner
    banpics[imgctr] = new Image();    banpics[imgctr].src = "/home/images/banners/jccvb.jpg";
    banlinks[imgctr] = "http://www.visitjacksonmi.com/thingstodo/calendarofevents.php";
    banlinktargets[imgctr] = true;
    banwidth[imgctr] = 468;
	imgctr++;
  }		

// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // 

// Do not touch the code below this point.


  function bannerchanger(from) {
    if(document.images) {
      document.images[from].src = banpics[currentimage].src;
      document.images[from].width = banwidth[currentimage];
      currentlink = currentimage;			
      if (currentimage < banpics.length-1) {
        currentimage = currentimage + 1;
      } else {
        currentimage = 0;
      }
      setTimeout("bannerchanger('" + from + "')", delay);
    }
  }

  function FollowLink() {
    if(document.images) {
      if (banlinktargets[currentlink] == true) {
        window.open(banlinks[currentlink], 'newwindow', '', false);			
      } else {
        document.location.href = banlinks[currentlink];
      }
    }
  }


//-->
