if(typeof nhpbc_loaded=='undefined') {
	var nhpbc_min=false, nhpbc_gz=false, nhpbc_votd={}, nhpbc_jsobj={}, nhpbc_json='', nhpbc_jsonfile='', nhpbc_email={a:'AOL.com',b:'Brandwood.net',e:'Earthlink.net',g:'Gmail.com',h:'Hotmail.com',j:'Juno.com',m:'MSN.com',n:'NHPBC.com',o:'OptOnline.net',r:'nyc.RR.com',v:'Verizon.net',y:'Yahoo.com'};
	var nhpbc_lite=(document.location.pathname=='/litesite.cfm')?true:false;
	document.write(unescape("%3Cstyle type='text/css'%3Etable.myform td { font-size:9pt; }\nsup { font-size:6pt; }%3C/style%3E"));  
	
	function nhpbc_getjson(jsonurl,variable,async,cache) {
		variable=(typeof variable=='string')?variable:nhpbc_json;
		jsonurl =(typeof jsonurl =='string')?jsonurl :nhpbc_jsonfile;
		if(!jsonurl.length || !variable.length) return;
		$.ajax({ dataType: "json",	url: jsonurl,
			type:	 "GET",
			async:   (typeof async  =='boolean')?async:true,
			cache:   (typeof cache  =='boolean')?cache:true,
			success: function(json) { window[variable]=json;},
			error:   nhpbc_ajax_error
		});
	}
	function nhpbc_ajax_error(XMLHttpRequest, textStatus, errorThrown) {
		if(nhpbc_BSLLC()) 
			alert(((typeof XMLHttpRequest=='undefined')?'':'XMLRequestObject:'+((BrowserDetect.browser=='Firefox')?XMLHttpRequest.toSource():XMLHttpRequest)+'\n')+
				  ((typeof RequestStatus =='undefined')?'':'RequestStatus:'   +((BrowserDetect.browser=='Firefox')?RequestStatus.toSource() :RequestStatus) +'\n')+
				  ((typeof ErrorThrown   =='undefined')?'':'ErrorThrown:'     +((BrowserDetect.browser=='Firefox')?ErrorThrown.toSource()   :ErrorThrown)   +'\n'));
		else
			$('table[width=200]:first>tbody>tr>td').html('<p>&nbsp;</p>');
	}
	function nhpbc_addScript(url) {
		nhpbc_jsobj=new JSONScriptRequest(url);
		nhpbc_jsobj.buildScriptTag();
		nhpbc_jsobj.addScriptTag();
	}
    function nhpbc_biblegateway(votd) {
        nhpbc_votd=votd;
    }
    function nhpbc_isIE() {
        return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);
    }
    function nhpbc_BSLLC() {
        return /bsllc/i.test(navigator.userAgent) ;
    }
    function nhpbc_forum(id) {
        window.location.replace('/'+((nhpbc_lite)?'litesite':'content')+'.cfm?id=140&forum_id='+id);
    }
	function nhpbc_show(id) {
		$('dd[id^=nhpbc_]').hide("slow");
		$('#nhpbc_'+id).show("slow");
	}
	function nhpbc_more(id) {
		$('[id^=nhpbc_more_]').hide();
		$('#nhpbc_more_'+id).show();
	}
    function nhpbc_DeDuplicate(a) {
        var r=[];
        o:for(var i = 0, n = a.length; i < n; i++) {
            for(var x = 0, y = r.length; x < y; x++)
                if(r[x]==a[i])
                    continue o;
        	r[r.length] = a[i];
        }
        return r;
    }
	function nhpbc_sortArrayAsc(data1,data2)	{		return nhpbc_sortArray(data1,data2,'a');	}
	function nhpbc_sortArrayDesc(data1,data2)	{		return nhpbc_sortArray(data1,data2,'d');	}
	function nhpbc_sortArray(data1,data2,dir)	{
		var a='',b='';
		dir=(typeof dir == 'undefined')?'a':dir;
		if(typeof data1 == 'string' && typeof data2 == 'string') {
			a=(/ /.test(data1))?data1.split(' ')[1]:data1;
			b=(/ /.test(data2))?data2.split(' ')[1]:data2;
		} else if (typeof data1.sortBy != 'undefined' && typeof data2.sortBy != 'undefined') {
			a=data1.sortBy;
			b=data2.sortBy;
		} else if(typeof data1.title != 'undefined' && typeof data2.title != 'undefined') {
			a=data1.title;
			b=data2.title;
		} else if (typeof data1.name != 'undefined' && typeof data2.name != 'undefined') {
			a=(/ /.test(data1.name))?data1.name.split(' ')[1]:data1.name;
			b=(/ /.test(data2.name))?data2.name.split(' ')[1]:data2.name;
		}
		if(dir=='d')
			return ((a < b) ? 1 : ((a > b) ? -1 : 0));
		else
			return ((a > b) ? 1 : ((a < b) ? -1 : 0));
	}
    function Ascending(a, b){ return (a-b); }
    function Descending(a, b){ return (b-a); }
	regexTag=/<\/?\w+((\s+\w+(\s*=\s*(?:"(.|\n)*?"|'(.|\n)*?'|[^'">\s]+))?)+\s*|\s*)\/?>/gi;
//    amp  ='&_amp;'.replace(/_/,'');
//    nbsp ='&_nbsp;'.replace(/_/,'');
//    quot ='&_quot;'.replace(/_/,'');
//    raquo='&_raquo;'.replace(/_/,'');
//    rsquo='&_rsquo;'.replace(/_/,'');
//    rdquo='&_rdquo;'.replace(/_/,'');
//    laquo='&_laquo;'.replace(/_/,'');
//    lsquo='&_lsquo;'.replace(/_/,'');
//    ldquo='&_ldquo;'.replace(/_/,'');
//    mdash='&_mdash;'.replace(/_/,'');
//    hellip='&_hellip;'.replace(/_/,'');
    nhpbc_loaded=true;
}

if(typeof nhpbc_qs == 'undefined') {
	nhpbc_qs={'id':((document.location.pathname=='/' || document.location.pathname=='/index.cfm')?135:'')}
    if(typeof window.location.search != 'undefined') {
        var temp_qs=window.location.search.replace(/^\?/,'').replace(/#(.)*/g,'').split('&');
        for(i=0;i<temp_qs.length;i++) 
            if(temp_qs[i].split('=').length>1)
                nhpbc_qs[temp_qs[i].split('=')[0]]=temp_qs[i].split('=')[1];
    }
}

if(typeof nhpbc_js=='undefined') {
    var nhpbc_js=[];
    nhpbc_js[nhpbc_js.length]=document.location.protocol + ((document.location.protocol == 'https:') ? '//ssl.' : '//www.') + 'google-analytics.com/ga.js';
    if(typeof jQuery == 'undefined') {
        nhpbc_js[nhpbc_js.length] = document.location.protocol + '//ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js';
        nhpbc_js[nhpbc_js.length] = document.location.protocol + '//ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js';
        nhpbc_js[nhpbc_js.length]='/files/javascript/jquery.ext.100' + ((typeof nhpbc_min=='boolean' && !nhpbc_min)?'':'.min') +'.js';	
    }
    nhpbc_js[nhpbc_js.length] = document.location.protocol + '//www.biblegateway.com/votd/get?format=json&callback=nhpbc_biblegateway&version=31';
	if(typeof nhpbc_qs['id']!='undefined' && nhpbc_qs['id'].length && nhpbc_qs['id']>0)
	    switch(parseInt(nhpbc_qs['id'])) {
			case 000:	nhpbc_js[nhpbc_js.length]='/files/javascript/nhpbc_dev.js';	
						break;
			case 200:	// Bible Readings //
			case 325:	// MOPS Form Validation //
			case 346:	// Missionary //
			case 366:	// Advent //
						nhpbc_js[nhpbc_js.length]='/files/javascript/nhpbc_'+ nhpbc_qs['id'] + ((typeof nhpbc_min=='boolean' && !nhpbc_min)?'':'.min') +'.js';	
						break;
			case 347:	// Church Family //
			case 363:	// Trustees // 
			case 364:	// Shepherding Board //
			case 365:	// Ministry Board //
			case 397:	// Church Friends //
			case 413:	// Member Details //
			case 452:   // Missions Team //
						nhpbc_js[nhpbc_js.length]='/files/javascript/nhpbc_directory' + ((typeof nhpbc_min=='boolean' && !nhpbc_min)?'':'.min') +'.js';	
						break;
			default:	break;
		}
    nhpbc_js[nhpbc_js.length]='/files/javascript/nhpbc_process' + ((typeof nhpbc_min=='boolean' && !nhpbc_min)?'':'.min') +'.js';	
    for(var i=0;i<nhpbc_js.length;i++) 
        document.write(unescape('%3Cscript src="'+nhpbc_js[i]+'" type="text/javascript" %3E%3C/script%3E\n'));
}