/***** Jquery SWFObject *****/

(function(F,C){var D=function(H){var G,I=[];for(G in H){if(/string|number/.test(typeof H[G])&&H[G]!==""){I.push(G+'="'+H[G]+'"')}}return I[A]("")},E=function(I){var G,K,J=[],H;if(typeof I=="object"){for(G in I){if(typeof I[G]=="object"){H=[];for(K in I[G]){H.push([K,"=",encodeURIComponent(I[G][K])][A](""))}I[G]=H[A]("&amp;")}if(I[G]){J.push(['<param name="',G,'" value="',I[G],'" />'][A](""))}}I=J[A]("")}return I},B=false,A="join";F[C]=(function(){try{var G="0,0,0",H=navigator.plugins["Shockwave Flash"]||ActiveXObject;G=H.description||(function(){try{return(new H("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(J){}}())}catch(I){}G=G.match(/^[A-Za-z\s]*?(\d+)[\.|,](\d+)(?:\s+[d|r]|,)(\d+)/);return{available:G[1]>0,activeX:H&&!H.name,version:{major:G[1]*1,minor:G[2]*1,release:G[3]*1},hasVersion:function(K){var N=this.version,L="major",M="minor",J="release";K=(/string|number/.test(typeof K))?K.toString().split("."):K||[0,0,0];K=[K[L]||K[0]||N[L],K[M]||K[1]||N[M],K[J]||K[2]||N[J]];return(K[0]<N[L])||(K[0]==N[L]&&K[1]<N[M])||(K[0]==N[L]&&K[1]==N[M]&&K[2]<=N[J])},expressInstall:"expressInstall.swf",create:function(J){if(!F[C].available||B||!typeof J=="object"||!J.swf){return false}if(J.hasVersion&&!F[C].hasVersion(J.hasVersion)){J={swf:J.expressInstall||F[C].expressInstall,attrs:{id:J.id||"SWFObjectExprInst",name:J.name,height:Math.max(J.height||137),width:Math.max(J.width||214)},params:{flashvars:{MMredirectURL:location.href,MMplayerType:(F[C].activeX)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}};B=true}else{J=F.extend(true,{attrs:{id:J.id,name:J.name,height:J.height||180,width:J.width||320},params:{wmode:J.wmode||"opaque",flashvars:J.flashvars}},J)}if(F[C].activeX){J.attrs.classid=J.attrs.classid||"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";J.params.movie=J.params.movie||J.swf}else{J.attrs.type=J.attrs.classid||"application/x-shockwave-flash";J.attrs.data=J.attrs.data||J.swf}return["<object ",D(J.attrs),">",E(J.params),"</object>"][A]("")}}}());F.fn[C]=function(G){if(typeof G=="object"){this.each(function(){var I=document.createElement(C);var H=F[C].create(G);if(H){I.innerHTML=H;if(I.childNodes[0]){this.appendChild(I.childNodes[0])}}})}else{if(typeof G=="function"){this.find("object").andSelf().filter("object").each(function(){var I=this,H="jsInteractionTimeoutMs";I[H]=I[H]||0;if(I[H]<660){if(I.clientWidth||I.clientHeight){G.call(this)}else{setTimeout(function(){F(I)[C](G)},I[H]+66)}}})}}return this}}(jQuery,"flash"));

/* Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (MIT_LICENSE.txt)
 * and GPL Version 2 (GPL_LICENSE.txt) licenses.
 */
(function(a){a.extend(a.fn,{livequery:function(e,d,c){var b=this,f;if(a.isFunction(e)){c=d,d=e,e=undefined}a.each(a.livequery.queries,function(g,h){if(b.selector==h.selector&&b.context==h.context&&e==h.type&&(!d||d.$lqguid==h.fn.$lqguid)&&(!c||c.$lqguid==h.fn2.$lqguid)){return(f=h)&&false}});f=f||new a.livequery(this.selector,this.context,e,d,c);f.stopped=false;f.run();return this},expire:function(e,d,c){var b=this;if(a.isFunction(e)){c=d,d=e,e=undefined}a.each(a.livequery.queries,function(f,g){if(b.selector==g.selector&&b.context==g.context&&(!e||e==g.type)&&(!d||d.$lqguid==g.fn.$lqguid)&&(!c||c.$lqguid==g.fn2.$lqguid)&&!this.stopped){a.livequery.stop(g.id)}});return this}});a.livequery=function(b,d,f,e,c){this.selector=b;this.context=d;this.type=f;this.fn=e;this.fn2=c;this.elements=[];this.stopped=false;this.id=a.livequery.queries.push(this)-1;e.$lqguid=e.$lqguid||a.livequery.guid++;if(c){c.$lqguid=c.$lqguid||a.livequery.guid++}return this};a.livequery.prototype={stop:function(){var b=this;if(this.type){this.elements.unbind(this.type,this.fn)}else{if(this.fn2){this.elements.each(function(c,d){b.fn2.apply(d)})}}this.elements=[];this.stopped=true},run:function(){if(this.stopped){return}var d=this;var e=this.elements,c=a(this.selector,this.context),b=c.not(e);this.elements=c;if(this.type){b.bind(this.type,this.fn);if(e.length>0){a.each(e,function(f,g){if(a.inArray(g,c)<0){a.event.remove(g,d.type,d.fn)}})}}else{b.each(function(){d.fn.apply(this)});if(this.fn2&&e.length>0){a.each(e,function(f,g){if(a.inArray(g,c)<0){d.fn2.apply(g)}})}}}};a.extend(a.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if(a.livequery.running&&a.livequery.queue.length){var b=a.livequery.queue.length;while(b--){a.livequery.queries[a.livequery.queue.shift()].run()}}},pause:function(){a.livequery.running=false},play:function(){a.livequery.running=true;a.livequery.run()},registerPlugin:function(){a.each(arguments,function(c,d){if(!a.fn[d]){return}var b=a.fn[d];a.fn[d]=function(){var e=b.apply(this,arguments);a.livequery.run();return e}})},run:function(b){if(b!=undefined){if(a.inArray(b,a.livequery.queue)<0){a.livequery.queue.push(b)}}else{a.each(a.livequery.queries,function(c){if(a.inArray(c,a.livequery.queue)<0){a.livequery.queue.push(c)}})}if(a.livequery.timeout){clearTimeout(a.livequery.timeout)}a.livequery.timeout=setTimeout(a.livequery.checkQueue,20)},stop:function(b){if(b!=undefined){a.livequery.queries[b].stop()}else{a.each(a.livequery.queries,function(c){a.livequery.queries[c].stop()})}}});a.livequery.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove","html");a(function(){a.livequery.play()})})(jQuery);

/////////////// WICKEDWEB INLINE FLASH REPLACEMENT (WWIFR) v1.3 | COPYRIGHT WICKEDWEB ///////////////

function setCSS(css) {
	try{
		document.getElementsByTagName("head")[0].appendChild(css);
	}catch(e){
		setTimeout(function(){setCSS(css)}, 100);
	}
}
var css = document.createElement("link");
css.setAttribute("href","/static/css/wwifr.css");
css.setAttribute("rel","stylesheet");
css.setAttribute("type","text/css");
setCSS(css);
css = null;

function setDimensions(a,b,c){$("#"+c).height(a).attr("height",a).width(b).attr("width",b)}function toHex(a){if(a===null){return"00"}a=parseInt(a);if(a===0||isNaN(a)){return"00"}a=Math.max(0,a);a=Math.min(a,255);a=Math.round(a);return"0123456789ABCDEF".charAt((a-a%16)/16)+"0123456789ABCDEF".charAt(a%16)}function RGBtoHex(b,a,c){return"#"+toHex(b)+toHex(a)+toHex(c)}function RGB(b){var a="";if(b.indexOf("#")<=-1){for(i=0;i<b.length;i++){if(parseInt(b.charAt(i))%1===0||b.charAt(i)==","){a+=b.charAt(i)}}nc=a.split(",");b=RGBtoHex(nc[0],nc[1],nc[2])}return b}function rgbHTML(a){a=a.replace(/rgb\((.*?)\)/g,function(b,d){return RGB(d)});return a}function reformHTML(e){e=e.replace(/< *\/?(\w+)/g,function(h){return h.toLowerCase()});var g=/<\w+[^>]+>/g;var d,c="",b="",f="",a=0;while((d=g.exec(e))!==null){c+=e.substring(a,d.index);b=d[0];if(/; *charset *=/i.test(b)===false){b=b.replace(/\= *([^"\s]+(?=[ >]))/g,'="$1"')}b=b.replace(/[\w-]+ *\= */g,function(h){return h.toLowerCase()});b=b.replace(/style *\= *"[^"]+/g,function(h){if(h.charAt(h.length-1)!=";"){h+=";"}h=h.replace(/: /gi,":").replace(/:(.*?);/gi,'="$1"').replace(/font-size/gi,"size");return h.toLowerCase()});c+=b;a=g.lastIndex}c+=e.substring(a);c=c.replace(/<span style="(.*?)">/g,"<font $1>").replace(/<\/span>/g,"</font>").replace(/&nbsp;/g," ").replace(/<em>(.*?)<\/em>/g,"<i>$1</i>").replace(/<strong>(.*?)<\/strong>/g,"<b>$1</b>").replace(/\+/g,"&#43;").replace(/%/g,"&#37;");return c}var wwifrCount=0;function replaceText(a,g,k,h,m,e,o,j,n,l,c,f,d,b){$(a).livequery(function(p){if($.flash.hasVersion(8)){$(this).find("object").remove();$(this).find(".wwifr").before($(this).find(".wwifr").html()).remove();$(this).not(g).each(function(x){wwifrCount+=1;a=a.replace(/[^a-zA-Z 0-9]+/g,"");var y="wwifr"+wwifrCount;var t=$(this).html();var A=t;var z=$(this).parent().width();var s=$(this).height();var r=$(this).attr("href");var v=$(this).css("text-align");var u=$(this).css("font-size").replace(/[a-z]/g,"");var q=rgbHTML($(this).css("color"));if(m==""||m===null){m=$(this).css("font-weight")}if(document.location.href.indexOf("file:///")>-1){var w=false}else{var w=true}t=reformHTML(t);t=rgbHTML(t);Flash=$.flash.create({swf:h+k+".swf",width:z,height:s,expressInstaller:h+"expressInstall.swf",flashvars:{ID:y,Text:t,Link:r,Width:z,Height:s,Size:u,Colour:q,LinkColour:e,LinkHoverColour:o,LinkDecoration:j,LinkHoverDecoration:n,Weight:m,LineHeight:l,Spacing:c,Align:v,Zoom:f,OffsetX:d,OffsetY:b,Live:w},params:{wmode:"transparent"}});$(this).html(Flash);if(w===true){$(this).find("object").attr("id",y).attr("name",y);$(this).mouseover(function(){$(this).find("object").focus()});$(this).mouseout(function(){$(this).find("object").flash(function(){this.SetVariable("resetvar",0)});$(this).find("object").blur()})}$(this).append('<span class="wwifr">'+A+"</span>");$(this).css("visibility","visible")})}else{$(a).css("visibility","visible")}})};


// selector*, not, font*, path*, fontWeight, linkColor, linkHoverColor, linkDecoration, linkHoverDecoration, lineHeight(0 = normal)*, letterSpacing(0 = normal), zoom(1 = 100%), xOffset, yOffset* //
replaceText('#topnav a.navoff', '', 'vag_rounded', '/static/flash/', 'bold', '#00AB39', '#FFFFFF', '', '', '0', '0', '1', '-2', '-2');
replaceText('#topnav a.navon', '', 'vag_rounded', '/static/flash/', 'bold', '#FFFFFF', '#FFFFFF', '', '', '0', '0', '1', '-2', '-2');
replaceText('#topnavmain a.navoff', '', 'vag_rounded', '/static/flash/', 'bold', '#00AB39', '#FFFFFF', '', '', '0', '0', '1', '-2', '-2');
replaceText('#topnavmain a.navon', '', 'vag_rounded', '/static/flash/', 'bold', '#FFFFFF', '#FFFFFF', '', '', '0', '0', '1', '-2', '-2');
replaceText('h1', '', 'vag_rounded', '/static/flash/', 'bold', '#FFFFFF', '', '', '', '0', '0', '1', '-2', '-2');
replaceText('h2', '', 'vag_rounded', '/static/flash/', 'bold', '#00AB39', '', '', '', '0', '0', '1', '-2', '-2');