function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg)) {
          window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
		}
		return "FALSE"; 
	  }
	  else {
		  return "TRUE";
	  }
    }
  } 
}


function showFlashVideo(thisVideo, cssClass) {
	if (cssClass == undefined) {
		var cssClass = 'embedded';
	}

	MM_CheckFlashVersion('8,0,0,0','Content on this page requires a newer version of Macromedia Flash Player. Do you want to download it now?');
	
	document.write('<div class=' + cssClass + '_video>');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320" height="240" id="FLVPlayer1">');
	document.write(' <param name="movie" value="/flash/FLVPlayer_Progressive.swf" />');
	document.write(' <param name="salign" value="lt" />');
	document.write(' <param name="quality" value="high" />');
	document.write(' <param name="scale" value="noscale" />');
	document.write(' <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=/flash/Clear_Skin_1&streamName=/flash/');
	
	document.write(thisVideo);
	
	document.write('&autoPlay=false&autoRewind=false" />');
	document.write(' <embed src="/flash/FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=/flash/Clear_Skin_1&streamName=/flash/');
	
	document.write(thisVideo);
	
	document.write('&autoPlay=false&autoRewind=false" quality="high" scale="noscale" width="320" height="240" name="FLVPlayer1" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
	document.write('</div>');
}

function displayStoreFeature(this_month) {
	var hasFlash = MM_CheckFlashVersion('8,0,0,0','Content on this page requires a newer version of Macromedia Flash Player. Do you want to download it now?');
    if (hasFlash = TRUE) {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="677" height="329" title="Monthly Features">');
		document.write('              <param name="movie" value="http://www.clickertraining.com/flash/');
		document.write(this_month);
		document.write('_features.swf" />');
		document.write('			  <param name="WMODE" value="transparent"');
		document.write('              <param name="quality" value="high" />');
		document.write('              <embed src="http://www.clickertraining.com/flash/');
		document.write(this_month);
		document.write('_features.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="677" height="329"></embed>');		document.write('            </object>');
		}
	else {
	    document.write('<script src="/images/features/');
		document.write(this_month); 
		document.write('_feature.js" type="text/javascript"></script>');
	}
}
		
function displayHomeFeature(loginStatus) {
	var hasFlash = MM_CheckFlashVersion('8,0,0,0','Content on this page requires a newer version of Macromedia Flash Player. Do you want to download it now?');
	if (hasFlash = "TRUE") {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="677" height="329" title="Monthly Features">');
		document.write('              <param name="movie" value="/flash/');
		document.write(loginStatus);
		document.write('_features.swf" />');
		document.write('			  <param name="WMODE" value="transparent"');
		document.write('              <param name="quality" value="high" />');
		document.write('              <embed src="/flash/');
		document.write(loginStatus);
		document.write('_features.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="677" height="329"></embed>');		
		document.write('            </object>');
		}
	else {
	    document.write('<script src="/images/features/');
		document.write(loginStatus); 
		document.write('_feature.js" type="text/javascript"></script>');
	}
}
