
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - bbfaq.js - */
// http://www.salisbury.anglican.org/portal_javascripts/bbfaq.js?original=1
jq(document).ready(function(){openstore={};jq("a.more_info_click").click(function(event){event.preventDefault();if(typeof(openstore[this.id])=="undefined"){jq("div#"+this.id+"_info").show("fast");jq("img#"+this.id+"_image").attr("src","/bb_faq_tri_open.png");openstore[this.id]=true} else if(!openstore[this.id]){jq("div#"+this.id+"_info").show("fast");jq("img#"+this.id+"_image").attr("src","/bb_faq_tri_open.png");openstore[this.id]=true} else if(openstore[this.id]){jq("div#"+this.id+"_info").hide("fast");jq("img#"+this.id+"_image").attr("src","/bb_faq_tri_closed.png");openstore[this.id]=false}})});

/* - bb_sal_utils.js - */
// http://www.salisbury.anglican.org/portal_javascripts/bb_sal_utils.js?original=1
jq("document").ready(function(){if(!jq("body").hasClass("section-welcome")&&!jq("body").hasClass("template-base_edit")&&!jq("body").hasClass("template-")){var kids=jq("div#main-boxout-images-holder-A").children("div");if(kids.length){emptybox=false;for(var i=0;i<kids.length;i++){if(jq(kids[i]).hasClass("slideshowholder")){emptybox=true;var sid=kids[i].id;l=jq("#"+sid).find("img").length;if(l)
emptybox=false}}
if(!emptybox){jq("h1.documentFirstHeading").after(jq("div#main-boxout-images-holder-A"));jq("div#main-boxout-images-holder-A").css("position","relative");jq("div#main-boxout-images-holder-A").css("width","300px");jq("div#main-boxout-images-holder-A").css("float","right");jq("div#main-boxout-images-holder-A").css("margin","0px 0px 20px 20px");jq("div#main-boxout-images-holder-A").css("display","block")}}}
if(jq("body").hasClass("section-schools")){var headings=jq("dd.boxoutBody").children("h3");var links=jq(headings).children("a");jq(links).click(function(event){event.preventDefault()});jq(headings).click(function(){if(jq(this).next("p").css("display")!="none"){jq(this).next("p").hide("fast");jq(this).css("background","url(++resource++bb.sal.images/bb_sal_parish_arrow_school.png) no-repeat 0px 4px")} else{jq(this).next("p").show("fast");jq(this).css("background","url(++resource++bb.sal.images/bb_sal_parish_arrow_school_on.png) no-repeat 0px 4px")}
if(jq(this).next("ul").css("display")!="none"){jq(this).next("ul").hide("fast");jq(this).css("background","url(++resource++bb.sal.images/bb_sal_parish_arrow_school.png) no-repeat 0px 4px")} else{jq(this).next("ul").show("fast");jq(this).css("background","url(++resource++bb.sal.images/bb_sal_parish_arrow_school_on.png) no-repeat 0px 4px")}})}});
function setBaseFontSize(size,test){if(size=="largeText"&&test){jq("body").css("font-size","100%")} else if(size=="smallText"&&test){jq("body").css("font-size","60%")} else{jq("body").css("font-size","80%")}}


