(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 m=a(this),g,n,l,k;l=m.children(".sIFR-alternate");if(l.length!=0){m.html(l.html());if(f.unsifr){return}}if(typeof f.beforeEach==="function"){f.beforeEach.apply(this,[d,f])}l=m.addClass("sIFR-replaced").wrapInner('<span class="sIFR-alternate" style="position: absolute; "></span>').children(".sIFR-alternate");n=m.append('<span class="sIFR-jquery" style="position: absolute; ">'+a.trim(l.text())+"</span>").children(".sIFR-jquery");g=a.trim(l.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.html().toLowerCase()}if(f.textTransform==="capitalize"){var j=g.split(/(\s|\>)/);g="";for(var h in j){g+=j[h].charAt(0).toUpperCase()+j[h].substr(1)}}}g=m.attr("href")?'<a href="'+m.attr("href")+'">'+g+"</a>":g;k={flashvars:a.extend({h:n.height()*(f.zoom||1),offsetLeft:f.offsetLeft||b,offsetTop:f.offsetTop||b,textAlign:f.textAlign||m.css("textAlign").match(/left|center|right/)||"center",textColor:f.toHex(f.color||m.css("color"))||b,txt:f.content||g,underline:(f.underline===d||m.css("textDecoration")==="underline")?d:b,w:n.width()*(f.zoom||1)},f.flashvars),height:f.height||n.height(),src:(f.path||"").replace(/([^\/])$/,"$1/")+(f.font||m.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||n.width(),wmode:"transparent"};k.flashvars.linkColor=f.toHex(f.link||m.find("a").css("color"))||k.flashvars.textColor;k.flashvars.hoverColor=f.toHex(f.hover)||k.flashvars.linkColor;if(f.zoom){k.flashvars.offsetTop=((f.offsetTop||0)+((n.height()-(n.height()*f.zoom))/2))*(f.zoomTop||1);k.flashvars.offsetLeft=((f.offsetLeft||0)+((n.width()-(n.width()*f.zoom))/2))*(f.zoomLeft||1)}a().flash(a.extend(k,f.embedOptions),a.extend({expressInstall:f.expressInstall||false,version:f.version||7,update:f.update||false},f.pluginOptions),function(i){l.attr("style","visibility: hidden;");n.remove();m.prepend(a.fn.flash.transform(i))});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);