var willow=function(f){if(typeof window.pdGlobal==="undefined"){var k=parent.document.getElementById("PageHead");if(k!==null){document.write(k.innerHTML);var g=parent.pdGlobal}}else g=window.pdGlobal;var d={version:"2.1",pdGlobal:g,readyList:[],call:function(a){a.call(this,f)},$:f,log:function(a){window.console&&!f.browser.msie&&console.debug(a)},ready:function(a){d.readyList.push(a)},openURL:function(a){window.location.href=a;parent.window.scrollTo(0,0)},jump:function(a){a.submit()},ReSizeIFRAME:function(){var a=
window.parent.document.getElementsByTagName("IFRAME"),b;for(x=0;x<a.length;x++)if(a[x].id.substring(0,2)==="if")b=a[x];objBody=document.getElementById("__pdIFRAMEarea");b.style.height=objBody.offsetHeight},getL1:function(a){a.html(g.currentPages[0].title)},getL2:function(a){g.currentPages.length>1&&a.html(g.currentPages[1].title)},getL3:function(a){g.currentPages.length>2&&a.html(g.currentPages[2].title)},__pdL:function(a){parent.window.location="/podium/default.aspx?t="+a},sendEmail:function(a,b){var c=
[],e=new String;a=a.replace(/x/g,",64");a=a.replace(/y/g,",46");a=a.replace(/z/g,",");c=a.split(",");for(q=1;q<c.length;q++)e+=String.fromCharCode(c[q]);b.href="mailto:"+e},GetRandomNumberBetween:function(a,b){return Math.round(Math.random()*(b-a))+a},fsplit:function(a,b,c){if(c&&d.hashtml(a))a=d.striphtml(a);if(isNaN(b)||b>a.length)return a;a=a.substr(0,b);return a.substr(0,a.lastIndexOf(" "))+"..."},striphtml:function(a){return a.replace(/<(?:.|\s)*?>/g,"")},hashtml:function(a){if(a.search(/<(?:.|\s)*?>/g)>=
0)return true;return false},hasFlash:function(){var a=false;if(navigator.plugins&&navigator.mimeTypes.length){var b=navigator.plugins["Shockwave Flash"];if(b&&b.description)a=true}else{try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(c){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6")}catch(e){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(j){}}if(b!=null)a=true}return a},fixPodiumNav:function(){f(document).ready(function(){for(var a=f("ul li a[href*='/podium/default.aspx?t=']"),
b=0;b<a.length;b++){var c=a.eq(b).attr("href"),e=c.substr(c.indexOf("=")+1,c.length).split("&"),j=parseInt(e[0]);a.eq(b).attr("href",function(){for(var i="",h=0;h<e.length;h++)if(h>0)i+="&"+e[h];for(h=0;h<g.customUrls.length;h++)if(j===g.customUrls[h].id){if(i.length>0)i="?"+i.substr(1,i.length);return g.customUrls[h].url+i}return"/podium/default.aspx?t="+j+i})}})},setCookie:function(a,b,c){var e=new Date;e.setDate(e.getDate()+c);document.cookie=a+"="+escape(b)+(c==null?"":";expires="+e.toGMTString())+
"; path=/"},getCookie:function(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end))}}return""},getParam:function(a,b){b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c=RegExp("[\\?&]"+b+"=([^&#]*)").exec(a);return c==null?"":c[1]},makeMeASammich:function(){var a=[{bread:"wheat",meat:"ham",cheese:"swiss",
cond:"mustard"},{bread:"white",meat:"ham",cheese:"american cheese",cond:"mayo"},{bread:"wheat",meat:"turkey",cheese:"cheeder",cond:"mayo"}],b=d.GetRandomNumberBetween(0,a.length-1);a=a[b];return"Enjoy your "+a.meat+" and "+a.cheese+" sandwich with "+a.cond+" on "+a.bread+"!"},makeUrlString:function(a){this.urlString="";for(prop in a)this.urlString+="&"+prop+"="+a[prop]+"";return this.urlString},gd:function(a,b,c,e){c=d.makeUrlString(c);f.getJSON("/data/json.asp?type="+e+"&id="+a+c,function(j){f.isFunction(b)?
b.call(d,j):d.log("Missing callback function for "+type)})},getAnnualFund:function(a,b,c){d.gd(a,b,c,"af")},getAnnouncement:function(a,b,c){d.gd(a,b,c,"an")},getLinks:function(a,b,c){d.gd(a,b,c,"link")},getLinkSubGroups:function(a,b,c){d.gd(a,b,c,"linksub")},getMenu:function(a,b,c){d.gd(a,b,c,"menu")},getNews:function(a,b,c){d.gd(a,b,c,"news")},getPhotos:function(a,b,c){d.gd(a,b,c,"photo")},getAllPhotos:function(a,b,c){d.gd(a,b,c,"photoall")},getList:function(a,b,c){d.gd(a,b,c,"list")},getEvents:function(a,
b,c){d.gd(a,b,c,"events")},getText:function(a,b,c){d.gd(a,b,c,"text")}};f.fn.fsplit=function(a){f(this).each(function(){$obj=f(this);$obj.html(d.fsplit($obj.html(),a,true))})};f("document").ready(function(a){if(d.readyList){a.each(d.readyList,function(){this.call(d,a)});d.readyList=null}});return d}(jQuery);
