/* [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','901',jdecode('Home'),jdecode(''),'/901.html','true',[],'',''],
	['PAGE','5301',jdecode('About+Us'),jdecode(''),'/5301.html','true',[],'',''],
	['PAGE','67201',jdecode('Art+by+Medium'),jdecode(''),'/67201/index.html','true',[ 
		['PAGE','67801',jdecode('Gicl%C3%A9e'),jdecode(''),'/67201/67801.html','true',[],'',''],
		['PAGE','69301',jdecode('Lithograph'),jdecode(''),'/67201/69301.html','true',[],'',''],
		['PAGE','71101',jdecode('Serigraph'),jdecode(''),'/67201/71101.html','true',[],'',''],
		['PAGE','71122',jdecode('Photography'),jdecode(''),'/67201/71122.html','true',[],'',''],
		['PAGE','67822',jdecode('Oil'),jdecode(''),'/67201/67822.html','true',[],'',''],
		['PAGE','69901',jdecode('Pastels'),jdecode(''),'/67201/69901.html','true',[],'',''],
		['PAGE','70101',jdecode('Colored+Pencil'),jdecode(''),'/67201/70101.html','true',[],'',''],
		['PAGE','67927',jdecode('Mixed'),jdecode(''),'/67201/67927.html','true',[],'','']
	],'',''],
	['PAGE','18301',jdecode('Art+by+Artist'),jdecode(''),'/18301/index.html','true',[ 
		['PAGE','24501',jdecode('Archer'),jdecode(''),'/18301/24501.html','true',[],'',''],
		['PAGE','42801',jdecode('Arendt'),jdecode(''),'/18301/42801.html','true',[],'',''],
		['PAGE','58401',jdecode('Creter'),jdecode(''),'/18301/58401.html','true',[],'',''],
		['PAGE','64601',jdecode('Doncevic'),jdecode(''),'/18301/64601.html','true',[],'',''],
		['PAGE','44501',jdecode('Dunlap'),jdecode(''),'/18301/44501.html','true',[],'',''],
		['PAGE','46901',jdecode('Holton'),jdecode(''),'/18301/46901.html','true',[],'',''],
		['PAGE','54301',jdecode('P.+Janout'),jdecode(''),'/18301/54301.html','true',[],'',''],
		['PAGE','44201',jdecode('T.+Janout'),jdecode(''),'/18301/44201.html','true',[],'',''],
		['PAGE','26485',jdecode('Kalnins'),jdecode(''),'/18301/26485.html','true',[],'',''],
		['PAGE','40201',jdecode('Katonka'),jdecode(''),'/18301/40201.html','true',[],'',''],
		['PAGE','26548',jdecode('Motz'),jdecode(''),'/18301/26548.html','true',[],'',''],
		['PAGE','26569',jdecode('Nagel'),jdecode(''),'/18301/26569.html','true',[],'',''],
		['PAGE','67222',jdecode('Stidham'),jdecode(''),'/18301/67222.html','true',[],'',''],
		['PAGE','67243',jdecode('Trukhan'),jdecode(''),'/18301/67243.html','true',[],'',''],
		['PAGE','44222',jdecode('Vega'),jdecode(''),'/18301/44222.html','true',[],'','']
	],'',''],
	['PAGE','19401',jdecode('Current+Exhibitions'),jdecode(''),'/19401.html','true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='003390';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='353';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='003390';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'003390',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'353',
				contentColor: 	'FFFFFF',
				contentBGColor: '003390',
				a_color: 		'003390',
				b_color: 		'000000',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18301',
internalId:  '',
customField: '20090715-140305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '901',
internalId:  '',
customField: '20090715-150745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58401',
internalId:  '',
customField: '20090716-143350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24501',
internalId:  '',
customField: '20090715-150345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42801',
internalId:  '',
customField: '20090129-160947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40201',
internalId:  '',
customField: '20080223-160918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20080209-174650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44501',
internalId:  '',
customField: '20080223-160028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46901',
internalId:  '',
customField: '20080223-155958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44201',
internalId:  '',
customField: '20080223-155935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54301',
internalId:  '',
customField: '20080223-155420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26485',
internalId:  '',
customField: '20090715-154724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26548',
internalId:  '',
customField: '20080314-124759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26569',
internalId:  '',
customField: '20090715-161142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44222',
internalId:  '',
customField: '20080223-155921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19401',
internalId:  '',
customField: '20090715-131654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64601',
internalId:  '',
customField: '20090715-151814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67222',
internalId:  '',
customField: '20090716-143133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67243',
internalId:  '',
customField: '20090716-134535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67201',
internalId:  '',
customField: '20090715-140559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67801',
internalId:  '',
customField: '20090716-144801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69301',
internalId:  '',
customField: '20090715-153312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69901',
internalId:  '',
customField: '20090715-161009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70101',
internalId:  '',
customField: '20090715-153116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67927',
internalId:  '',
customField: '20090715-161123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67822',
internalId:  '',
customField: '20090715-160903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71122',
internalId:  '',
customField: '20090715-160620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71101',
internalId:  '',
customField: '20090715-161804'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEFSR';
var companyName   = '';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};
