/* [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','7521',jdecode('Home'),jdecode(''), jdecode('%2F7521.html'), 'true',[],'',''],
	['PAGE','178482',jdecode('Init'),jdecode(''), jdecode('%2F178482.html'), 'true',[],'',''],
	['PAGE','195182',jdecode('Come'),jdecode(''), jdecode('%2F195182.html'), 'true',[],'',''],
	['PAGE','192482',jdecode('Frenzy'),jdecode(''), jdecode('%2F192482.html'), 'true',[],'',''],
	['PAGE','186682',jdecode('Shanty'),jdecode(''), jdecode('%2F186682.html'), 'true',[],'',''],
	['PAGE','254450',jdecode('Passion'),jdecode(''), jdecode('%2F254450.html'), 'true',[],'',''],
	['PAGE','205450',jdecode('Looking'),jdecode(''), jdecode('%2F205450.html'), 'true',[],'',''],
	['PAGE','180082',jdecode('Skinner'),jdecode(''), jdecode('%2F180082.html'), 'true',[],'',''],
	['PAGE','200450',jdecode('Freedom'),jdecode(''), jdecode('%2F200450.html'), 'true',[],'',''],
	['PAGE','199050',jdecode('Starlight'),jdecode(''), jdecode('%2F199050.html'), 'true',[],'',''],
	['PAGE','201650',jdecode('Backseat'),jdecode(''), jdecode('%2F201650.html'), 'true',[],'',''],
	['PAGE','257550',jdecode('Deadlock'),jdecode(''), jdecode('%2F257550.html'), 'true',[],'',''],
	['PAGE','238750',jdecode('Swamper'),jdecode(''), jdecode('%2F238750.html'), 'true',[],'',''],
	['PAGE','196482',jdecode('Oldschool'),jdecode(''), jdecode('%2F196482.html'), 'true',[],'',''],
	['PAGE','204250',jdecode('So+Insane'),jdecode(''), jdecode('%2F204250.html'), 'true',[],'',''],
	['PAGE','182982',jdecode('Street+Boy'),jdecode(''), jdecode('%2F182982.html'), 'true',[],'',''],
	['PAGE','237150',jdecode('Enchanted'),jdecode(''), jdecode('%2F237150.html'), 'true',[],'',''],
	['PAGE','222850',jdecode('Destitution'),jdecode(''), jdecode('%2F222850.html'), 'true',[],'',''],
	['PAGE','193982',jdecode('Early+Years'),jdecode(''), jdecode('%2F193982.html'), 'true',[],'',''],
	['PAGE','197817',jdecode('Spellbound'),jdecode(''), jdecode('%2F197817.html'), 'true',[],'',''],
	['PAGE','259250',jdecode('Bird+Of+Prey'),jdecode(''), jdecode('%2F259250.html'), 'true',[],'',''],
	['PAGE','184182',jdecode('Atomic+Ants'),jdecode(''), jdecode('%2F184182.html'), 'true',[],'',''],
	['PAGE','250350',jdecode('Dead+Angels'),jdecode(''), jdecode('%2F250350.html'), 'true',[],'',''],
	['PAGE','181682',jdecode('Love+To+Stay'),jdecode(''), jdecode('%2F181682.html'), 'true',[],'',''],
	['PAGE','191082',jdecode('Bionic+Spider'),jdecode(''), jdecode('%2F191082.html'), 'true',[],'',''],
	['PAGE','252750',jdecode('Electrocution'),jdecode(''), jdecode('%2F252750.html'), 'true',[],'',''],
	['PAGE','228950',jdecode('Cosmic+Chaos'),jdecode(''), jdecode('%2F228950.html'), 'true',[],'',''],
	['PAGE','209850',jdecode('Shaft+Of+Light'),jdecode(''), jdecode('%2F209850.html'), 'true',[],'',''],
	['PAGE','202850',jdecode('Love+Me+Again'),jdecode(''), jdecode('%2F202850.html'), 'true',[],'',''],
	['PAGE','221250',jdecode('Gonna+Be+Mine'),jdecode(''), jdecode('%2F221250.html'), 'true',[],'',''],
	['PAGE','219450',jdecode('Girls+In+Colours'),jdecode(''), jdecode('%2F219450.html'), 'true',[],'',''],
	['PAGE','218050',jdecode('Broken+Dreams'),jdecode(''), jdecode('%2F218050.html'), 'true',[],'',''],
	['PAGE','232650',jdecode('Twilight+Worlds'),jdecode(''), jdecode('%2F232650.html'), 'true',[],'',''],
	['PAGE','188082',jdecode('Sea+Of+The+Dead'),jdecode(''), jdecode('%2F188082.html'), 'true',[],'',''],
	['PAGE','226750',jdecode('Alien+Space+Raps'),jdecode(''), jdecode('%2F226750.html'), 'true',[],'',''],
	['PAGE','242750',jdecode('Mobile+Ringtones'),jdecode(''), jdecode('%2F242750.html'), 'true',[],'',''],
	['PAGE','243450',jdecode('Mobile+Wallpaper'),jdecode(''), jdecode('%2F243450.html'), 'true',[],'',''],
	['PAGE','208650',jdecode('Street+Of+Despair'),jdecode(''), jdecode('%2F208650.html'), 'true',[],'',''],
	['PAGE','206950',jdecode('House+Of+Demons'),jdecode(''), jdecode('%2F206950.html'), 'true',[],'',''],
	['PAGE','212650',jdecode('Remove+My+Brain'),jdecode(''), jdecode('%2F212650.html'), 'true',[],'',''],
	['PAGE','216750',jdecode('Chase+The+Dragon'),jdecode(''), jdecode('%2F216750.html'), 'true',[],'',''],
	['PAGE','189482',jdecode('Forest+Of+Lost+Souls'),jdecode(''), jdecode('%2F189482.html'), 'true',[],'',''],
	['PAGE','211150',jdecode('Shadows+Have+Eyes'),jdecode(''), jdecode('%2F211150.html'), 'true',[],'',''],
	['PAGE','248350',jdecode('Keeper+Of+The+Gates'),jdecode(''), jdecode('%2F248350.html'), 'true',[],'',''],
	['PAGE','215150',jdecode('Gateway+To+The+Gods'),jdecode(''), jdecode('%2F215150.html'), 'true',[],'',''],
	['PAGE','234950',jdecode('From+The+Land+Beyond'),jdecode(''), jdecode('%2F234950.html'), 'true',[],'',''],
	['PAGE','230850',jdecode('Graves+Of+The+Living+Dead'),jdecode(''), jdecode('%2F230850.html'), 'true',[],'',''],
	['PAGE','213950',jdecode('Greetings+From+Andromeda'),jdecode(''), jdecode('%2F213950.html'), 'true',[],'',''],
	['PAGE','185382',jdecode('Urban+Rap+On+Dead+Streets'),jdecode(''), jdecode('%2F185382.html'), 'true',[],'',''],
	['PAGE','7616',jdecode('Contact'),jdecode(''), jdecode('%2F7616.html'), 'true',[],'','']];
var siteelementCount=50;
theSitetree.topTemplateName='Occasions';
theSitetree.paletteFamily='1752B4';
theSitetree.keyvisualId='6655';
theSitetree.keyvisualName='kv_6655.jpg';
theSitetree.fontsetId='11190';
theSitetree.graphicsetId='12002';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='1752B4';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hps_testtown',
  product: 'WSCSYSSSSLY0XFEL'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Occasions',
				paletteFamily: 	'1752B4',
				keyvisualId: 	'6655',
				keyvisualName: 	'kv_6655.jpg',
				fontsetId: 		'11190',
				graphicsetId: 	'12002',
				contentColor: 	'FFFFFF',
				contentBGColor: '1752B4',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196482',
internalId:  '',
customField: '20120108-054712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197817',
internalId:  '',
customField: '20120108-055059'
};
webappMappings['7008']=webappMappings['7008-1437']={
webappId:    '7008',
documentId:  '7616',
internalId:  '1437',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7521',
internalId:  '',
customField: '20120201-052753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '193982',
internalId:  '',
customField: '20120108-055027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195182',
internalId:  '',
customField: '20120108-054101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185382',
internalId:  '',
customField: '20120108-060602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186682',
internalId:  '',
customField: '20120108-054218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7616',
internalId:  '',
customField: '20090209-035717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '200450',
internalId:  '',
customField: '20120108-054440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201650',
internalId:  '',
customField: '20120108-054513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '199050',
internalId:  '',
customField: '20120108-054549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188082',
internalId:  '',
customField: '20120108-055747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189482',
internalId:  '',
customField: '20120108-060211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191082',
internalId:  '',
customField: '20120108-055314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192482',
internalId:  '',
customField: '20120108-054142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '181682',
internalId:  '',
customField: '20120108-055231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182982',
internalId:  '',
customField: '20120108-054841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184182',
internalId:  '',
customField: '20120108-055136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178482',
internalId:  '',
customField: '20120108-054019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180082',
internalId:  '',
customField: '20120108-054351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202850',
internalId:  '',
customField: '20120108-055457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204250',
internalId:  '',
customField: '20120108-054749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205450',
internalId:  '',
customField: '20120108-054306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206950',
internalId:  '',
customField: '20120108-055933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208650',
internalId:  '',
customField: '20120108-055852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209850',
internalId:  '',
customField: '20120108-055405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '211150',
internalId:  '',
customField: '20120108-060252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212650',
internalId:  '',
customField: '20120108-060016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '213950',
internalId:  '',
customField: '20120108-060502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215150',
internalId:  '',
customField: '20120108-060356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '216750',
internalId:  '',
customField: '20120108-060102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '218050',
internalId:  '',
customField: '20120108-055655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219450',
internalId:  '',
customField: '20120108-055624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221250',
internalId:  '',
customField: '20120108-055540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222850',
internalId:  '',
customField: '20120108-054947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '226750',
internalId:  '',
customField: '20111231-103718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228950',
internalId:  '',
customField: '20111231-103334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '230850',
internalId:  '',
customField: '20111231-104203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232650',
internalId:  '',
customField: '20111231-103619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '234950',
internalId:  '',
customField: '20111231-104135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237150',
internalId:  '',
customField: '20111231-103016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238750',
internalId:  '',
customField: '20111231-102830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242750',
internalId:  '',
customField: '20120104-080700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '243450',
internalId:  '',
customField: '20120201-052427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '248350',
internalId:  '',
customField: '20120125-103327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '250350',
internalId:  '',
customField: '20120125-103207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '252750',
internalId:  '',
customField: '20120125-103421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '254450',
internalId:  '',
customField: '20120125-103521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '257550',
internalId:  '',
customField: '20120125-105022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '259250',
internalId:  '',
customField: '20120201-052143'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INVFAY';
var companyName   = 'RAM2000';
var htmlTitle	  = 'RAM2000+Virtual+Super+Band';
var metaKeywords  = 'ram200%2C+free%2C+downloads%2C+music%2C+virtual%2C+super%2C+band%2C+dance%2C+hiphop%2C+pop%2C+rave%2C+techno';
var metaContents  = 'Formed+in+March+2000+by+Ray+Jones%2C+RAM2000+%28Remote+Access+Musicians%29+became+one+of+the+rare+British+virtual+bands+to+make+a+significant+impact+on+the+independent+music+circuit+in+America.+Released+in+2001+Dance+In+The+Rainbow+was+RAMs+first+album+which+done+very+well+on+the+US+music+circuit.+The+music+is+blends+of+Dance%2C+Techno%2C+Rave%2C+Pop+and+Hiphop+which+is+mixed+to+create+a+unique+sound.+Over+the+years+the+music+of+RAM2000+has+made+a+major+impact+worldwide+across+the+Internet+and+they+were+given+the+title+Virtual+Super+Band.';
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();
};

