/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],''],
	['PAGE','150501',jdecode('What+we+do+for+our+clients....'),jdecode(''),'/150501.html','true',[],''],
	['PAGE','73701',jdecode('Customer+Testimonials'),jdecode(''),'/73701.html','true',[],''],
	['PAGE','122201',jdecode('About+Us'),jdecode(''),'/122201.html','true',[],''],
	['PAGE','163101',jdecode('Facebook+-+Become+a+Fan%21'),jdecode(''),'/163101.html','true',[],''],
	['PAGE','48101',jdecode('Before%2FAfter+Photos'),jdecode(''),'/48101.html','true',[],''],
	['PAGE','175901',jdecode('Ascension+Church+-+Marble'),jdecode(''),'/175901.html','true',[],''],
	['PAGE','129201',jdecode('Photos+by+Room'),jdecode(''),'/129201/index.html','true',[ 
		['PAGE','129501',jdecode('Childrens+Rooms'),jdecode(''),'/129201/129501.html','true',[],''],
		['PAGE','129522',jdecode('Dining+Rooms'),jdecode(''),'/129201/129522.html','true',[],''],
		['PAGE','129543',jdecode('Kitchens'),jdecode(''),'/129201/129543.html','true',[],''],
		['PAGE','129564',jdecode('Living%2FFamily+Rooms'),jdecode(''),'/129201/129564.html','true',[],''],
		['PAGE','129585',jdecode('Bathrooms'),jdecode(''),'/129201/129585.html','true',[],''],
		['PAGE','129606',jdecode('Foyers'),jdecode(''),'/129201/129606.html','true',[],''],
		['PAGE','129627',jdecode('Bedrooms'),jdecode(''),'/129201/129627.html','true',[],'']
	],''],
	['PAGE','20801',jdecode('Portfolio+-+Photos'),jdecode(''),'/20801.html','true',[],''],
	['PAGE','31601',jdecode('Portfolio+II+-+Photos'),jdecode(''),'/31601.html','true',[],''],
	['PAGE','97001',jdecode('Portfolio+III+-+New+Photos'),jdecode(''),'/97001.html','true',[],''],
	['PAGE','111001',jdecode('Uppercase+Living'),jdecode(''),'/111001.html','true',[],''],
	['PAGE','120001',jdecode('Kitchen+Cabinet+Makeover'),jdecode(''),'/120001.html','true',[],''],
	['PAGE','89001',jdecode('Sign+Up+for+Newsletter'),jdecode(''),'/89001/index.html','true',[ 
		['PAGE','89701',jdecode('Sign+Up+for+Newsletter+%28follow+up+page%29'),jdecode(''),'/89001/89701.html','false',[],'']
	],''],
	['PAGE','159601',jdecode('Newsletter+Archive'),jdecode(''),'/159601.html','true',[],''],
	['PAGE','72101',jdecode('Custom+Artwork'),jdecode(''),'/72101.html','true',[],''],
	['PAGE','117801',jdecode('Integral+Ballroom'),jdecode(''),'/117801.html','true',[],''],
	['PAGE','145301',jdecode('Pub+in+the+Park'),jdecode(''),'/145301.html','true',[],''],
	['PAGE','14101',jdecode('What+services+do+we+provide%3F'),jdecode(''),'/14101/index.html','true',[ 
		['PAGE','33301',jdecode('Faux+Finishes'),jdecode(''),'/14101/33301.html','true',[],''],
		['PAGE','15301',jdecode('Regular+Base+Painting'),jdecode(''),'/14101/15301.html','true',[],''],
		['PAGE','2301',jdecode('Handpainted+Designs'),jdecode(''),'/14101/2301.html','true',[],''],
		['PAGE','15322',jdecode('Venetian+Plaster'),jdecode(''),'/14101/15322.html','true',[],''],
		['PAGE','15343',jdecode('Faux+Tile+%26+Stone'),jdecode(''),'/14101/15343.html','true',[],''],
		['PAGE','15364',jdecode('Faux+Marble+%26+Leather'),jdecode(''),'/14101/15364.html','true',[],''],
		['PAGE','107001',jdecode('Uppercase+Living'),jdecode(''),'/14101/107001.html','true',[],''],
		['PAGE','15427',jdecode('Embellished+Walls'),jdecode(''),'/14101/15427.html','true',[],''],
		['PAGE','95401',jdecode('Wall+Words'),jdecode(''),'/14101/95401.html','true',[],''],
		['PAGE','15448',jdecode('Faux+Wallpaper'),jdecode(''),'/14101/15448.html','true',[],''],
		['PAGE','125801',jdecode('Faux+WoodGrain'),jdecode(''),'/14101/125801.html','true',[],''],
		['PAGE','125822',jdecode('Gift+Certificates'),jdecode(''),'/14101/125822.html','true',[],''],
		['PAGE','125843',jdecode('Wallpaper+Removal'),jdecode(''),'/14101/125843.html','true',[],'']
	],''],
	['PAGE','40101',jdecode('FAQs'),jdecode(''),'/40101.html','true',[],''],
	['PAGE','57201',jdecode('In+the+News'),jdecode(''),'/57201.html','true',[],''],
	['PAGE','49101',jdecode('Contact+Us'),jdecode(''),'/49101.html','true',[],''],
	['PAGE','62701',jdecode('Local+Business+Links'),jdecode(''),'/62701.html','true',[],''],
	['PAGE','67601',jdecode('Pgh+Home+%26+Garden+Show'),jdecode(''),'/67601.html','true',[],''],
	['PAGE','91201',jdecode('Face+Painting-MOS+Festival'),jdecode(''),'/91201.html','true',[],''],
	['PAGE','43601',jdecode('Studio+22+Hair+Salon'),jdecode(''),'/43601.html','true',[],''],
	['PAGE','53201',jdecode('Habitat+for+Humanity'),jdecode(''),'/53201.html','true',[],''],
	['PAGE','2006',jdecode('Guestbook'),jdecode(''),'/2006/index.html','true',[ 
		['PAGE','2001',jdecode('Read+Guestbook'),jdecode(''),'/2006/2001.html','false',[],'']
	],''],
	['PAGE','146101',jdecode('Blog'),jdecode(''),'/146101.html','true',[],'']];
var siteelementCount=51;
theSitetree.topTemplateName='Liveliness';
theSitetree.paletteFamily='7368B1';
theSitetree.keyvisualId='3264';
theSitetree.keyvisualName='kv_3264.jpg';
theSitetree.fontsetId='10424';
theSitetree.graphicsetId='10733';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Liveliness',
				paletteFamily: 	'7368B1',
				keyvisualId: 	'3264',
				keyvisualName: 	'kv_3264.jpg',
				fontsetId: 		'10424',
				graphicsetId: 	'10733',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'7368B1',
				e_color: 		'BCBCBC',
				f_color: 		'737373',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-2006aaplu0in3llj']={
webappId:    '1002',
documentId:  '2006',
internalId:  '2006aaplu0in3llj',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-5661218']={
webappId:    '1501',
documentId:  '501',
internalId:  '5661218',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-a614d16c9965ee9b012027fadfa91320']={
webappId:    '7060',
documentId:  '20801',
internalId:  'a614d16c9965ee9b012027fadfa91320',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-8b3b9a2c4463c9a719d61a0279124e97']={
webappId:    '7060',
documentId:  '31601',
internalId:  '8b3b9a2c4463c9a719d61a0279124e97',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175901',
internalId:  '',
customField: '20100307-052624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163101',
internalId:  '',
customField: '20090730-060355'
};
webappMappings['7060']=webappMappings['7060-82a9a92657c6f10ebc4fa22a3326a1a7']={
webappId:    '7060',
documentId:  '97001',
internalId:  '82a9a92657c6f10ebc4fa22a3326a1a7',
customField: 'language:en;country:US;'
};
webappMappings['7050']=webappMappings['7050-4']={
webappId:    '7050',
documentId:  '146101',
internalId:  '4',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100412-063821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150501',
internalId:  '',
customField: '20090227-040049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73701',
internalId:  '',
customField: '20100121-071933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122201',
internalId:  '',
customField: '20090908-081605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129201',
internalId:  '',
customField: '20081113-034257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129501',
internalId:  '',
customField: '20090314-194031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129522',
internalId:  '',
customField: '20081113-121208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129543',
internalId:  '',
customField: '20081113-122206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129564',
internalId:  '',
customField: '20081113-122417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129585',
internalId:  '',
customField: '20081125-063535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129606',
internalId:  '',
customField: '20081113-034109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129627',
internalId:  '',
customField: '20081113-034109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20801',
internalId:  '',
customField: '20090530-033235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31601',
internalId:  '',
customField: '20090530-033250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97001',
internalId:  '',
customField: '20080721-060414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120001',
internalId:  '',
customField: '20081106-190652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89001',
internalId:  '',
customField: '20070819-122354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89701',
internalId:  '',
customField: '20070819-122257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72101',
internalId:  '',
customField: '20090406-165002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48101',
internalId:  '',
customField: '20090406-191211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111001',
internalId:  '',
customField: '20091008-060005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117801',
internalId:  '',
customField: '20081007-083630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145301',
internalId:  '',
customField: '20090114-082422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20090326-040239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33301',
internalId:  '',
customField: '20090406-191406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20090325-073242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20100108-080712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15322',
internalId:  '',
customField: '20070715-065033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15343',
internalId:  '',
customField: '20090530-044820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15364',
internalId:  '',
customField: '20070726-115438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107001',
internalId:  '',
customField: '20080808-060129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15427',
internalId:  '',
customField: '20070715-070133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95401',
internalId:  '',
customField: '20070902-051614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15448',
internalId:  '',
customField: '20071202-140005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125801',
internalId:  '',
customField: '20081111-034314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125822',
internalId:  '',
customField: '20081111-035625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125843',
internalId:  '',
customField: '20081111-040031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40101',
internalId:  '',
customField: '20070728-050342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57201',
internalId:  '',
customField: '20090406-164125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49101',
internalId:  '',
customField: '20070206-044050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62701',
internalId:  '',
customField: '20080624-061315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67601',
internalId:  '',
customField: '20080718-053827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91201',
internalId:  '',
customField: '20080820-113130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43601',
internalId:  '',
customField: '20070202-041433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53201',
internalId:  '',
customField: '20070711-060535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2006',
internalId:  '',
customField: '20070108-044044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20070108-044044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146101',
internalId:  '',
customField: '20090318-064701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159601',
internalId:  '',
customField: '20100412-054227'
};
webappMappings['7008']=webappMappings['7008-372']={
webappId:    '7008',
documentId:  '89001',
internalId:  '372',
customField: 'language:en;country:US;'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0IN3LLJ';
var companyName   = 'Stir+Your+Imagination%2C+LLC';
var htmlTitle	  = 'Stir+Your+Imagination+-+Full+Service+Painting';
var metaKeywords  = 'Stir+Your+Imagination%2C+Melissa+Balest+DeBiase+and+Jim+DeBiase%2C+Painting%2C+Painting+Murrysville%2C+Penn+Township+Painting+Contractors%2C+Westmoreland+County+Pennsylvania%2C+Murrysville%2C+DeBiase';
var metaContents  = 'Murrysville+Painting%2C+Faux+Finishes%2C+Hand+Painted+Designs%2C+Venetian+Plaster';
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();
};
