/* [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 theSitetree=[ 
	['PAGE','5401',jdecode('HOME'),jdecode(''),'/5401.html','true',[],''],
	['PAGE','52355',jdecode('VALENTINE+FLOWERS'),jdecode(''),'/52355.html','false',[],''],
	['PAGE','56255',jdecode('WHATS+NEW'),jdecode(''),'/56255.html','true',[],''],
	['PAGE','19701',jdecode('OUR+STORE'),jdecode(''),'/19701/index.html','true',[ 
		['PAGE','11701',jdecode('About+Us'),jdecode(''),'/19701/11701.html','true',[],'']
	],''],
	['PAGE','13001',jdecode('FLORIST+SERVICES'),jdecode(''),'/13001/index.html','true',[ 
		['PAGE','12001',jdecode('Every+day+flowers'),jdecode(''),'/13001/12001.html','true',[],''],
		['PAGE','22601',jdecode('Weddings'),jdecode(''),'/13001/22601.html','true',[],''],
		['PAGE','23601',jdecode('Sympathy'),jdecode(''),'/13001/23601.html','true',[],'']
	],''],
	['PAGE','23643',jdecode('SHOP+FOR+GIFTS'),jdecode(''),'/23643/index.html','false',[ 
		['PAGE','23943',jdecode('Happy+Birthday'),jdecode(''),'/23643/23943.html','true',[],''],
		['PAGE','23964',jdecode('Get+Well'),jdecode(''),'/23643/23964.html','true',[],''],
		['PAGE','23985',jdecode('Aniversary'),jdecode(''),'/23643/23985.html','true',[],''],
		['PAGE','24006',jdecode('Retirement'),jdecode(''),'/23643/24006.html','true',[],''],
		['PAGE','24027',jdecode('New+Baby'),jdecode(''),'/23643/24027.html','true',[],'']
	],''],
	['PAGE','23664',jdecode('GIFT+BASKETS'),jdecode(''),'/23664/index.html','true',[ 
		['PAGE','23685',jdecode('Made+in+Missouri'),jdecode(''),'/23664/23685.html','true',[],''],
		['PAGE','14001',jdecode('Gourmet+Foods'),jdecode(''),'/23664/14001.html','true',[],'']
	],''],
	['PAGE','27301',jdecode('+PHOTOGRAPHY'),jdecode(''),'/27301.html','true',[],''],
	['PAGE','13601',jdecode('GUESTBOOK'),jdecode(''),'/13601.html','true',[],''],
	['PAGE','11501',jdecode('BLOG'),jdecode(''),'/11501.html','true',[],''],
	['PAGE','14401',jdecode('CONTACT+US'),jdecode(''),'/14401.html','true',[],''],
	['PAGE','15001',jdecode('HOW+TO+FIND+US'),jdecode(''),'/15001.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Flowers';
theSitetree.paletteFamily='9C2E2E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10485';
theSitetree.graphicsetId='11025';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E97161';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Flowers',
				paletteFamily: 	'9C2E2E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10485',
				graphicsetId: 	'11025',
				contentColor: 	'000000',
				contentBGColor: 'E97161',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'A32626',
				e_color: 		'A32626',
				f_color: 		'A32626',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20100302-213356'
};
webappMappings['7050']=webappMappings['7050-8171']={
webappId:    '7050',
documentId:  '11501',
internalId:  '8171',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20090227-204426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20100117-134020'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20090419-144526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13001',
internalId:  '',
customField: '20100117-141427'
};
webappMappings['1002']=webappMappings['1002-13601aendu0in31zz']={
webappId:    '1002',
documentId:  '13601',
internalId:  '13601aendu0in31zz',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20090303-192340'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '15001',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20090301-163343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20090227-214149'
};
webappMappings['7008']=webappMappings['7008-14101']={
webappId:    '7008',
documentId:  '14401',
internalId:  '14101',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20090227-215700'
};
webappMappings['1501']=webappMappings['1501-15865456']={
webappId:    '1501',
documentId:  '5401',
internalId:  '15865456',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23601',
internalId:  '',
customField: '20100117-170615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19701',
internalId:  '',
customField: '20100425-202844'
};
webappMappings['7060']=webappMappings['7060-754437b0fb6cb280b62da2367c0cff40']={
webappId:    '7060',
documentId:  '22601',
internalId:  '754437b0fb6cb280b62da2367c0cff40',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20100328-171408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23643',
internalId:  '',
customField: '20090828-212140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23664',
internalId:  '',
customField: '20090419-152510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23685',
internalId:  '',
customField: '20090419-153445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23943',
internalId:  '',
customField: '20090419-144334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23964',
internalId:  '',
customField: '20090419-144334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23985',
internalId:  '',
customField: '20090419-144334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24006',
internalId:  '',
customField: '20090419-144334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24027',
internalId:  '',
customField: '20090419-144334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56255',
internalId:  '',
customField: '20100511-202735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27301',
internalId:  '',
customField: '20090907-130730'
};
webappMappings['7060']=webappMappings['7060-7b90008ccf6c5aa4162dd1f1859263ab']={
webappId:    '7060',
documentId:  '23601',
internalId:  '7b90008ccf6c5aa4162dd1f1859263ab',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52355',
internalId:  '',
customField: '20100117-130231'
};
webappMappings['4001']=webappMappings['4001-26689965']={
webappId:    '4001',
documentId:  '52355',
internalId:  '26689965',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN31ZZ';
var companyName   = 'ADDIE+JANE+ORIGINALS';
var htmlTitle	  = 'ADDIE+JANE+ORIGINALS';
var metaKeywords  = 'addie+gifts+flowers+roses+jane+originals+origin+flors+hallsvilel+missouri+columbia+florist+flrist+carnations+plants+funeral+casket+spray+jams+jellies+gormet+foods+webcam+addiecam+camera+store+eva+addiejane+hensley+addy+scarves+jewlry+jewelry+watches+cash+and+carry+corsage+corsages+bouquet++unique+gifts+small+town+charm+whats+new+our+store+guestbook+';
var metaContents  = 'Addie+Jane+Originals%2C+Hallsville+Missouri';
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();
};
