function writeObj(){
var str
str = ""
str = str + "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' "
str = str + "codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' "
str = str + "width='"+ w +"' height='"+ h +"' id='flash' align='middle'>"
str = str + "<param name='allowScriptAccess' value='sameDomain' />"
str = str + "<param name='movie' value='"+ url +"' />"
str = str + "<param name='quality' value='high' />"
str = str + "<param name='bgcolor' value='"+ bgc +"' />"
str = str + "<embed src='"+ url +"'  "
str = str + "quality='high' "
str = str + "bgcolor='"+ bgc +"' "
str = str + "width='"+ w +"' height='"+ h +"' "
str = str + "name='flash'" 
str = str + "align='middle' "
str = str + "allowScriptAccess='sameDomain' "
str = str + "type='application/x-shockwave-flash' "
str = str + "pluginspage='http://www.macromedia.com/go/getflashplayer' />"
str = str + "</object>"

document.write(str)
}

function writeObj_minisite(url,w,h,bgc,httpType,id){
var str
str = ""
str = str + "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' "
str = str + "codebase='" + httpType + "://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' "	// codesbase set to the Latest Flash version
str = str + "width='"+ w +"' height='"+ h +"' id='flash' align='middle'>"
str = str + "<param name='allowScriptAccess' value='always' />"
str = str + "<param name='movie' value='"+ url +"' />"
str = str + "<param name='quality' value='high' />"
str = str + "<param name='bgcolor' value='"+ bgc +"' />"
str = str + "<param name='wmode' value='window' />"																			// wmode value exists as transparent requested as window
str = str + "<param name='play' value='true' />"																			// Play value. Possible values: true, false. Specifies whether the movie begins playing immediately on loading in the browser. The default value is true if this attribute is omitted.
str = str + "<param name='loop' value='true' />"																			// Loop value. Possible values: true, false. Specifies whether the movie repeats indefinitely or stops when it reaches the last frame. The default value is true if this attribute is omitted.
str = str + "<param name='scale' value='noscale' />"																		// Loop value. Possible values: true, false. Specifies whether the movie repeats indefinitely or stops when it reaches the last frame. The default value is true if this attribute is omitted.
str = str + "<param name='menu' value='true' />"																			// Menu value. Possible values: true, false:
																															//								true - displays the full menu, allowing the user a variety of options to enhance or control playback. 
																															//								false - displays a menu that contains only the Settings option and the About Flash option.
str = str + "<embed src='"+ url +"'  "																						// SRC value. Specifies the location (URL) of the movie to be loaded.
str = str + "quality='high' "
str = str + "bgcolor='"+ bgc +"' "
str = str + "width='"+ w +"' height='"+ h +"' "
str = str + "name='flash'  wmode='window'"
str = str + "align='middle' "
str = str + "allowScriptAccess='always' "
str = str + "type='application/x-shockwave-flash' "
str = str + "pluginspage='http://www.macromedia.com/go/getflashplayer' />"
str = str + "</object>"

document.write(str)
}
