if ((browser.isIE55 || browser.isIE6x) && browser.isWin32) {
	var pngAlpha = true;
} else {
	var pngNormal = true;
}

function od_displayImage(strId, strPath, intWidth, intHeight, strClass, strAlt) {
	if (pngAlpha) {
		document.getElementById('curve').innerHTML = '<div style="height:'+intHeight+'px;width:'+intWidth+'px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+strPath+'.png\', sizingMethod=\'scale\')"	id="'+strId+'" class="'+strClass+'"></div>';
	} else if (pngNormal) {
		document.getElementById('curve').innerHTML = '<img src="'+strPath+'.png" width="'+intWidth+'" height="'+intHeight+'" name="'+strId+'" border="0" class="'+strClass+'" alt="'+strAlt+'" />';
	} else {
		//document.write('<img src="'+strPath+'.gif" width="'+intWidth+'" height="'+intHeight+'" name="'+strId+'" order="0" class="'+strClass+'" alt="'+strAlt+'" />');
	}
}

/**
 * IE6 PNG Fix
 *   Note: Including this script at the end of the html document
 *     (directly before </body>) may prevent the ugly flicker
 *   Usage:
 *     body(onload || ondomready) = PNG.fixAll(); 
 *     OR
 *     <img src="filename.png" onload="PNG.fix(this);" />
 */
var PNG = {
  imgs: [],
  // fix single image
  fix: function(img) {
    var _name = img.src.toUpperCase();
    var _id, _class, _title, _align, _cursor, _new;
    _id = ( img.id ) ? " id=\"" + img.id + "\"" : "";
    _class = ( img.className ) ? " class=\"" + img.className + "\"" : "";
    _title = ( img.title ) ? " title=\"" + img.title + "\"" : " title=\"" + img.alt + "\"";
    if( img.align!="" ) _align = ( img.align=="left" ) ? "left" : "right";
    else _align = "none";
    _cursor = ( img.parentNode.href ) ? "hand" : "normal";
    _new = "<span" + _id + _class + _title +
      " style=\"" + img.style.cssText + "width:" + img.width + ";height:" + img.height +
      ";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" +
      "(src='" + img.src + "', sizingMethod='scale');cursor:" + _cursor + ";float:" + 
      _align + ";display:inline-block;\"></span>";
    img.outerHTML = _new;
  },
  // fix all document images
  fixAll: function() {
    var _img;
    for(var i=0; i<document.images.length; i++) {
      _img = document.images[i];
      if( /^.+\.(png)/ig.test(_img.src) ) {
        this.imgs.push(_img);
        if( window.ActiveXObject && !window.XMLHttpRequest ) this.fix(_img);
      }
    }
  }
};