<!--
/* vim: set tabstop=4 shiftwidth=4 syntax=javascript: */

function objectWriter (getID, obj_type, id, src, width, height, transparent)
{
 if (transparent == '' || typeof transparent == 'undefined') transparent = false;
 obj = [];
 switch (obj_type)
 {
  case "flash":
    obj[obj.length] = "<OBJECT ID='" + id + "' CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' CODEBASE='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' WIDTH='" + width + "' HEIGHT='" + height + "'>";
    obj[obj.length] = "<PARAM NAME='movie' VALUE='" + src + "'>";
    obj[obj.length] = "<PARAM NAME='menu' VALUE='false'>";
    if (transparent === true) obj[obj.length] = "<PARAM NAME='wmode' VALUE='transparent'>";
    obj[obj.length] = "<EMBED SRC='" + src + "' QUALITY='high' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' TYPE='application/x-shockwave-flash' WIDTH='" + width + "' HEIGHT='" + height + "'></EMBED>";
    obj[obj.length] = "</OBJECT>";
    obj = obj.join('\n');
  break;
 }

 if (getID != '' && typeof getID != 'undefined') getID.innerHTML=obj;
 else document.write(obj);
}//-->
