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

/*  poster_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_images : ["naturessource-01.png", "2010world-poster.jpg"],
    poster_links : ["http://www.natures-source.com", "http://wbffshows.com/events/2010-wbff-world-championship/"],
    // 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_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").fadeOut(0, function() { 
         
        // change the image 
        jQuery("#poster").attr({src: "http://wbffshows.com/wp-content/gallery/posters/" +  
          poster_object.poster_images[poster_object.index]}); 
		
        // change the link
        jQuery("#poster-link").attr({href: poster_object.poster_links[poster_object.index]}); 
		
        // fade the image back in 
        jQuery("#poster").fadeIn(0); 
         
       // increase the index 
       poster_object.inc_index(); 
      }); 
    } 
  }; 
 
  // swap the image ever 10 seconds 
  setInterval(poster_object.swap, 5000);  */
 
 
 
 
 
      // create a custom JavaScript object on the fly to handle the  banner rotation 

  ad_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 
    ad_images : ["eas-poster-07.jpg", "gnc-promo-10-may.jpg"], 
    ad_links : ["http://eas.com/", "http://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.ad_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("#ad").fadeOut(0, function() { 
         
        // change the image 
        jQuery("#ad").attr({src: "http://wbffshows.com/wp-content/gallery/posters/" +  
          ad_object.ad_images[ad_object.index]}); 
		
        // change the link
        jQuery("#ad-link").attr({href: ad_object.ad_links[ad_object.index]}); 
		
        // fade the image back in 
        jQuery("#ad").fadeIn(0); 
         
       // increase the index 
       ad_object.inc_index(); 
      }); 
    } 
  }; 
 
  // swap the image ever 10 seconds 
  setInterval(ad_object.swap, 5000); 
  