var gContext = new Array();

function controlFactory(controlType, args) {


   if (args == undefined) {args = {}; }
   this.control;

   if (controlType == "rtLink") {
      this.control = new rtLink(controlType, args);
   } else if (controlType == "scrollNav") {
      this.control = new scrollNav(controlType, args); 
   } else if (controlType == "rtPhotoAlbum") {
      this.control = new rtPhotoAlbum(controlType, args); 
   } else {
      this.control = new error();
   }

   return this.control;

}
