/**
* Imitates the SWFObject interface but for images.
* This allows us to polymorphically use a static image in the place of flash. Yahoo!
*
* Copyright 2008 True Apparel Company
* author: thom goodsell 
*/
if(typeof tac == "undefined") {
   var tac = new Object(); 
   }
   
if(typeof tac.util == "undefined") {
   tac.util = new Object(); 
   }
   
if(typeof tac.IMGObjectUtil == "undefined") {
   tac.IMGObjectUtil = new Object(); 
   }
   
tac.IMGObject = function(filename, alt, width, height) {
   if(!document.getElementById) {
      return; 
      }
   this.params = new Object(); 
   this.variables = new Object(); 
   this.attributes = new Array(); 
   if(filename) {
      this.setAttribute("file", filename); 
      }
   if(alt) {
      this.setAttribute("alt", alt);
      }
   if(width) {
      this.setAttribute("width", width);
      }
   if(height) {
      this.setAttribute("height", height);
      }      
   }; 
   
tac.IMGObject.prototype = {
   setAttribute : function(_e, _f) {
      this.attributes[_e] = _f; 
      }, 
   
   getAttribute : function(_10) {
      return this.attributes[_10]; 
      },
   
   addParam : function(_101, _102) {
      // do nothing; this is a placeholder for swfobject "compatibility"
      },
   
   getIMGHTML : function() {
      var _19 = ""; 
      
      _19 += '<img src="'+this.getAttribute("file")+'" ';
      _19 += 'width="'+this.getAttribute("width")+'" ';
      _19 += 'height="'+this.getAttribute("height")+'" ';
      _19 += 'alt="'+this.getAttribute("alt")+'" ';
      _19 += 'title="'+this.getAttribute("alt")+'" ';
      _19 += '/><br />';
      
      return _19; 
      }, 
   
   write : function(idOrElement) {
         var n = (typeof idOrElement == "string") ? document.getElementById(idOrElement) : idOrElement; 
         n.innerHTML = this.getIMGHTML(); 
         return true; 
      }
   }; 

var IMGObject = tac.IMGObject; 