/* [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('Cosmic+Home+Base'),jdecode(''),'/501.html','true',[],''],
	['PAGE','615',jdecode('Our+Psychic+Services'),jdecode(''),'/615.html','true',[],''],
	['PAGE','552',jdecode('Our+Magical+Products'),jdecode(''),'/552/index.html','true',[ 
		['PAGE','23001',jdecode('Our+Magical+Prducts+%28follow+up+page%29'),jdecode(''),'/552/23001.html','false',[],'']
	],''],
	['PAGE','699',jdecode('How+to+Contact+Us'),jdecode(''),'/699/index.html','true',[ 
		['PAGE','762',jdecode('Where+to+find+us+%28MAP%29'),jdecode(''),'/699/762.html','true',[],'']
	],''],
	['PAGE','720',jdecode('All+About+Us'),jdecode(''),'/720/index.html','true',[ 
		['PAGE','741',jdecode('Meet+the+Cosmic+Team'),jdecode(''),'/720/741.html','true',[],'']
	],''],
	['PAGE','636',jdecode('Calendar+of+Events'),jdecode(''),'/636.html','true',[],''],
	['PAGE','573',jdecode('Store+Events+V%2FC'),jdecode(''),'/573.html','true',[],''],
	['PAGE','783',jdecode('Healing+Requests'),jdecode(''),'/783.html','true',[],''],
	['PAGE','5306',jdecode('Salamander+Guestbook'),jdecode(''),'/5306/index.html','true',[ 
		['PAGE','5301',jdecode('Meet+our+Guest'),jdecode(''),'/5306/5301.html','false',[],'']
	],''],
	['PAGE','10601',jdecode('Astral+Bus+Stop+%28Links%29'),jdecode(''),'/10601.html','true',[],''],
	['PAGE','13501',jdecode('Suggestions%2FFeedback'),jdecode(''),'/13501/index.html','true',[ 
		['PAGE','14801',jdecode('Feedback-Suggestions+%28follow+up+page%29'),jdecode(''),'/13501/14801.html','false',[],'']
	],''],
	['PAGE','15101',jdecode('Metaphysical+Links'),jdecode(''),'/15101.html','true',[],''],
	['PAGE','43701',jdecode('Map'),jdecode(''),'/43701.html','true',[],''],
	['PAGE','58501',jdecode('Sept07+Pagan+Pride+Day'),jdecode(''),'/58501.html','true',[],''],
	['PAGE','60701',jdecode('Moon+Fairy+2007'),jdecode(''),'/60701.html','true',[],''],
	['PAGE','69201',jdecode('2008+Psychic+Cruise'),jdecode(''),'/69201.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Caribic';
theSitetree.paletteFamily='7050FA';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10419';
theSitetree.graphicsetId='10707';
theSitetree.contentColor='FDFBA6';
theSitetree.contentBGColor='B63636';
var theTemplate={
				name: 			'Caribic',
				paletteFamily: 	'7050FA',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10419',
				graphicsetId: 	'10707',
				contentColor: 	'FDFBA6',
				contentBGColor: 'B63636',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-5306AHW050INXXSW']={
webappId:    '1002',
documentId:  '5306',
internalId:  '5306AHW050INXXSW',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-ahw050inxxswf3e33f11b5ae466b']={
webappId:    '1001',
documentId:  '13501',
internalId:  'ahw050inxxswf3e33f11b5ae466b',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050inxxswf3e33f11b5ae466b']={
webappId:    '1001',
documentId:  '14801',
internalId:  'ahw050inxxswf3e33f11b5ae466b',
customField: 'followUp'
};
webappMappings['1001']=webappMappings['1001-ahw050inxxswf7e5471bc33e7e56']={
webappId:    '1001',
documentId:  '552',
internalId:  'ahw050inxxswf7e5471bc33e7e56',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050inxxswf7e5471bc33e7e56']={
webappId:    '1001',
documentId:  '23001',
internalId:  'ahw050inxxswf7e5471bc33e7e56',
customField: 'followUp'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '43701',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-76095']={
webappId:    '1501',
documentId:  '501',
internalId:  '76095',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-12db8373951acd703877cfc2e3d2f8cf']={
webappId:    '7060',
documentId:  '58501',
internalId:  '12db8373951acd703877cfc2e3d2f8cf',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-9b7d049d8eb4ad3acaa3c8446c920513']={
webappId:    '7060',
documentId:  '60701',
internalId:  '9b7d049d8eb4ad3acaa3c8446c920513',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-8f613990341c7dba9072f3c973b3a76b']={
webappId:    '7060',
documentId:  '69201',
internalId:  '8f613990341c7dba9072f3c973b3a76b',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20090808-112657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20090130-004434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20080523-003146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20061229-010918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20061230-222518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '762',
internalId:  '',
customField: '20070722-184633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20090130-004316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20070721-222733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20090808-122936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20090808-121838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '783',
internalId:  '',
customField: '20090202-231503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5306',
internalId:  '',
customField: '20061212-215914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20061212-215914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20070109-011808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20061230-223639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20061225-162526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15101',
internalId:  '',
customField: '20080919-234929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43701',
internalId:  '',
customField: '20090118-210310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58501',
internalId:  '',
customField: '20071005-015120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60701',
internalId:  '',
customField: '20071228-231516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69201',
internalId:  '',
customField: '20080124-171509'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INXXSW';
var companyName   = 'The+Cosmic+Salamander%2C+Inc.';
var htmlTitle	  = 'Cosmic+Salamander+Metaphysical%2C+Wiccan%2C+Druid+and+Occult+Products+and+Readings';
var metaKeywords  = 'Abductions%2C+Angels%2C+Anna+Riva%2C+Athame%2C+Atlantis%2C+Astral%2C+Astral+Mall%2C+Astral+Projection%2C+Astral+Travel%2C+Astrology%2C+Astrological+Charts%2C+Audio+tapes%2C+Bell%2C+Bell+Book+and+Candle%2C+Biofeedback%2C+Biofeedback+equipment%2C+Biorhythms%2C+Books%2C+Book+of+Shadows%2C+Body%2C+Candles%2C+Celt%2C+Celts%2C+Circle%2C+Seven+Day+Candles%2C+CDs%2C+Cups%2C+Craeftgemot+Witancoveyne%2C+Crystals%2C+Crystal+Ball%2C+Cruses%2C+Da+Papa%EF%BF%BD%EF%BF%BD%EF%BF%BDs+Oils%2C+Death%2C+Demons%2C+Doorway+Publications%2C+Dragons+Blood%2C+Dragon%2C+Druid%2C+Druid+king%2C+The+Druid+King%2C+The+Druid+Henge%2C+Druidism%2C+DVDs%2C+Fetch%2C+Good+Witch%2C+Fairy%2C+Wild%2C+HooDoo%2C+Incense%2C+Incense+Burners%2C+Incense+Cones%2C+stick+Incense%2C+Incense+Oils%2C+Indio+Products%2C+Image+Dolls%2C+Male+Image+Doll%2C+Money+Drawing%2C+Papa+Legba%2C+Female+Image+Doll%2C+Jewelry%2C+High+John+the+Conqueror+Root%2C+John+the+Conqueror+Candles%2C++Ley+Lines%2C++Lore%2C+Magical+Lore%2C+Foke+Lore%2C+Little+Phallic+candles%2C+People%2C+Powers%2C+Life+After+Death%2C+Love%2C+Love+Spells%2C+Love+Magic%2C+Magic+rings%2C+Love+Magick%2C+Magic%2C+Magic+Tools%2C%2C+Magick%2C+Magickal+Supplies%2C+Magick+Staff%2C++Magick%2C+Magick+Rings%2C+Magick+Tools%2C++Numbers%2C+Numerology%2C++Wand%2C+Magic%2C+Magic+Staff%2C+Magic+Wand%2C+Mind%2C+Mind+body+Spirit%2C+++Minerals%2C++Oils%2C+Orgon+Energy%2C+Orgon+energy+Generators%2C+Pagan%2C++Psychic%2C+Psychic+Network%2C+The+Psychic+Network%2C+Psychic+Power%2C+Psychic+Reading%2C+Psychic+Predictions%2C++Root%2C+Root+Work%2C+Psychic+Protection%2C+Rings%2C+Reincarnation%2C+Rebirth+Rituals%2C+Scentastics%2C+Seven+Sister%2C+Shaman%2C+Spell%2C+Spells%2C+Spell+Casting%2C+StoneHenge%2C+Swords%2C+Staff%2C+TDK%2C+UFO%2C+UFOs%2C+Unidentified+Flying+Objects%2C+UFO+Abductions%2C+Vandi%2C++Video+Tapes%2C+VooDoo%2C+Vortex%2C+Wands%2C+Wise+Ones%2C+Witch%2C+Wicca+Wooden+Staff+Wizard%2C++++';
var metaContents  = 'Abductions%2C+Angels%2C+Athamal%2C+Atlantis%2C+Anna+Riva%2C+Astral%2C+Astral+Mall%2C+Astral+Projection%2C+Astral+Travel%2C+Astrology%2C+Astrological+Charts%2C+Audio+tapes%2C+Bell%2C+Bell+Book+and+Candle%2C+Biofeedback%2C+Biofeedback+equipment%2C+Biorhythms%2C+Books%2C+Book+of+Showols%2C+Body%2C+Candles%2C+Celt%2C+Celts%2C+Circle%2C+Seven+Day+Candles%2C+CDs%2C+Cups%2C+Craeftgemot+Witancoveyne%2C+Crystals%2C+Crystal+Ball%2C+Cruses%2C+Da+Papa%EF%BF%BD%EF%BF%BD%EF%BF%BDs+Oils%2C+Death%2C+Demons%2C+Doorway+Publications%2C+Dragon%2C+Druid%2C+Druid+king%2C+The+Druid+King%2C+The+Druid+Henge%2C+Druidism%2C+DVDs%2C+Fairy%2C+Fetch%2C+Good+Witch%2C+Wild%2C+HooDoo%2C+Incense%2C+Incense+Burners%2C+Incense+Cones%2C+stick+Incense%2C+Incense+Oils%2C+Indio+Products%2C+Image+Dolls%2C+Male+Image+Doll%2C+Female+Image+Doll%2C+Jewelry%2C+John+the+Conqueror+Root%2C+John+the+Conqueror+Candles%2C++Lay+Lines%2C++Lore%2C+Magical+Lore%2C+Foke+Lore%2C+Little+Phallic+candles%2C+People%2C+Powers%2C+Life+After+Death%2C+Love%2C+Love+Spells%2C+Love+Magic%2C+Magic+rings%2C+Love+Magick%2C+Magic%2C+Magic+Tools%2C%2C+Magick%2C+Magickal+Supplies%2C+Magick+Staff%2C++Magick%2C+Magick+Rings%2C+Magick+Tools%2C++M+oney+Drawing%2C+Numbers%2C+Numerology%2C++Wand%2C+Magic%2C+Magic+Staff%2C+Magic+Wand%2C+Mind%2C+Papa+Legba%2C+Dragons+Blood%2C++Mind+body+Spirit%2C+++Minerals%2C++Oils%2C+Orgon+Energy%2C+Orgon+energy+Generators%2C+Pagan%2C++Psychic%2C+Psychic+Network%2C+The+Psychic+Network%2C+Psychic+Power%2C+Psychic+Reading%2C+Psychic+Predictions%2C++Root%2C+Root+Work%2C+Psychic+Protection%2C+Rings%2C+Reincarnation%2C+Rebirth+Rituals%2C+Scentastics%2C+Seven+Sisters%2C+Shaman%2C+Spell%2C+Spells%2C+Spell+Casting%2C+Stone+Henge%2C+Swords%2C+Staff%2C+TDK%2C+UFO%2C+UFOs%2C+Unidentified+Flying+Objects%2C+UFO+Abductions%2C+Vandi%2C++Video+Tapes%2C+VooDoo%2C+Vortex%2C+Wands%2C+Wise+Ones%2C+Witch%2C+Wicca+Wooden+Staff+Wizard%2C++Staffs%2C+Pentacles%2C+altar+clothes%2C+Five+finger+grass%2C++';
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();
};
