<!-- hide from pre-script browsers
what_to_do = "link"
OSName = "unknown";
bName = "unknown";
bVer = "unknown";

if (navigator.appName.substring(0,8) === "Netscape") {
	bName = "NN";
}
if (navigator.appName.substring(0,9) === "Microsoft") {
	bName = "IE";
}
if (navigator.userAgent.indexOf("iCab") >= 0) {
	bName = "iCab";
}
if (navigator.userAgent.indexOf("OmniWeb") >= 0) {
	bName = "OmniWeb";
}
if (bName == "NN") {
	if (navigator.plugins) {
		for (i=0; i < navigator.plugins.length; i++ ) {
			if (navigator.plugins[i].name.indexOf("QuickTime") >= 0) {
				//document.write('plugin available: ' +navigator.plugins[i].name + '<br>');
				 what_to_do = "embedQT";
			}
			if (what_to_do != "embedQT" && navigator.plugins[i].name.indexOf("Windows Media") >= 0) {
				//document.write('plugin available: ' +navigator.plugins[i].name + '<br>');
				 what_to_do = "embedWM";
			}
		}
	}
	else {
	}
}
if (bName === "IE") {
	if (navigator.appVersion.indexOf("Mac") > 0) {
		what_to_do = "embedQT";
	}
	else if (navigator.userAgent.indexOf("Opera") < 0) {
		what_to_do = "object";
	}
}

//document.write(what_to_do + '<br>');
//document.write(bName+ '<br>');
//document.write(navigator.appName + '<br>');
//document.write(navigator.userAgent + '<br>');

if (what_to_do === "object") {
	document.write('<object id="video/mpeg" width="'+vid_w+'" height="'+vid_h+'" border="0" classid="CLSID:05589FA1-C356-11CE-BF01-00AA0055595A"><param name="ShowDisplay" value="0"><param name="ShowControls" value="1"><param name="AutoStart" value="1"><param name="AutoRewind" value="0"><param name="PlayCount" value="1"><param name="Appearance value="0"><param name="BorderStyle value="0"><param name="MovieWindowHeight" value="'+vid_h+'"><param name="MovieWindowWidth" value="'+vid_w+'"><param name="FileName" value='+the_source+'><embed src="'+the_source+'" type="video/mpeg" width="'+vid_w+'" height="'+vid_h+'" loop="false" autostart="true" controller="true" bgcolor="#333333"></embed></object>')
}
if (what_to_do === "embedQT") {
	document.write('<embed width="320" height="256" src="' +the_source+ '" autostart="true" controller="true" type="video/quicktime" bgcolor="#333333"></embed>');
}
if (what_to_do === "embedWM") {
 	document.write('<embed width="'+vid_w+'" height="'+vid_h+'" src="' +the_source+ '" type="video/x-msvideo" autostart="true" controls="true" bgcolor="#333333"></embed>');
}

if (what_to_do === "link") {
	document.write('<a href="' +the_source+ '">click here to see the video</a>');
}

//-->
