/* [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','62',jdecode('Home'),jdecode(''),'/62.html','true',[],'',''],
	['PAGE','2043',jdecode('Quartet+Members'),jdecode(''),'/2043/index.html','true',[ 
		['PAGE','83',jdecode('Boris+Jourawleff'),jdecode(''),'/2043/83.html','true',[],'',''],
		['PAGE','2052',jdecode('Francesca+Jourawleff'),jdecode(''),'/2043/2052.html','true',[],'',''],
		['PAGE','2061',jdecode('Rebecca+Perea'),jdecode(''),'/2043/2061.html','true',[],'',''],
		['PAGE','2070',jdecode('Dr.+Andrew+Perea'),jdecode(''),'/2043/2070.html','true',[],'','']
	],'',''],
	['PAGE','101',jdecode('Services+We+Provide'),jdecode(''),'/101.html','true',[],'',''],
	['PAGE','1886',jdecode('Listen+To+Our+Music'),jdecode(''),'/1886.html','true',[],'',''],
	['PAGE','11901',jdecode('Rate+Information'),jdecode(''),'/11901.html','true',[],'',''],
	['PAGE','2275',jdecode('Reviews'),jdecode(''),'/2275.html','true',[],'',''],
	['PAGE','146',jdecode('Contact+Us'),jdecode(''),'/146.html','true',[],'',''],
	['PAGE','5619',jdecode('Photo+Album'),jdecode(''),'/5619.html','true',[],'',''],
	['PAGE','14601',jdecode('Links'),jdecode(''),'/14601.html','true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Roses';
theSitetree.paletteFamily='FFE5E5';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10743';
theSitetree.graphicsetId='10825';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFE5E5';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Roses',
				paletteFamily: 	'FFE5E5',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10743',
				graphicsetId: 	'10825',
				contentColor: 	'000000',
				contentBGColor: 'FFE5E5',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'787878',
				e_color: 		'9D584B',
				f_color: 		'9D584B',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2043',
internalId:  '',
customField: '20070727-215439'
};
webappMappings['1002']=webappMappings['1002-2275ahw050inxx62']={
webappId:    '1002',
documentId:  '2275',
internalId:  '2275ahw050inxx62',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '62',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-73907']={
webappId:    '1501',
documentId:  '62',
internalId:  '73907',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62',
internalId:  '',
customField: '20100810-171727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83',
internalId:  '',
customField: '20090820-144558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2052',
internalId:  '',
customField: '20070727-215510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2061',
internalId:  '',
customField: '20090820-144553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2070',
internalId:  '',
customField: '20070531-052437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101',
internalId:  '',
customField: '20100810-171752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1886',
internalId:  '',
customField: '20100810-171924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20100129-141129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146',
internalId:  '',
customField: '20100810-171959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20090707-112520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5619',
internalId:  '',
customField: '20081228-120940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2275',
internalId:  '',
customField: '20081228-112542'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INXX62';
var companyName   = 'Vintage+String+Quartet';
var htmlTitle	  = 'Vintage+String+Quartet';
var metaKeywords  = 'strings%2C+string+quartet%2C+quartets%2C+long+island%2C+wedding%2C+weddings%2C+music%2C+musician%2C+musicians%2C+musical+group%2C+ny%2C+new+york%2C+ceremony%2C+ceremonies%2C+cocktail+hour%2C+reception%2C+receptions%2C+violin%2C+violins%2C+viola%2C+cello%2C+suffolk%2C+county%2C+nassau%2C+long+island%2C+elegant%2C+beauty%2C+beautiful%2C+professional%2C+bride%2C+bridal%2C+party%2C+parties%2C+special%2C+occasion%2C+occasions%2C+liweddings.com%2C+wedalert.com';
var metaContents  = 'The+Vintage+String+Quartet+is+made+up+of+top-level+musicians%2C+each+with+many+years+of+playing+and+performing+experience.++Their+music+reflects+not+only+great+technique+but+a+perfect+blend+of+beauty+and+elegance.++It+is+evident+that+they+enjoy+making+music+together+-+Serving+Long+Island+and+the+New+York+Metropolitan+Area.';
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();
};
