(function(A){A.fn.sifr=function(C){var D=true,B=undefined,E,F;E=arguments.callee.prefs=arguments.callee.prefs||{asHex:function(G){var H=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];return isNaN(G)?"00":H[(G-G%16)/16]+H[G%16]},colors:{aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},toHex:function(G){var H;if(!G){return B}return(H=G.match(/rgb\(([0-9]+),\s([0-9]+),\s([0-9]+)\)/))?"#"+this.asHex(H[1])+this.asHex(H[2])+this.asHex(H[3]):(H=this.colors[G])?"#"+this.asHex(H[0])+this.asHex(H[1])+this.asHex(H[2]):(G.length===4)?G.replace(/\#([0-9a-z])([0-9a-z])([0-9a-z])/,"#$1$1$2$2$3$3"):G}};F=A.extend({},E,(C===false)?{unsifr:true}:C);if(F.save===D){arguments.callee.prefs=A.extend(F,{save:false})}if(this[0]===document){return}if(!F.unsifr&&typeof F.before==="function"){F.before.apply(this,[F])}this.each(function(){var L=A(this),G,M,K,J;K=L.children(".sIFR-alternate");if(K){L.html(K.html());if(F.unsifr){return}}if(typeof F.beforeEach==="function"){F.beforeEach.apply(this,[D,F])}K=L.addClass("sIFR-replaced").wrapInner('<span class="sIFR-alternate" style="position: absolute; "></span>').children(".sIFR-alternate");M=L.append('<span class="sIFR-jquery" style="position: absolute; ">'+A.trim(K.text())+"</span>").children(".sIFR-jquery");G=A.trim(K.html()).replace(/(>)\s+|\s+(<)/g,"$1$2").replace(/(id|name)=[A-Za-z0-9]+/g,"");if(F.textTransform){F.textTransform=F.textTransform.toLowerCase();if(F.textTransform==="uppercase"){G=G.toUpperCase()}if(F.textTransform==="lowercase"){G=G.toLowerCase()}if(F.textTransform==="capitalize"){var I=G.split(/(\s|\>)/);G="";for(var H in I){G+=I[H].charAt(0).toUpperCase()+I[H].substr(1)}}}G=L.attr("href")?'<a href="'+L.attr("href")+'">'+G+"</a>":G;J={flashvars:A.extend({h:M.height()*(F.zoom||1),offsetLeft:F.offsetLeft||B,offsetTop:F.offsetTop||B,textAlign:F.textAlign||L.css("textAlign").match(/left|center|right/)||"center",textColor:F.toHex(F.color||L.css("color"))||B,txt:F.content||G,underline:(F.underline===D||L.css("textDecoration")==="underline")?D:B,w:M.width()*(F.zoom||1)},F.flashvars),height:F.height||M.height(),src:(F.path||"").replace(/([^\/])$/,"$1/")+(F.font||L.css("fontFamily").replace(/^\s+|\s+$|,[\S|\s]+|'|"|(,)\s+/g,"$1")).replace(/([^\.][^s][^w][^f])$/,"$1.swf"),style:"margin: 1px 0 0; position: absolute; vertical-align: text-top;",width:F.width||M.width(),wmode:"transparent"};J.flashvars.linkColor=F.toHex(F.link||L.find("a").css("color"))||J.flashvars.textColor;J.flashvars.hoverColor=F.toHex(F.hover)||J.flashvars.linkColor;if(F.zoom){J.flashvars.offsetTop=((F.offsetTop||0)+((M.height()-(M.height()*F.zoom))/2))*(F.zoomTop||1);J.flashvars.offsetLeft=((F.offsetLeft||0)+((M.width()-(M.width()*F.zoom))/2))*(F.zoomLeft||1)}A().flash(A.extend(J,F.embedOptions),A.extend({expressInstall:F.expressInstall||false,version:F.version||7,update:F.update||false},F.pluginOptions),function(N){K.attr("style","visibility: hidden;");M.remove();L.prepend(A.fn.flash.transform(N))});if(typeof F.afterEach==="function"){F.afterEach.apply(this,[D,F])}});if(!F.unsifr&&typeof F.after==="function"){F.after.apply(this,[F])}};A.fn.unsifr=function(){return this.each(function(){A(this).sifr(false)})};A.sifr=function(B){A(document).sifr(A.extend({save:true},B))};A.sifr()})(jQuery);