/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var POS_TARGET=8;
var theSitetree=[ 
	['PAGE','1101',jdecode('Home'),jdecode(''),'/1101.html','true',[],'',''],
	['PAGE','53901',jdecode('Presidents+Letter'),jdecode(''),'/53901.html','true',[],'',''],
	['PAGE','33201',jdecode('What+is+IBC'),jdecode(''),'/33201/index.html','true',[ 
		['PAGE','7322',jdecode('IBC+Research'),jdecode(''),'/33201/7322.html','true',[],'',''],
		['PAGE','193695',jdecode('Insurance+Issues'),jdecode(''),'/33201/193695.html','true',[],'','']
	],'',''],
	['PAGE','1173',jdecode('About+us'),jdecode(''),'/1173/index.html','true',[ 
		['PAGE','154601',jdecode('Medical+Advisors'),jdecode(''),'/1173/154601.html','true',[],'',''],
		['PAGE','191895',jdecode('2010+GOALS'),jdecode(''),'/1173/191895.html','true',[],'','']
	],'',''],
	['PAGE','67001',jdecode('Donate%2FContact+Us'),jdecode(''),'/67001.html','true',[],'',''],
	['PAGE','179123',jdecode('Congress+on+IBC'),jdecode(''),'/179123.html','true',[],'',''],
	['PAGE','179723',jdecode('State+Proclamations'),jdecode(''),'/179723.html','true',[],'',''],
	['PAGE','179323',jdecode('VIDEOS'),jdecode(''),'/179323.html','true',[],'',''],
	['PAGE','178323',jdecode('EVENTS'),jdecode(''),'/178323/index.html','true',[ 
		['PAGE','190175',jdecode('Foundation+pics'),jdecode(''),'/178323/190175.html','true',[],'','']
	],'',''],
	['PAGE','22701',jdecode('Links'),jdecode(''),'/22701.html','true',[],'',''],
	['PAGE','139801',jdecode('Brochures'),jdecode(''),'/139801.html','true',[],'',''],
	['PAGE','177823',jdecode('Newsletter'),jdecode(''),'/177823.html','true',[],'',''],
	['PAGE','34006',jdecode('Guestbook'),jdecode(''),'/34006/index.html','true',[ 
		['PAGE','34001',jdecode('Read+Guestbook'),jdecode(''),'/34006/34001.html','false',[],'','']
	],'','']];
var siteelementCount=19;
theSitetree.topTemplateName='Abstract';
theSitetree.paletteFamily='FFFFFF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10551';
theSitetree.graphicsetId='10577';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Abstract',
				paletteFamily: 	'FFFFFF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10551',
				graphicsetId: 	'10577',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1101',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-34006avec10inzi4w']={
webappId:    '1002',
documentId:  '34006',
internalId:  '34006avec10inzi4w',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1101',
internalId:  '',
customField: '20100310-211124'
};
webappMappings['1501']=webappMappings['1501-12991954']={
webappId:    '1501',
documentId:  '1101',
internalId:  '12991954',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53901',
internalId:  '',
customField: '20100221-152337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33201',
internalId:  '',
customField: '20100217-175053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1173',
internalId:  '',
customField: '20100204-163803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190175',
internalId:  '',
customField: '20100204-172107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177823',
internalId:  '',
customField: '20100204-172349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7322',
internalId:  '',
customField: '20100204-171548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '179723',
internalId:  '',
customField: '20100204-164831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '193695',
internalId:  '',
customField: '20100225-191820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '179323',
internalId:  '',
customField: '20100217-113024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178323',
internalId:  '',
customField: '20100217-165537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191895',
internalId:  '',
customField: '20100204-164211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154601',
internalId:  '',
customField: '20100204-164050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22701',
internalId:  '',
customField: '20100225-191626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '179123',
internalId:  '',
customField: '20100204-164401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34006',
internalId:  '',
customField: '20100204-172457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34001',
internalId:  '',
customField: '20071222-195548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67001',
internalId:  '',
customField: '20100204-164251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139801',
internalId:  '',
customField: '20100204-172301'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INZI4W';
var companyName   = 'The+Inflammatory+Breast+Cancer+Foundation';
var htmlTitle	  = '';
var metaKeywords  = 'IBC+Foundation%2C+ERASEIBC%2C+red+swollen+breast%2C+inflammatory+breast+cancer%2C+inflamatory+breast%2C+IBC+pictures%2C+imflamatory+brest%2C+mastitis%2C+swollen+breast%2C+itchy+breast%2C+painful+boob%2C+overnight+swollen+breast+%2C+sudden+change+to+breast%2C+IBCF%2C++breast+cancer%2C+no+lump+just+red+breast%2C+purple+breast%2C+breast+hurts%2C+inflammatory+cancer+education%2C+breast+carcinoma+%2C+breast+cancer+news%2C+cancer+research%2C+IBC+video%2C+The+Silent+Killer%2C+KOMO+TV%2C+cristofanilli%2C+MD+Anderson%2C+clinical+trials%2C+breast+cancer+research%2C+breast+carcinoma%2C+IBC+Clinic%2C+locally+advanced+breast+cancer%2C+stage+4+breast+disease%2C+eraseibc.com%2C+misdiagnosis%2C+Stage+of+breast+cancer%2C+';
var metaContents  = 'Keeping+you+up+to+date+on+breaking+news+about+Inflammatory+Breast+Cancer%2C+%28IBC%29.+The+Inflammatory+Breast+Cancer+Foundation+is+educating+the+public+and+the+medical+community+about+an+uncommon+type+of+breast+cancer+where+the+breast+can+become+red%2C+swollen%2C+and+warm%2C+sometimes+overnight.';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};
