/* [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','18934',jdecode('web+store'),jdecode(''),'/18934.html','true',[],'',''],
	['PAGE','12523',jdecode('Home'),jdecode(''),'/12523.html','true',[],'',''],
	['PAGE','12623',jdecode('Special+offer'),jdecode(''),'/12623/index.html','true',[ 
		['PAGE','12644',jdecode('Bracelets'),jdecode(''),'/12623/12644.html','true',[],'',''],
		['PAGE','12665',jdecode('Necklaces'),jdecode(''),'/12623/12665.html','true',[],'',''],
		['PAGE','12686',jdecode('Rings'),jdecode(''),'/12623/12686.html','true',[],'',''],
		['PAGE','12707',jdecode('Watches'),jdecode(''),'/12623/12707.html','true',[],'','']
	],'',''],
	['PAGE','19434',jdecode('specialty+items'),jdecode(''),'/19434.html','true',[],'',''],
	['PAGE','12749',jdecode('Terms+of+delivery'),jdecode(''),'/12749.html','true',[],'',''],
	['PAGE','12770',jdecode('Order'),jdecode(''),'/12770.html','true',[],'',''],
	['PAGE','12791',jdecode('Interesting+links'),jdecode(''),'/12791.html','true',[],'',''],
	['PAGE','12812',jdecode('Contact'),jdecode(''),'/12812.html','true',[],'',''],
	['PAGE','12833',jdecode('About+us'),jdecode(''),'/12833/index.html','true',[ 
		['PAGE','12854',jdecode('How+to+find+us'),jdecode(''),'/12833/12854.html','true',[],'',''],
		['PAGE','12875',jdecode('Our+team'),jdecode(''),'/12833/12875.html','true',[],'','']
	],'',''],
	['PAGE','12896',jdecode('Imprint'),jdecode(''),'/12896.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='5E5E5E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10344';
theSitetree.graphicsetId='10448';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='5e5e5e';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Akropolis',
				paletteFamily: 	'5E5E5E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10344',
				graphicsetId: 	'10448',
				contentColor: 	'FFFFFF',
				contentBGColor: '5e5e5e',
				a_color: 		'5E5E5E',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12523',
internalId:  '',
customField: '20110825-200532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12896',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12770',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18934',
internalId:  '',
customField: '20110206-021252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12833',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '18934',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12623',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12644',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12665',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12686',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12707',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12749',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12791',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12812',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12854',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12875',
internalId:  '',
customField: '20100220-220238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19434',
internalId:  '',
customField: '20110825-194211'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INL80R';
var companyName   = 'Your+company';
var htmlTitle	  = 'designsbydarline.net';
var metaKeywords  = 'jewelry%2C+necklace%2C+earrings%2C+sets%2C+bracelets%2C+pendants%2C+pins%2C+letter+opener%2C+key+rings%2C+necktie+clips+and+cuff+links%2C+purse+organizers%2C+purse+holders%2C++pill+boxes%2C+mirror%2C+mirrors%2C+hair+clips%2C+hair+adornments%2C+magnifiers%2C+card+holders%2C+page+holders%2C+money+clips%2C+specialty+items%2C+dichroic+glass%2C+opaic+glass%2C+transparent+glass%2C+fused+glass%2C+one+of+a+kind%2C+hand+made.';
var metaContents  = 'Fashion+jewelry+designed+by+Darline+from+the+finest+materials+available.+Fused+glass+jewelry+is+an+exciting+accessory+to+any+wardrobe%2C+for+women+and+men.+My+designs+are+a+one-of-a-kind%2C+carefully+prepared%2C+works-of-art%2C+that+can+be+worn%2C+also+available+are+desk+organizers%2C+purse+accessories%2C+pins+%2C+and+many+other+types+of+items.';
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();
};

