/* [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','1501',jdecode('Home'),jdecode(''),'/1501.html','true',[],''],
	['PAGE','3001',jdecode('Who+are+we%3F'),jdecode(''),'/3001.html','true',[],''],
	['PAGE','91245',jdecode('Contact'),jdecode(''),'/91245.html','true',[],''],
	['PAGE','82345',jdecode('Achievements'),jdecode(''),'/82345.html','true',[],''],
	['PAGE','3022',jdecode('What+do+we+offer%3F'),jdecode(''),'/3022.html','true',[],''],
	['PAGE','10101',jdecode('Cakes'),jdecode(''),'/10101.html','true',[],''],
	['PAGE','3043',jdecode('What+people+are+saying'),jdecode(''),'/3043.html','true',[],''],
	['PAGE','97545',jdecode('Wedding+Gallery+1'),jdecode(''),'/97545.html','true',[],''],
	['PAGE','95245',jdecode('Wedding+Gallery+2'),jdecode(''),'/95245.html','true',[],''],
	['PAGE','75745',jdecode('Wedding+Gallery+3'),jdecode(''),'/75745.html','true',[],''],
	['PAGE','75645',jdecode('Wedding+Gallery+4'),jdecode(''),'/75645.html','true',[],''],
	['PAGE','63545',jdecode('Wedding+Gallery+5'),jdecode(''),'/63545.html','true',[],''],
	['PAGE','84445',jdecode('Wedding+Gallery+6'),jdecode(''),'/84445.html','true',[],''],
	['PAGE','8201',jdecode('Event+Gallery'),jdecode(''),'/8201.html','true',[],''],
	['PAGE','97845',jdecode('Wedding+Cake+Gallery'),jdecode(''),'/97845.html','true',[],''],
	['PAGE','24801',jdecode('Cake+Gallery'),jdecode(''),'/24801.html','true',[],''],
	['PAGE','25901',jdecode('Favors+%26+Invitations'),jdecode(''),'/25901.html','true',[],''],
	['PAGE','69450',jdecode('Guestbook'),jdecode(''),'/69450/index.html','true',[ 
		['PAGE','69445',jdecode('Read+Guestbook'),jdecode(''),'/69450/69445.html','false',[],'']
	],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Vita02';
theSitetree.paletteFamily='C5E6FB';
theSitetree.keyvisualId='11348';
theSitetree.keyvisualName='kv_11348.jpg';
theSitetree.fontsetId='32120';
theSitetree.graphicsetId='13933';
theSitetree.contentColor='3C3D3C';
theSitetree.contentBGColor='F6FBFE';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Vita02',
				paletteFamily: 	'C5E6FB',
				keyvisualId: 	'11348',
				keyvisualName: 	'kv_11348.jpg',
				fontsetId: 		'32120',
				graphicsetId: 	'13933',
				contentColor: 	'3C3D3C',
				contentBGColor: 'F6FBFE',
				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:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-c489b10c34294ffd4ed985fcb71d066c']={
webappId:    '7060',
documentId:  '8201',
internalId:  'c489b10c34294ffd4ed985fcb71d066c',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1501',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-ed5d973af31f62c1652b0915a9244ac9']={
webappId:    '7060',
documentId:  '63545',
internalId:  'ed5d973af31f62c1652b0915a9244ac9',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-69450abri10inxxw4']={
webappId:    '1002',
documentId:  '69450',
internalId:  '69450abri10inxxw4',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-4f67ddfaa31a08d03fd2f78db1227d25']={
webappId:    '7060',
documentId:  '75645',
internalId:  '4f67ddfaa31a08d03fd2f78db1227d25',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-e69d67a0102c31542ab94a3012fc0eb8']={
webappId:    '7060',
documentId:  '75745',
internalId:  'e69d67a0102c31542ab94a3012fc0eb8',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-fb6518ad816ee3ecaea2d2e98f77c8cb']={
webappId:    '7060',
documentId:  '84445',
internalId:  'fb6518ad816ee3ecaea2d2e98f77c8cb',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-cc10da1a51a55cf6a54899931592b0ed']={
webappId:    '7060',
documentId:  '24801',
internalId:  'cc10da1a51a55cf6a54899931592b0ed',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84445',
internalId:  '',
customField: '20090615-114721'
};
webappMappings['7060']=webappMappings['7060-6e483bdc354c7032e3c08537dee2f149']={
webappId:    '7060',
documentId:  '75645',
internalId:  '6e483bdc354c7032e3c08537dee2f149',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-4931f1355c47f76c9230040e3ad61178']={
webappId:    '7060',
documentId:  '75745',
internalId:  '4931f1355c47f76c9230040e3ad61178',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1501',
internalId:  '',
customField: '20090929-201841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20090429-132234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3022',
internalId:  '',
customField: '20090630-193057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20090429-132311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3043',
internalId:  '',
customField: '20090630-193555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91245',
internalId:  '',
customField: '20090802-134418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75745',
internalId:  '',
customField: '20090615-114625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75645',
internalId:  '',
customField: '20090615-114603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63545',
internalId:  '',
customField: '20090615-114651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20080730-142224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24801',
internalId:  '',
customField: '20090615-114755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97845',
internalId:  '',
customField: '20091103-105439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82345',
internalId:  '',
customField: '20090430-142357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25901',
internalId:  '',
customField: '20100216-113942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69450',
internalId:  '',
customField: '20080731-122754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69445',
internalId:  '',
customField: '20080731-122754'
};
webappMappings['7008']=webappMappings['7008-1360']={
webappId:    '7008',
documentId:  '91245',
internalId:  '1360',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-3128e72329f635187b406314e6ee46a6']={
webappId:    '7060',
documentId:  '97845',
internalId:  '3128e72329f635187b406314e6ee46a6',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97545',
internalId:  '',
customField: '20091103-103524'
};
webappMappings['7060']=webappMappings['7060-8080543af17aa61c77ddddf035a0cb46']={
webappId:    '7060',
documentId:  '97545',
internalId:  '8080543af17aa61c77ddddf035a0cb46',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95245',
internalId:  '',
customField: '20090928-130421'
};
webappMappings['7060']=webappMappings['7060-01a65916854db1f587ef0a36c605d996']={
webappId:    '7060',
documentId:  '95245',
internalId:  '01a65916854db1f587ef0a36c605d996',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc1.brinkster.com';
var accountId     = 'ABRI10INXXW4';
var companyName   = 'Sensational+Soiree';
var htmlTitle	  = 'Wedding+Planning%2C+Custom+Cakes%2C+Floral+Design%2C+Bensalem+PA%2C+Philadelphia+PA';
var metaKeywords  = 'Philadelphia+event+planning%2C+event+planner%2C++wedding+planning%2C+Philadelphia+wedding+planner%2C+cake+decorator%2C++event+design%2C+decor%2C++wedding+favors%2C+wedding+invitations%2C+theme+decor%2C+decorations%2C+caterers%2C+special+occasion%2C+Celebrations%2C+unique+cakes%2C+Philadelphia+custom+cakes+Anniversary+Celebrations%2CAnnual+Events%2CBirthday+Celebrations%2C++Corporate+Banquets%2C+Fund+Raisers%2C+Holiday+Gatherings%2C+Parties%2C+Baby+Showers%2C+Bridal+Showers%2C+Weddings%2C+floral+design%2C+philadelphia+florist++++++++++';
var metaContents  = 'Philadelphia+event+planning%2C+event+planner%2C+wedding+planning%2C++Philadelphia+wedding+planner%2C+cake+decorator%2C+event+design%2C+decor%2C++wedding+favors%2C+wedding+invitations%2C+theme+decor%2C+decorations%2C+caterers%2C+special+occasion%2C+Celebrations%2C+unique+cakes%2C+Philadelphia+custom+cakes%2C+floral+design%2C+philadelphia+florist';
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();
};
