function flash_ToObject(id) {
		if(document.layers){
			return (document.layers[id])?eval(document.layers[id]):null;
		}
		else if(document.all && !document.getElementById){
			return (eval("window."+id))?eval("window."+id):null;
		}
		else if(document.getElementById && document.body.style) {
			return (document.getElementById(id))?eval(document.getElementById(id)):null;
		}
	}
  
function flash_FlashWrite(miNTswf, miflashwidth, miflashheight, miNTwmode, miNTbgcolor){
	var ntswf = miNTswf; 
	var flashwidth = miflashwidth;
	var flashheight = miflashheight;
	var ntwmode = miNTwmode;
	var ntbgcolor = miNTbgcolor;
	
	ntcode = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id=flash_ad width='"+ flashwidth +"' height='"+ flashheight +"'>";
	ntcode +="<param name='movie' value='" + ntswf + "'>";
	ntcode +="<param name='quality' value='high'>";
	ntcode +="<param name='bgcolor' value='#" + ntbgcolor +"'>";
	ntcode +="<param name='wmode' value='"+ ntwmode +"'>";
	ntcode +="<param name='menu' value='false'>";
	ntcode +="<embed src='" + ntswf + "' quality='high' wmode='" + ntwmode + "' width='" + flashwidth + "' height='" + flashheight + "' bgcolor='#" + ntbgcolor +"' type='application/x-shockwave-flash' menu='false'></embed></object>";
  	document.write(ntcode);
}

function flash_FlashInnerHTML(htmlElementId,code){
  var x=flash_ToObject(htmlElementId);
  if(x){
    if(document.getElementById||document.all){
      x.innerHTML='';
      x.innerHTML=code;
      }
    else if(document.layers){
      x.document.open();
      x.document.write(code);
      x.document.close();
      }
    }
  }
