function EmbedFlash(fileName, width, height, bgcolor, quality, align, salign, wmode, scale, play, flashvars, menu, base, devicefont, loop, retType) { var text; text = ""; if ((null == bgcolor)||(bgcolor == "")) { parambgcolor = ""; embedbgcolor = ""; } else { parambgcolor = ""; embedbgcolor = " bgcolor=\"" + bgcolor + "\""; } if ((null == quality)||(quality == "")) { quality = "high"; } if ((null == align)||(align == "")) { align = "middle"; } if ((null == salign)||(salign == "")) { paramsalign = ""; embedsalign = ""; } else { paramsalign = ""; embedsalign = " salign=\"" + salign + "\""; } if ((null == wmode)||(wmode == "")) { paramwmode = ""; embedwmode = ""; } else { paramwmode = ""; embedwmode = " wmode=\"" + wmode + "\""; } if ((null == scale)||(scale == "")) { paramscale = ""; embedscale = ""; } else { paramscale = ""; embedscale = " scale=\"" + scale + "\""; } if ((null == play)||(play == "")) { paramplay = ""; embedplay = ""; } else { paramplay = ""; embedplay = " play=\"" + play + "\""; } if ((null == flashvars)||(flashvars == "")) { paramflashvars = ""; embedflashvars = ""; } else { paramflashvars = ""; embedflashvars = " flashvars=\"" + flashvars + "\""; } if ((null == menu)||(menu == "")) { parammenu = ""; embedmenu = ""; } else { parammenu = ""; embedmenu = " menu=\"" + menu + "\""; } if ((null == base)||(base == "")) { parambase = ""; embedbase = ""; } else { parambase = ""; embedbase = " base=\"" + base + "\""; } if ((null == devicefont)||(devicefont == "")) { paramdevicefont = ""; embeddevicefont = ""; } else { paramdevicefont = ""; embeddevicefont = " devicefont=\"" + devicefont + "\""; } if ((null == loop)||(loop == "")) { paramloop = ""; embedloop = ""; } else { paramloop = ""; embedloop = " loop=\"" + loop + "\""; } text +=""; text +=""; text +="" text +="" text +=""; text += parambgcolor + paramsalign + paramwmode + paramscale + paramplay + paramflashvars + parammenu + parambase + paramdevicefont + paramloop; text += ""; if(retType=="STRING") { return text; } else { document.write(text); } } function EmbedWMP(url,width,height) { var text= ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; document.write(text); }