/*	sIFR v2.0.2 SOURCE
	Copyright 2004 - 2006 Mike Davidson, Shaun Inman, Tomas Jogin and Mark Wubben

	This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
	
	ADDITIONAL EDITS AND JQUERY INTEGRATION BY CONGRUENT MEDIA, LLC
	2008-01-11
*/
var hasFlash=function(){var a=6;if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")>-1){document.write('<script language="VBScript"\> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & '+a+'))) \n</script\> \n');if(window.hasFlash!=null){return window.hasFlash}};if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){var b=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;return parseInt(b.match(/\d{1,2}/)) >= a;};return false}();String.prototype.normalize=function(){return this.replace(/\s+/g," ")};if(Array.prototype.push==null){Array.prototype.push=function(){var i=0,index=this.length,limit=arguments.length;while(i<limit){this[index++]=arguments[i++]};return this.length}};if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[];var d,call;if(!a)a=window;if(!b)b=[];for(var i=0;i<b.length;i++){c[i]="args["+i+"]"};call="oScope.__applyTemp__("+c.join(",")+");";a.__applyTemp__=this;d=eval(call);a.__applyTemp__=null;return d}};var sIFR=function(){var r="http://www.w3.org/1999/xhtml";var s=false;var t=false;var u=false;var v;var w=[];var x=function(){var a=navigator.userAgent.toLowerCase();var b={bIsWebKit:a.indexOf("applewebkit")>-1,bIsSafari:a.indexOf("safari")>-1,bIsKonq:navigator.product!=null&&navigator.product.toLowerCase().indexOf("konqueror")>-1,bIsOpera:a.indexOf("opera")>-1,bIsXML:document.contentType!=null&&document.contentType.indexOf("xml")>-1,bHasTransparencySupport:true,bUseDOM:true,nFlashVersion:null,nOperaVersion:null,nGeckoBuildDate:null,nWebKitVersion:null};b.bIsKHTML=b.bIsWebKit||b.bIsKonq;b.bIsGecko=!b.bIsWebKit&&navigator.product!=null&&navigator.product.toLowerCase()=="gecko";if(b.bIsGecko&&a.match(/.*gecko\/(\d{8}).*/)){b.nGeckoBuildDate=new Number(a.match(/.*gecko\/(\d{8}).*/)[1])};if(b.bIsOpera&&a.match(/.*opera(\s|\/)(\d+\.\d+)/)){b.nOperaVersion=new Number(a.match(/.*opera(\s|\/)(\d+\.\d+)/)[2])};b.bIsIE=a.indexOf("msie")>-1&&!b.bIsOpera&&!b.bIsKHTML&&!b.bIsGecko;b.bIsIEMac=b.bIsIE&&a.match(/.*mac.*/)!=null;if(b.bIsIE||(b.bIsOpera&&b.nOperaVersion<7.6)){b.bUseDOM=false};if(b.bIsWebKit&&a.match(/.*applewebkit\/(\d+).*/)){b.nWebKitVersion=new Number(a.match(/.*applewebkit\/(\d+).*/)[1])};if(window.hasFlash&&(!b.bIsIE||b.bIsIEMac)){var c=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;b.nFlashVersion=parseInt(c.match(/\d{1,2}/))};if(a.match(/.*(windows|mac).*/)==null||b.bIsIEMac||b.bIsKonq||(b.bIsOpera&&b.nOperaVersion<7.6)||(b.bIsSafari&&b.nFlashVersion<7)||(!b.bIsSafari&&b.bIsWebKit&&b.nWebKitVersion<312)||(b.bIsGecko&&b.nGeckoBuildDate<20020523)){b.bHasTransparencySupport=false};if(!b.bIsIEMac&&!b.bIsGecko&&document.createElementNS){try{document.createElementNS(r,"i").innerHTML=""}catch(e){b.bIsXML=true}};b.bUseInnerHTMLHack=b.bIsKonq||(b.bIsWebKit&&b.nWebKitVersion<312);return b}();if(window.hasFlash==false||!document.createElement||!document.getElementById||(x.bIsXML&&(x.bUseInnerHTMLHack||x.bIsIE))){return{UA:x}};function sIFR(e){if((!y.bAutoInit&&(window.event||e)!=null)||!mayReplace(e)){return};s=true;for(var i=0,limit=w.length;i<limit;i++){replaceElement.apply(null,w[i])};w=[]};var y=sIFR;function mayReplace(e){if(t==false||y.bIsDisabled==true||((x.bIsXML&&x.bIsGecko||x.bIsKHTML)&&e==null&&s==false)||(document.body==null||document.getElementsByTagName("body").length==0)){return false};return true};function escapeHex(a){if(x.bIsIE){return a.replace(new RegExp("%\d{0}","g"),"%25")}return a.replace(new RegExp("%(?!\d)","g"),"%25")};function matchNodeNames(a,b){if(b=="*"){return true};return a.nodeName.toLowerCase().replace("html:","")==b.toLowerCase()};function fetchContent(a,b,c,d,e){var f="";var g=a.firstChild;var h,nodeRemoved,oResult,sValue;if(d==null){d=0};if(e==null){e=""};while(g){if(g.nodeType==3){sValue=g.nodeValue.replace("<","&lt;");switch(c){case"lower":f+=sValue.toLowerCase();break;case"upper":f+=sValue.toUpperCase();break;default:f+=sValue}}else if(g.nodeType==1){if(matchNodeNames(g,"a")&&!g.getAttribute("href")==false){if(g.getAttribute("target")){e+="&sifr_url_"+d+"_target="+g.getAttribute("target")};e+="&sifr_url_"+d+"="+escapeHex(g.getAttribute("href")).replace(/&/g,"%26");f+='<a href="asfunction:_root.launchURL,'+d+'">';d++}else if(matchNodeNames(g,"br")){f+="<br/>"};if(g.hasChildNodes()){oResult=fetchContent(g,null,c,d,e);f+=oResult.sContent;d=oResult.nLinkCount;e=oResult.sLinkVars};if(matchNodeNames(g,"a")){f+="</a>"}};h=g;g=g.nextSibling;if(b!=null){nodeRemoved=h.parentNode.removeChild(h);b.appendChild(nodeRemoved)}};return{"sContent":f,"nLinkCount":d,"sLinkVars":e}};function createElement(a){if(document.createElementNS&&x.bUseDOM){return document.createElementNS(r,a)}else{return document.createElement(a)}};function createObjectParameter(a,b,c){var d=createElement("param");d.setAttribute("name",b);d.setAttribute("value",c);a.appendChild(d)};function appendToClassName(a,b){var c=a.className;if(c==null){c=b}else{c=c.normalize()+(c==""?"":" ")+b};a.className=c};function prepare(a){var b=document.documentElement;if(y.bHideBrowserText==false){b=document.getElementsByTagName("body")[0]};if((y.bHideBrowserText==false||a)&&b){if(b.className==null||b.className.match(/\bsIFR\-hasFlash\b/)==null){appendToClassName(b,"sIFR-hasFlash")}}};function replaceElement(a,b,c,d,e,f,g,h,j,k,l,m,n){if(!mayReplace()){return w.push(arguments)};prepare();var o=jQuery(a);if(o.length==0){return false};if(l!=null){l="&"+l.normalize()}else{l=""};if(c!=null){l+="&textcolor="+c};if(e!=null){l+="&hovercolor="+e};if(e!=null||d!=null){l+="&linkcolor="+(d||c)};if(g==null){g=0};if(h==null){h=0};if(j==null){j=0};if(k==null){k=0};if(f==null){f="#FFFFFF"};if(n=="transparent"){if(!x.bHasTransparencySupport){n="opaque"}else{f="transparent"}};if(n==null){n=""};var p,sWidth,sHeight,sMargin,sPadding,sVars,nodeAlternate,nodeFlash,oContent;var q=null;for(var i=0,limit=o.length;i<limit;i++){p=o[i];if(p.className!=null&&p.className.match(/\bsIFR\-replaced\b/)!=null){continue};sWidth=p.offsetWidth-k-h;sHeight=p.offsetHeight-g-j;if(isNaN(sWidth)||isNaN(sHeight)){y.bIsDisabled=true;document.documentElement.className=document.documentElement.className.replace(/\bsIFR\-hasFlash\b/,"");return};nodeAlternate=createElement("span");nodeAlternate.className="sIFR-alternate";oContent=fetchContent(p,nodeAlternate,m);sVars="txt="+escapeHex(oContent.sContent).replace(/\+/g,"%2B").replace(/&/g,"%26").replace(/\"/g,"%22").normalize()+l+"&w="+sWidth+"&h="+sHeight+oContent.sLinkVars;appendToClassName(p,"sIFR-replaced");if(q==null||!x.bUseDOM){if(!x.bUseDOM){if(!x.bIsIE)p.innerHTML=['<embed class="sIFR-flash" type="application/x-shockwave-flash" src="',b,'" quality="best" wmode="',n,'" bgcolor="',f,'" flashvars="',sVars,'" width="',sWidth,'" height="',sHeight,'" sifr="true"></embed>'].join("");else p.innerHTML=['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" sifr="true" width="',sWidth,'" height="',sHeight,'" class="sIFR-flash">','<param name="movie" value="',b,"?",sVars,'"></param>','<param name="quality" value="best"></param>','<param name="wmode" value="',n,'"></param>','<param name="bgcolor" value="',f,'"></param>','</object>'].join('')}else{if(x.bIsOpera){nodeFlash=createElement("object");nodeFlash.setAttribute("data",b);createObjectParameter(nodeFlash,"quality","best");createObjectParameter(nodeFlash,"wmode",n);createObjectParameter(nodeFlash,"bgcolor",f)}else{nodeFlash=createElement("embed");nodeFlash.setAttribute("src",b);nodeFlash.setAttribute("quality","best");nodeFlash.setAttribute("flashvars",sVars);nodeFlash.setAttribute("wmode",n);nodeFlash.setAttribute("bgcolor",f);nodeFlash.setAttribute("pluginspace","http://www.macromedia.com/go/getflashplayer");nodeFlash.setAttribute("scale","noscale")};nodeFlash.setAttribute("sifr","true");nodeFlash.setAttribute("type","application/x-shockwave-flash");nodeFlash.className="sIFR-flash";if(!x.bIsKHTML||!x.bIsXML){q=nodeFlash.cloneNode(true)}}}else{nodeFlash=q.cloneNode(true)};if(x.bUseDOM){if(x.bIsOpera){createObjectParameter(nodeFlash,"flashvars",sVars)}else{nodeFlash.setAttribute("flashvars",sVars)};nodeFlash.setAttribute("width",sWidth);nodeFlash.setAttribute("height",sHeight);nodeFlash.style.width=sWidth+"px";nodeFlash.style.height=sHeight+"px";p.appendChild(nodeFlash)};p.appendChild(nodeAlternate);if(x.bUseInnerHTMLHack){p.innerHTML+=""}};if(x.bIsIE&&y.bFixFragIdBug){setTimeout(function(){document.title=v},0)}};function updateDocumentTitle(){v=document.title};function setup(){if(y.bIsDisabled==true){return};t=true;if(y.bHideBrowserText){prepare(true)};jQuery(document).ready(sIFR);if(!x.bIsIE||window.location.hash==""){y.bFixFragIdBug=false}else{updateDocumentTitle()}};function debug(){prepare(true)};debug.replaceNow=function(){setup();sIFR()};y.UA=x;y.bAutoInit=true;y.bFixFragIdBug=true;y.replaceElement=replaceElement;y.updateDocumentTitle=updateDocumentTitle;y.appendToClassName=appendToClassName;y.setup=setup;y.debug=debug;y.bIsDisabled=false;y.bHideBrowserText=true;return y}();

if(typeof sIFR == "function" && !sIFR.UA.bIsIEMac){
	sIFR.setup();
};

if(typeof sIFR == "function"){
	sIFR.replaceElement("#middle .widgets .widget .title h3","/elements/flash/HelveticaNeueLTStd55Roman.swf","#ffffff","","","","","","","","","upper","transparent");
};
