
function FlashCheck(version,warning)
{this.version=version?version:"10.0.0";var self=this;this.warning=warning?true:(typeof warning=='undefined'?true:false);var versions=this.version.split('.');this.major=versions[0];this.minor=versions[1];this.revision=versions[2];jQuery(document).ready(function(){self.ready();});}
FlashCheck.start=function(version,warning)
{return new FlashCheck(version,warning);}
FlashCheck.prototype.ready=function()
{var self=this;if(typeof DetectFlashVer!='function')
{jQuery.getScript('/js/AC_RunActiveContent.js',function(){self.loaded();});}
else
{self.loaded();}}
FlashCheck.prototype.loaded=function()
{var view='';var $;if(!this.check())
{$=jQuery(document.body).find('embed[src*=swf]');console.debug($);if($.length)
{view=jQuery(this.view());view.width($.width());view.height($.height());$.replaceWith(view);}}}
FlashCheck.prototype.check=function()
{this.checked=DetectFlashVer(this.major,this.minor,this.revision);return this.checked;}
FlashCheck.prototype.view=function()
{return'<table style="background-color:lightgray;text-align:center;vertical-align:middle;overflow:hidden;">'+'<tr>'+'<td style="background-color:lightgray;vertical-align:middle;text-align:center">'+'<a href="http://get.adobe.com/flashplayer/"><img src="/img/info/flash_logo.png" style="border:0px none; vertical-align:middle; padding-right:20px;" />'+'Flash Player 10 is required to properly view this site. Click here to download.</a>'+'</td>'+'</tr>'+'</table>';}
FlashCheck.start();