/* [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','1901',jdecode('Home'),jdecode(''),'/1901.html','true',[],''],
	['PAGE','25301',jdecode('News'),jdecode(''),'/25301.html','true',[],''],
	['PAGE','1952',jdecode('About+us'),jdecode(''),'/1952.html','true',[],''],
	['PAGE','1994',jdecode('Photo+Montages'),jdecode(''),'/1994.html','true',[],''],
	['PAGE','5901',jdecode('Photo+Services+We+Offer'),jdecode(''),'/5901/index.html','true',[ 
		['PAGE','5922',jdecode('Photo+Restoration'),jdecode(''),'/5901/5922.html','true',[],''],
		['PAGE','24801',jdecode('Photo+Restoration+Gallery'),jdecode(''),'/5901/24801.html','true',[],''],
		['PAGE','6101',jdecode('Photo%2FNegative+Scanning'),jdecode(''),'/5901/6101.html','true',[],''],
		['PAGE','5943',jdecode('Photo%2FVideo+Archives'),jdecode(''),'/5901/5943.html','true',[],'']
	],''],
	['PAGE','1973',jdecode('See+Our+Work'),jdecode(''),'/1973/index.html','true',[ 
		['PAGE','4301',jdecode('Wedding+Related+'),jdecode(''),'/1973/4301.html','true',[],''],
		['PAGE','5501',jdecode('Graduation+Related+'),jdecode(''),'/1973/5501.html','true',[],''],
		['PAGE','21201',jdecode('Birthday+Related'),jdecode(''),'/1973/21201.html','true',[],''],
		['PAGE','21222',jdecode('Memorial+Tributes'),jdecode(''),'/1973/21222.html','true',[],''],
		['PAGE','5522',jdecode('Miscellaneous+Samples'),jdecode(''),'/1973/5522.html','true',[],'']
	],''],
	['PAGE','2015',jdecode('Prices'),jdecode(''),'/2015.html','true',[],''],
	['PAGE','19301',jdecode('What+Is+Included%3F'),jdecode(''),'/19301.html','true',[],''],
	['PAGE','17601',jdecode('How+It+Works'),jdecode(''),'/17601.html','true',[],''],
	['PAGE','17401',jdecode('Tips+%26+Suggestions'),jdecode(''),'/17401.html','true',[],''],
	['PAGE','2036',jdecode('Client+Testimonials'),jdecode(''),'/2036.html','true',[],''],
	['PAGE','17901',jdecode('Got+A+Question%3F'),jdecode(''),'/17901.html','true',[],''],
	['PAGE','2057',jdecode('Contact+Information'),jdecode(''),'/2057.html','true',[],''],
	['PAGE','2078',jdecode('FAQ%26%23x27%3Bs'),jdecode(''),'/2078.html','false',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Antique';
theSitetree.paletteFamily='CAB996';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11065';
theSitetree.graphicsetId='11834';
theSitetree.contentColor='D1C3A6';
theSitetree.contentBGColor='856A3B';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Antique',
				paletteFamily: 	'CAB996',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11065',
				graphicsetId: 	'11834',
				contentColor: 	'D1C3A6',
				contentBGColor: '856A3B',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'664F23',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20100209-232409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20100210-092146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1973',
internalId:  '',
customField: '20100203-141025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4301',
internalId:  '',
customField: '20100209-163844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20100209-225236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2057',
internalId:  '',
customField: '20100202-231905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2036',
internalId:  '',
customField: '20100202-231432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20100209-105545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20100209-163918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5522',
internalId:  '',
customField: '20100218-100546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20100209-214115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5922',
internalId:  '',
customField: '20100215-102735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20100201-172859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5943',
internalId:  '',
customField: '20100201-175432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2078',
internalId:  '',
customField: '20100131-215132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20100209-203258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20100209-110638'
};
webappMappings['7008']=webappMappings['7008-25611']={
webappId:    '7008',
documentId:  '17901',
internalId:  '25611',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17901',
internalId:  '',
customField: '20100203-200226'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19301',
internalId:  '',
customField: '20100209-104959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21201',
internalId:  '',
customField: '20100209-165156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21222',
internalId:  '',
customField: '20100209-165308'
};
webappMappings['7060']=webappMappings['7060-d34ca4c46509a1657028cf0bb6075d29']={
webappId:    '7060',
documentId:  '24801',
internalId:  'd34ca4c46509a1657028cf0bb6075d29',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24801',
internalId:  '',
customField: '20100215-102611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25301',
internalId:  '',
customField: '20100218-095725'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INVH0L';
var companyName   = 'Forever+And+A+Day+Production';
var htmlTitle	  = 'Video+Slideshows+%26+Photo+Montages+%7C+Weddings%2C+Graduations%2C+Memorial+Tributes%2C+Birthdays..';
var metaKeywords  = 'photo+slideshow%2C+Multimedia+DVD+Slideshow%2C+Multimedia+Photo+Video%2C+photo+montage%2C+video+slideshow%2C+media+creations%2C+wedding+photo+montage%2C+bride+and+groom+growing+up+video%2C+reception+slideshow%2C+graduation+slideshow%2C+graduation+photo+montage%2C+graduation+video+slideshow%2C+Booker+T.+Washington+High+School+videos%2C+BTW+videos%2C+BTW+Winter+Ball+video%2C+Forever+And+A+Day%2C+highlight+videos%2C+sports+team+videos%2C+sports+teams+slideshows%2C+high+school+sports+teams+slideshows%2C+photo+restoration%2C+old+photo+enhancement%2C+photos+to+dvd%2C+wedding+slideshow%2C+memories+montage%2C++film+transfer%2C+video+production%2C+scanning+negatives%2C+negatives+to+digital%2C+35mm+slides%2C+scanning+photographs%2C+photo+restoration+dallas%2C+professional+slideshow%2C++restoring+old+photos%2C+memorial+tributes%2C+sample+slideshows%2C+reception+ideas%2C+photo+video+presentations%2C+slideshow%2C+video+duplication%2C+dallas%2Fft+worth%2C+dfw+metroplex%2C+dfw%2C+dvd+transfer%2C+tape+copies%2C+copy%2C+videotape%2C+foreign+conversion%2C+photo++film+transfers%2C+videos%2C+production%2C+editing%2C+VHS%2C+digital%2C+miniDV%2C+DVCam%2C+beta+sp%2C+8mm%2C+hi8%2C+duplications%2C+ntsc%2C+pal%2C+secam%2C+cd-rom+encoding%2C+PowerPoint+to+videotape';
var metaContents  = 'Forever+And+A+Day+Production+will+create+an+emotion-packed+DVD+slide+show+or+photo+montage+for+your+wedding%2C+anniversary%2C+memorial+service%2C+birthday+party%2C+family+reunion%2C+etc.+Protect+your+treasured+memories+by+having+your+photos%2C+slides+and+negatives+scanned+and+archived+on+DVD.';
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();
};
