var willow=function(e){var h="",k={t:52392,pt:"Search Results"},i="";if(parent.pdGlobal!==undefined){document.write(parent.document.getElementById("PageHead").innerHTML);var f=parent.pdGlobal}makeUrlString=function(a){this.urlString="";for(prop in a)this.urlString+="&"+prop+"="+a[prop]+"";return this.urlString};var d={version:"1.8",readyList:[],call:function(a){a.call(this,e)},$:e,log:function(a){window.console&&!e.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(f.currentPages[0].title)},getL2:function(a){f.currentPages.length>1&&a.html(f.currentPages[1].title)},getL3:function(a){f.currentPages.length>2&&a.html(f.currentPages[2].title)},setSearch:function(a,
b){b=e.extend(k,b);i=makeUrlString(b);a.keydown(function(c){c=c.which?c.which:c.keyCode;if(c===13||c===26)e("form").submit()}).focus(function(){h=a.val();willow.log(h);e("form").bind("submit",function(){d.submitSearch(a.val());return false});a.val("")}).blur(function(){setTimeout(function(){e("form").unbind("submit");willow.log(h);a.val(h)},2E3)})},submitSearch:function(a){window.location="/podium/default.aspx?q="+a+i},__pdL:function(a){parent.window.location="/podium/default.aspx?t="+a},sendEmail:function(a,
b){var c=[],g=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++)g+=String.fromCharCode(c[q]);b.href="mailto:"+g},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(g){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(j){}}if(b!=null)a=true}return a},gd:function(a,b,c,g){c=makeUrlString(c);e.getJSON("/data/json.asp?type="+g+"&id="+a+
c,function(j){e.isFunction(b)?b.call(d,j):d.log("Missing callback function for "+type)})},getAnnouncment: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")}};e.fn.fsplit=function(a){e(this).each(function(){$obj=e(this);$obj.html(d.fsplit($obj.html(),a,true))})};e("document").ready(function(a){if(d.readyList){a.each(d.readyList,function(){this.call(d,a)});d.readyList=null}});return d}(jQuery);
