/* [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','1801',jdecode('Home'),jdecode(''),'/1801.html','true',[],''],
	['PAGE','10057',jdecode('Gallery'),jdecode(''),'/10057/index.html','true',[ 
		['PAGE','5657',jdecode('Powell+Crossley+Gallery'),jdecode(''),'/10057/5657.html','true',[],''],
		['PAGE','11957',jdecode('Bridal+Shows+'),jdecode(''),'/10057/11957.html','true',[],''],
		['PAGE','10957',jdecode('Flickr+Gallery'),jdecode(''),'/10057/10957.html','true',[],'']
	],''],
	['PAGE','1915',jdecode('Guestbook'),jdecode(''),'/1915.html','true',[],''],
	['PAGE','1894',jdecode('How+to+find+us'),jdecode(''),'/1894.html','true',[],''],
	['PAGE','1852',jdecode('Contact+'),jdecode(''),'/1852.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='AC2E53';
theSitetree.keyvisualId='7103';
theSitetree.keyvisualName='kv_7103.jpg';
theSitetree.fontsetId='16395';
theSitetree.graphicsetId='12128';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E5E2E2';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Blossom',
				paletteFamily: 	'AC2E53',
				keyvisualId: 	'7103',
				keyvisualName: 	'kv_7103.jpg',
				fontsetId: 		'16395',
				graphicsetId: 	'12128',
				contentColor: 	'000000',
				contentBGColor: 'E5E2E2',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-18700']={
webappId:    '7008',
documentId:  '1852',
internalId:  '18700',
customField: 'language:en;country:US;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '1894',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['1002']=webappMappings['1002-1915aendu0in3vc7']={
webappId:    '1002',
documentId:  '1915',
internalId:  '1915aendu0in3vc7',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10957',
internalId:  '',
customField: '20091118-224017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20091118-191011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1852',
internalId:  '',
customField: '20090715-160724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1894',
internalId:  '',
customField: '20090804-143140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1915',
internalId:  '',
customField: '20090715-161608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10057',
internalId:  '',
customField: '20091118-180337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5657',
internalId:  '',
customField: '20091118-182355'
};
webappMappings['7060']=webappMappings['7060-6e9e64f8294ca21d81e8a55cd5ef5847']={
webappId:    '7060',
documentId:  '11957',
internalId:  '6e9e64f8294ca21d81e8a55cd5ef5847',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-06e6b69e49bea681ec1d7d3478945ebd']={
webappId:    '7060',
documentId:  '5657',
internalId:  '06e6b69e49bea681ec1d7d3478945ebd',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11957',
internalId:  '',
customField: '20091118-192315'
};
webappMappings['7060']=webappMappings['7060-8107dc22b26b095631f98f8543eb422c']={
webappId:    '7060',
documentId:  '10057',
internalId:  '8107dc22b26b095631f98f8543eb422c',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN3VC7';
var companyName   = 'Cheral+Floral+Studio+813-926-4556';
var htmlTitle	  = '';
var metaKeywords  = 'flowers%2C+rose%2C+florida%2C+tampa%2C+clearwater%2C+arrangements%2C+wedding%2C+bride%2C+groom%2C+vendor%2C+event+design%2C+corporate%2C+holiday%2C+parties%2C+reception%2C+ceremony%2C+bridal+show%2C+bouquet%2C+boutonniere%2C+corsage%2C+funeral%2C+sarasota%2C+westchase%2C+church%2C+venue%2C+centerpiece%2C+arrangement%2C+calla+lily%2C+bar+mitzvah%2C+chuppa%2C+jewish%2C+curly+willow%2C+rentals%2C+invitations%2C+save+the+date';
var metaContents  = 'Cheral+Floral+Studio%2C+Wedding+and+Event+Florist+in+Tampa+Bay+FL.';
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();
};
