var cnnImageFader = function(FaderID)
{
  var _self = this;         //use _self to call priv. methods within the scope of a private method..not used here
  var id = FaderID;  
  var intervalSpeed = 2100;	
  function _fade(){
	//This line fades out the last image, removes the <a> tag that encloses the last image, and prepends the removed <a> tag back into #infoGraphicShell 
	jQuery(id+" a:last-child img:last-child").fadeOut(700,function(){ jQuery(this).parent().remove().prependTo("#infoGraphicShell");jQuery(this).show(); });
  }
  /*privileged method */
  this.initialize = function(){
	//This fades in the last image. When that's done, it sets display to "" from "none" for the rest of the images beneath the last one, and starts _fade
	jQuery(id+" a:last-child img:last-child").fadeIn(700,function(){ jQuery(id+" a img").show();setInterval(function(){_fade()},intervalSpeed); });
  };
  return this;
}
cnnImageFader.prototype = {
  /* public functions */
  init: function(){
    this.initialize();
  }
};
