/* [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','301',jdecode('Home'),jdecode(''),'/301.html','true',[],''],
	['PAGE','352',jdecode('View+Mariah%26%23x27%3Bs+Designs'),jdecode(''),'/352/index.html','true',[ 
		['PAGE','373',jdecode('Bracelets'),jdecode(''),'/352/373.html','true',[],''],
		['PAGE','394',jdecode('Necklaces'),jdecode(''),'/352/394.html','true',[],''],
		['PAGE','415',jdecode('Sets'),jdecode(''),'/352/415.html','true',[],''],
		['PAGE','10901',jdecode('Earrings'),jdecode(''),'/352/10901.html','true',[],'']
	],''],
	['PAGE','24201',jdecode('Mariahs+hand+made+beads'),jdecode(''),'/24201/index.html','true',[ 
		['PAGE','436',jdecode('Classes+and+Shows'),jdecode(''),'/24201/436.html','true',[],'']
	],''],
	['PAGE','5001',jdecode('Mystic+powers+of+Gems'),jdecode(''),'/5001.html','true',[],''],
	['PAGE','520',jdecode('About+us'),jdecode(''),'/520/index.html','true',[ 
		['PAGE','457',jdecode('Terms+of+delivery'),jdecode(''),'/520/457.html','true',[],''],
		['PAGE','499',jdecode('Contact'),jdecode(''),'/520/499.html','true',[],'']
	],''],
	['PAGE','7006',jdecode('Guestbook'),jdecode(''),'/7006/index.html','true',[ 
		['PAGE','7001',jdecode('Read+Guestbook'),jdecode(''),'/7006/7001.html','false',[],'']
	],''],
	['PAGE','17601',jdecode('Shop'),jdecode(''),'/17601.html','true',[],''],
	['PAGE','17801',jdecode('Map'),jdecode(''),'/17801.html','true',[],''],
	['PAGE','33301',jdecode('Driving+directions'),jdecode(''),'/33301.html','true',[],''],
	['PAGE','35901',jdecode('Interesting+links'),jdecode(''),'/35901.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Finance';
theSitetree.paletteFamily='F3EBF5';
theSitetree.keyvisualId='2728';
theSitetree.keyvisualName='berg.jpg';
theSitetree.fontsetId='10412';
theSitetree.graphicsetId='10673';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Finance',
				paletteFamily: 	'F3EBF5',
				keyvisualId: 	'2728',
				keyvisualName: 	'berg.jpg',
				fontsetId: 		'10412',
				graphicsetId: 	'10673',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'F3EBF5',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-7006avec10inl870']={
webappId:    '1002',
documentId:  '7006',
internalId:  '7006avec10inl870',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20081112-153359'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '17801',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['4001']=webappMappings['4001-7205159']={
webappId:    '4001',
documentId:  '17601',
internalId:  '7205159',
customField: 'language:en;country:US;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '33301',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20081112-154719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '373',
internalId:  '',
customField: '20070831-142957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '394',
internalId:  '',
customField: '20070907-085246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415',
internalId:  '',
customField: '20070831-143127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20070824-160016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20080223-172638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '436',
internalId:  '',
customField: '20080829-104829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20070824-205241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '520',
internalId:  '',
customField: '20081008-150440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '457',
internalId:  '',
customField: '20070905-181813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '499',
internalId:  '',
customField: '20080829-104925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7006',
internalId:  '',
customField: '20070821-223558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20070821-223558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20070829-190512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20080829-105522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33301',
internalId:  '',
customField: '20081008-150002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35901',
internalId:  '',
customField: '20090320-173419'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INL870';
var companyName   = 'Jewelry+By+Mariah';
var htmlTitle	  = 'Jewelry+By+Mariah%2C+handmade+gemstone+jewelry+and+beads.+';
var metaKeywords  = 'HEADjewelry%2C+handmade%2C+hand++made+%2C+beads%2C++beaded+jewelry%2C+++gemstones%2C+++pearls%2C++necklace%2C+bracelet%2C+earrings%2C+unique+custom%2C+polymer+clay+beads%2C+one+of+a+kind+beads%2C+gift+baskets%2C+thoughts+of+healing+gift+baskets%2C+gemstone+healing%2C%2FHEAD';
var metaContents  = 'Uniqie+handmade+jewelry+by+Mariah.+necklaces+and+bracelets+with+genuine++gemstones+and+pearls+joined+in+unique+designs.+Hand+meade+polymer+clay+beads.+Fairies%2C+dragons%2C+mermaids+and+many+more+for+the+fantasy+lovers+out+there.+polmer+clay+flower+butterfies%2C+dragonflys+and+other+nature+inspired+beads.creatures+of+the+ocean+in+amazing+beads.+collection+of+custom+jewelry+includes+necklaces%2C+bracelets%2C+earrings+and+sets.++';
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();
};
