jQuery(document).ready(function() {
//Code to fix Archive spacing, arrows & links
if (jQuery('span.NLdate').length !='') {
jQuery('span.NLsummary').css('margin-bottom','0px');
}
if (jQuery('span.NLsummary').length =='' || jQuery('span.NLdate').length =='') {
jQuery("a.NLtitle:empty").next("a:not('a.NLtitle')").addClass("NLtitle");
}
jQuery("a.NLtitle:empty").hide();
jQuery("span.NLsummary").prev('br').prev('a:not("a.NLtitle")').addClass("NLtitle");
setTimeout(function(){unbindPrint()},500);
function unbindPrint() {
jQuery("a.addthis_button_print, span.at15t_print").unbind();
jQuery("a.addthis_button_print, span.at15t_print").click(function(e) {
e.preventDefault();
var pathName = window.location;
pathName = pathName+'&printmode=1';
window.open(pathName);
return false;
});
}
//mainNav
if(jQuery(".centerDesign").length){
jQuery("li#ourchurch > ul").show();
jQuery("li#ourchurch").addClass("selected");
jQuery("div#mainNav > ul > li").hover(function() {
jQuery("div#mainNav ul > li").removeClass("selected");
jQuery("div#mainNav > ul > li > ul:visible").hide();
jQuery("ul",this).show();
jQuery(this).addClass("selected");
});
}
jQuery("div.subnav:not(:empty)").show();
});
sfHover = function() {
var sfEls = document.getElementById("topnav").getElementsByTagName("LI");
for (var i=0; i
";
iB.style.marginTop= "-60px";
iB.style.marginLeft= o.offsetWidth-10+"px";
iB.style.display = "inline";
}
}
setTimeout(show,200);
}
function hideInfo(o) {
var hide = function () {
var oP = o.parentNode; // object parent that came
var oPS = o.previousSibling; // object previous sibling
if(oPS.id == "WhatsThisInfo"){
oP.removeChild(oPS);
}
}
setTimeout(hide,200);
}
/* ***********************************************************
* FUNCTION: clearField
* PURPOSE: clear text field default value
* ********************************************************* */
function clearField(field) {
if (field.value == field.defaultValue)
field.value = "";
}
function getDefaultValue(field) {
if (field.value == "")
field.value = field.defaultValue;
}
/* ***********************************************************
* FUNCTION: turnme
* PURPOSE: expand/collapse Ask InfoServ FAQ
* ********************************************************* */
function turnme(elem) {
if (elem.className == '') elem.className = "on";
else if (elem.className == "on") elem.className = "";
}
/* ***********************************************************
* FUNCTION: showAskNow/hideAskNow
* PURPOSE: display Ask Now form on news story pages
* ********************************************************* */
function toggleAskNow() {
if (document.getElementById('askusnow_form').style.display == "block") {
document.getElementById('askusnow_form').style.display = "none";
} else {
document.getElementById('askusnow_form').style.display = "block";
}
}
function showAskNow() {
document.getElementById('askusnow_form').style.display = "block";
}
function hideAskNow() {
document.getElementById('askusnow_form').style.display = "none";
}
/* ***********************************************************
* FUNCTION: showContactUsFooter/hideContactUsFooter
* PURPOSE: display Contact Us form in footer
* ********************************************************* */
function toggleContactUsFooter() {
if (document.getElementById('contactus_form').style.display == "block") {
document.getElementById('contactus_form').style.display = "none";
} else {
document.getElementById('contactus_form').style.display = "block";
}
}
function showContactUsFooter() {
document.getElementById('contactus_form').style.display = "block";
}
function hideContactUsFooter() {
document.getElementById('contactus_form').style.display = "none";
}
/* ***********************************************************
* FUNCTION: ldmHover, navOver, navOut
* PURPOSE: rollover for homepage navigation bar
* both IE & Mozilla
* ********************************************************* */
function ldmHover() {
if (document.getElementById('mainNav')) {
var navItems = document.getElementById('mainNav').getElementsByTagName('li');
for (var i=0; i