// Variables on whether we have IE or a Netscape/Mozilla deriv.
// Will add more as chance to test other browsers.

var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isNS = false;
var isLinux = (navigator.appVersion.indexOf("X11") != -1) ? true : false;

// Code to see if we've got a Netscape/Mozilla browser and Flash installed.

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin && navigator.plugins && navigator.plugins["Shockwave Flash"]) {
   isNS = true;

} else {
   var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);
   if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4)
   isNS = true;
}

function DisplaySnocap() {
	if (isLinux) tag = '';
	if (isNS) tag = '<embed src="http://void.snocap.com/s/T3-31324-UFJ5N32B8Y-4/" name="Snocap" width="425" height="300" style="background:url(http://void.snocap.com/b/T3-31324-UFJ5N32B8Y-4/);"></embed>';
	else if (isIE) tag = '';
	else tag = '<a href="http://snowcap.com">The Mystifying Oracle tracks</a>';

	// If we gots us Flash, output the embed/object, else the suck.
	document.write (tag);
}
