/* [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','3101',jdecode('Home+Page'),jdecode(''), jdecode('%2F3101.html'), 'true',[],'',''],
	['PAGE','21301',jdecode('Events+Pictures'),jdecode(''), jdecode('%2F21301.html'), 'true',[],'',''],
	['PAGE','4801',jdecode('Event+Email+Request+'),jdecode(''), jdecode('%2F4801.html'), 'true',[],'',''],
	['PAGE','22801',jdecode('DJ+Will+Albums'),jdecode(''), jdecode('%2F22801.html'), 'true',[],'',''],
	['PAGE','4322',jdecode('Celebrities+Pictures'),jdecode(''), jdecode('%2F4322.html'), 'false',[],'',''],
	['PAGE','4301',jdecode('DJ+Biography'),jdecode(''), jdecode('%2F4301.html'), 'false',[],'',''],
	['PAGE','4501',jdecode('Sign+my+Guestbook'),jdecode(''), jdecode('%2F4501.html'), 'false',[],'','']];
var siteelementCount=7;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='93A6CC';
theSitetree.keyvisualId='2226';
theSitetree.keyvisualName='hochzeit2.jpg';
theSitetree.fontsetId='364';
theSitetree.graphicsetId='415';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='93A6CC';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRNC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Enjoy',
				paletteFamily: 	'93A6CC',
				keyvisualId: 	'2226',
				keyvisualName: 	'hochzeit2.jpg',
				fontsetId: 		'364',
				graphicsetId: 	'415',
				contentColor: 	'FFFFFF',
				contentBGColor: '93A6CC',
				a_color: 		'93A6CC',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20100822-062101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4301',
internalId:  '',
customField: '20090131-192554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21301',
internalId:  '',
customField: '20100819-185354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4322',
internalId:  '',
customField: '20090131-185319'
};
webappMappings['1002']=webappMappings['1002-4501aendu0ineafy']={
webappId:    '1002',
documentId:  '4501',
internalId:  '4501aendu0ineafy',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4501',
internalId:  '',
customField: '20090305-191241'
};
webappMappings['7008']=webappMappings['7008-9251']={
webappId:    '7008',
documentId:  '4801',
internalId:  '9251',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20081203-094859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20090305-191414'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INEAFY';
var companyName   = 'New+Millennium+DJ%27s';
var htmlTitle	  = '';
var metaKeywords  = 'DJ%2C+Gainesville%2C+Tampa%2C+Florida%2C+Latin%2C+rock%2C+pop%2C+salsa%2C+merengue%2C+bachata%2C+quinceaneras%2C+club+music%2C+pool+parties%2C+sweet+sixteen%2C+sweet+fifteen%2C+will+gonzalez%2C+djcacique%2C+pool%2C+party%2C+club%2C+music%2C+entertainer%2C+dancing+lessons%2C+dancing%2C+salsa+dancing%2C+zumba%2C+rueda%2C+salsa+congress%2C+bachata+congress%2C+University%2C+franchises%2C+bank%2C+disco%2C+jazz%2C+weddings%2C+anniversaries%2C+family+reunion%2C+class+of%2C+disc+jockey%2C+MC%2CKJ%2C+VJ%2C+Powerpoint+slides%2C+speakers%2C+rentals%2C+billingual+dj%2C+spanish+dj%2C+dj+equipment+rentals%2C+beach+parties%2C+prom%2C+University+of+florida+latin+network%2C+latinos+in+gainsville%2C++latin+network%2C+';
var metaContents  = 'New+Millennium+dj%27s+is+the+number+one+American+DJ+Services%2C+servicing+Gainesville+and+all+Florida%2C+New+Millennium+DJs+uses+the+most+inovated+Professional+sounds+DJ+equipment.+We+have+been+Serving+this+are+for+over+ten+years.New+Millennium+DJs+services+are+designed+for+Pool+Parties%2C+Gatherings%2C++Weddings%2C+Birthday+Parties%2C+quinceaneras%2C+Sweet+Sixteens%2C+Proms%2C+Anniversaries+and+much+more.+Billingual+Disc+Jockeys+service+for+all+the+areas.+Great+selection+of+music+to+include%3A+Rock%2C+R%26B%2C+Hip+Hop%2C+Oldies%2C+Latin+Music+too.+We+also+rent+DJ+equipment+and+prepare+slides+shows';
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();
};

