/*	sIFR v2.0.5
	Copyright 2004 - 2007 Mark Wubben and Mike Davidson. Prior contributions by Shaun Inman and Tomas Jogin.
	
	This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
*/
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.substr(b.indexOf(".")-2,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 parseSelector=function(){var g=/^([^#.>`]*)(#|\.|\>|\`)(.+)$/;function parseSelector(a,b){var c=a.split(/\s*\,\s*/);var d=[];for(var i=0;i<c.length;i++){d=d.concat(doParse(c[i],b))};return d};function doParse(a,b,c){a=a.replace(" ","`");var d=a.match(g);var e,listNodes,listSubNodes,subselector,i,limit;var f=[];if(d==null){d=[a,a]};if(d[1]==""){d[1]="*"};if(c==null){c="`"};if(b==null){b=document};switch(d[2]){case"#":subselector=d[3].match(g);if(subselector==null){subselector=[null,d[3]]};e=document.getElementById(subselector[1]);if(e==null||(d[1]!="*"&&!matchNodeNames(e,d[1]))){return f};if(subselector.length==2){f.push(e);return f};return doParse(subselector[3],e,subselector[2]);case".":if(c!=">"){listNodes=getElementsByTagName(b,d[1])}else{listNodes=b.childNodes};for(i=0,limit=listNodes.length;i<limit;i++){e=listNodes[i];if(e.nodeType!=1){continue};subselector=d[3].match(g);if(subselector!=null){if(e.className==null||e.className.match("(\\s|^)"+subselector[1]+"(\\s|$)")==null){continue};listSubNodes=doParse(subselector[3],e,subselector[2]);f=f.concat(listSubNodes)}else if(e.className!=null&&e.className.match("(\\s|^)"+d[3]+"(\\s|$)")!=null){f.push(e)}};return f;case">":if(c!=">"){listNodes=getElementsByTagName(b,d[1])}else{listNodes=b.childNodes};for(i=0,limit=listNodes.length;i<limit;i++){e=listNodes[i];if(e.nodeType!=1){continue};if(!matchNodeNames(e,d[1])){continue};listSubNodes=doParse(d[3],e,">");f=f.concat(listSubNodes)};return f;case"`":listNodes=getElementsByTagName(b,d[1]);for(i=0,limit=listNodes.length;i<limit;i++){e=listNodes[i];listSubNodes=doParse(d[3],e,"`");f=f.concat(listSubNodes)};return f;default:if(c!=">"){listNodes=getElementsByTagName(b,d[1])}else{listNodes=b.childNodes};for(i=0,limit=listNodes.length;i<limit;i++){e=listNodes[i];if(e.nodeType!=1){continue};if(!matchNodeNames(e,d[1])){continue};f.push(e)};return f}};function getElementsByTagName(a,b){if(b=="*"&&a.all!=null){return a.all};return a.getElementsByTagName(b)};function matchNodeNames(a,b){if(b=="*"){return true};return a.nodeName.toLowerCase().replace("html:","")==b.toLowerCase()};return parseSelector}();function named(a){return new named.Arguments(a)};named.Arguments=function(a){this.oArgs=a};named.Arguments.prototype.constructor=named.Arguments;named.extract=function(a,b){var c,passedArg;var i=a.length;while(i--){passedArg=a[i];if(passedArg!=null&&passedArg.constructor!=null&&passedArg.constructor==named.Arguments){c=a[i].oArgs;break}};if(c==null){return};for(sName in c){if(b[sName]!=null){b[sName](c[sName])}};return};var sIFR=function(){var s="http://www.w3.org/1999/xhtml";var t=false;var u=false;var v=false;var w;var x=[];var y=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.charAt(c.indexOf(".")-1))};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(s,"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||(y.bIsXML&&(y.bUseInnerHTMLHack||y.bIsIE))){return{UA:y}};function sIFR(e){if((!z.bAutoInit&&(window.event||e)!=null)||!mayReplace(e)){return};t=true;for(var i=0,limit=x.length;i<limit;i++){replaceElement.apply(null,x[i])};x=[]};var z=sIFR;function mayReplace(e){if(u==false||z.bIsDisabled==true||((y.bIsXML&&y.bIsGecko||y.bIsKHTML)&&e==null&&t==false)||document.getElementsByTagName("body").length==0){return false};return true};function escapeHex(a){if(y.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&&y.bUseDOM){return document.createElementNS(s,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(z.bHideBrowserText==false){b=document.getElementsByTagName("body")[0]};if((z.bHideBrowserText==false||a)&&b){if(b.className==null||b.className.match(/\bsIFR\-hasFlash\b/)==null){appendToClassName(b,"sIFR-hasFlash")}}};function replaceElement(b,c,d,e,f,g,h,j,k,l,m,n,o){if(!mayReplace()){return x.push(arguments)};prepare();named.extract(arguments,{sSelector:function(a){b=a},sFlashSrc:function(a){c=a},sColor:function(a){d=a},sLinkColor:function(a){e=a},sHoverColor:function(a){f=a},sBgColor:function(a){g=a},nPaddingTop:function(a){h=a},nPaddingRight:function(a){j=a},nPaddingBottom:function(a){k=a},nPaddingLeft:function(a){l=a},sFlashVars:function(a){m=a},sCase:function(a){n=a},sWmode:function(a){o=a}});var p=parseSelector(b);if(p.length==0){return false};if(m!=null){m="&"+m.normalize()}else{m=""};if(d!=null){m+="&textcolor="+d};if(f!=null){m+="&hovercolor="+f};if(f!=null||e!=null){m+="&linkcolor="+(e||d)};if(h==null){h=0};if(j==null){j=0};if(k==null){k=0};if(l==null){l=0};if(g==null){g="#FFFFFF"};if(o=="transparent"){if(!y.bHasTransparencySupport){o="opaque"}else{g="transparent"}};if(o==null){o=""};var q,sWidth,sHeight,sMargin,sPadding,sVars,nodeAlternate,nodeFlash,oContent;var r=null;for(var i=0,limit=p.length;i<limit;i++){q=p[i];if(q.className!=null&&q.className.match(/\bsIFR\-replaced\b/)!=null){continue};sWidth=q.offsetWidth-l-j;sHeight=q.offsetHeight-h-k;if(isNaN(sWidth)||isNaN(sHeight)){z.bIsDisabled=true;document.documentElement.className=document.documentElement.className.replace(/\bsIFR\-hasFlash\b/,"");return};nodeAlternate=createElement("span");nodeAlternate.className="sIFR-alternate";oContent=fetchContent(q,nodeAlternate,n);sVars="txt="+escapeHex(oContent.sContent).replace(/\+/g,"%2B").replace(/&/g,"%26").replace(/\"/g,"%22").normalize()+m+"&w="+sWidth+"&h="+sHeight+oContent.sLinkVars;appendToClassName(q,"sIFR-replaced");if(r==null||!y.bUseDOM){if(!y.bUseDOM){if(!y.bIsIE)q.innerHTML=['<embed class="sIFR-flash" type="application/x-shockwave-flash" src="',c,'" quality="best" wmode="',o,'" bgcolor="',g,'" flashvars="',sVars,'" width="',sWidth,'" height="',sHeight,'" sifr="true"></embed>'].join("");else q.innerHTML=['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" sifr="true" width="',sWidth,'" height="',sHeight,'" class="sIFR-flash">','<param name="movie" value="',c,'"></param>','<param name="flashvars" value="',sVars,'"></param>','<param name="quality" value="best"></param>','<param name="wmode" value="',o,'"></param>','<param name="bgcolor" value="',g,'"></param>','</object>'].join('')}else{if(y.bIsOpera){nodeFlash=createElement("object");nodeFlash.setAttribute("data",c);createObjectParameter(nodeFlash,"quality","best");createObjectParameter(nodeFlash,"wmode",o);createObjectParameter(nodeFlash,"bgcolor",g)}else{nodeFlash=createElement("embed");nodeFlash.setAttribute("src",c);nodeFlash.setAttribute("quality","best");nodeFlash.setAttribute("flashvars",sVars);nodeFlash.setAttribute("wmode",o);nodeFlash.setAttribute("bgcolor",g);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(!y.bIsKHTML||!y.bIsXML){r=nodeFlash.cloneNode(true)}}}else{nodeFlash=r.cloneNode(true)};if(y.bUseDOM){if(y.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";q.appendChild(nodeFlash)};q.appendChild(nodeAlternate);if(y.bUseInnerHTMLHack){q.innerHTML+=""}};if(y.bIsIE&&z.bFixFragIdBug){setTimeout(function(){document.title=w},0)}};function updateDocumentTitle(){w=document.title};function setup(){if(z.bIsDisabled==true){return};u=true;if(z.bHideBrowserText){prepare(true)};if(window.attachEvent){window.attachEvent("onload",sIFR)}else if(!y.bIsKonq&&(document.addEventListener||window.addEventListener)){if(document.addEventListener){document.addEventListener("load",sIFR,false)};if(window.addEventListener){window.addEventListener("load",sIFR,false)}}else{if(typeof window.onload=="function"){var a=window.onload;window.onload=function(){a();sIFR()}}else{window.onload=sIFR}};if(!y.bIsIE||window.location.hash==""){z.bFixFragIdBug=false}else{updateDocumentTitle()}};function debug(){prepare(true)};debug.replaceNow=function(){setup();sIFR()};z.UA=y;z.bAutoInit=true;z.bFixFragIdBug=true;z.replaceElement=replaceElement;z.updateDocumentTitle=updateDocumentTitle;z.appendToClassName=appendToClassName;z.setup=setup;z.debug=debug;z.bIsDisabled=false;z.bHideBrowserText=true;return z}();if(typeof sIFR=="function"&&!sIFR.UA.bIsIEMac&&(!sIFR.UA.bIsWebKit||sIFR.UA.nWebKitVersion>=100)){sIFR.setup()};
