var FlashDetector = {version : -1,initialized: false,initialize : function() {
if( window.ActiveXObject ) {
for( var i = 6; i < 10; i++ ) {try{new window.ActiveXObject( 'ShockwaveFlash.ShockwaveFlash.' + i );FlashDetector.version = i;} catch( error ) {}}} else if( navigator.plugins && navigator.plugins['Shockwave Flash'] && navigator.plugins['Shockwave Flash'].description ) {
var matches = navigator.plugins['Shockwave Flash'].description.match( /([0-9]+)\.[0-9]+/ );
if( matches[1] && ! isNaN( parseInt( matches[1] ) ) ) {FlashDetector.version = parseInt( matches[1] );}}},
getVersion : function () { if( ! FlashDetector.initialized ) {FlashDetector.initialize();FlashDetector.initialized = true;}return FlashDetector.version;}}
var FlashTag = function() { this.version= 7;this.src= null;this.width= 1;this.height= 1;this.id= null;this.vars= {};this.play= true;this.menu= false;this.loop= true;this.quality= 'high';this.scale= 'noscale';this.salign= 'tl';this.wmode= 'window';this.bgcolor= null;this.base= null;this.detect= true;this.noPlayerHtml = null;this.noPlayerVersionHtml = null; }
FlashTag.prototype = {
getHtml : function() {
var retVal = '';
if( this.detect && ( FlashDetector.getVersion() == -1 ) ) {
retVal = this.noPlayerHtml;
} else if( this.detect && ( FlashDetector.getVersion() < this.version ) ) {
retVal = this.noPlayerVersionHtml;
} else {
var objectHtml = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle"';
var paramsHtml= '<param name="allowScriptAccess" value="sameDomain" />';
var embedHtml = '<embed swLiveConnect="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"';
var sizeHtml = ' width="' + this.width + '" height="' + this.height + '"';
objectHtml += sizeHtml; embedHtml += sizeHtml;objectHtml += ' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + this.version + ',0,0,0"';
if( this.src ) {paramsHtml += '<param name="movie" value="' + this.src + '" />';embedHtml+= ' src="' + this.src + '"';}
if( this.id ) {objectHtml += ' id="' + this.id + '"';embedHtml += ' name="' + this.id + '" id="' + this.id + '"';}
if( this.bgcolor ) {paramsHtml += '<param name="bgcolor" value="' + this.bgcolor + '" />';embedHtml += ' bgcolor="' + this.bgcolor + '"';}
if( ! this.menu ) {paramsHtml += '<param name="menu" value="false" />';embedHtml += ' menu="false"';}
if( this.scale ) { paramsHtml += '<param name="scale" value="' + this.scale + '" />'; embedHtml  += ' scale="' + this.scale + '"'; }
if( this.quality ) { paramsHtml += '<param name="quality" value="' + this.quality + '" />'; embedHtml  += ' quality="' + this.quality + '"'; }
if( ! this.play ) { paramsHtml += '<param name="play" value="false" />'; embedHtml  += ' play="false"'; }
if( this.salign ) { paramsHtml += '<param name="salign" value="' + this.salign + '" />'; embedHtml  += ' salign="' + this.salign + '"'; }
if( this.wmode ) { paramsHtml += '<param name="wmode" value="' + this.wmode + '" />'; embedHtml  += ' wmode="' + this.wmode + '"'; }
if( this.base ) { paramsHtml += '<param name="base" value="' + this.base + '" />'; embedHtml  += ' base="' + this.base + '"'; }
if( this.vars ) {
var varsHtml = [];
for( var i in this.vars ) {varsHtml.push( i + '=' + escape( this.vars[i] ) );}
if( varsHtml.length > 0 ) {varsHtml = varsHtml.join( '&amp;' );paramsHtml += '<param name="flashvars" value="' + varsHtml + '">';embedHtml+= ' flashvars="' + varsHtml + '"';}}retVal = objectHtml + '>' + paramsHtml + embedHtml + ' /></object>';}return retVal;},
writeToDocument : function() {try {document.write( this.getHtml() );} catch( error ) {}},
writeToElement : function( id ) {try {document.getElementById( id ).innerHTML = this.getHtml();this.fixTitle();} catch( error ) {}},
fixTitle : function(  ){
var pattern = /#[a-z0-9]*$/i;
found = pattern.exec( document.location.href );
if( found != null ){ document.title = document.title.replace( pattern, '' );}}}
function showFlash( source ) { document.write( source ); }