/* [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','13201',jdecode('About+us'),jdecode(''),'/13201.html','true',[],''],
	['PAGE','13243',jdecode('Handmold+Series'),jdecode(''),'/13243/index.html','true',[ 
		['PAGE','13264',jdecode('Field+Tile'),jdecode(''),'/13243/13264.html','true',[],''],
		['PAGE','13285',jdecode('Moldings'),jdecode(''),'/13243/13285.html','true',[],'']
	],''],
	['PAGE','42456',jdecode('Handmold+Concepts'),jdecode(''),'/42456/index.html','true',[ 
		['PAGE','29256',jdecode('8000'),jdecode(''),'/42456/29256.html','true',[],''],
		['PAGE','29277',jdecode('8001'),jdecode(''),'/42456/29277.html','true',[],''],
		['PAGE','29298',jdecode('8002'),jdecode(''),'/42456/29298.html','true',[],''],
		['PAGE','29319',jdecode('8003'),jdecode(''),'/42456/29319.html','true',[],''],
		['PAGE','29340',jdecode('8004'),jdecode(''),'/42456/29340.html','true',[],''],
		['PAGE','29361',jdecode('8005'),jdecode(''),'/42456/29361.html','true',[],''],
		['PAGE','29382',jdecode('8009'),jdecode(''),'/42456/29382.html','true',[],''],
		['PAGE','29403',jdecode('8012'),jdecode(''),'/42456/29403.html','true',[],''],
		['PAGE','29424',jdecode('8013'),jdecode(''),'/42456/29424.html','true',[],''],
		['PAGE','29445',jdecode('8014'),jdecode(''),'/42456/29445.html','true',[],''],
		['PAGE','29466',jdecode('8015'),jdecode(''),'/42456/29466.html','true',[],'']
	],''],
	['PAGE','13901',jdecode('Architectural+Series'),jdecode(''),'/13901/index.html','true',[ 
		['PAGE','13922',jdecode('Field+Tile'),jdecode(''),'/13901/13922.html','true',[],''],
		['PAGE','13943',jdecode('Moldings'),jdecode(''),'/13901/13943.html','true',[],''],
		['PAGE','28277',jdecode('Geometric+Patterns'),jdecode(''),'/13901/28277.html','true',[],'']
	],''],
	['PAGE','42477',jdecode('Architectural+Concepts'),jdecode(''),'/42477/index.html','true',[ 
		['PAGE','29487',jdecode('7020'),jdecode(''),'/42477/29487.html','true',[],''],
		['PAGE','29508',jdecode('7022'),jdecode(''),'/42477/29508.html','true',[],''],
		['PAGE','29529',jdecode('7023'),jdecode(''),'/42477/29529.html','true',[],''],
		['PAGE','29550',jdecode('7024'),jdecode(''),'/42477/29550.html','true',[],''],
		['PAGE','29571',jdecode('7025'),jdecode(''),'/42477/29571.html','true',[],''],
		['PAGE','29592',jdecode('7026'),jdecode(''),'/42477/29592.html','true',[],''],
		['PAGE','29613',jdecode('7027'),jdecode(''),'/42477/29613.html','true',[],''],
		['PAGE','29634',jdecode('7028'),jdecode(''),'/42477/29634.html','true',[],'']
	],''],
	['PAGE','31356',jdecode('Glazes'),jdecode(''),'/31356.html','true',[],''],
	['PAGE','14401',jdecode('Watercolor+Decos+'),jdecode(''),'/14401/index.html','true',[ 
		['PAGE','14422',jdecode('Traditional+Designs'),jdecode(''),'/14401/14422.html','true',[],''],
		['PAGE','14443',jdecode('Whimsical+Designs'),jdecode(''),'/14401/14443.html','true',[],'']
	],''],
	['PAGE','28698',jdecode('Watercolor+Concepts'),jdecode(''),'/28698/index.html','true',[ 
		['PAGE','29655',jdecode('3D'),jdecode(''),'/28698/29655.html','true',[],''],
		['PAGE','29676',jdecode('5D'),jdecode(''),'/28698/29676.html','true',[],''],
		['PAGE','29697',jdecode('6B'),jdecode(''),'/28698/29697.html','true',[],''],
		['PAGE','29718',jdecode('7G'),jdecode(''),'/28698/29718.html','true',[],''],
		['PAGE','29739',jdecode('8G'),jdecode(''),'/28698/29739.html','true',[],''],
		['PAGE','29760',jdecode('9F'),jdecode(''),'/28698/29760.html','true',[],''],
		['PAGE','29781',jdecode('12E'),jdecode(''),'/28698/29781.html','true',[],''],
		['PAGE','29802',jdecode('14D'),jdecode(''),'/28698/29802.html','true',[],'']
	],''],
	['PAGE','27556',jdecode('Mens%26%23x27%3B+Fashion'),jdecode(''),'/27556/index.html','true',[ 
		['PAGE','27577',jdecode('Cufflinks'),jdecode(''),'/27556/27577.html','true',[],''],
		['PAGE','27598',jdecode('Rings'),jdecode(''),'/27556/27598.html','true',[],'']
	],''],
	['PAGE','27619',jdecode('Watercolor+Wear'),jdecode(''),'/27619/index.html','true',[ 
		['PAGE','27640',jdecode('Ribbon+Necklaces'),jdecode(''),'/27619/27640.html','true',[],''],
		['PAGE','27661',jdecode('Hair+Ties'),jdecode(''),'/27619/27661.html','true',[],'']
	],''],
	['PAGE','13369',jdecode('Contact'),jdecode(''),'/13369/index.html','true',[ 
		['PAGE','13390',jdecode('Ceramic+Distributors'),jdecode(''),'/13369/13390.html','true',[],''],
		['PAGE','27682',jdecode('Watercolor+Distributors'),jdecode(''),'/13369/27682.html','true',[],'']
	],''],
	['PAGE','46256',jdecode('Shop'),jdecode(''),'/46256.html','true',[],'']];
var siteelementCount=53;
theSitetree.topTemplateName='Ragtime';
theSitetree.paletteFamily='DBC984';
theSitetree.keyvisualId='3572';
theSitetree.keyvisualName='kv_3572.jpg';
theSitetree.fontsetId='10452';
theSitetree.graphicsetId='10848';
theSitetree.contentColor='6F6E49';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Ragtime',
				paletteFamily: 	'DBC984',
				keyvisualId: 	'3572',
				keyvisualName: 	'kv_3572.jpg',
				fontsetId: 		'10452',
				graphicsetId: 	'10848',
				contentColor: 	'6F6E49',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'DBC984',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'707272',
				e_color: 		'A99B63',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['4001']=webappMappings['4001-10632683']={
webappId:    '4001',
documentId:  '46256',
internalId:  '10632683',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20090404-053251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13369',
internalId:  '',
customField: '20081211-194411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20090123-104918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46256',
internalId:  '',
customField: '20080813-102434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13243',
internalId:  '',
customField: '20080918-171604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13264',
internalId:  '',
customField: '20080303-095601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13285',
internalId:  '',
customField: '20080227-152418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42456',
internalId:  '',
customField: '20080727-120904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29256',
internalId:  '',
customField: '20080423-101708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29277',
internalId:  '',
customField: '20080423-101736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29298',
internalId:  '',
customField: '20080423-101813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29319',
internalId:  '',
customField: '20080423-101845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29340',
internalId:  '',
customField: '20080423-102536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29361',
internalId:  '',
customField: '20080423-102604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29382',
internalId:  '',
customField: '20080423-102629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29403',
internalId:  '',
customField: '20080423-102657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29424',
internalId:  '',
customField: '20080425-191245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29445',
internalId:  '',
customField: '20080425-191645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29466',
internalId:  '',
customField: '20080423-102822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20080305-054133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13922',
internalId:  '',
customField: '20080227-154317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13943',
internalId:  '',
customField: '20080214-054938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28277',
internalId:  '',
customField: '20080423-115932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42477',
internalId:  '',
customField: '20080727-120950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29487',
internalId:  '',
customField: '20080423-102845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29508',
internalId:  '',
customField: '20080425-191519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29529',
internalId:  '',
customField: '20080423-103116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29550',
internalId:  '',
customField: '20080423-103432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29571',
internalId:  '',
customField: '20080423-103607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29592',
internalId:  '',
customField: '20080423-103949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29613',
internalId:  '',
customField: '20080423-104159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29634',
internalId:  '',
customField: '20080423-104607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31356',
internalId:  '',
customField: '20080423-115023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20080227-143846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14422',
internalId:  '',
customField: '20080918-171737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14443',
internalId:  '',
customField: '20080227-150412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28698',
internalId:  '',
customField: '20080727-120715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29655',
internalId:  '',
customField: '20080423-110729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29676',
internalId:  '',
customField: '20080423-111245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29697',
internalId:  '',
customField: '20080423-111858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29718',
internalId:  '',
customField: '20080423-114035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29739',
internalId:  '',
customField: '20080423-113519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29760',
internalId:  '',
customField: '20080423-113953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29781',
internalId:  '',
customField: '20080423-114323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29802',
internalId:  '',
customField: '20080423-114606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27556',
internalId:  '',
customField: '20080727-121128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27577',
internalId:  '',
customField: '20080727-121206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27598',
internalId:  '',
customField: '20080727-121259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27619',
internalId:  '',
customField: '20081213-185412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27640',
internalId:  '',
customField: '20080727-122653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27661',
internalId:  '',
customField: '20080727-122726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13390',
internalId:  '',
customField: '20080305-055320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27682',
internalId:  '',
customField: '20080423-080114'
};
var canonHostname = 'wsc1.brinkster.com';
var accountId     = 'ABRI10INEROI';
var companyName   = 'Donna+Marie+Collection';
var htmlTitle	  = 'donnamariecollection';
var metaKeywords  = 'tiles%2C+hand-painted%2C+design%2C+bullnose%2C+trim%2C+ceramic%2C+hand+painted%2C+tile%2C+field+tile%2C+bathroom%2C+kitchen%2C+fireplace.++Watercolor+Wear%2C+Handpainted+necklaces%2C+Handpainted+Hair+Ties';
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();
};
