/* [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','1901',jdecode('Home'),jdecode(''),'/1901.html','true',[],'',''],
	['PAGE','25301',jdecode('Broadcast'),jdecode(''),'/25301.html','true',[],'',''],
	['PAGE','2601',jdecode('Members'),jdecode(''),'/2601.html','true',[],'',''],
	['PAGE','2622',jdecode('Mixes'),jdecode(''),'/2622.html','true',[],'',''],
	['PAGE','2643',jdecode('Party+news'),jdecode(''),'/2643/index.html','true',[ 
		['PAGE','2664',jdecode('Party+links'),jdecode(''),'/2643/2664.html','true',[],'','']
	],'',''],
	['PAGE','2706',jdecode('Party+pictures'),jdecode(''),'/2706/index.html','true',[ 
		['PAGE','2727',jdecode('Pix+from+out+and+about'),jdecode(''),'/2706/2727.html','true',[],'',''],
		['PAGE','2748',jdecode('LIVE+%40+Aromatic+Synsation'),jdecode(''),'/2706/2748.html','true',[],'','']
	],'',''],
	['PAGE','12701',jdecode('%22What+We%26%23x27%3Bre+Doing%22'),jdecode(''),'/12701.html','true',[],'',''],
	['PAGE','2790',jdecode('Where%26%23x27%3Bs+the+party%3F'),jdecode(''),'/2790.html','true',[],'',''],
	['PAGE','6501',jdecode('%22The+D%26%23x27%3BVine+1+Radio+Show%22'),jdecode(''),'/6501.html','true',[],'',''],
	['PAGE','4601',jdecode('Events'),jdecode(''),'/4601.html','true',[],'',''],
	['PAGE','2811',jdecode('Guest+Book'),jdecode(''),'/2811.html','true',[],'',''],
	['PAGE','5001',jdecode('D%26%23x27%3BVine+1+Business+Associates'),jdecode(''),'/5001.html','true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Dance';
theSitetree.paletteFamily='94ACE5';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16642';
theSitetree.graphicsetId='12220';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='9EB5EB';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Dance',
				paletteFamily: 	'94ACE5',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16642',
				graphicsetId: 	'12220',
				contentColor: 	'000000',
				contentBGColor: '9EB5EB',
				a_color: 		'000000',
				b_color: 		'000000',
				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['7060']=webappMappings['7060-1152ea6e360dfcc00dd0aee582aa76eb']={
webappId:    '7060',
documentId:  '2748',
internalId:  '1152ea6e360dfcc00dd0aee582aa76eb',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-2811ahw050invz14']={
webappId:    '1002',
documentId:  '2811',
internalId:  '2811ahw050invz14',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20100714-094526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20090421-085525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2622',
internalId:  '',
customField: '20090626-114245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2643',
internalId:  '',
customField: '20100519-161310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2664',
internalId:  '',
customField: '20090521-190150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2706',
internalId:  '',
customField: '20090113-174822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2727',
internalId:  '',
customField: '20090116-181956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2748',
internalId:  '',
customField: '20090421-094023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2790',
internalId:  '',
customField: '20090909-193834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2811',
internalId:  '',
customField: '20100519-160225'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-3398471']={
webappId:    '1501',
documentId:  '1901',
internalId:  '3398471',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20100617-210836'
};
webappMappings['7060']=webappMappings['7060-9bbc49b896800a78655f00e817580418']={
webappId:    '7060',
documentId:  '2727',
internalId:  '9bbc49b896800a78655f00e817580418',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20090521-183104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20100617-211010'
};
webappMappings['7060']=webappMappings['7060-f24ef3d9fb463de1ca9c73be60fc8d15']={
webappId:    '7060',
documentId:  '5001',
internalId:  'f24ef3d9fb463de1ca9c73be60fc8d15',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12701',
internalId:  '',
customField: '20100714-094553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25301',
internalId:  '',
customField: '20100617-210930'
};
webappMappings['1003']=webappMappings['1003-ahw050invz14120c903f0ba']={
webappId:    '1003',
documentId:  '2622',
internalId:  'ahw050invz14120c903f0ba',
customField: 'en:US'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INVZ14';
var companyName   = 'D%27Vine+1+Enterprises';
var htmlTitle	  = 'http%3A%2F%2Fd%27vine1ent.net';
var metaKeywords  = '';
var metaContents  = '';
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();
};
