/* [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','1801',jdecode('Home'),jdecode(''),'/1801.html','true',[],''],
	['PAGE','1852',jdecode('Contact'),jdecode(''),'/1852.html','true',[],''],
	['PAGE','1873',jdecode('About+us'),jdecode(''),'/1873/index.html','true',[ 
		['PAGE','1894',jdecode('Privacy+Policy'),jdecode(''),'/1873/1894.html','true',[],'']
	],''],
	['PAGE','6001',jdecode('Women%26%23x27%3Bs+Perfume'),jdecode(''),'/6001.html','true',[],''],
	['PAGE','6022',jdecode('Men%26%23x27%3Bs+Perfume'),jdecode(''),'/6022.html','true',[],''],
	['PAGE','15901',jdecode('Warmest+Gifts'),jdecode(''),'/15901.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='9242';
theSitetree.keyvisualName='kv4.swf';
theSitetree.fontsetId='17360';
theSitetree.graphicsetId='12763';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Transluszent',
				paletteFamily: 	'660000',
				keyvisualId: 	'9242',
				keyvisualName: 	'kv4.swf',
				fontsetId: 		'17360',
				graphicsetId: 	'12763',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20090303-231418'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1852',
internalId:  '',
customField: '20081207-011336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1873',
internalId:  '',
customField: '20081122-000243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1894',
internalId:  '',
customField: '20081006-001442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20081121-234623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15901',
internalId:  '',
customField: '20081121-235614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6022',
internalId:  '',
customField: '20081025-234011'
};
webappMappings['7008']=webappMappings['7008-11272']={
webappId:    '7008',
documentId:  '1852',
internalId:  '11272',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INEJ2U';
var companyName   = 'International+Scent';
var htmlTitle	  = '';
var metaKeywords  = 'Discount+Cheap+Perfume+and+Cheap+Discount+Cologne.+Entice+the+people+around+you.+With+our+discount+mens+cologne+selection%2C+you%E2%80%99ll+be+able+to+wear+your+favorite+fragrances%E2%80%94for+less.+We+have+an+enormous+selection+of+men%E2%80%99s+cologne%2C+including+the+most+popular+brands+on+the+market%E2%80%94such+as+Gucci+cologne+and+Jean+Paul+Gaultier+cologne%E2%80%94and+hard-to-find+fragrances.+Give+the+gift+of+temptation+from+our+selection+of+alluring+men%E2%80%99s+cologne.+Choices+like+the+sophisticated+Gucci+cologne+or+cutting-edge+Jean+Paul+Gaultier+cologne+are+hot+items+and+are+featured+at+a+low+price.+With+our+relationship+with+all+perfume+distributors%2C+we+guarantee+that+our+discount+mens+cologne+is+100%25+authentic+and+available+for+delivery%21+Search+our+fine+selection+of+colognes+for+men+as+excellent+gift+ideas+or+personal+luxury+items+now%21Perfumeworldwide+provides+discount+perfume+on+wholesale+perfume+that+includes+man+perfume%2C+womens+perfume%2C+designer+perfume%2C+French+perfume+and+pheromone+perfume.+Find+best+deals+in+most+popular+womens+perfume+and+buy+perfume+online%2C+get+discounted+perfume+and+cheap+perfume+online.+All+best+selling+perfume%2C+cheap+designer+perfumes%2C+womens+fragrance%2C+discount+fragrances+and+perfume+fragrance+for+women+available+online+for+sale.+Perfume+gifts+like+woman+perfume%2C+designer+perfume+fragrance+and+cheap+perfume+available+with+special+offer+like+discount+designer+fragrance%2C+discount+womens+perfume+and+other+perfume+online.';
var metaContents  = 'Discount+cheap+perfume%2C+discount+fragrances%2C+discount+cheap+cologne%2C+womens+perfume+and+cheap+discount+designer+Discounted+perfume+online+discount+perfume+womens+perfume+cheap+perfume+Designer+Perfumes+Information+Brand+Perfume';
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();
};
