var hasFlash = 0;
var hasShockwave = 0;
if (navigator.mimeTypes) {
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin && plugin.description.indexOf(".") != -1) {
prefix = plugin.description.substring(0, plugin.description.indexOf("."));
prefix = prefix.substring(prefix.lastIndexOf(" "));
suffix = plugin.description.substring(plugin.description.indexOf(".")+1);
suffix = suffix.substring(0, suffix.indexOf(" "));
if (parseInt(prefix) >= 7) hasFlash = 1;
}
if (navigator.mimeTypes && navigator.mimeTypes["application/x-director"] && navigator.mimeTypes["application/x-director"].enabledPlugin) {
if (navigator.plugins && navigator.plugins["Shockwave for Director"] && (versionIndex = navigator.plugins["Shockwave for Director"].description.indexOf(".")) != -1) {
prefix = plugin.description.substring(0, plugin.description.indexOf("."));
prefix = prefix.substring(prefix.lastIndexOf(" "));
suffix = plugin.description.substring(plugin.description.indexOf(".")+1);
suffix = suffix.substring(0, suffix.indexOf(" "));
if (parseInt(prefix) >= 9) hasShockwave = 1;
}
}
}
if ((navigator.appVersion.indexOf("MSIE") != -1) && (navigator.appVersion.indexOf("Windows") != -1)) {
document.writeln('');
document.writeln('');
}
function showFlash(flashFile, width, height, flashAlt) {
if (hasFlash) document.write('');
else document.write(flashAlt);
}
function showShockwave(shockwaveFile, width, height, shockwaveAlt) {
if (hasShockwave) document.write('');
else document.write(shockwaveAlt);
}
function showShockwaveMakeTracks(shockwaveFile, width, height, shockwaveAlt) {
if (hasShockwave) document.write('');
else document.write(shockwaveAlt);
}
function initWindow(theWidth, theHeight) {
if (window.innerHeight) {
//netscape: scrollbars appear outside this width & height
if (theWidth != 0) window.resizeBy(theWidth-window.innerWidth, 0);
if (theHeight != 0) window.resizeBy(0, theHeight-window.innerHeight);
} else if (document.documentElement && document.documentElement.clientHeight) {
//ie: scrollbars appear outside this width & height
if (theWidth != 0) window.resizeBy(theWidth-document.documentElement.clientWidth, 0);
if (theHeight != 0) window.resizeBy(0, theHeight-document.documentElement.clientHeight);
} else if (document.body && document.body.clientHeight) {
//ie: scrollbars appear outside this width & height
if (theWidth != 0) window.resizeBy(theWidth-document.body.clientWidth, 0);
if (theHeight != 0) window.resizeBy(0, theHeight-document.body.clientHeight);
}
parent.window.focus();
}