Cufon.replace(".syntax",{hover:true,fontFamily:"syntax"});Cufon.replace("a.hTop",{fontFamily:"syntax"});Cufon.replace("ul.siteActions a",{hover:true,fontFamily:"syntax"});Cufon.replace("ul.navBar li a.head",{fontFamily:"syntax",hover:true});Cufon.replace(".footerContent h4",{fontFamily:"syntax"});Cufon.replace(".action .inner",{fontFamily:"syntax"});Cufon.replace(".listFilter label",{fontFamily:"syntax"});Cufon.replace(".sidebar h4",{fontFamily:"syntax"});Cufon.replace(".navUtilities a",{fontFamily:"syntax",hover:true});Cufon.replace("a.btnDonate .btnDleft",{fontFamily:"tradeGothic",hover:true});Cufon.replace(".tradeGothic",{fontFamily:"tradeGothic"});Cufon.replace(".gform .caption label",{fontFamily:"syntax"});Cufon.replace(".gform .bgTable h2",{fontFamily:"syntax"});Cufon.replace(".confirmation table thead tr td",{fontFamily:"syntax"});Cufon.replace(".confirmation span.title",{fontFamily:"syntax"});Cufon.replace(".confirmation table.personaldata tr td.title",{fontFamily:"syntax"});Cufon.replace(".popup h3",{fontFamily:"syntax"});Cufon.replace("em.quote",{fontFamily:"Arial"});Cufon.replace(".gform label",{fontFamily:"syntax"});Cufon.replace(".gform .seperator",{fontFamily:"syntax"});Cufon.replace(".commentForm label",{fontFamily:"syntax"});Cufon.replace(".notification span.message",{fontFamily:"syntax"});Cufon.replace(".logonForm label",{fontFamily:"syntax"});Cufon.replace(".popupMailAFriend  label",{fontFamily:"syntax"});Cufon.replace(".slider .navigation ul li a",{hover:true,fontFamily:"syntax"});Cufon.replace(".slider .navigation ul li a.activeSlide",{fontFamily:"syntax"});Cufon.replace(".slider .slideshow .slide .content  .subtitle",{fontFamily:"Myriad"});Cufon.replace(".slider .slideshow .slide .content  .maintitle",{fontFamily:"tradeGothic",textShadow:"#fff 0px 0px, #333 2px 2px"});Cufon.replace(".slider .slideshow .slide .content  a",{fontFamily:"tradeGothic"});Cufon.replace(".content .comments h2",{fontFamily:"syntax"});Cufon.replace(".testimonialsOverview h2",{fontFamily:"tradeGothic"});Cufon.replace(".genericOverview h2",{fontFamily:"tradeGothic"});Cufon.replace(".encouragementsCounter",{fontFamily:"syntax"});Cufon.replace(".hpAccordion li h2",{fontFamily:"syntax"});Cufon.replace("#fbCaption",{fontFamily:"syntax"});jQuery(function(){InitHighlight();window.onscroll=function(G){cufonRefresh()};centerPager();readFontSizeSetting();if(window.searchBoxDefaultValue!=undefined){jQuery(".searchBox input[type=text]").attr("value",searchBoxDefaultValue)}jQuery("ul.hpAccordion li").show();jQuery(".mainContent.homepage #pageArea > div").each(function(H){var J=jQuery(this);var I=J.children("div");if(H==0){J.addClass("clearfix first");I.each(function(L){var K=jQuery(this);K.css("width","auto").css("float","left");if(L<2){K.css("margin-right","30px")}})}else{J.addClass("other");var G=I.length;I.each(function(L){var K=jQuery(this);K.css("width","auto").css("float","left");if(L<G-1){K.css("margin-right","20px")}})}});var F=jQuery(".mainContent.detailPage #pageArea > div");var C=F.length;F.each(function(G){var I=jQuery(this);var H=I.children("div");I.addClass("clearfix");H.each(function(K){var J=jQuery(this);J.css("width","auto").css("float","left")});if(G<C-1){jQuery(this).append('<div class="hr" style="padding-bottom:13px;"></div>')}});jQuery("#pageArea .first").html('<div class="firstTop"></div><div class="firstMid clearfix">'+jQuery("#pageArea .first").html()+'</div><div class="firstBottom"></div>');Cufon.replace(".homepage h1",{fontFamily:"Arial"});Cufon.replace(".homepage h4",{fontFamily:"Arial"});jQuery(".hideFromNoScript").removeClass("hideFromNoScript");jQuery(".footerIcons a, a.head, .hpAccordion h2").hover(function(){jQuery(this).addClass("hover")},function(){jQuery(this).removeClass("hover")});jQuery(".nuMail").click(function(){showMailAFriend(jQuery(this).get(0))});jQuery(".openLogOn").click(function(){showLogOn(jQuery(this).get(0))});var B=jQuery(window).width();var A=jQuery(window).scrollLeft();var E=jQuery(window).height();var D=jQuery(window).scrollTop();jQuery("li.hFirst").hover(function(G){if(jQuery(this).find(".hDropMenu").length>0){var H=jQuery(this).find(".hDropMenu").get(0);jQuery("div.hSub").removeClass("hVisible");jQuery("a.hTop").removeClass("active");jQuery(H).addClass("active");jQuery(H).siblings(".hSub").addClass("hVisible")}},function(G){var H=jQuery(G.relatedTarget);if(!((H.find(".hDropMenu").length>0|H.is(".hDropMenu"))&!H.is(".header"))){jQuery("div.hSub").removeClass("hVisible");jQuery("a.hTop").removeClass("active")}});if(window.searchboxTaxonomy!=undefined){jQuery(".header .searchBox .input").autocomplete(searchboxTaxonomy,{width:245,selectFirst:false});jQuery(".contentNarrowColumn .searchBox .input").autocomplete(searchboxTaxonomy,{width:196})}if(jQuery().accordion){jQuery(".hpAccordion .accordion").accordion({header:".head",autoheight:true,selectedClass:"active"})}jQuery(".hitarea").hover(function(){jQuery(this).addClass("hover")},function(){jQuery(this).removeClass("hover")});jQuery(".action").hover(function(){jQuery(this).addClass("hover")},function(){jQuery(this).removeClass("hover")});jQuery(".searchBox input[type=text]").focus(function(){if(this.value==searchBoxDefaultValue){this.value="";jQuery(this).removeClass("emptyField").addClass("focusField")}}).blur(function(){if(!this.value.length){this.value=searchBoxDefaultValue;jQuery(this).removeClass("focusField").addClass("emptyField")}else{jQuery(this).removeClass("focusField").addClass("idleField")}});jQuery(".subscribeForm input[type=text]").focus(function(){if(this.value==this.defaultValue){this.value="";jQuery(this).removeClass("emptyField").addClass("focusField")}}).blur(function(){if(!this.value.length){this.value=this.defaultValue;jQuery(this).removeClass("focusField").addClass("emptyField")}else{jQuery(this).removeClass("focusField").addClass("idleField")}});jQuery("form").attr("autocomplete","off")});var cufonRefreshId=null;function cufonRefresh(A){if(A=="true"){Cufon.refresh();cufonRefreshId=null}else{if(cufonRefreshId!=null){clearTimeout(cufonRefreshId)}cufonRefreshId=setTimeout("cufonRefresh('true')",100)}}var cufonRefreshId1=null;function centerPager(){var D=jQuery("div.pager a.pPrevious").width();var C=jQuery("div.pager a.pNext").width();var B=jQuery("div.pager .pButtons").width();var A=jQuery("div.pager .pButtons ul").width();jQuery("div.pager .pButtons ul").css("left",parseInt(((B-D-C-A)/2)+D))}function showMailAFriend(D){var A=findPosition(D);var B=jQuery(".fadeOutMailAFriend");B.addClass("active").css({height:screenHeight()+"px"});jQuery(".popupMailAFriend").addClass("active").css({top:A[1],left:A[0]});if(jQuery.browser.msie&&parseFloat(jQuery.browser.version)<=6){if(B.children("iframe").length==0){B.html('<iframe frameborder="0" src="javascript:\'<html></html>\'"></iframe>')}var C=jQuery(B.children("iframe").get(0));C.css("height",B.height())}}function hideMailAFriend(){jQuery(".popupMailAFriend").removeClass("active");jQuery(".fadeOutMailAFriend").removeClass("active")}function showLogOn(D){var A=findPosition(D);var C=jQuery(".fadeOutLogOn");C.addClass("active").css({height:screenHeight()+"px"});jQuery(".popupLogOn").addClass("active").css({top:A[1],left:A[0]});if(jQuery.browser.msie&&parseFloat(jQuery.browser.version)<=6){if(C.children("iframe").length==0){C.html('<iframe frameborder="0" src="javascript:\'<html></html>\'"></iframe>')}var B=jQuery(C.children("iframe").get(0));B.css("height",C.height())}}function hideLogOn(){jQuery(".popupLogOn").removeClass("active");jQuery(".fadeOutLogOn").removeClass("active")}function readFontSizeSetting(){var A=getCookie("fontsize");if(A!=null){document.body.style.fontSize=A;Cufon.refresh()}}function findPosition(B){var A=cur_top=0;if(B.offsetParent){do{A+=B.offsetLeft;cur_top+=B.offsetTop}while(B=B.offsetParent)}return[A,cur_top]}function screenHeight(){var A=jQuery(window).height();if(A<jQuery(".container").height()){A=jQuery(".container").height()}return A}function getCookie(C){var D=document.cookie.indexOf(C+"=");var A=D+C.length+1;if((!D)&&(C!=document.cookie.substring(0,C.length))){return null}if(D==-1){return null}var B=document.cookie.indexOf(";",A);if(B==-1){B=document.cookie.length}return unescape(document.cookie.substring(A,B))}function setCookie(C,E,A,H,D,G){var B=new Date();B.setTime(B.getTime());if(A){A=A*1000*60*60*24}var F=new Date(B.getTime()+(A));document.cookie=C+"="+escape(E)+((A)?";expires="+F.toGMTString():"")+((H)?";path="+H:"")+((D)?";domain="+D:"")+((G)?";secure":"")}function enlargeFont(){var B="";var A="";if(document.defaultView&&document.defaultView.getComputedStyle){B=document.defaultView.getComputedStyle(document.body,"").getPropertyValue("font-size")}else{if(document.body.currentStyle){B=document.body.currentStyle.fontSize}}if(B.length>0){if(B.indexOf("px")>-1){B=B.substr(0,B.length-2);B=""+parseInt(B,10)/0.16}else{if(B.indexOf("%")>-1){B=B.substr(0,B.length-1)}}switch(B){case"62.5":A="75%";break;case"75":A="90%";break;default:A="62.5%"}setCookie("fontsize",A,30);document.body.style.fontSize=A;Cufon.refresh()}}function setBreadcrumbClass(A){switch(A){case"75%":jQuery(".navBreadcrumb li").removeClass("size90").addClass("size75");break;case"90%":jQuery(".navBreadcrumb li").removeClass("size75").addClass("size90");break;default:jQuery(".navBreadcrumb li").removeClass("size90");break}}var bhl=new Array();var bhr=new Array();function InitHighlight(){InitHighlightNavigation();InitHighlightSlideButton();setHeightFlashHome();jQuery("#nav a").click(function(){jQuery("#slideshow").cycle("pause");cufonRefresh()});var A=jQuery("#slideshow");if(A.length>0){A.cycle({fx:"none",timeout:highlightSpeed,speed:"3400",pager:"#nav",pagerAnchorBuilder:function(C,B){return"#nav li:eq("+C+") a"}})}window.onresize=function(B){setHeightFlashHome()}}function InitHighlightSlideButton(){jQuery(".slide a").each(function(A){var B=jQuery(this).find(".left .backgroundhover");var C=jQuery(this).find(".right .backgroundhover");var D=jQuery(this).parents(".slide")[0].id;bhl[D]=B.css("background-image");bhr[D]=C.css("background-image");B.css("background-image","none");C.css("background-image","none")});jQuery(".slide .content a").hover(function(){var A=jQuery(this).find(".left .backgroundhover");var B=jQuery(this).find(".right .backgroundhover");A.css("background-image",bhl[jQuery(this).parents(".slide")[0].id]);B.css("background-image",bhr[jQuery(this).parents(".slide")[0].id])},function(){var A=jQuery(this).find(".left .backgroundhover");var B=jQuery(this).find(".right .backgroundhover");A.css("background-image","none");B.css("background-image","none")});jQuery(".slide .content a").hover(function(){jQuery(this,".left .backgroundhover:first").removeClass("nohover");jQuery(this,".left .backgroundhover:first").addClass("hover")})}function setHeightFlashHome(){var A=document.all?document.body.clientWidth:window.innerWidth;if(A<=1010){jQuery(".slider").addClass("small");jQuery(".slider .slide").each(function(B){jQuery(this).css("background-image",jQuery(this).css("background-image").replace("maxWidth=1308","maxWidth=990"))});jQuery(".slider .slide .playerWrapper").find("img").css("width","423px").css("height","223px");jQuery(".slider .slide .playerWrapper").find("a").css("width","423px").css("height","223px")}else{jQuery(".slider").removeClass("small");jQuery(".slider .slide").each(function(B){jQuery(this).css("background-image",jQuery(this).css("background-image").replace("maxWidth=990","maxWidth=1308"))});jQuery(".slider .slide .playerWrapper").find("img").css("width","591px").css("height","311px");jQuery(".slider .slide .playerWrapper").find("a").css("width","591px").css("height","311px")}cufonRefresh()}function InitHighlightNavigation(){var E=jQuery("#nav");var B=jQuery(E).find("li");var A=parseInt(jQuery(E).css("width"))-(B.length-1);var D=parseInt(A/B.length);var C=(A-(D*B.length));B.each(function(H){var I=D;if(C>0){I+=1}jQuery(this).css("width",I);jQuery(this).find(".bg").css("width",I);jQuery(this).find(".bghover").css("width",I);var G=jQuery(this).find(".txt");var F=parseInt(G.css("padding-left"))+parseInt(G.css("padding-right"));G.css("width",(I-F));C--})}function gup(B){B=B.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var A="[\\?&]"+B+"=([^&#]*)";var D=new RegExp(A);var C=D.exec(window.location.href);if(C==null){return""}else{return C[1]}}doLogOn=function(){var C=jQuery("#logonMessage");var D=unescape(gup("originalHost"))+"/resizeIframe.htm?key={0}&h={1}";var B=parseInt(gup("height"),10);C.hide();jQuery("#ResizeIFrame").attr("src",D.replace("{0}","logOnIFrame").replace("{1}",B));var A=jQuery("#logonfields input").serialize();jQuery.ajax({type:"POST",url:"/dispatcher.aspx",dataType:"json",data:"m=logOnUser&"+A,success:function(E){if(E.Status=="OK"){window.parent.location.href=unescape(gup("originalUrl"))}else{C.html(E.Status);B+=C.height()+parseInt(C.css("paddingTop"),10)+parseInt(C.css("marginTop"),10)+parseInt(C.css("marginBottom"),10)+parseInt(C.css("paddingBottom"),10);jQuery("#ResizeIFrame").attr("src",D.replace("{0}","logOnIFrame").replace("{1}",B));C.show()}},error:function(){C.html("An unknown error has occured");C.show()}})};var iframeIds=new Array();jQuery(function(){iframeIds["logOnIFrame"]=jQuery("iframe.logOnIFrame").attr("id")});function resizeIFrame(E,B,D,A){if((typeof E=="undefined"||E=="")&&(typeof B=="undefined"||B=="")){return }if(typeof B!="undefined"||B!=""){E=iframeIds[B]}var C=document.getElementById(E);if(D!=""&&typeof D=="number"&&D>0){jQuery("#"+E).attr("width",D)}if(A!=""&&typeof A=="number"&&A>0){jQuery("#"+E).attr("height",A)}}function validateCommentLength(B,A){A.IsValid=(A.Value.length<=1000)}function fbCufonCaption(){Cufon.replace("#fbCaption",{fontFamily:"syntax"});return true}function EncouragClick(){$(".encouragements .action").hide()}function EmQuoteFix(){$(".quote .cufon").css("width","460px").css("overflow","hidden")}function TestAjax(){$.ajax({url:"/AjaxCMEService.asmx/MenuTitle",type:"POST",data:"{}",dataType:"xml",error:function(C,A,B){alert("Error loading XML document");alert(C.responseText)},success:function(A){alert($(A).text());alert(A)}})}