	function displayAsset(asset,play,w,h,v,name){
		var playMovie = true
		if (play!="" && play!=null) playMovie = play
		ext = url.substring(url.length-3,url.length).toLowerCase()
		var tmp = ""
		if (name == undefined)
		    name=""
		switch (ext) {
			case "swf" :
				tmp =	"<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" "
				tmp +=	"codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" + v + ",0,30,0\" " 
				tmp +=	"width=\"" + w + "\" height=\"" + h + "\">" 
				tmp +=	"<param name=movie value=\"" + url + "\"> " 
				tmp +=	"<param name=quality value=high><param name=\"menu\" value=\"0\"><param name=play value=false>" 
				if (!playMovie) tmp += "<param name=play value=0>"
				tmp +=	"<embed src=\"" + url + "\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"" + w + "\" height=\"" + h + "\" menu=\"0\" " 
				if (!playMovie) tmp += " play=0 "
				tmp +=	"></embed> </object>"		
				break
			case "jpg" :
				tmp = "<img border=\"0\" src=\"" + url + "\" alt=\"" + name + "\">"
				break
			case "gif" :
				tmp = "<img border=\"0\" src=\"" + url + "\" alt=\"" + name + "\">"
				break
			default :
				thisName = url.substring(url.lastIndexOf("/") + 1 , url.length)
				tmp = "<a href=\"" + url + "\" target=\"_blank\" title=\"Download " + thisName + "\"><img border=\"0\" src=\"/~sa_webapp/assets/html_editor/icons/icon_" + ext + "_large.gif\" align=\"absMiddle\">" + thisName + "</a>"
		}
		return tmp
	}