var item_atcontent = function (){var cstr = "";try{    var elm = document.getElementById("tab1content");    var text = elm.innerText || elm.textContent;    cstr = text.substring(0, 280).replace(/[\r\n]/g, "<br><br>").replace(/\s+/g, " ");    if (cstr.lastIndexOf("<br><br>") >= 0) {        cstr = cstr.substring(0, cstr.lastIndexOf("<br><br>")).replace(/([\.\!\?]\s*)$/, " ")    }    cstr = cstr.replace(/([\u2019\u2018])/g,"'").replace(/([\u201C\u201D])/g,'"');	    cstr = cstr.substring(0, cstr.lastIndexOf(" ")) + "...";}catch(e){}    return cstr;};/* This Function assumes that the HTML Title has the item or section name after the last ":" character */var item_attitle = function(){	var txt_title ="";	try{		var docTitle = document.getElementsByTagName('title')[0];		var docTitle_txt = docTitle.innerText || docTitle.textContent;		txt_title = (docTitle_txt.lastIndexOf(":")>=0) ? docTitle_txt.substring(docTitle_txt.lastIndexOf(":")+1,docTitle_txt.length) : "";		txt_title = txt_title.replace(/([\n\f])+/g,"");		isPriceSection = /^(([\$]\d+)|(Under \$)).*$/.test(txt_title);		if(isPriceSection==true){txt_title = "Donate " +  txt_title}  	}catch(e){}	return txt_title};var _$hname = location.hostname.toLowerCase();var _isStage = (_$hname == "stage.worldvision.org" || _$hname == "prodstage.worldvision.org");var eGiftAddThisAcct = (_isStage) ? "wvusprod" : "wvusproddev";var defaultCSSC = "105418218";var addthis_config = {     username: eGiftAddThisAcct,     data_track_linkback: true}var getEGiftNumValue = function(){	var giftNum = document.forms[0].giftNum.value;	return (typeof giftNum != "undefined" && typeof giftNum == "string" ) ? "&num=" + giftNum :  "";}();var getCSSCvalue = function(){	return (typeof addThisCSSCValue != "undefined" && typeof addThisCSSCValue == "string" ) ? addThisCSSCValue : defaultCSSC ;}();var getURLString = function(){	return location.href.replace(/(\?.*)/,"") + "?Open&campaign="  + getCSSCvalue + getEGiftNumValue;}();var addthis_share = {	url: getURLString}/* Defined AddThis Custom Title And Custom Content *///var _$atcontent = item_atcontent();var _$attitle = item_attitle();if(_$attitle!="" && typeof _$attitle != "undefined"){addthis_share.title = "World Vision: " + _$attitle}//if(_$atcontent!="" && typeof _$atcontent != "undefined"){addthis_share.content = _$atcontent}
