/* [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','43',jdecode('Home'),jdecode(''),'/43.html','true',[],'',''],
	['PAGE','1381',jdecode('About+us'),jdecode(''),'/1381.html','true',[],'',''],
	['PAGE','1136',jdecode('About+Our+Music'),jdecode(''),'/1136/index.html','true',[ 
		['PAGE','1910',jdecode('Top+200+Requested+Songs+'),jdecode(''),'/1136/1910.html','true',[],'','']
	],'',''],
	['PAGE','829',jdecode('2010+Price+List'),jdecode(''),'/829/index.html','true',[ 
		['PAGE','847',jdecode('Back+Yard+%26+Block+Parties+'),jdecode(''),'/829/847.html','true',[],'',''],
		['PAGE','7729',jdecode('Small+Hall+Parties'),jdecode(''),'/829/7729.html','true',[],'',''],
		['PAGE','8001',jdecode('Big+Hall+Parties'),jdecode(''),'/829/8001.html','true',[],'',''],
		['PAGE','856',jdecode('Sweet+Sixteen'),jdecode(''),'/829/856.html','true',[],'',''],
		['PAGE','865',jdecode('Bar%2FBat+Mitzvah+'),jdecode(''),'/829/865.html','true',[],'',''],
		['PAGE','874',jdecode('Wedding+Package'),jdecode(''),'/829/874.html','true',[],'','']
	],'',''],
	['PAGE','1679',jdecode('Party+Handout+Packages+'),jdecode(''),'/1679.html','true',[],'',''],
	['PAGE','1243',jdecode('LouieTunes+Territory'),jdecode(''),'/1243.html','true',[],'',''],
	['PAGE','1077',jdecode('Contact+Us'),jdecode(''),'/1077.html','true',[],'',''],
	['PAGE','1462',jdecode('Guestbook'),jdecode(''),'/1462/index.html','true',[ 
		['PAGE','1461',jdecode('Read+Guestbook'),jdecode(''),'/1462/1461.html','false',[],'','']
	],'',''],
	['PAGE','5779',jdecode('Diana%E2%80%99s+Party+Service+'),jdecode(''),'/5779.html','true',[],'','']];
var siteelementCount=17;
theSitetree.topTemplateName='Boston';
theSitetree.paletteFamily='4C5C9E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11067';
theSitetree.graphicsetId='11842';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6476B8';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Boston',
				paletteFamily: 	'4C5C9E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11067',
				graphicsetId: 	'11842',
				contentColor: 	'FFFFFF',
				contentBGColor: '6476B8',
				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['1501']=webappMappings['1501-1235983']={
webappId:    '1501',
documentId:  '43',
internalId:  '1235983',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1381',
internalId:  '',
customField: '20080512-144805'
};
webappMappings['1002']=webappMappings['1002-1462AHW050IN3K25']={
webappId:    '1002',
documentId:  '1462',
internalId:  '1462AHW050IN3K25',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '43',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43',
internalId:  '',
customField: '20080512-144643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1136',
internalId:  '',
customField: '20100517-193454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1910',
internalId:  '',
customField: '20100517-193844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '829',
internalId:  '',
customField: '20080512-170226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '847',
internalId:  '',
customField: '20080716-155642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7729',
internalId:  '',
customField: '20080715-201949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20080715-200815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '856',
internalId:  '',
customField: '20080715-194250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '865',
internalId:  '',
customField: '20080314-005841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '874',
internalId:  '',
customField: '20080715-194814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1679',
internalId:  '',
customField: '20080730-155509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1243',
internalId:  '',
customField: '20080717-081146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1077',
internalId:  '',
customField: '20080314-004723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1462',
internalId:  '',
customField: '20080221-171005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1461',
internalId:  '',
customField: '20080221-171005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5779',
internalId:  '',
customField: '20080325-002216'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3K25';
var companyName   = 'LouieTunes+Mobile+DJ+Entertainment';
var htmlTitle	  = 'DJ+LouieTunes+Long+Island';
var metaKeywords  = 'DJ+party+Louie+Tunes+fully+insured+mobile+DJ+DJ+Long+Island+music+for+all+occasions+Dance+Salsa+Reggaeton+Classic+Rock+Hip+Hop+Metal+Alternative+Jazz%2C+Cocktail+Dinner+music+Oldies+Standards+National+Association+of+Mobile+Entertainers+christening+bar+mitzvah+sweet+16+wedding+anniversary+birthday+summer+barbeque+Block+party';
var metaContents  = 'Louie+Tunes+is+a+fully+insured+mobile+DJ+company+located+in+the+heart+of+Long+Island+with+music+for+all+occasions.+We+bring+you+the+latest+and+greatest+from+the+worlds+of+Dance%2C+Salsa%2C+Reggaeton%2C+Classic+Rock%2C+Hip+Hop%2C+Metal+and+Alternative%2C+Jazz%2C+Cocktail+and+Dinner+music%2C+and+Oldies+and+Standards.+';
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();
};

