if(jQuery){if(jQuery.fn.genericFlash===undefined){jQuery.fn.genericFlash={flashVariables:{'swf_url':[],'swf_width':[],'swf_height':[],'swf_bgcolor':[],'swf_align':[],'img_url':[],'alt_text':[]},flashClassName:'genericFlash',flashAchitecture:0,flashRequiredVersion:4,flashID:'',isInitialised:false,detectFlash:function(){var parentClass=jQuery.fn.genericFlash;var shockwave_7={name:"ShockwaveFlash.ShockwaveFlash.7","shokwaveVersion":function(shokWaveVer){return activeXVersion(shokWaveVer)}};var shockwave_6={name:"ShockwaveFlash.ShockwaveFlash.6","shokwaveVersion":function(shokWaveVer){var version="6,0,21";try{shokWaveVer.AllowScriptAccess="always";version=activeXVersion(shokWaveVer)}catch(error){}return version}};var shockwave_other={name:"ShockwaveFlash.ShockwaveFlash","shokwaveVersion":function(shokWaveVer){return activeXVersion(shokWaveVer)}};var activeXVersion=function(activeXObj){var activeXversion=0;try{var activeXversion=activeXObj.GetVariable("$version")}catch(error){}return activeXversion};var getActiveXObject=function(nameOfObject){var obj=0;try{var activeXObject=new ActiveXObject(nameOfObject)}catch(error){}return activeXObject};if(navigator.plugins && navigator.plugins.length>0){var type='application/x-shockwave-flash';var mimeTypes=navigator.mimeTypes;if(mimeTypes && mimeTypes[type] && mimeTypes[type].enabledPlugin && mimeTypes[type].enabledPlugin.description){var plugIndesc=mimeTypes[type].enabledPlugin.description;var plugIndescParts=plugIndesc.split(' ');var higherlower=plugIndescParts[2].split('.');var higher=parseInt(higherlower[0],10);var lower=parseInt(higherlower[1],10)}$.fn.genericFlash.flashAchitecture=1;return higher}else if(window.execScript){var version=0;var activeXObjects=[shockwave_7,shockwave_6,shockwave_other];for(var i=0;i<activeXObjects.length && version==0;i++){var obj=getActiveXObject(activeXObjects[i].name);if(typeof obj=="object"){version=activeXObjects[i].shokwaveVersion(obj);if(version !=-1){var versionObj=version.split(",");var higher=parseInt(versionObj[0].split(" ")[1],10);var lower=parseInt(versionObj[1],10);var revision=parseInt(versionObj[2],10);var revisionStr=versionObj[2]}}}$.fn.genericFlash.flashAchitecture=0;return higher}else{return false}},detectgenericFlashElements:function(){var flashVersion=jQuery.fn.genericFlash.detectFlash();var flashElements=jQuery('.'+this.flashClassName);var parentClass=jQuery.fn.genericFlash.flashVariables;var flashElementsLength=$('.genericFlash').length;flashElements.each(function(){$("this").children("img").hide();var flashElementID=this.id;if($.fn.genericFlash.flashAchitecture==1 && flashVersion>$.fn.genericFlash.flashRequiredVersion){var flashElem="";flashElem='<embed type="application/x-shockwave-flash" src="'+parentClass.swf_url[flashElementID]+'" width="'+parentClass.swf_width[flashElementID]+'" height="'+parentClass.swf_height[flashElementID]+'"';flashElem+=' id='+flashElementID+' name='+flashElementID+' ';flashElem+=' wmode="transparent" ';flashElem+='/>';this.innerHTML=flashElem}else if($.fn.genericFlash.flashAchitecture==0 && flashVersion>$.fn.genericFlash.flashRequiredVersion){var flashElem="";flashElem='<object id='+flashElementID+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+parentClass.swf_width[flashElementID]+'" height="'+parentClass.swf_height[flashElementID]+'">';flashElem+='<param name="movie" value="'+parentClass.swf_url[flashElementID]+'"/>';flashElem+='<param name="wmode" value="transparent"/>';flashElem+="</object>";this.innerHTML=flashElem}else{var flashElem="Please take a moment to download the latest version of the Flash player in order to view this content.<br/>Visit<a href='http://get.adobe.com/flashplayer/'>Adobe</a>to download the plugin.";this.innerHTML=flashElem}});this.flashElements=flashElements},init:function(){this.detectgenericFlashElements()},initOnce:function(){if(jQuery.fn.genericFlash.isInitialised===false){jQuery.fn.genericFlash.init();jQuery.fn.genericFlash.isInitialised=true}}};$(document).ready(function(){$(this).genericFlash.initOnce()})}}
