/* 
  ------------------------------------------------
  PopMenu Magic menu scripts
  Copyright (c) 2004-2005 Project Seven Development
  www.projectseven.com
  Version: 1.0.2
  ------------------------------------------------
*/
function P7_setPM(){ //v1.0 by PVII-www.projectseven.com
 var i,d='',h="<sty"+"le type=\"text/css\">",tA=navigator.userAgent.toLowerCase();if(window.opera){
 if(tA.indexOf("opera 5")>-1||tA.indexOf("opera 6")>-1){return;}}if(document.getElementById){
 for(i=1;i<20;i++){d+='ul ';h+="\n#p7PMnav "+d+"{position:absolute;left:-9000px;}";}
 document.write(h+"\n<"+"/sty"+"le>");}}P7_setPM();
function P7_initPM(){ //v1.0 by PVII-www.projectseven.com
 var i,g,tD,tA,tU,pp,lvl,tn=navigator.userAgent.toLowerCase();if(window.opera){
 if(tn.indexOf("opera 5")>-1||tn.indexOf("opera 6")>-1){return;}}else if(!document.getElementById){return;}
 p7PMp=arguments;p7PMct=new Array;tD=document.getElementById('p7PMnav');if(tD){tA=tD.getElementsByTagName('A');
 for(i=0;i<tA.length;i++){tA[i].p7PMcl=p7PMct.length;p7PMct[p7PMct.length]=tA[i];g=tA[i].parentNode.getElementsByTagName("UL");
 tA[i].p7PMsub=(g)?g[0]:false;ev=tA[i].getAttribute("onmouseover");if(!ev||ev=='undefined'){tA[i].onmouseover=function(){
 P7_PMtrig(this);};}ev=tA[i].getAttribute("onfocus");if(!ev||ev=='undefined'){tA[i].onfocus=function(){P7_PMtrig(this);};}
 if(tA[i].p7PMsub){pp=tA[i].parentNode;lvl=0;while(pp){if(pp.tagName&&pp.tagName=="UL"){lvl++;}pp=pp.parentNode;}
 tA[i].p7PMlv=lvl;}}tD.onmouseout=P7_PMclose;P7_PMopen();}
}
function P7_PMtrig(a){ //v1.0 by PVII-www.projectseven.com
 var b,t;if(document.p7PMt){clearTimeout(document.p7PMt);}document.p7PMa=1;b=(a.p7PMsub)?'P7_PMshow(':'P7_PMtg(';
 t='document.p7PMt=setTimeout("'+b+a.p7PMcl+')",160)';eval (t);
}
function P7_PMshow(a,bp){ //v1.0.2 by PVII-www.projectseven.com
 var u,lv,oft,ofr,uw,uh,pp,aw,ah,adj,mR,mT,wW=0,wH,w1,w2,w3,sct,pw,lc,pwv,xx=0,yy=0,wP=true;
 var iem=(navigator.appVersion.indexOf("MSIE 5")>-1)?true:false,dce=document.documentElement,dby=document.body;document.p7PMa=1;
 if(!bp){P7_PMtg(a);}u=p7PMct[a].p7PMsub;if(u.p7pmax&&u.p7pmax==1){return;}u.p7pmax=1;lv=(p7PMp[0]==1&&p7PMct[a].p7PMlv==1)?true:false;
 p7PMct[a].className=p7PMct[a].className.replace("p7PMtrg","p7PMon");oft=parseInt(p7PMp[3]);ofr=parseInt(p7PMp[4]);
 uw=u.offsetWidth;uh=u.offsetHeight;pp=p7PMct[a];aw=pp.offsetWidth;ah=pp.offsetHeight;while(pp){xx+=(pp.offsetLeft)?pp.offsetLeft:0;
 yy+=(pp.offsetTop)?pp.offsetTop:0;if(window.opera||navigator.userAgent.indexOf("Safari")>-1){
 if(p7PMct[a].p7PMlv!=1&&pp.nodeName=="BODY"){yy-=(pp.offsetTop)?pp.offsetTop:0;}}pp=pp.offsetParent;}
 if(iem&&navigator.userAgent.indexOf("Mac")>-1){yy+=parseInt(dby.currentStyle.marginTop);}adj=parseInt((aw*ofr)/100);mR=(lv)?0:aw-adj;
 adj=parseInt((ah*oft)/100);mT=(lv)?0:(ah-adj)*-1;w3=dby.parentNode.scrollLeft;if(!w3){w3=dby.scrollLeft;}w3=(w3)?w3:0;
 if(dce&&dce.clientWidth){wW=dce.clientWidth+w3;}else if(dby){wW=dby.clientWidth+w3;}if(!wW){wW=0;wP=false;}wH=window.innerHeight;
 if(!wH){wH=dce.clientHeight;if(!wH||wH<=0){wH=dby.clientHeight;}}sct=dby.parentNode.scrollTop;if(!sct){sct=dby.scrollTop;if(!sct){
 sct=window.scrollY?window.scrollY:0;}}pw=xx+mR+uw;if(pw>wW&&wP){mR=uw*-1;mR+=10;if(lv){mR=(wW-xx)-uw;}}lc=xx+mR;if(lc<0){mR=xx*-1;}
 pw=yy+uh+ah+mT-sct;pwv=wH-pw;if(pwv<0){mT+=pwv;if(uh>wH){mT=(yy+ah-sct)*-1;}}u.style.marginLeft=mR+'px';u.style.marginTop=mT+'px';
 if(p7PMp[2]==1){if(!iem){P7_PManim(a,20);}}u.className="p7PMshow";
}
function P7_PMhide(u){ //v1.0 by PVII-www.projectseven.com
 var i,tt,ua;u.p7pmax=0;u.className="p7PMhide";ua=u.parentNode.firstChild;ua.className=ua.className.replace("p7PMon","p7PMtrg");
}
function P7_PMtg(a,b){ //v532 alpha by PVII-www.projectseven.com
 var i,u,tA,tU,pp;tA=p7PMct[a];pp=tA.parentNode;while(pp){if(pp.tagName=="UL"){break;}pp=pp.parentNode;}if(pp){
 tU=pp.getElementsByTagName("UL");for(i=tU.length-1;i>-1;i--){if(b!=1&&tA.p7PMsub==tU[i]){continue;}else{P7_PMhide(tU[i]);}}}
}
function P7_PMclose(evt){ //v1.0 by PVII-www.projectseven.com
 var pp,st,tS,m=true;evt=(evt)?evt:((event)?event:null);st=document.p7PMa;if(st!=-1){if(evt){
 tS=(evt.relatedTarget)?evt.relatedTarget:evt.toElement;if(tS){pp=tS.parentNode;while(pp){if(pp&&pp.id&&pp.id=="p7PMnav"){m=false;
 document.p7PMa=1;break;}pp=pp.parentNode;}}if(m){document.p7PMa=-1;if(document.p7PMt){clearTimeout(document.p7PMt);}
 document.p7PMt=setTimeout("P7_PMclr()",360);}}}
}
function P7_PMclr(){ //v1.0 by PVII-www.projectseven.com
 var i,tU,tUU;document.p7PMa=-1;tU=document.getElementById('p7PMnav');if(tU){tUU=tU.getElementsByTagName("UL");if(tUU){
 for(i=tUU.length-1;i>-1;i--){P7_PMhide(tUU[i]);}}}
}
function P7_PManim(a,st){ //v1.0 by PVII-www.projectseven.com
 var g=p7PMct[a].p7PMsub,sp=30,inc=20;st=(st>=100)?100:st;g.style.fontSize=st+"%";if(st<100){st+=inc;setTimeout("P7_PManim("+a+","+st+")",sp);}
}
function P7_PMmark(){document.p7PMop=arguments;}
function P7_PMopen(){ //v1.0 by PVII-www.projectseven.com
 var i,x,tA,op,pp,wH,tA,aU,r1,k=-1,kk=-1,mt=new Array(1,'','');if(document.p7PMop){mt=document.p7PMop;}op=mt[0];if(op<1){return;}
 tA=document.getElementById('p7PMnav').getElementsByTagName("A");wH=window.location.href;r1=/index\.[\S]*/i;for(i=0;i<tA.length;i++){
 if(tA[i].href){aU=tA[i].href.replace(r1,'');if(op>0){if(tA[i].href==wH||aU==wH){k=i;kk=-1;break;}}if(op==2){if(tA[i].firstChild){
 if(tA[i].firstChild.nodeValue==mt[1]){kk=i;}}}if(op==3 && tA[i].href.indexOf(mt[1])>-1){kk=i;}if(op==4){for(x=1;x<mt.length;x+=2){
 if(wH.indexOf(mt[x])>-1){if(tA[i].firstChild&&tA[i].firstChild.data){if(tA[i].firstChild.data==mt[x+1]){kk=i;break;}}}}}}}k=(kk>k)?kk:k;
 if(k>-1){pp=tA[k].parentNode;while(pp){if(pp.nodeName=="LI"){pp.firstChild.className="p7PMmark"+" "+pp.firstChild.className;}
 pp=pp.parentNode;}}if(kk>-1){document.p7PMad=1;}P7_PMadma();P7_PMadmb();
}
function P7_PMadma(){ //v1.0 by PVII-www.projectseven.com
 var s,ss,i,j,a,g,b,c,d,t,h,tA,b,tP,r1,r2,tI,bA,aA,tB=new Array(),bC='',x=0,ur=1,mt=document.p7PMad;g=document.getElementById("p7PMnav");
 b=document.getElementById("pmmcrumb-top");if(g&&b){c=b.getElementsByTagName("A");if(c&&c[0]){tP=c[0].parentNode.childNodes;r1=/<a/i;r2=/\/a>/i;
 tI=c[0].parentNode.innerHTML;j=tI.search(r1);bA=tI.substring(0,j);j=tI.search(r2);aA=tI.substring(j+3);bC+=(bA)?bA:'';s=(aA)?aA:' &gt ';
 if(!c[0].id||c[0].id!="pmmcn"){if(c[0].href!=window.location.href){tB[0]=c[0];x++;ur=2;}}tA=g.getElementsByTagName("A");for(i=0;i<tA.length;i++){
 if(tA[i].className.indexOf("p7PMmark")>-1){tB[x]=tA[i];x++;}}for(i=0;i<tB.length;i++){ss=(i>0)?s:'';a=(i==tB.length-1)?0:1;
 d=(i==0&&c[0].id)?'id="'+c[0].id+'" ':' ';t=tB[i].firstChild.nodeValue;if(a==1||mt==1||x<ur){bC+=ss+'<a '+d+'hr'+'ef="'+tB[i].href+'">'+t+'</a>';
 }else{bC+=ss+t;}}if(mt==1||i<ur){ss=(i>0)?s:'';bC+=ss+document.title;}c[0].parentNode.innerHTML=bC;}}
}
function P7_PMadmb(){ //v1.0 by PVII-www.projectseven.com
 var h='',g,i,tA,b,m=false;g=document.getElementById("p7PMnav");b=document.getElementById("pmmnext");if(g&&b){tA=g.getElementsByTagName("A");
 for(i=tA.length-1;i>-1;i--){if(tA[i].className.indexOf("p7PMmark")>-1){m=true;break;}}if(m){if(i<tA.length-1){i++;}else{i=0;}
 while(tA[i].href==window.location.href+"#"||tA[i].href=="javascript:;"){i++;if(i>tA.length-1){
 i=0;break;}}b.href=tA[i].href;b.innerHTML=tA[i].firstChild.nodeValue;}}	
}

/* 
  ------------------------------------------------
  Rollovers
  ------------------------------------------------
*/

window.onload = function(e) {

  initRollovers(); //window load for rollover script


}

/*

	Standards Compliant Rollover Script

	Author : Daniel Nolan

	http://www.bleedingego.co.uk/webdev.php

*/



/* window load moved to textsize.js, so they can work together */

/* Add the class "imgover" to any image meant to have a rollover. */

/* The rollover state of the image should be saved with _o at the end of it, i.e., 1.jpg becomes 1_o.jpg, and this file should be in the same directory */


function initRollovers() {

	if (!document.getElementById) return

	

	var aPreLoad = new Array();

	var sTempSrc;

	

	var aImages = document.getElementsByTagName('img');

	



	for (var i = 0; i < aImages.length; i++) {		

		if (aImages[i].className == 'imgover') {

			var src = aImages[i].getAttribute('src');

			var ftype = src.substring(src.lastIndexOf('.'), src.length);

			var hsrc = src.replace(ftype, '_o'+ftype);



			aImages[i].setAttribute('hsrc', hsrc);

			

			aPreLoad[i] = new Image();

			aPreLoad[i].src = hsrc;

			

			aImages[i].onmouseover = function() {

				sTempSrc = this.getAttribute('src');

				this.setAttribute('src', this.getAttribute('hsrc'));

			}	

			

			aImages[i].onmouseout = function() {

				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_o'+ftype, ftype);

				this.setAttribute('src', sTempSrc);

			}

		}

	}

}

/*=:project
    scalable Inman Flash Replacement (sIFR) version 3, revision 323

  =:file
    Copyright: 2006 Mark Wubben.
    Author: Mark Wubben, <http://novemberborn.net/>

  =:history
    * IFR: Shaun Inman
    * sIFR 1: Mike Davidson, Shaun Inman and Tomas Jogin
    * sIFR 2: Mike Davidson, Shaun Inman, Tomas Jogin and Mark Wubben

  =:license
    This software is licensed and provided under the CC-GNU LGPL.
    See <http://creativecommons.org/licenses/LGPL/2.1/>    
*/

var parseSelector=(function(){var _1=/\s*,\s*/;var _2=/\s*([\s>+~(),]|^|$)\s*/g;var _3=/([\s>+~,]|[^(]\+|^)([#.:@])/g;var _4=/^[^\s>+~]/;var _5=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function parseSelector(_6,_7){_7=_7||document.documentElement;var _8=_6.split(_1),_9=[];for(var i=0;i<_8.length;i++){var _b=[_7],_c=toStream(_8[i]);for(var j=0;j<_c.length;){var _e=_c[j++],_f=_c[j++],_10="";if(_c[j]=="("){while(_c[j++]!=")"&&j<_c.length){_10+=_c[j]}_10=_10.slice(0,-1)}_b=select(_b,_e,_f,_10)}_9=_9.concat(_b)}return _9}function toStream(_11){var _12=_11.replace(_2,"$1").replace(_3,"$1*$2");if(_4.test(_12)){_12=" "+_12}return _12.match(_5)||[]}function select(_13,_14,_15,_16){return (_17[_14])?_17[_14](_13,_15,_16):[]}var _18={toArray:function(_19){var a=[];for(var i=0;i<_19.length;i++){a.push(_19[i])}return a}};var dom={isTag:function(_1d,tag){return (tag=="*")||(tag.toLowerCase()==_1d.nodeName.toLowerCase())},previousSiblingElement:function(_1f){do{_1f=_1f.previousSibling}while(_1f&&_1f.nodeType!=1);return _1f},nextSiblingElement:function(_20){do{_20=_20.nextSibling}while(_20&&_20.nodeType!=1);return _20},hasClass:function(_21,_22){return (_22.className||"").match("(^|\\s)"+_21+"(\\s|$)")},getByTag:function(tag,_24){return _24.getElementsByTagName(tag)}};var _17={"#":function(_25,_26){for(var i=0;i<_25.length;i++){if(_25[i].getAttribute("id")==_26){return [_25[i]]}}return []}," ":function(_28,_29){var _2a=[];for(var i=0;i<_28.length;i++){_2a=_2a.concat(_18.toArray(dom.getByTag(_29,_28[i])))}return _2a},">":function(_2c,_2d){var _2e=[];for(var i=0,_30;i<_2c.length;i++){_30=_2c[i];for(var j=0,_32;j<_30.childNodes.length;j++){_32=_30.childNodes[j];if(_32.nodeType==1&&dom.isTag(_32,_2d)){_2e.push(_32)}}}return _2e},".":function(_33,_34){var _35=[];for(var i=0,_37;i<_33.length;i++){_37=_33[i];if(dom.hasClass([_34],_37)){_35.push(_37)}}return _35},":":function(_38,_39,_3a){return (pseudoClasses[_39])?pseudoClasses[_39](_38,_3a):[]}};parseSelector.selectors=_17;parseSelector.pseudoClasses={};parseSelector.util=_18;parseSelector.dom=dom;return parseSelector})();
var sIFR=new function(){var _3b=this;var _3c="sIFR-active";var _3d="sIFR-replaced";var _3e="sIFR-flash";var _3f="sIFR-ignore";var _40="sIFR-alternate";var _41="sIFR-class";var _42="sIFR-layout";var _43="sIFR-fixfocus";var _44=6;var _45=126;var _46=8;var _47="SIFR-PREFETCHED";var _48=[];var _49=5;var _4a="323";this.isActive=false;this.isEnabled=true;this.hideElements=true;this.preserveSingleWhitespace=false;this.fixWrap=true;this.fixHover=true;this.registerEvents=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.fromLocal=false;this.forceClear=false;this.forceWidth=false;this.fitExactly=false;this.forceTextTransform=true;this.useDomContentLoaded=true;this.hasFlashClassSet=false;this.repaintOnResize=true;this.callbacks=[];var _4b=0;var _4c=false,_4d=false;var dom=new function(){var _4f="http://www.w3.org/1999/xhtml";this.getBody=function(){var _50=document.getElementsByTagName("body");if(_50.length==1){return _50[0]}return null};this.addClass=function(_51,_52){if(_52){_52.className=((_52.className||"")==""?"":_52.className+" ")+_51}};this.removeClass=function(_53,_54){if(_54){_54.className=_54.className.replace(new RegExp("(^|\\s)"+_53+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")}};this.hasClass=function(_55,_56){return new RegExp("(^|\\s)"+_55+"(\\s|$)").test(_56.className)};this.hasOneOfClassses=function(_57,_58){for(var i=0;i<_57.length;i++){if(this.hasClass(_57[i],_58)){return true}}return false};this.create=function(_5a){if(document.createElementNS){return document.createElementNS(_4f,_5a)}return document.createElement(_5a)};this.setInnerHtml=function(_5b,_5c){if(ua.innerHtmlSupport){_5b.innerHTML=_5c}else{if(ua.xhtmlSupport){_5c=["<root xmlns=\"",_4f,"\">",_5c,"</root>"].join("");var xml=(new DOMParser()).parseFromString(_5c,"text/xml");xml=document.importNode(xml.documentElement,true);while(_5b.firstChild){_5b.removeChild(_5b.firstChild)}while(xml.firstChild){_5b.appendChild(xml.firstChild)}}}};this.nodeFromHtml=function(_5e){var _5f=this.create("div");_5f.innerHTML=_5e;return _5f.firstChild};this.getComputedStyle=function(_60,_61){var _62;if(document.defaultView&&document.defaultView.getComputedStyle){_62=document.defaultView.getComputedStyle(_60,null)[_61]}else{if(_60.currentStyle){_62=_60.currentStyle[_61]}}return _62||""};this.getStyleAsInt=function(_63,_64,_65){var _66=this.getComputedStyle(_63,_64);if(_65&&!/px$/.test(_66)){return 0}_66=parseInt(_66);return isNaN(_66)?0:_66};this.getWidthFromStyle=function(_67){var _68=this.getStyleAsInt(_67,"width",ua.ie);if(_68==0){var _69=this.getStyleAsInt(_67,"paddingRight",true);var _6a=this.getStyleAsInt(_67,"paddingLeft",true);var _6b=this.getStyleAsInt(_67,"borderRightWidth",true);var _6c=this.getStyleAsInt(_67,"borderLeftWidth",true);_68=_67.offsetWidth-_6a-_69-_6c-_6b}return _68};this.getZoom=function(){return _af.zoom.getLatest()};this.blurElement=function(_6d){if(ua.gecko){_6d.blur();return}var _6e=dom.create("input");_6e.style.width="0px";_6e.style.height="0px";_6d.parentNode.appendChild(_6e);_6e.focus();_6e.blur();_6e.parentNode.removeChild(_6e)};this.getDimensions=function(_6f){var _70=_6f.offsetWidth;var _71=_6f.offsetHeight;if(_70==0||_71==0){for(var i=0;i<_6f.childNodes.length;i++){var _73=_6f.childNodes[i];if(_73.nodeType!=1){continue}_70=Math.max(_70,_73.offsetWidth);_71=Math.max(_71,_73.offsetHeight)}}return {width:_70,height:_71}};this.contentIsLink=function(_74){var _75=false;for(var i=0;i<_74.childNodes.length;i++){var _77=_74.childNodes[i];if(_77.nodeType==3&&!_77.nodeValue.match(/^\s*$/)){return false}else{if(_77.nodeType!=1){continue}}var _78=_77.nodeName.toLowerCase()=="a";if(!_78){return false}else{_75=true}}return _75}};this.dom=dom;var ua=new function(){var ua=navigator.userAgent.toLowerCase();var _7b=(navigator.product||"").toLowerCase();this.macintosh=ua.indexOf("mac")>-1;this.windows=ua.indexOf("windows")>-1;this.quicktime=false;this.opera=ua.indexOf("opera")>-1;this.konqueror=_7b.indexOf("konqueror")>-1;this.ie=false/*@cc_on||true@*/;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(ua)/*@cc_on&&@_jscript_version>=5.5@*/;this.ieWin=this.ie&&this.windows/*@cc_on&&@_jscript_version>=5.1@*/;this.windows=this.windows&&(!this.ie||this.ieWin);this.ieMac=this.ie&&this.macintosh/*@cc_on&&@_jscript_version<5.1@*/;this.macintosh=this.macintosh&&(!this.ie||this.ieMac);this.safari=ua.indexOf("safari")>-1;this.webkit=ua.indexOf("applewebkit")>-1&&!this.konqueror;this.khtml=this.webkit||this.konqueror;this.gecko=!this.webkit&&_7b=="gecko";this.operaVersion=this.opera&&/.*opera(\s|\/)(\d+\.\d+)/.exec(ua)?parseInt(RegExp.$2):0;this.webkitVersion=this.webkit&&/.*applewebkit\/(\d+).*/.exec(ua)?parseInt(RegExp.$1):0;this.geckoBuildDate=this.gecko&&/.*gecko\/(\d{8}).*/.exec(ua)?parseInt(RegExp.$1):0;this.konquerorVersion=this.konqueror&&/.*konqueror\/(\d\.\d).*/.exec(ua)?parseInt(RegExp.$1):0;this.flashVersion=0;if(this.ieWin){var axo;var _7d=false;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=6;axo.AllowScriptAccess="always"}catch(e){_7d=this.flashVersion==6}if(!_7d){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}}if(!_7d&&axo){this.flashVersion=parseFloat(/([\d,?]+)/.exec(axo.GetVariable("$version"))[1].replace(/,/g,"."))}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var _7e=navigator.plugins["Shockwave Flash"];this.flashVersion=parseFloat(/(\d+\.?\d*)/.exec(_7e.description)[1]);var i=0;while(this.flashVersion>=_46&&i<navigator.mimeTypes.length){var _80=navigator.mimeTypes[i];if(_80.type=="application/x-shockwave-flash"&&_80.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){this.flashVersion=0;this.quicktime=true}i++}}}this.flash=this.flashVersion>=_46;this.transparencySupport=this.macintosh||this.windows;this.computedStyleSupport=this.ie||document.defaultView&&document.defaultView.getComputedStyle&&(!this.gecko||this.geckoBuildDate>=20030624);this.xhtmlSupport=!!window.DOMParser&&!!document.importNode;try{var n=dom.create("span");if(!this.ieMac){n.innerHTML="x"}this.innerHtmlSupport=n.innerHTML=="x"}catch(e){this.innerHtmlSupport=false}this.zoomSupport=!!(this.opera&&document.documentElement);this.geckoXml=this.gecko&&(document.contentType||"").indexOf("xml")>-1;this.requiresPrefetch=this.ieWin||this.khtml;this.verifiedKonqueror=false;this.supported=this.flash&&(!this.ie||this.ieSupported)&&(!this.opera||this.operaVersion>=8)&&(!this.webkit||this.webkitVersion>=412)&&(!this.konqueror||this.konquerorVersion>3.5)&&this.computedStyleSupport&&(this.innerHtmlSupport||!this.khtml&&this.xhtmlSupport)&&(!this.gecko||this.geckoBuildDate>20040804)};this.ua=ua;var _82=new function(){var _83={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};var _84=" ";function capitalize($){return $.toUpperCase()}this.normalize=function(str){if(_3b.preserveSingleWhitespace){return str.replace(/\s/g,_84)}return str.replace(/(\n|\r)+/g,_84).replace(/(\s)\s+/g,"$1").replace(/\xA0/,_84)};this.textTransform=function(_87,str){switch(_87){case "uppercase":str=str.toUpperCase();break;case "lowercase":str=str.toLowerCase();break;case "capitalize":var _89=str;str=str.replace(/^\w|\s\w/g,capitalize);if(str.indexOf("function capitalize")!=-1){var _8a=_89.replace(/(^|\s)(\w)/g,"$1$1$2$2").split(/^\w|\s\w/g);str="";for(var i=0;i<_8a.length;i++){str+=_8a[i].charAt(0).toUpperCase()+_8a[i].substring(1)}}break}return str};this.toHexString=function(str){if(typeof (str)!="string"||!str.charAt(0)=="#"||str.length!=4&&str.length!=7){return str}str=str.replace(/#/,"");if(str.length==3){str=str.replace(/(.)(.)(.)/,"$1$1$2$2$3$3")}return "0x"+str};this.toJson=function(obj){var _8e="";switch(typeof (obj)){case "string":_8e="\""+obj+"\"";break;case "number":case "boolean":_8e=obj.toString();break;case "object":_8e=[];for(var _8f in obj){if(obj[_8f]==Object.prototype[_8f]){continue}_8e.push("\""+_8f+"\":"+_82.toJson(obj[_8f]))}_8e="{"+_8e.join(",")+"}";break}return _8e};this.convertCssArg=function(arg){if(!arg){return {}}if(typeof (arg)=="object"){if(arg.constructor==Array){arg=arg.join("")}else{return arg}}var obj={};var _92=arg.split("}");for(var i=0;i<_92.length;i++){var $=_92[i].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!$||$.length!=3){continue}if(!obj[$[1]]){obj[$[1]]={}}var _95=$[2].split(";");for(var j=0;j<_95.length;j++){var $2=_95[j].match(/\s*([^:\s]+)\s*\:\s*([^\s;]+)/);if(!$2||$2.length!=3){continue}obj[$[1]][$2[1]]=$2[2]}}return obj};this.extractFromCss=function(css,_99,_9a,_9b){var _9c=null;if(css&&css[_99]&&css[_99][_9a]){_9c=css[_99][_9a];if(_9b){delete css[_99][_9a]}}return _9c};this.cssToString=function(arg){var css=[];for(var _9f in arg){var _a0=arg[_9f];if(_a0==Object.prototype[_9f]){continue}css.push(_9f,"{");for(var _a1 in _a0){if(_a0[_a1]==Object.prototype[_a1]){continue}var _a2=_a0[_a1];if(_83[_a1]){_a2=parseInt(_a2,10)}css.push(_a1,":",_a2,";")}css.push("}")}return css.join("")};this.bind=function(_a3,_a4){return function(){_a3[_a4].apply(_a3,arguments)}};this.escape=function(str){return escape(str).replace(/\+/g,"%2B")};this.copyProperties=function(_a6,to){for(var _a8 in _a6){if(to[_a8]===undefined){to[_a8]=_a6[_a8]}}return to};this.domain=function(){var _a9="";try{_a9=document.domain}catch(e){}return _a9};this.domainMatches=function(_aa,_ab){if(_ab=="*"||_ab==_aa){return true}var _ac=_ab.lastIndexOf("*");if(_ac>-1){_ab=_ab.substr(_ac+1);var _ad=_aa.lastIndexOf(_ab);if(_ad>-1&&(_ad+_ab.length)==_aa.length){return true}}return false};this.uriEncode=function(s){return encodeURI(decodeURIComponent(s))}};this.util=_82;var _af={};_af.fragmentIdentifier=new function(){this.fix=true;var _b0;this.cache=function(){_b0=document.title};function doFix(){document.title=_b0}this.restore=function(){if(this.fix){setTimeout(doFix,0)}}};_af.synchronizer=new function(){this.isBlocked=false;this.block=function(){this.isBlocked=true};this.unblock=function(){this.isBlocked=false;_b1.replaceAll()}};_af.zoom=new function(){var _b2=100;this.getLatest=function(){return _b2};if(ua.zoomSupport&&ua.opera){var _b3=document.createElement("div");_b3.style.position="fixed";_b3.style.left="-65536px";_b3.style.top="0";_b3.style.height="100%";_b3.style.width="1px";_b3.style.zIndex="-32";document.documentElement.appendChild(_b3);function updateZoom(){if(!_b3){return}var _b4=window.innerHeight/_b3.offsetHeight;var _b5=Math.round(_b4*100)%10;if(_b5>5){_b4=Math.round(_b4*100)+10-_b5}else{_b4=Math.round(_b4*100)-_b5}_b2=isNaN(_b4)?100:_b4;_af.synchronizer.unblock();document.documentElement.removeChild(_b3);_b3=null}_af.synchronizer.block();setTimeout(updateZoom,54)}};this.hacks=_af;this.errors={};var _b6={kwargs:[],replaceAll:function(_b7){for(var i=0;i<this.kwargs.length;i++){_3b.replace(this.kwargs[i])}if(!_b7){this.kwargs=[]}}};var _b1={kwargs:[],replaceAll:_b6.replaceAll};function isValidDomain(){if(_3b.domains.length==0){return true}var _b9=_82.domain();for(var i=0;i<_3b.domains.length;i++){var _bb=_3b.domains[i];if(_82.domainMatches(_b9,_bb)){return true}}return false}function isFile(){if(!_3b.fromLocal&&document.location.protocol=="file:"){if(_3b.debug){throw new Error(_3b.errors.isFile)}return true}return false}function resize(){var _bc=resize.viewport;resize.viewport={width:window.innerWidth||document.documentElement.clientWidth||dom.getBody().clientWidth,height:window.innerHeight||document.documentElement.clientHeight||dom.getBody().clientHeight};if(_bc&&resize.viewport.width==_bc.width&&resize.viewport.height==_bc.height){return}if(resize.timer){clearTimeout(resize.timer)}resize.timer=setTimeout(function(){delete resize.timer;for(var i=0;i<_3b.callbacks.length;i++){_3b.callbacks[i].resize()}},200)}this.activate=function(){if(!ua.supported||!this.isEnabled||this.isActive||!isValidDomain()||isFile()){return}if(arguments.length>0){this.prefetch.apply(this,arguments)}this.isActive=true;if(this.hideElements){this.setFlashClass()}if(ua.ieWin&&_af.fragmentIdentifier.fix&&window.location.hash!=""){_af.fragmentIdentifier.cache()}else{_af.fragmentIdentifier.fix=false}if(!this.registerEvents){return}function handler(evt,_bf){_3b.initialize(_bf);if(evt&&evt.type=="load"){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",handler,false)}if(window.removeEventListener){window.removeEventListener("load",handler,false)}}}if(window.addEventListener){if(_3b.useDomContentLoaded&&ua.gecko){document.addEventListener("DOMContentLoaded",handler,false)}window.addEventListener("load",handler,false)}else{if(ua.ieWin){if(_3b.useDomContentLoaded){document.write("<scr"+"ipt id=__sifr_ie_onload defer src=//:></script>");document.getElementById("__sifr_ie_onload").onreadystatechange=function(){if(this.readyState=="complete"){handler(null,true);this.removeNode()}}}window.attachEvent("onload",handler)}}};this.setFlashClass=function(){if(this.hasFlashClassSet){return}dom.addClass(_3c,dom.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return}dom.removeClass(_3c,dom.getBody());dom.removeClass(_3c,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(_c0){if(!this.isActive||!this.isEnabled){return}if(_4d){if(!_c0){_b6.replaceAll(false)}return}_4d=true;_b6.replaceAll(_c0);if(_3b.repaintOnResize){if(window.addEventListener){window.addEventListener("resize",resize,false)}else{window.attachEvent("onresize",resize)}}clearPrefetch()};function getSource(src){if(typeof (src)!="string"){if(src.src){src=src.src}if(typeof (src)!="string"){var _c2=[];for(var _c3 in src){if(src[_c3]!=Object.prototype[_c3]){_c2.push(_c3)}}_c2.sort().reverse();var _c4="";var i=-1;while(!_c4&&++i<_c2.length){if(parseFloat(_c2[i])<=ua.flashVersion){_c4=src[_c2[i]]}}src=_c4}}if(!src&&_3b.debug){throw new Error(_3b.errors.getSource)}if(ua.ie&&src.charAt(0)=="/"){src=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+src}return src}this.prefetch=function(){if((!ua.requiresPrefetch&&!this.isActive)||!ua.supported||!this.isEnabled||!isValidDomain()){return}if(this.setPrefetchCookie&&new RegExp(";?"+_47+"=true;?").test(document.cookie)){return}try{_4c=true;if(ua.ieWin){prefetchIexplore(arguments)}else{prefetchLight(arguments)}if(this.setPrefetchCookie){document.cookie=_47+"=true;path="+this.cookiePath}}catch(e){if(_3b.debug){throw e}}};function prefetchIexplore(_c6){for(var i=0;i<_c6.length;i++){document.write("<script defer type=\"sifr/prefetch\" src=\""+getSource(_c6[i])+"\"></script>")}}function prefetchLight(_c8){for(var i=0;i<_c8.length;i++){new Image().src=getSource(_c8[i])}}function clearPrefetch(){if(!ua.ieWin||!_4c){return}try{var _ca=document.getElementsByTagName("script");for(var i=_ca.length-1;i>=0;i--){var _cc=_ca[i];if(_cc.type=="sifr/prefetch"){_cc.parentNode.removeChild(_cc)}}}catch(e){}}function getRatio(_cd,_ce){for(var i=0;i<_ce.length;i+=2){if(_cd<=_ce[i]){return _ce[i+1]}}return _ce[_ce.length-1]||1}function getFilters(obj){var _d1=[];for(var _d2 in obj){if(obj[_d2]==Object.prototype[_d2]){continue}var _d3=obj[_d2];_d2=[_d2.replace(/filter/i,"")+"Filter"];for(var _d4 in _d3){if(_d3[_d4]==Object.prototype[_d4]){continue}_d2.push(_d4+":"+_82.escape(_82.toJson(_82.toHexString(_d3[_d4]))))}_d1.push(_d2.join(","))}return _82.escape(_d1.join(";"))}function calculate(_d5){var _d6,_d7;if(!ua.ie){_d6=dom.getStyleAsInt(_d5,"lineHeight");_d7=Math.floor(dom.getStyleAsInt(_d5,"height")/_d6)}else{if(ua.ie){var _d8=dom.getComputedStyle(_d5,"fontSize");if(_d8.indexOf("px")>0){_d6=parseInt(_d8)}else{var _d9=_d5.innerHTML;_d5.style.visibility="visible";_d5.style.overflow="visible";_d5.style.position="static";_d5.style.zoom="normal";_d5.style.writingMode="lr-tb";_d5.style.width=_d5.style.height="auto";_d5.style.maxWidth=_d5.style.maxHeight=_d5.style.styleFloat="none";var _da=_d5;var _db=_d5.currentStyle.hasLayout;if(_db){dom.setInnerHtml(_d5,"<div class=\""+_42+"\">X<br />X<br />X</div>");_da=_d5.firstChild}else{dom.setInnerHtml(_d5,"X<br />X<br />X")}var _dc=_da.getClientRects();_d6=_dc[1].bottom-_dc[1].top;_d6=Math.ceil(_d6*0.8);if(_db){dom.setInnerHtml(_d5,"<div class=\""+_42+"\">"+_d9+"</div>");_da=_d5.firstChild}else{dom.setInnerHtml(_d5,_d9)}_dc=_da.getClientRects();_d7=_dc.length;if(_db){dom.setInnerHtml(_d5,_d9)}_d5.style.visibility=_d5.style.width=_d5.style.height=_d5.style.maxWidth=_d5.style.maxHeight=_d5.style.overflow=_d5.style.styleFloat=_d5.style.position=_d5.style.zoom=_d5.style.writingMode=""}}}return {lineHeight:_d6,lines:_d7}}this.replace=function(_dd,_de){if(!ua.supported){return}if(_de){_dd=_82.copyProperties(_dd,_de)}if(!_4d){return _b6.kwargs.push(_dd)}if(_af.synchronizer.isBlocked){return _b1.kwargs.push(_dd)}var _df=_dd.elements;if(!_df&&parseSelector){_df=parseSelector(_dd.selector)}if(_df.length==0){return}this.setFlashClass();var src=getSource(_dd.src);var css=_82.convertCssArg(_dd.css);var _e2=getFilters(_dd.filters);var _e3=(_dd.forceClear==null)?_3b.forceClear:_dd.forceClear;var _e4=(_dd.fitExactly==null)?_3b.fitExactly:_dd.fitExactly;var _e5=_e4||(_dd.forceWidth==null?_3b.forceWidth:_dd.forceWidth);var _e6=!!(_dd.preventWrap&&!_dd.forceSingleLine);var _e7=parseInt(_82.extractFromCss(css,".sIFR-root","leading"))||0;var _e8=_82.extractFromCss(css,".sIFR-root","font-size",true)||0;var _e9=_82.extractFromCss(css,".sIFR-root","background-color",true)||"#FFFFFF";var _ea=_82.extractFromCss(css,".sIFR-root","kerning",true)||"";var _eb=_dd.gridFitType||_82.extractFromCss(css,".sIFR-root","text-align")=="right"?"subpixel":"pixel";var _ec=_3b.forceTextTransform?_82.extractFromCss(css,".sIFR-root","text-transform",true)||"none":"none";var _ed=_82.extractFromCss(css,".sIFR-root","opacity",true)||"100";var _ee=_dd.pixelFont||false;var _ef=_dd.ratios||_48;var _f0=parseInt(_dd.tuneHeight)||0;if(parseInt(_e8).toString()!=_e8&&_e8.indexOf("px")==-1){_e8=0}else{_e8=parseInt(_e8)}if(parseFloat(_ed)<1){_ed=100*parseFloat(_ed)}var _f1="";if(_e4){_82.extractFromCss(css,".sIFR-root","text-align",true)}if(!_dd.modifyCss){_f1=_82.cssToString(css)}var _f2=_dd.wmode||"";if(!_f2){if(_dd.transparent){_f2="transparent"}else{if(_dd.opaque){_f2="opaque"}}}if(_f2=="transparent"){if(!ua.transparencySupport){_f2="opaque"}else{_e9="transparent"}}for(var i=0;i<_df.length;i++){var _f4=_df[i];if(!ua.verifiedKonqueror){if(dom.getComputedStyle(_f4,"lineHeight").match(/e\+08px/)){ua.supported=_3b.isEnabled=false;this.removeFlashClass();return}ua.verifiedKonqueror=true}if(dom.hasOneOfClassses([_3d,_3f,_40],_f4)){continue}var _f5=dom.getDimensions(_f4);var _f6=_f5.height;var _f7=_f5.width;var _f8=dom.getComputedStyle(_f4,"display");if(!_f6||!_f7||_f8==null||_f8=="none"){continue}if(_e3&&ua.gecko){_f4.style.clear="both"}var _f9=null;if(_3b.fixWrap&&ua.ie&&_f8=="block"){_f9=_f4.innerHTML;dom.setInnerHtml(_f4,"X")}_f7=dom.getWidthFromStyle(_f4);if(_f9&&_3b.fixWrap&&ua.ie){dom.setInnerHtml(_f4,_f9)}var _fa,_fb;if(!_e8){var _fc=calculate(_f4);_fa=Math.min(_45,Math.max(_44,_fc.lineHeight));if(_ee){_fa=Math.max(8,8*Math.round(_fa/8))}_fb=_fc.lines;if(isNaN(_fb)||!isFinite(_fb)||_fb==0){_fb=1}if(_fb>1&&_e7){_f6+=Math.round((_fb-1)*_e7)}}else{_fa=_e8;_fb=1}_f6=Math.round(_fb*_fa);if(_e3&&ua.gecko){_f4.style.clear=""}var _fd=dom.create("span");_fd.className=_40;var _fe=_f4.cloneNode(true);_f4.parentNode.appendChild(_fe);for(var j=0,l=_fe.childNodes.length;j<l;j++){_fd.appendChild(_fe.childNodes[j].cloneNode(true))}if(_dd.modifyContent){_dd.modifyContent(_fe,_dd.selector)}if(_dd.modifyCss){_f1=_dd.modifyCss(css,_fe,_dd.selector)}var _101=_3b.fixHover&&dom.contentIsLink(_fe);var _102=handleContent(_fe,_ec,_dd.uriEncode);_fe.parentNode.removeChild(_fe);if(_dd.modifyContentString){_102.text=_dd.modifyContentString(_102.text,_dd.selector)}if(_102.text==""){continue}var vars=["content="+_82.escape(_102.text),"antialiastype="+(_dd.antiAliasType||""),"width="+_f7,"height="+_f6,"fitexactly="+_e4,"tunewidth="+(_dd.tuneWidth||0),"tuneheight="+_f0,"offsetleft="+(_dd.offsetLeft||""),"offsettop="+(_dd.offsetTop||""),"thickness="+(_dd.thickness||""),"sharpness="+(_dd.sharpness||""),"kerning="+_ea,"gridfittype="+_eb,"zoomsupport="+ua.zoomSupport,"flashfilters="+_e2,"opacity="+_ed,"blendmode="+(_dd.blendMode||""),"size="+_fa,"zoom="+dom.getZoom(),"css="+_82.escape(_f1),"selectable="+(_dd.selectable==null?"true":_dd.selectable),"fixhover="+_101,"preventwrap="+_e6,"forcesingleline="+(_dd.forceSingleLine===true),"link="+_82.escape(_102.primaryLink[0]||""),"target="+_82.escape(_102.primaryLink[1]||""),"handlerelease="+!!_dd.onRelease,"version="+_4a];var _104=encodeVars(vars);var _105="sIFR_callback_"+_4b++;var _106=new CallbackInfo(_105,vars,_dd.onReplacement,_dd.onRelease);window[_105+"_DoFSCommand"]=(function(_107){return function(info,arg){_107.handle(info,arg)}})(_106);_fd.setAttribute("id",_105+"_alternate");_f6=Math.round(_fb*getRatio(_fa,_ef)*_fa)+_49+_f0;var _10a=_e5?_f7:"100%";var _10b;if(ua.ie){_10b=["<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" id=\"",_105,"\" sifr=\"true\" width=\"",_10a,"\" height=\"",_f6,"\" class=\"",_3e,"\">","<param name=\"movie\" value=\"",src,"\"></param>","<param name=\"flashvars\" value=\"",_104,"\"></param>","<param name=\"allowScriptAccess\" value=\"always\"></param>","<param name=\"quality\" value=\"best\"></param>","<param name=\"wmode\" value=\"",_f2,"\"></param>","<param name=\"bgcolor\" value=\"",_e9,"\"></param>","<param name=\"name\" value=\"",_105,"\"></param>","</object>","<scr","ipt event=FSCommand(info,args) for=",_105,">",_105,"_DoFSCommand(info, args);","</","script>"].join("")}else{_10b=["<embed type=\"application/x-shockwave-flash\" class=\""+_3e+"\" src=\"",src,"\" quality=\"best\" flashvars=\"",_104,"\" width=\"",_10a,"\" height=\"",_f6,"\" wmode=\"",_f2,"\" bgcolor=\"",_e9,"\" name=\"",_105,"\" id=\"",_105,"\" allowScriptAccess=\"always\" sifr=\"true\"></embed>"].join("")}var _10c=_dd.fixFocus?"<div class=\""+_43+"\">"+_10b+"</div>":_10b;dom.setInnerHtml(_f4,_10c);_106.html=_10b;_3b.callbacks.push(_106);if(_dd.selector){if(!_3b.callbacks[_dd.selector]){_3b.callbacks[_dd.selector]=[_106]}else{_3b.callbacks[_dd.selector].push(_106)}}_f4.appendChild(_fd);dom.addClass(_3d,_f4)}_af.fragmentIdentifier.restore()};this.getCallbackByFlashElement=function(node){for(var i=0;i<_3b.callbacks.length;i++){if(_3b.callbacks[i].id==node.getAttribute("id")){return _3b.callbacks[i]}}};this.redraw=function(){for(var i=0;i<_3b.callbacks.length;i++){_3b.callbacks[i].resetMovie()}};function encodeVars(vars){return vars.join("&amp;").replace(/%/g,"%25")}function handleContent(_111,_112,_113){_113=_113||_82.uriEncode;var _114=[],_115=[],_116=[];var _117=_111.childNodes;var i=0;while(i<_117.length){var node=_117[i];if(node.nodeType==3){var text=_82.normalize(node.nodeValue);text=_82.textTransform(_112,text);text=text.replace(/</g,"&lt;");_115.push(text)}if(node.nodeType==1){var _11b=[];var _11c=node.nodeName.toLowerCase();var _11d=node.className||"";if(/\s+/.test(_11d)){if(_11d.indexOf(_41)>-1){_11d=_11d.match("(\\s|^)"+_41+"-([^\\s$]*)(\\s|$)")[2]}else{_11d=_11d.match(/^([^\s]+)/)[1]}}if(_11d!=""){_11b.push("class=\""+_11d+"\"")}if(_11c=="a"){var href=_113(node.getAttribute("href")||"");var _11f=node.getAttribute("target")||"";_11b.push("href=\""+href+"\"","target=\""+_11f+"\"");if(_116.length==0){_116=[href,_11f]}}_115.push("<"+_11c+(_11b.length>0?" ":"")+_11b.join(" ")+">");if(node.hasChildNodes()){_114.push(i);i=0;_117=node.childNodes;continue}else{if(!/^(br|img)$/i.test(node.nodeName)){_115.push("</",node.nodeName.toLowerCase(),">")}}}if(_114.length>0&&!node.nextSibling){do{i=_114.pop();_117=node.parentNode.parentNode.childNodes;node=_117[i];if(node){_115.push("</",node.nodeName.toLowerCase(),">")}}while(i==_117.length-1&&_114.length>0)}i++}return {text:_115.join("").replace(/\n|\r/g,""),primaryLink:_116}}function CallbackInfo(id,vars,_122,_123){this.id=id;this.vars=vars;this._replacementHandler=_122;this._releaseHandler=_123;this._firedReplacementEvent=!(this._replacementHandler!=null);this.html=""}CallbackInfo.prototype.getFlashElement=function(){return document.getElementById(this.id)};CallbackInfo.prototype.available=function(){var _124=this.getFlashElement();return _124&&_124.parentNode};CallbackInfo.prototype.handle=function(info,arg){if(!this.available()){return}if(/(FSCommand\:)?resize/.test(info)){var _127=this.getFlashElement();var $=arg.split(/\:|,/);_127.setAttribute($[0],$[1]);if($.length>2){_127.setAttribute($[2],$[3])}if(ua.khtml){var _129=_127.offsetHeight}if(!this._firedReplacementEvent){this._replacementHandler(this);this._firedReplacementEvent=true}}else{if(/(FSCommand\:)?resetmovie/.test(info)){this.resetMovie()}else{if(/(FSCommand\:)?blur/.test(info)){dom.blurElement(this.getFlashElement())}else{if(this._releaseHandler&&/(FSCommand\:)?release/.test(info)){this._releaseHandler(this)}else{if(this.debugHandler&&/(FSCommand\:)?debug/.test(info)){this.debugHandler(info,arg)}}}}}};CallbackInfo.prototype.call=function(type,_12b){if(!this.available()){return false}var _12c=this.getFlashElement();try{_12c.SetVariable("callbackType",type);_12c.SetVariable("callbackValue",_12b);_12c.SetVariable("callbackTrigger",true)}catch(e){return false}return true};CallbackInfo.prototype.replaceText=function(_12d){var _12e=_82.escape(_12d);this.injectVars("content",_12e);if(this.call("replacetext",_12e)){dom.setInnerHtml(this.getAlternate(),_12d);return true}return false};CallbackInfo.prototype.injectVars=function(name,_130){for(var i=0;i<this.vars.length;i++){if(this.vars[i].split("=")[0]==name){this.vars[i]=name+"="+_130;break}}this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+encodeVars(this.vars))};CallbackInfo.prototype.resetMovie=function(){if(!this.available()){return}var _132=this.getFlashElement();var node=_132.parentNode;node.replaceChild(dom.nodeFromHtml(this.html),_132)};CallbackInfo.prototype.resize=function(){if(!this.available()){return}var _134=this.getFlashElement();var _135=_134.parentNode;_134.style.width="0px";_134.style.height="0px";var _136=this.getAlternate().childNodes;var _137=[];for(var i=0;i<_136.length;i++){var node=_136[i].cloneNode(true);_137.push(node);_135.appendChild(node)}var _13a=dom.getWidthFromStyle(_135);for(var i=0;i<_137.length;i++){_135.removeChild(_137[i])}_134.style.width="";_134.style.height="";if(_13a>0){this.call("resize",_13a)}};CallbackInfo.prototype.changeCSS=function(css){css=_82.escape(_82.cssToString(_82.convertCssArg(css)));this.injectVars("css",css);return this.call("changecss",css)};CallbackInfo.prototype.getAlternate=function(){return document.getElementById(this.id+"_alternate")}};

// Home Headlines
var filosophia = {
  src: '/sifr/filosophia.swf'
};
// Sub Headlines
var filosophiabold = {
  src: '/sifr/filosophiab.swf'
};

sIFR.delayCSS  = true;
sIFR.activate(filosophia, filosophiabold);

// Home Headlines
sIFR.replace(filosophia, {
selector: '#contentcenterhome h1, #contentrighthome h1'
,ratios: [10,1.32,12,1.26,16,1.27,19,1.23,24,1.22,33,1.2,37,1.19,38,1.2,51,1.19,55,1.18,56,1.19,82,1.18,83,1.17,84,1.18,87,1.17,88,1.18,89,1.17,90,1.18,93,1.17,94,1.18,1.17]
,wmode: 'opaque'
,css: [
  '.sIFR-root { color: #0074AA; font-size: 24px; letter-spacing: .8; line-height: 1em; }'
]
});
// patients Headlines
sIFR.replace(filosophiabold, {
selector: '#patients #contentcenter h1'
,ratios: [10,1.32,12,1.26,16,1.27,19,1.23,24,1.22,33,1.2,37,1.19,38,1.2,51,1.19,55,1.18,56,1.19,82,1.18,83,1.17,84,1.18,87,1.17,88,1.18,89,1.17,90,1.18,93,1.17,94,1.18,1.17]
,wmode: 'opaque'
,css: [
  '.sIFR-root { color: #8259B8; font-size: 27px; letter-spacing: 1.1; font-weight: bold; line-height: 1em; }'
]
});

// health Headlines
sIFR.replace(filosophiabold, {
selector: '#health #contentcenter h1'
,ratios: [10,1.32,12,1.26,16,1.27,19,1.23,24,1.22,33,1.2,37,1.19,38,1.2,51,1.19,55,1.18,56,1.19,82,1.18,83,1.17,84,1.18,87,1.17,88,1.18,89,1.17,90,1.18,93,1.17,94,1.18,1.17]
,wmode: 'opaque'
,css: [
  '.sIFR-root { color: #FF9900; font-size: 27px; letter-spacing: 1.1; font-weight: bold; line-height: 1em; }'
]
});

// support Headlines
sIFR.replace(filosophiabold, {
selector: '#support #contentcenter h1'
,ratios: [10,1.32,12,1.26,16,1.27,19,1.23,24,1.22,33,1.2,37,1.19,38,1.2,51,1.19,55,1.18,56,1.19,82,1.18,83,1.17,84,1.18,87,1.17,88,1.18,89,1.17,90,1.18,93,1.17,94,1.18,1.17]
,wmode: 'opaque'
,css: [
  '.sIFR-root { color: #449026; font-size: 27px; letter-spacing: 1.1; font-weight: bold; line-height: 1em; }'
]
});

// generic Headlines
sIFR.replace(filosophiabold, {
selector: '#generic #contentcenter h1, #about #contentcenter h1, #newsroom #contentcenter h1, #research #contentcenter h1, #noleftnav #contentcenter h1'
,ratios: [10,1.32,12,1.26,16,1.27,19,1.23,24,1.22,33,1.2,37,1.19,38,1.2,51,1.19,55,1.18,56,1.19,82,1.18,83,1.17,84,1.18,87,1.17,88,1.18,89,1.17,90,1.18,93,1.17,94,1.18,1.17]
,wmode: 'opaque'
,css: [
  '.sIFR-root { color: #007FDD; font-size: 27px; letter-spacing: 1.1; font-weight: bold; line-height: 1em; }'
]
});


/* 
  ------------------------------------------------
  Text Sizer Switcher
  ------------------------------------------------
*/

function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

//window.onload = function(e) {
//  var cookie = readCookie("style");
//  var title = cookie ? cookie : getPreferredStyleSheet();
//  setActiveStyleSheet(title);
//}

window.onload = function(e) { 
	var cookie = readCookie("style"); 
	var title = cookie ? cookie : getPreferredStyleSheet(); 
	setActiveStyleSheet(title); 
	initRollovers(); //window load for rollover script 
	P7_initPM(1,11,0,0,0); //flyovers 
	}

window.onunload = function(e) {
  var title = getActiveStyleSheet();
  createCookie("style", title, 365);
}

var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);

// Flyouts for Search

$j(document).ready(function() {

$j('#search .trigger').click(function(){
    $j('#searchfly').slideToggle(200);
	/* Toggles the .down class for the button, which will swap the background image */
	$j(this).toggleClass("down");
	$j('#search .trigger').toggleClass("trigger_o");
	return false;
	
});	

});


// breadcrumb
$j(document).ready(function() {
$j('ul#bread li:last-child').addClass("noarrow");

if ($j('ul#bread li:last-child').children().is("a") ) {
var lastBreadLink = $j('#bread li:last-child a').html();
$j('ul#bread li:last-child a').remove();
$j('ul#bread li:last-child ').append("<span>" + lastBreadLink + "</span>");
}

});
/*
 * Tooltip - jQuery plugin  for styled tooltips
 *
 * Copyright (c) 2006 Jörn Zaefferer, Stefan Petre
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 */

/**
 * Display a customized tooltip instead of the default one
 * for every selected element. The tooltip behaviour mimics
 * the default one, but lets you style the tooltip and
 * specify the delay before displaying it.
 *
 * In addition, it displays the href value, if it is available.
 * 
 * To style the tooltip, use these selectors in your stylesheet:
 *
 * #tooltip - The tooltip container
 *
 * #tooltip h3 - The tooltip title
 *
 * #tooltip p.body - The tooltip body, shown when using showBody
 *
 * #tooltip p.url - The tooltip url, shown when using showURL
 *
 * @example $('a, input, img').Tooltip();
 * @desc Shows tooltips for anchors, inputs and images, if they have a title
 *
 * @example $('label').Tooltip({
 *   delay: 0,
 *   track: true,
 *   event: "click"
 * });
 * @desc Shows tooltips for labels with no delay, tracking mousemovement, displaying the tooltip when the label is clicked.
 *
 * @example // modify global settings
 * $.extend($.fn.Tooltip.defaults, {
 * 	track: true,
 * 	delay: 0,
 * 	showURL: false,
 * 	showBody: " - ",
 *  fixPNG: true
 * });
 * // setup fancy tooltips
 * $('a.pretty').Tooltip({
 * 	 extraClass: "fancy"
 * });
 $('img.pretty').Tooltip({
 * 	 extraClass: "fancy-img",
 * });
 * @desc This example starts with modifying the global settings, applying them to all following Tooltips; Afterwards, Tooltips for anchors with class pretty are created with an extra class for the Tooltip: "fancy" for anchors, "fancy-img" for images
 *
 * @param Object settings (optional) Customize your Tooltips
 * @option Number delay The number of milliseconds before a tooltip is display, default is 250
 * @option String event The event on which the tooltip is displayed, default is "mouseover", "click" works fine, too
 * @option Boolean track If true, let the tooltip track the mousemovement, default is false
 * @option Boolean showURL If true, shows the href or src attribute within p.url, default is true
 * @option String showBody If specified, uses the String to split the title, displaying the first part in the h3 tag, all following in the p.body tag, separated with <br/>s, default is null
 * @option String extraClass If specified, adds the class to the tooltip helper, default is null
 * @option Boolean fixPNG If true, fixes transparent PNGs in IE, default is false
 *
 * @name Tooltip
 * @type jQuery
 * @cat Plugins/Tooltip
 * @author Jörn Zaefferer (http://bassistance.de)
 */
(function($j) {
	
	// the tooltip element
	var helper,
		// it's title part
		tTitle,
		// it's body part
		tBody,
		// it's url part
		tUrl,
		// the current tooltipped element
		current,
		// the title of the current element, used for restoring
		oldTitle,
		// timeout id for delayed tooltips
		tID;
	
	// the public plugin method
	$j.fn.Tooltip = function(settings) {
		// setup configuration
		// TODO: allow multiple arguments to extend, see bug #344
		settings = $j.extend($j.extend({}, arguments.callee.defaults), settings || {});
	
		// there can be only one tooltip helper
		if( !helper ) {
			// create the helper, h3 for title, div for url
			helper = $j('<div id="tooltip"><h3></h3><p class="body"></p><p class="url"></p></div>')
				// hide it at first
				.hide()
				// move to top and position absolute, to let it follow the mouse
				.css({ position: 'absolute', zIndex: 3000 })
				// add to document
				.appendTo('body');
				
			// save references to title and url elements
			tTitle = $j('h3', helper);
			tBody = $j('p:eq(0)', helper);
			tUrl = $j('p:eq(1)', helper);
		}
		
		// bind events for every selected element with a title attribute
		$j(this).filter('[@title]')
			// save settings into each element
			// TODO: pass settings via event system, not yet possible
			.each(function() {
				this.tSettings = settings;
			})
			// bind events
			.bind("mouseover", save)
			.bind(settings.event, handle);
		return this;
	};
	
	// main event handler to start showing tooltips
	function handle(event) {
		// show helper, either with timeout or on instant
		if( this.tSettings.delay )
			tID = setTimeout(show, this.tSettings.delay);
		else
			show();
		
		// if selected, update the helper position when the mouse moves
		if(this.tSettings.track)
			$j('body').bind('mousemove', update);
			
		// update at least once
		update(event);
		
		// hide the helper when the mouse moves out of the element
		$j(this).bind('mouseout', hide);
	}
	
	// save elements title before the tooltip is displayed
	function save() {
		// if this is the current source, or it has no title (occurs with click event), stop
		if(this == current || !this.title)
			return;
		// save current
		current = this;
		
		var source = $j(this),
			settings = this.tSettings;
			
		// save title, remove from element and set to helper
		oldTitle = title = source.attr('title');
		source.attr('title','');
		if(settings.showBody) {
			var parts = title.split(settings.showBody);
			tTitle.html(parts.shift());
			tBody.empty();
			for(var i = 0, part; part = parts[i]; i++) {
				if(i > 0)
					tBody.append("<br/>");
				tBody.append(part);
			}
			if(tBody.html())
				tBody.show();
			else
				tBody.hide();
		} else {
			tTitle.html(title);
			tBody.hide();
		}
		
		// if element has href or src, add and show it, otherwise hide it
		href = (source.attr('href') || source.attr('src'));
		if( settings.showURL && href )
			tUrl.html(href.replace('http://', '')).show();
		else 
			tUrl.hide();
		
		// add an optional class for this tip
		if( settings.extraClass ) {
			helper.addClass(settings.extraClass);
		}
		// fix PNG background for IE
		if (settings.fixPNG && $j.browser.msie ) {
			helper.each(function () {
				if (this.currentStyle.backgroundImage != 'none') {
					var image = this.currentStyle.backgroundImage;
					image = image.substring(5, image.length - 2);
					$j(this).css({
						'backgroundImage': 'none',
						'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')"
					});
				}
			});
		}
	}
	
	// delete timeout and show helper
	function show() {
		tID = null;
		helper.show();
		update();
	}
	
	/**
	 * callback for mousemove
	 * updates the helper position
	 * removes itself when no current element
	 */
	function update(event)	{
		// if no current element is available, remove this listener
		if( current == null ) {
			$j('body').unbind('mousemove', update);
			return;	
		}
		
		var left = helper[0].offsetLeft;
		var top = helper[0].offsetTop;
		if(event) {
			// get the current mouse position
			function pos(c) {
				var p = c == 'X' ? 'Left' : 'Top';
				return event['page' + c] || (event['client' + c] + (document.documentElement['scroll' + p] || document.body['scroll' + p])) || 0;
			}
			// position the helper 15 pixel to bottom right, starting from mouse position
			left = pos('X') + 15;
			top = pos('Y') + 15;
			helper.css({
				left: left + 'px',
				top: top + 'px'
			});
		}
		
		var v = viewport(),
			h = helper[0];
		// check horizontal position
		if(v.x + v.cx < h.offsetLeft + h.offsetWidth) {
			left -= h.offsetWidth + 20;
			helper.css({left: left + 'px'});
		}
		// check vertical position
		if(v.y + v.cy < h.offsetTop + h.offsetHeight) {
			top -= h.offsetHeight + 20;
			helper.css({top: top + 'px'});
		}
	}
	
	function viewport() {
		var e = document.documentElement || {},
			b = document.body || {},
			w = window;

		return {
			x: w.pageXOffset || e.scrollLeft || b.scrollLeft || 0,
			y: w.pageYOffset || e.scrollTop || b.scrollTop || 0,
			cx: min( e.clientWidth, b.clientWidth, w.innerWidth ),
			cy: min( e.clientHeight, b.clientHeight, w.innerHeight )
		};

		function min() {
			var v = Infinity;
			for( var i = 0;  i < arguments.length;  i++ ) {
				var n = arguments[i];
				if( n && n < v ) v = n;
			}
			return v;
		}
	}
	
	// hide helper and restore added classes and the title
	function hide() {
		// clear timeout if possible
		if(tID)
			clearTimeout(tID);
		// no more current element
		current = null;
		helper.hide();
		// remove optional class
		if( this.tSettings.extraClass ) {
			helper.removeClass( this.tSettings.extraClass);
		}
		
		// restore title and remove this listener
		$j(this)
			.attr('title', oldTitle)
			.unbind('mouseout', hide);
			
		// remove PNG background fix for IE
		if( this.tSettings.fixPNG && $j.browser.msie ) {
			helper.each(function () {
				$j(this).css({'filter': '', backgroundImage: ''});
			});
		}
	}
	
	// define global defaults, editable by client
	$j.fn.Tooltip.defaults = {
		delay: 250,
		event: "mouseover",
		track: false,
		showURL: true,
		showBody: null,
		extraClass: null,
		fixPNG: false
	};

})(jQuery);

$j(function() {
// modify global settings
$j.extend($j.fn.Tooltip.defaults, {
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - "
});
$j('a.tooltip').Tooltip();
});


// Right Portlet Show-Hide

$j(document).ready(function() {

$j('#fulllist').click(function(){
    $j('#hidelist').slideToggle(200);
	/* Toggles the .down class for the button, which will swap the background image */
	$j(this).toggleClass("down");
	$j('#fulllist').toggleClass("trigger_o");
	return false;
	
});	

});