function anymedia_flash(id, src, mime, width, height, autoplay) {
//	if (is_ie) {
        // The following tested to work with Firefox 2, Internet Explorer 6/7, Opera 9, and Safari 3 (Win)
		var result = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
		    result += 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0" ';
			result += 'id="flashPlayer_' + id + '" width="' + width + '" height="' + height + '">\n';
			result += '<param name="movie" value="' + src + '" />\n';
			result += '<param name="play" value="' + autoplay + '" />\n';
			result += '<param name="bgcolor" value="#000000" />\n';
			result += '<param name="allowScriptAccess" value="never" />\n';
			result += '<param name="allowFullScreen" value="true" />\n';
			result += '<embed src="' + src + '" allowfullscreen="true" bgcolor="#000000" name="flashPlayer_' + id + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="' + height + '" width="' + width + '">\n'
			result += '</object>\n';
//	} else {
//		var result = '<object data="' + src + '" type="' + mime + '" ';
//			result += 'width="' + width + '" height="' + height + '">';
//			result += '<param name="play" value="' + autoplay + '" />';
//			result += '<param name="wmode" value="opaque" />';
//			result += '<param name="quality" value="high" /></object>';
//	}
    document.getElementById('anymedia_container_' + id).innerHTML = result;
}

function anymedia_quicktime(id, src, mime, width, height, autoplay) {
	if (is_ie) {
		var result = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ';
			result += 'width="' + width + '" height="' + height + '">';
			result += '<param name="autoplay" value="' + autoplay + '" />';
			result += '<param name="src" value="' + src + '" />';
			result += '</object>';
	} else {
		var result = '<object data="' + src + '" type="' + mime + '" ';
			result += 'width="' + width + '" height="' + height + '">';
			result += '<param name="autoplay" value="' + autoplay + '" />';
	}
    document.getElementById('anymedia_container_' + id).innerHTML = result;
}

function anymedia_realmedia(id, src, mime, width, height, autoplay) {
    var result = '<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ';
        result += 'width="' + width + '" height="' + height + '">';
        result += '<param name="src" value="' + src + '" />';
        result += '<param name="controls" value="Imagewindow" />';
        result += '<param name="console" value="clip' + id + '" />';
        result += '<param name="autostart" value="' + autoplay + '" />';
        result += '<embed src="' + src + '" type="audio/x-pn-realaudio-plugin" ';
        result += 'autostart="' + autoplay + '" console="clip' + id + '" ';
        result += 'width="' + width + '" height="' + height + '" ';
        result += 'controls="Imagewindow"></embed><br />';
        result += '</object>';
        result += '<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ';
        result += 'width="' + width + '" height="42">';
        result += '<param name="src" value="' + src + '" />';
        result += '<param name="controls" value="ControlPanel" />';
        result += '<param name="console" value="clip' + id + '" />';
        result += '<param name="autostart" value="' + autoplay + '" />';
        result += '<embed src="' + src + '" type="audio/x-pn-realaudio-plugin" ';
        result += 'autostart="' + autoplay + ' console="clip' + id + '" ';
        result += 'width="' + width + '" height="42" ';
        result += 'controls="ControlPanel"></embed>';
        result += '</object>';
    document.getElementById('anymedia_container_' + id).innerHTML = result;
}

function anymedia_windowsmedia(id, src, mime, width, height, autoplay) {
	if (is_ie) {
		var result = '<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" ';
			result += 'width="' + width + '" height="' + height + '">';
			result += '<param name="autoplay" value="' + autoplay + '" />';
			result += '<param name="filename" value="' + src + '" />';
			result += '</object>';
	} else {
		var result = '<object data="' + src + '" type="' + mime + '" ';
			result += 'width="' + width + '" height="' + height + '">';
			result += '<param name="autostart" value="' + ((autoplay == 'false') ? '0' : '1') + '" />';
	}
    document.getElementById('anymedia_container_' + id).innerHTML = result;
}

function anymedia_adobepdf(id, src, mime, width, height, autoplay) {
	if (is_ie) {
		var result = '<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" ';
			result += 'width="' + width + '" height="' + height + '">';
			result += '<param name="src" value="' + src + '" />';
			result += '</object>';
	} else {
		var result = '<object data="' + src + '" type="' + mime + '" ';
			result += 'width="' + width + '" height="' + height + '">';
			result += '</object>';
	}
    document.getElementById('anymedia_container_' + id).innerHTML = result;
}