      // create a custom JavaScript object on the fly to handle the  banner rotation 

  poster_09wc_object = 
  { 
    // index tracks the current image that is being displayed,  
    // starts at 1 because image 0 is the default image (array index's start from 0) 
    index : 1, 
     
    // an array of images for the header 
    poster_09wc_images : ["eas-poster-06.jpg", "gnc-promo-10-march.jpg"], 
    poster_09wc_links : ["http://www.eascanada.com/", "http://www.gnc.ca/"],
    // function to increase the index value, and reset it if we are at the end of the array 
    inc_index : function() { 
      this.index++;  
       
      if (this.index == this.poster_09wc_images.length) { 
        this.index = 0; 
      } 
    }, 
     
    // getting function to return the current index 
    get_index : function() { return this.index; }, 
     
    // function  to fade out, swap the image, increase the index and fade in the image 
    swap : function() { 
      // first fade the image out 
      jQuery("#poster-09wc").fadeOut(0, function() { 
         
        // change the image 
        jQuery("#poster-09wc").attr({src: "http://wbffshows.com/wp-content/gallery/posters/" +  
          poster_09wc_object.poster_09wc_images[poster_09wc_object.index]}); 
		
        // change the link
        jQuery("#poster-09wc-link").attr({href: poster_09wc_object.poster_09wc_links[poster_09wc_object.index]}); 
		
        // fade the image back in 
        jQuery("#poster-09wc").fadeIn(0); 
         
       // increase the index 
       poster_09wc_object.inc_index(); 
      }); 
    } 
  }; 
 
  // swap the image ever 10 seconds 
  setInterval(poster_09wc_object.swap, 5000); 