/* [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 POS_TARGET=8;
var theSitetree=[ 
	['PAGE','401',jdecode('New+Orleans+Showroom'),jdecode(''),'/401/index.html','true',[ 
		['PAGE','43501',jdecode('Furniture'),jdecode(''),'/401/43501.html','true',[],'',''],
		['PAGE','31543',jdecode('Lighting'),jdecode(''),'/401/31543.html','true',[],'',''],
		['PAGE','31564',jdecode('Cabinets'),jdecode(''),'/401/31564.html','true',[],'',''],
		['PAGE','31585',jdecode('Appliance'),jdecode(''),'/401/31585.html','true',[],'',''],
		['PAGE','31606',jdecode('Plumbing+%26+Glass'),jdecode(''),'/401/31606.html','true',[],'',''],
		['PAGE','95701',jdecode('Tile+%26+Stone'),jdecode(''),'/401/95701.html','true',[],'',''],
		['PAGE','36301',jdecode('Countertop+Surfaces'),jdecode(''),'/401/36301.html','true',[],'',''],
		['PAGE','53701',jdecode('Fireplaces'),jdecode(''),'/401/53701.html','true',[],'',''],
		['PAGE','33001',jdecode('Flooring'),jdecode(''),'/401/33001.html','true',[],'','']
	],'',''],
	['PAGE','452',jdecode('Architects+%26+Designers'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','31501',jdecode('New+Design+Studios'),jdecode(''),'/452/31501.html','true',[],'',''],
		['PAGE','49301',jdecode('Charlotte+Spencer+Smith'),jdecode(''),'/452/49301.html','true',[],'','']
	],'',''],
	['PAGE','37401',jdecode('Web+Magazines'),jdecode(''),'/37401.html','true',[],'','']];
var siteelementCount=14;
theSitetree.topTemplateName='Measure';
theSitetree.paletteFamily='8A9FD6';
theSitetree.keyvisualId='3882';
theSitetree.keyvisualName='kv_3882.jpg';
theSitetree.fontsetId='10492';
theSitetree.graphicsetId='11068';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Measure',
				paletteFamily: 	'8A9FD6',
				keyvisualId: 	'3882',
				keyvisualName: 	'kv_3882.jpg',
				fontsetId: 		'10492',
				graphicsetId: 	'11068',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'4F65A0',
				e_color: 		'4F65A0',
				f_color: 		'4F65A0',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100519-034543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95701',
internalId:  '',
customField: '20100615-090957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37401',
internalId:  '',
customField: '20100519-042345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43501',
internalId:  '',
customField: '20100519-034800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31543',
internalId:  '',
customField: '20100519-035043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31564',
internalId:  '',
customField: '20100519-035252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31585',
internalId:  '',
customField: '20100519-035524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31606',
internalId:  '',
customField: '20100519-035749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36301',
internalId:  '',
customField: '20100703-094257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53701',
internalId:  '',
customField: '20100519-040606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20100519-040649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100519-043237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31501',
internalId:  '',
customField: '20100519-041327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49301',
internalId:  '',
customField: '20100519-041938'
};
webappMappings['7008']=webappMappings['7008-662']={
webappId:    '7008',
documentId:  '401',
internalId:  '662',
customField: 'language:en;country:US;'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010INVB8U';
var companyName   = 'N+e+w++O+r+l+e+a+n+s++S+h+o+w+r+o+o+m';
var htmlTitle	  = 'purveyors+of+information+on+designers%2C+plans%2C+and+showrooms';
var metaKeywords  = 'showroom%2C+showrooms%2C+furniture+showroom%2C+furniture+showrooms%2C+bathroom+showroom%2C+bathroom+showrooms%2C+kitchen+showroom%2C+kitchen+showrooms%2C+kitchen+and+bath+showrooms%2C+bath+showrooms%2C+direct+buy+online+showroom%2C+tile+showrooms%2C+daltile+showroom%2C+lighting+showroom%2C+direct+member+showroom+showroom%2C+la+showroom%2C+tile+showroom%2C+bathroom+showroom+tile%2C+bathroom+design+showrooms%2C+plumbing+showrooms%2C+showroom+display%2C+showroom+bath%2C+kitchen+cabinet+showroom%2C+kitchen+design+showrooms%2C+online+kitchen+showrooms%2C+direct+buy+showrooms%2C+interior+design+showrooms%2C+granite+showroom%2C+granite+showrooms%2C+fireplace+showrooms%2C+interior+design+showroom%2C+carpet+showrooms%2C+ceramic+tile+showrooms%2C+new+orleans+designers%2C+new+orleans+decorators%2C+new+orleans+interior+designers%2C+new+orleans+showrooms%2C+new+orleans+design+showrooms%2C+French+Quarter+shops%2C+french+quarter+antiques%2C+Magazine+street+antiques%2C+Magazine+street+shops%2C+magazine+street%2C+house+plans%2C+home+plans%2C+old+metairie%2C+old+metairie+real+estate%2C+interior+design%2C+interior+design+choice+awards%2C+';
var metaContents  = 'New+Orleans+Showroom+is+an+online+resource+to+help+find+local+designer+showrooms';
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();
};
