    var justTheTips = new Array();
    justTheTips[0] = 'Make informed decisions.  Gather as much information as possible during the buying and selling process.';
    justTheTips[1] = 'The three "P"s for The "Home Hunters" proven marketing plan: Presentation - Pricing - Promotion';
    justTheTips[2] = 'Surround yourself with the right people.  Employ the services of professional lawyer, mortgage broker, home inspector and real estate associate.';
    justTheTips[3] = 'Compromising in location when purchasing a property could prove to be a costly mistake!';
    justTheTips[4] = 'Understand the seasonal market trends.  Build a game plan to buy or sell a home that\'s favorable to your situation with those trends in mind.';
    justTheTips[5] = 'Research the important amenities in the districts you are interested in buying in!';
    justTheTips[6] = 'Be realistic and honest when setting your expectations for a new property.';
    justTheTips[7] = 'Declining markets can be opportunities for exchanging equities and increasing your potential for appreciation.';
    justTheTips[8] = 'You only have "one" chance to make a "first" impression.  Prepare your home so the first impression is a favorable, lasting one.';
    justTheTips[9] = 'Overpriced listings sell competitively priced listings!';
    justTheTips[10] = 'Be prepared and educated so you can move ahead when an opportunity comes your way.';
    justTheTips[11] = 'Selling your existing home before purchasing another puts you in a position of strength.';
    justTheTips[12] = 'Land is a commodity that cannot be reproduced.';
    justTheTips[13] = 'Paint can be worth $500 a gallon!!';
    
    var displayedTip;

    function getRandomTip()
    {
      var tipPosition = Math.floor(Math.random() * (justTheTips.length - 1));
      displayedTip = tipPosition;
      return justTheTips[tipPosition];
    }
    
    function displayNextTip()
    {
      displayedTip = displayedTip + 1;
      if ((displayedTip) >= justTheTips.length)
        displayedTip = 0;
        
      $("quickTipText").innerHTML = justTheTips[displayedTip];
    }
    
    function startupMainPage()
    {
      displayImages();
      $("quickTipText").innerHTML = getRandomTip();
    }
    
    function displayImages()
    {
      displayRandomImage.delay(0, "slot1", "/images/bannerPics/Slot1-", ".gif");
      displayRandomImage.delay(0.2, "slot2", "/images/bannerPics/Slot2-", ".gif");
      displayRandomImage.delay(0.4, "slot3", "/images/bannerPics/Slot3-", ".gif");
      displayRandomImage.delay(0.6, "slot4", "/images/bannerPics/Slot4-", ".gif");
      displayImages.delay(15);
    }
    
    function displayRandomImage(imageId, prefix, postfix)
    {
      var image = $(imageId);
      var newImageSrc = getNextImageSrc(prefix, postfix, image.src);
      fadeInNewImage(image, newImageSrc);
    }
    
    function getNextImageSrc(prefix, postfix, currentImageSrc)
    {
      var newImageSrc;
      do
      {
        newImageSrc = prefix + (Math.floor(Math.random()*4) + 1) + postfix;
      } while (currentImageSrc.endsWith(newImageSrc))
      
      return newImageSrc;
    }
    
    function fadeInNewImage(image, newImageSrc)
    {
       Effect.Fade(image.id, {duration: 0.5});
       window.setTimeout(function() {image.src = newImageSrc}, 600);
       window.setTimeout(function() {Effect.Appear(image.id, {duration: 0.5})}, 1200);
    }
    
    