/* [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 theSitetree=[ 
	['PAGE','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('About+us'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','473',jdecode('The+team'),jdecode(''),'/452/473.html','true',[],'']
	],''],
	['PAGE','494',jdecode('Our+Services'),jdecode(''),'/494.html','true',[],''],
	['PAGE','24401',jdecode('Our+Prices'),jdecode(''),'/24401/index.html','true',[ 
		['PAGE','24422',jdecode('Prices'),jdecode(''),'/24401/24422.html','true',[],'']
	],''],
	['PAGE','29201',jdecode('Party+news'),jdecode(''),'/29201/index.html','true',[ 
		['PAGE','29222',jdecode('Party+links'),jdecode(''),'/29201/29222.html','true',[],''],
		['PAGE','29243',jdecode('Party+program'),jdecode(''),'/29201/29243.html','true',[],'']
	],''],
	['PAGE','12101',jdecode('Party+Bus+pictures'),jdecode(''),'/12101.html','true',[],''],
	['PAGE','14401',jdecode('Party+Bus+pictures'),jdecode(''),'/14401.html','true',[],''],
	['PAGE','12301',jdecode('12+Birthday+party'),jdecode(''),'/12301.html','true',[],''],
	['PAGE','578',jdecode('Contact'),jdecode(''),'/578/index.html','true',[ 
		['PAGE','599',jdecode('Adresses'),jdecode(''),'/578/599.html','true',[],'']
	],''],
	['PAGE','25101',jdecode('Wenatchee+Winerys'),jdecode(''),'/25101/index.html','true',[ 
		['PAGE','25122',jdecode('Winery+links'),jdecode(''),'/25101/25122.html','true',[],'']
	],''],
	['PAGE','32023',jdecode('Jobs'),jdecode(''),'/32023.html','true',[],''],
	['PAGE','32032',jdecode('Specials'),jdecode(''),'/32032.html','true',[],''],
	['PAGE','5106',jdecode('Guestbook'),jdecode(''),'/5106/index.html','true',[ 
		['PAGE','5101',jdecode('Read+Guestbook'),jdecode(''),'/5106/5101.html','false',[],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Kreis';
theSitetree.paletteFamily='D24C59';
theSitetree.keyvisualId='574';
theSitetree.keyvisualName='partyservice.jpg';
theSitetree.fontsetId='125';
theSitetree.graphicsetId='143';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Kreis',
				paletteFamily: 	'D24C59',
				keyvisualId: 	'574',
				keyvisualName: 	'partyservice.jpg',
				fontsetId: 		'125',
				graphicsetId: 	'143',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'D24C59',
				b_color: 		'F877A1',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-5106AHW050INE6AT']={
webappId:    '1002',
documentId:  '5106',
internalId:  '5106AHW050INE6AT',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1188390']={
webappId:    '1501',
documentId:  '401',
internalId:  '1188390',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-4a287897f7900289c697c77223aff561']={
webappId:    '7060',
documentId:  '14401',
internalId:  '4a287897f7900289c697c77223aff561',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-241c777a2f4d5240bfb46a8399d05521']={
webappId:    '7060',
documentId:  '12101',
internalId:  '241c777a2f4d5240bfb46a8399d05521',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-6248328511560d42ccb2130346b8ea75']={
webappId:    '7060',
documentId:  '12301',
internalId:  '6248328511560d42ccb2130346b8ea75',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-527af462115cb0ea8f6c5b0058170c76']={
webappId:    '7060',
documentId:  '14401',
internalId:  '527af462115cb0ea8f6c5b0058170c76',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-2570374e4f77df942b557ff2aaf9af12']={
webappId:    '7060',
documentId:  '12301',
internalId:  '2570374e4f77df942b557ff2aaf9af12',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-b51893e47da319f7d8b77659ae218b26']={
webappId:    '7060',
documentId:  '14401',
internalId:  'b51893e47da319f7d8b77659ae218b26',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20080728-144719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20071114-150148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20071003-150934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20071114-145939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24401',
internalId:  '',
customField: '20081105-153517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24422',
internalId:  '',
customField: '20080108-224808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29201',
internalId:  '',
customField: '20080728-144848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29222',
internalId:  '',
customField: '20080320-104818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29243',
internalId:  '',
customField: '20080728-143034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20071114-144109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20071114-144332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20080728-142016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20080808-144329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20071003-150935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25101',
internalId:  '',
customField: '20080130-162528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25122',
internalId:  '',
customField: '20080130-145058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32023',
internalId:  '',
customField: '20080728-141731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32032',
internalId:  '',
customField: '20080728-141904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5106',
internalId:  '',
customField: '20071003-152752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20071024-160407'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INE6AT';
var companyName   = 'VIP+ARRIVALS';
var htmlTitle	  = 'VIP+PARTY+BUS%2C+limo%2C+charter%2C+events%2C+parties%2C+tours%2C+casino%2C+football+games%2Cwine+tours%2Ctransportation%2Chourly%2Cdiscounts%2Cstudent%2Csenior%2Cparties%2C+cheap%2C+pole%2Cbar%2Cgames%2Ctravel%2Cconcerts%2C';
var metaKeywords  = 'VIP+PARTY+BUS%2C+VIP+arrivals%2C+party+bus%2C+wenatchee+party+bus%2C+wenatchee+limousine%2CLake+Chelan+wine+tours%2Clake+Chelan%2Cvip%2C+wine+tours%2C+charter%2C+limo%2C+bachelor%2C+bachelorette+parties%2C+birthday+parties%2C+golfing%2C+baseball%2C+football%2C+transportation%2C+bar+hop%2C+concerts%2C+limobus%2C+flat+rates%2C+multilingual+drivers%2C+graduation%2C+bars%2C+privacy%2C+televisions%2C+limousines%2C+video+games%2C+limo+seating%2C+ipod+hookup%2C+beverages%2C+anniversaries%2C+proms%2C+sightseeing%2C+social+events%2C+card+tables%2C+stripper+pole%2C+events%2C+tours%2C+parties%2C+reunions%2C+vip+programs%2C+senior+discounts%2C+discounts%2C+shopping%2Cdirect+billing%2C+children+welcome%2C+stereos%2C+weddings%2Clarge+trasnportation%2Cmovies%2C+champane%2C+open+bar%2C+private+parties%2Cguarantees%2C+corportate%2C+company+parties%2C+spanish%2C+fans%2C+lights%2Cdancers+%2C+quincy+wine+tours%2C+lake+chelan%2C+wineries%2C+seattle+seahawks%2Cgo+go+dancers';
var metaContents  = 'VIP+PARTY+BUS%2Cparty+bus%2C+viparrivals%2C+wenatchee+party+bus%2C+wenatchee+limousine%2C+seattle%2C+leavenworth%2C+eastern+wa%2C+alcohol+VIP+arrivals%2C+VIP%2CLake+Chelan+wine+tours%2C+wenatchee+valley+tours%2C+wine+tours%2C+charter%2C+limo%2C+bachelor%2C+bachelorette+parties%2C+birthday+parties%2C+golfing%2C+baseball%2C+football%2C+transportation%2C+bar+hop%2C+concerts%2C+limobus%2C+flat+rates%2C+multilingual+drivers%2C+graduation%2C+bars%2C+privacy%2C+televisions%2C+limousines%2C+video+games%2C+limo+seating%2C+ipod+hookup%2C+beverages%2C+anniversaries%2C+proms%2C+sightseeing%2C+social+events%2C+card+tables%2C+stripper+pole%2C+events%2C+tours%2C+parties%2C+reunions%2C+vip+programs%2C+senior+discounts%2C+discounts%2C+shopping%2Cdirect+billing%2C+children+welcome%2C+stereos%2C+weddings%2Clarge+trasnportation%2Cmovies%2C+champane%2C+open+bar%2C+private+parties%2Cguarantees%2C+corportate%2C+company+parties%2C+spanish%2C+fans%2C+dancers%2C+wineries%2C+quincy%2C+entiat%2C+cashmere%2C+seattle+seahawks%2C+go+go+dancers%2C+combined+insurance';
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();
};
