/* [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','3101',jdecode('Home'),jdecode(''), jdecode('%2F3101.html'), 'true',[],'',''],
	['PAGE','3173',jdecode('Women%2FMujer'),jdecode(''), jdecode('%2F3173%2Findex.html'), 'true',[ 
		['PAGE','3701',jdecode('Flats'),jdecode(''), jdecode('%2F3173%2F3701.html'), 'true',[],'',''],
		['PAGE','24012',jdecode('Sandals'),jdecode(''), jdecode('%2F3173%2F24012.html'), 'true',[],'',''],
		['PAGE','3722',jdecode('Boots'),jdecode(''), jdecode('%2F3173%2F3722.html'), 'true',[],'','']
	],'',''],
	['PAGE','3194',jdecode('Men%2FHombre'),jdecode(''), jdecode('%2F3194%2Findex.html'), 'true',[ 
		['PAGE','3764',jdecode('Casual'),jdecode(''), jdecode('%2F3194%2F3764.html'), 'true',[],'',''],
		['PAGE','3785',jdecode('Dressy+Shoes'),jdecode(''), jdecode('%2F3194%2F3785.html'), 'true',[],'','']
	],'',''],
	['PAGE','15212',jdecode('Girl%2FNina'),jdecode(''), jdecode('%2F15212%2Findex.html'), 'true',[ 
		['PAGE','15233',jdecode('Formal'),jdecode(''), jdecode('%2F15212%2F15233.html'), 'true',[],'',''],
		['PAGE','15317',jdecode('Girl+Infant'),jdecode(''), jdecode('%2F15212%2F15317.html'), 'true',[],'',''],
		['PAGE','32012',jdecode('Sandals'),jdecode(''), jdecode('%2F15212%2F32012.html'), 'true',[],'','']
	],'',''],
	['PAGE','15254',jdecode('Boy%2FNino'),jdecode(''), jdecode('%2F15254%2Findex.html'), 'true',[ 
		['PAGE','15296',jdecode('Casual'),jdecode(''), jdecode('%2F15254%2F15296.html'), 'true',[],'',''],
		['PAGE','15275',jdecode('Formal'),jdecode(''), jdecode('%2F15254%2F15275.html'), 'true',[],'',''],
		['PAGE','22312',jdecode('Boy+Infant'),jdecode(''), jdecode('%2F15254%2F22312.html'), 'true',[],'','']
	],'',''],
	['PAGE','3152',jdecode('Contact'),jdecode(''), jdecode('%2F3152.html'), 'true',[],'','']];
var siteelementCount=17;
theSitetree.topTemplateName='Brush';
theSitetree.paletteFamily='6F7DC8';
theSitetree.keyvisualId='11942';
theSitetree.keyvisualName='kv_11942.jpg';
theSitetree.fontsetId='33221';
theSitetree.graphicsetId='14102';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Brush',
				paletteFamily: 	'6F7DC8',
				keyvisualId: 	'11942',
				keyvisualName: 	'kv_11942.jpg',
				fontsetId: 		'33221',
				graphicsetId: 	'14102',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20110819-175617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3173',
internalId:  '',
customField: '20100719-164832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15275',
internalId:  '',
customField: '20110121-170525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3152',
internalId:  '',
customField: '20110209-001351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3194',
internalId:  '',
customField: '20110115-195607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3701',
internalId:  '',
customField: '20110704-185917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3722',
internalId:  '',
customField: '20110819-170559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15254',
internalId:  '',
customField: '20101129-171214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3764',
internalId:  '',
customField: '20101126-170512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3785',
internalId:  '',
customField: '20101126-191751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15212',
internalId:  '',
customField: '20110208-230551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15233',
internalId:  '',
customField: '20110318-180630'
};
webappMappings['7060']=webappMappings['7060-58fab2813e7c82f5986e7bf8d98c87e3']={
webappId:    '7060',
documentId:  '3173',
internalId:  '58fab2813e7c82f5986e7bf8d98c87e3',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15296',
internalId:  '',
customField: '20110121-171649'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15317',
internalId:  '',
customField: '20110208-234342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22312',
internalId:  '',
customField: '20110208-015100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24012',
internalId:  '',
customField: '20110704-185718'
};
webappMappings['7060']=webappMappings['7060-952cd7e6ed20a5c921c57b355f5604b2']={
webappId:    '7060',
documentId:  '24012',
internalId:  '952cd7e6ed20a5c921c57b355f5604b2',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-da2cfc9b5f102bc0cbf558f367ebff7a']={
webappId:    '7060',
documentId:  '15233',
internalId:  'da2cfc9b5f102bc0cbf558f367ebff7a',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32012',
internalId:  '',
customField: '20110325-171819'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I71K6H';
var companyName   = 'Adriana+Shoes';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};

