/* [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','4790',jdecode('Home'),jdecode(''), jdecode('%2F4790.html'), 'true',[],'',''],
	['PAGE','6801',jdecode('Rates+%26+Booking'),jdecode(''), jdecode('%2F6801.html'), 'true',[],'',''],
	['PAGE','6822',jdecode('Contact+%26+Links'),jdecode(''), jdecode('%2F6822.html'), 'true',[],'','']];
var siteelementCount=3;
theSitetree.topTemplateName='Display';
theSitetree.paletteFamily='580D02';
theSitetree.keyvisualId='11380';
theSitetree.keyvisualName='kv_11380.jpg';
theSitetree.fontsetId='31966';
theSitetree.graphicsetId='13803';
theSitetree.contentColor='340800';
theSitetree.contentBGColor='FBE5C3';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'wl_enom',
  product: 'WSCENOSSSLYTC21A'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Display',
				paletteFamily: 	'580D02',
				keyvisualId: 	'11380',
				keyvisualName: 	'kv_11380.jpg',
				fontsetId: 		'31966',
				graphicsetId: 	'13803',
				contentColor: 	'340800',
				contentBGColor: 'FBE5C3',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4790',
internalId:  '',
customField: '20120124-222823'
};
webappMappings['7008']=webappMappings['7008-401']={
webappId:    '7008',
documentId:  '6822',
internalId:  '401',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4790',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6801',
internalId:  '',
customField: '20120124-223400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6822',
internalId:  '',
customField: '20090920-115809'
};
var webAppHostname = 'wsc.ehost-services.com:80';
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN330INZSMJ';
var companyName   = 'Vancouver+Be+A+Star+Karaoke+DJ+Service++Vancouver%2CBC';
var htmlTitle	  = 'Vancouver+Be+A+Star+Karaoke+Systems+Vancouver+Karaoke+DJ';
var metaKeywords  = 'Vancouver+Video+DJ%2C+Vancouver+Karaoke+DJ%2C+Vancouver+Wedding+DJ%2C+Vancouver+Professional+DJ%2C+Vancouver+DMC%2C+WTTC+Vancouver%2C+Vancouver+Canucks%2C+Vancouver+Giants%2C+Vancouver+Grads%2C+Vancouver+Dry+Grads+Karaoke%2C+Vancouver+Casinos+Karaoke%2C+Vancouver+Corporate+Karaoke+Parties%2C+Vancouver+Karaoke+Christmas+Parties%2C+Vancouver+Karaoke+DJ+Weddings%2C++Karaoke+Christmas+Parties%2C+Vancouver+Be+A+Star+Karaoke+DJ+%2C+Vancouver+Name+That+Tune+DJ%2C+North+Vancouver+DJ+Karaoke+Weddings%2C+North+Vancouver+Karaoke+Christmas+Parties%2C+Burnaby+DJ++Karaoke+Weddings%2C+Burnaby+Karaoke++Christmas+Parties%2C+Coquitlam+DJ+Karaoke+Weddings%2C++Coquitlam+Karaoke+Christmas+Parties%2C+Port+Coquitlam+DJ+Karaoke+Weddings%2C+Port+Coquitlam+Karaoke+Christmas+Parties%2C+Richmond+DJ+Karaoke+Weddings%2C+Richmond+Karaoke+Christmas+Parties%2C+Fraser+Valley+DJ+Karaoke+Weddings%2C+Fraser+Valley+Karaoke+Christmas+Parties%2C+Surrey+DJ+Karaoke+Weddings%2C+Surrey+Karaoke+Christmas+Party+DJ+Services%2C+Langley+DJ+Karaoke+Weddings%2C+Langley+Karaoke+Christmas+Parties%2C+Abbotsford+DJ+Karaoke+Weddings%2C+Abbotsford+Karaoke+Christmas+Parties%2C+Chilliwack+DJ+Karaoke+Weddings%2C+Chilliwack+Karaoke+Christmas+Parties%2C+Harrison+Hot+Springs+DJ+Karaoke+Weddings++Parties%2C+Whistler+DJ+Karaoke+Weddings%2C+Wedding++Ceremonies%2C+Karaoke%2C+Vancouver+DJ+Boat+Cruises%2C+Vancouver+DJ+Grads%2C+Burnaby+DJ+Grads%2C+Surrey+DJ+Grads%2C+Langley+DJ+Grads%2C+White+Rock+DJ+Grads%2C+Abbotsford+DJ+Grads%2C+Chilliwack+DJ+Grads%2C+Maple+Ridge+DJ+Grads%2C+New+Westminster+Grads%2C+Corporate++Private+Parties%2C+Vancouver+Christmas+Parties+DJ%2C+Surrey+Christmas+Parties+DJ%2C+Fraser+Valley+Christmas+Parties+DJ%2C+Lower+Mainland+Christmas+Parties+DJ%2C+Sports+Banquets+DJ%2C+Fashion+Shows+DJ%2C+Product+Launches+DJ%2C+New+Years+Parties+DJ%2C+Fundraisers%2CTheme+nights%2CVancouver+Video+DJ%2C+Vancouver+Karaoke+DJ%2C+Vancouver+Wedding+DJ%2C+Vancouver+DJ+Casinos%2C+Vancouver+DJ+Corporate+Parties%2C+Vancouver+Grad+DJ%2C+Vancouver+DJ+Christmas+Parties%2C+Vancouver+DJ%2C+Vancouver+DJ+Boat+Cruises%2C+Vancouver+DJ+Weddings%2C+Whistler+DJ%2C+Squamish+DJ%2C+North+Vancouver+DJ+Christmas+Parties%2CNorth+Vancouver+DJ%2C+North+Vancouver+Wedding+DJ%2C+North+Vancouver+Grad+DJ%2C+West+Vancouver+DJ%2C+West+Vancouver+Wedding+DJ%2C+West+Vancouver+DJ+Christmas+Parties%2C+West+Vancouver+Grad+DJ%2C+Burnaby+DJ%2C+Burnaby+Wedding+DJ%2C+Burnaby+DJ+Christmas+Parties%2C+Burnaby+Grad+DJ%2C+New+Westminster+DJ%2C+New+Westminster+Wedding+DJ%2C+New+Westminster+DJ+Christmas+Parties%2C+New+Westminster+Grad+DJ%2C+Coquitlam+DJ%2C+Coquitlam+Wedding+DJ%2C+Coquitlam+DJ+Christmas+Parties%2C+Coquitlam+Grad+DJ%2C+Port+Coquitlam+DJ%2C+Port+Coquitlam+Wedding+DJ%2C++Port+Coquitlam+DJ+Christmas+Parties%2C+Port+Coquitlam+Grad+DJ%2C+Pitt+Meadows+DJ%2C+Pitt+Meadows+Wedding+DJ%2C+Pitt+Meadows+DJ+Christmas+Parties%2C+Pitt+Meadows+Grad+DJ%2C+Maple+Ridge+DJ%2C+Maple+Ridge+Wedding+DJ%2C+Maple+Ridge+DJ+Christmas+Parties%2C+Maple+Ridge+Grad+DJ%2C+Mission+DJ%2C+Mission+Wedding+DJ%2C+Mission+DJ+Christmas+Parties%2C+Mission+Grad+DJ%2C+Richmond+DJ%2C+Richmond+Wedding+DJ%2C++Richmond+DJ+Christmas+Parties%2C+Richmond+Grad+DJ%2CFraser+Valley+DJ%2C+Delta+DJ%2C+Delta+Wedding+DJ%2C+Delta+DJ+Christmas+Parties%2C+Delta+Grad+DJ%2C+White+Rock+DJ%2C+White+Rock+Wedding+DJ%2C+White+Rock+DJ+Christmas+Parties%2C+White+Rock+Grad+DJ%2C+Fraser+Valley+Wedding+DJ%2CFraser+Valley+DJ+Christmas+Parties%2C+Surrey+DJ%2C+Surrey+Wedding+DJ%2C+Surrey+DJ+Christmas++Party%2C+Langley+DJ%2C+Langley+Wedding+DJ%2C+Langley+DJ+Christmas+Parties%2CLangley+Grad+DJ%2C+Abbotsford+DJ%2C+Abbotsford+Wedding+DJ%2CAbbotsford+DJ+Christmas+Parties%2C+Aldergrove+DJ%2C+Chilliwack+DJ%2C+Chilliwack+Wedding+DJ%2C+Chilliwack+DJ+Christmas+Parties%2C+Chilliwack+Grad+DJ%2C+Harrison+Hot+Springs+DJ%2C+Harrison+Hot+Springs++Wedding+DJ+%2CHarrison+Hot+Springs+DJ+Parties%2C+Whistler+DJ+Weddings%2C+Vancouver+DJ+Wedding+Ceremonies%2C+Vancouver+DJ+Karaoke%2C+Vancouver+DJ+Boat+Cruises%2C+Vancouver+DJ+Grads%2C+Burnaby+DJ+Grads%2C+Surrey+DJ+Grads%2C+Langley+DJ+Grads%2C+White+Rock+DJ+Grads%2C+Abbotsford+DJ+Grads%2C+Chilliwack+DJ+Grads%2C+Maple+Ridge+DJ+Grads%2C+New+Westminster+Grads%2C+Corporate++Private+Parties%2C+Vancouver+Christmas+Parties+DJ%2C+Surrey+Christmas+Parties+DJ%2C+Fraser+Valley+Christmas+Parties+DJ%2C+Lower+Mainland+Christmas+Parties+DJ%2C+Sports+Banquets+DJ%2C+Fashion+Shows+DJ%2C+Product+Launches+DJ%2C+New+Years+Parties+DJ%2C+Fundraisers%2CProfessional%2CDJ%2C+wedding+music%2C+wedding+entertainment%2Cwedding+disc+jockey%2Cwedding+dj%2Cdisc+jockey%2Cdj+services%2Cdisc+jockeys%2Cgame+show%2Ckaraoke%2Cdisc+jockey+services%2Cmusicians+bands+and+disc+jockeys%2Cdisc+jockey+service%2Cwedding+reception%2Cwedding+planning%2Cevent+planning%2Cdance+music%2Ccorporate+events%2Cparty+planning%2Cparty+services%2Cbirthday+party%2Cparty+dj%2Cvancouver+party+dj%2Cvancouverdj%2Cbcdj%2Cmobile+dj%2Cdjservice%2Cwedding+djs%2Cmobile+disc+jockey%2Cprofessional+dj%2Cprofessional+disc+jockey%2Cmusic+trivia%2Cname+that+tune+show';
var metaContents  = 'Welcome+to+Vancouver+Be+A+Star+Karaoke+Service+Vancouver+Canada%2C+where+we+pride+ourselves+on+bringing+life+to+every+party.+We+service+Vancouver%2CWhistler%2C+Burnaby%2C+New+Westminster%2C+Surrey%2C+Richmond%2C+Delta%2C+White+Rock%2C+Langley%2C+Aldergrove%2C+Abbotsford%2C+Chilliwack%2C+Squamish%2C+West+Vancouver%2C+North+Vancouver%2C+Coquitlam%2C+Port+Coquitlam%2C+Port+Moody%2C+Pitt+Meadows%2C+Maple+Ridge%2C+Mission%2C+Harrison+Hot+Springs%2C+Hope+and+The+Fraser+Valley+areas+of+British+Columbia.+http%3A%2F%2Fwww.beastarkaraoke.net+Be+A+Star+Karaoke+has+been+around+now+for+10+years+as+part+of+Spin+Doctor+Pro-DJ++Karaoke+Services+and+has+hosted+many+parties+and+special+occasions.+We+are+suitable+for+Karaoke+DJ+Weddings%2C+Grads%2C+Corporate+Team+Building+Karaoke+Events%2C+Pubs%2C+Birthdays%2C+Anniversaries%2C+Boat+Cruises%2C+Clubs%2C+Casinos%2C+New+Years+Eve%2C+Family+Parties%2C+Reunions+to+holiday+celebrations%21+';
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();
};

