<!--
//
var isFF = !document.all;
var fW = "980";
var fH = "800";
var eW = "100%";
var eH = "100%";
//
var bkgColor = "FF5C00";
//var shackDir = "nickshack/"
//var swfContent = shackDir+"flash/nickshack.swf";
var winmode = (isFF) ? "opaque" : "opaque";
//
var hasProductInstall = DetectFlashVer(7, 0, 0);
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
var MMredirectURL = window.location;
//
var originalTitle = document.title;
document.title = document.title.slice(0, 47) + " - Flash Player Installation";
var MMdoctitle = document.title;
//
if ( hasProductInstall && !hasReqestedVersion ) {
  var productInstallOETags = '<div id="playerProductInstall">'
  + '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
  + 'width="'+ eW +'"'
  + 'height="'+ eH +'"'
  + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
  + '<param name="movie" value="'+ shackDir +'"flash/playerProductInstall.swf?MMredirectURL='+ MMredirectURL +'&MMplayerType=ActiveX&MMdoctitle='+ MMdoctitle +'" />'
  + '<param name="quality" value="high" />'
  + '<param name="bgcolor" value="#'+ bkgColor +'" />'
  + '<embed src="'+ shackDir +'flash/playerProductInstall.swf?MMredirectURL='+ MMredirectURL +'&MMplayerType=PlugIn"'
  + 'quality="high"'
  + 'bgcolor="#'+ bkgColor +'"'
  + 'width="'+ eW +'"'
  + 'height="'+ eH +'"'
  + 'name="detectiontest"'
  + 'align="middle"'
  + 'play="true"'
  + 'loop="false"'
  + 'quality="high"'
  + 'allowScriptAccess="sameDomain"'
  + 'type="application/x-shockwave-flash"'
  + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
  + '</embed>'
  + '</object>'
  + '</div>';
  document.write(productInstallOETags);
} else if (hasReqestedVersion) {
  //
  document.title = originalTitle;
  var oeTags = '<object name="flashObject" id="flashObject" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
  + 'width="'+ eW +'"'
  + 'height="'+ eH +'"'
  + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
  + '<param name="movie" value="'+ swfContent +'" />'
  + '<param name="bgcolor" value="#'+ bkgColor +'" />'
  + '<param name="wmode" value="'+ winmode +'" />'
  + '<param name="FlashVars" value="'+ fv +'" />'
  + '<param name="base" value="." />'
  + '<param name="SeamlessTabbing" value="false" />'
  + '<param name="quality" value="high" />'
  + '<embed src="'+ swfContent +'"'
  + 'width="'+ eW +'" height="'+ eH +'"'
  + 'bgcolor="#'+ bkgColor +'"'
  + 'wmode="'+ winmode +'"'
  + 'FlashVars="'+ fv +'"'
  + 'quality="high"'
  + 'base="."'
  + 'SeamlessTabbing="false"'
  + 'name="flashObject" align="middle"'
  + 'play="true"'
  + 'loop="false"'
  + 'quality="high"'
  + 'allowScriptAccess="sameDomain"'
  + 'type="application/x-shockwave-flash"'
  + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
  + '</embed>'
  + '</object>';
  document.write(oeTags);
  //
  onLoadFlashContainer();
  //
  if (window.attachEvent) {
    window.attachEvent("onresize", onResizeFunction);
    window.document.flashObject.focus();
  } else {
    window.addEventListener("resize", onResizeFunction, false);
    window.addEventListener("load", shackLoad, false);
    window.addEventListener("scroll", shackScroll, false);
  }
} else {
  document.title = originalTitle.slice(0, 46) + " - Please Upgrade Flash Player";
  var alternateContent = '<table width="100%" height="100%" border="0" cellpadding="20" cellspacing="0"><tr><td align="center">'
  + '<div style="width:580px; text-align:left; margin:0 auto 0 auto;"><strong style="font-size:16px;">Welcome to The Nick Shack!</strong><br /><br />'
  + 'If you have reached this page on our website, it is because you do not have the required version of Macromedia Flash Player installed on your computer.<br /><br />'
  + '<a href="http://www.macromedia.com/go/getflash/">Click here to download the latest Macromedia Flash Player now!</a>'
  + '</div>'
  + '</td></tr></table>';
  document.write(alternateContent);
}
//
// -->