/* [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','301',jdecode('HOME'),jdecode(''),'/301.html','true',[],'',''],
	['PAGE','1601',jdecode('ABOUT+US+'),jdecode(''),'/1601.html','true',[],'',''],
	['PAGE','107501',jdecode('SEARCH'),jdecode(''),'/107501.html','true',[],'',''],
	['PAGE','85601',jdecode('AFFILIATIONS'),jdecode(''),'/85601.html','true',[],'',''],
	['PAGE','10101',jdecode('FLAGS'),jdecode(''),'/10101/index.html','true',[ 
		['PAGE','1664',jdecode('NYLON+U.S.+FLAGS'),jdecode(''),'/10101/1664.html','true',[],'',''],
		['PAGE','1685',jdecode('POLYESTER+U.S.+FLAGS'),jdecode(''),'/10101/1685.html','true',[],'',''],
		['PAGE','1706',jdecode('NYLON+STATE+FLAGS'),jdecode(''),'/10101/1706.html','true',[],'',''],
		['PAGE','11701',jdecode('CUSTOM+FLAGS'),jdecode(''),'/10101/11701.html','true',[],'',''],
		['PAGE','1727',jdecode('INTERNATIONAL+FLAGS'),jdecode(''),'/10101/1727.html','true',[],'',''],
		['PAGE','1748',jdecode('MILITARY+%26+POW%2FMIA+'),jdecode(''),'/10101/1748.html','true',[],'',''],
		['PAGE','11722',jdecode('DISPLAY+PHOTOS'),jdecode(''),'/10101/11722.html','true',[],'','']
	],'',''],
	['PAGE','10122',jdecode('BANNERS'),jdecode(''),'/10122/index.html','true',[ 
		['PAGE','1811',jdecode('SPOT+COLOR+PRICING'),jdecode(''),'/10122/1811.html','true',[],'',''],
		['PAGE','1832',jdecode('NYLON+DIGITAL+PRINT'),jdecode(''),'/10122/1832.html','true',[],'',''],
		['PAGE','1853',jdecode('NYLON+SOLID+COLOR'),jdecode(''),'/10122/1853.html','true',[],'','']
	],'',''],
	['PAGE','1874',jdecode('FLAGPOLES'),jdecode(''),'/1874/index.html','true',[ 
		['PAGE','1895',jdecode('RESIDENTIAL'),jdecode(''),'/1874/1895.html','true',[],'',''],
		['PAGE','11743',jdecode('APT.+%26+SUBDIVISION'),jdecode(''),'/1874/11743.html','true',[],'',''],
		['PAGE','1937',jdecode('COMMERCIAL'),jdecode(''),'/1874/1937.html','true',[],'','']
	],'',''],
	['PAGE','2042',jdecode('FLAGPOLE+HARDWARE'),jdecode(''),'/2042.html','true',[],'',''],
	['PAGE','107801',jdecode('BANNER+POLES'),jdecode(''),'/107801/index.html','true',[ 
		['PAGE','107822',jdecode('1%22+BANNER+POLES'),jdecode(''),'/107801/107822.html','true',[],'',''],
		['PAGE','107843',jdecode('1.66%22+BANNER+POLES'),jdecode(''),'/107801/107843.html','true',[],'','']
	],'',''],
	['PAGE','1958',jdecode('BANNER+HARDWARE'),jdecode(''),'/1958.html','true',[],'',''],
	['PAGE','2126',jdecode('SURF+CITY+USA%C2%AE+'),jdecode(''),'/2126/index.html','true',[ 
		['PAGE','2147',jdecode('FLAGS'),jdecode(''),'/2126/2147.html','true',[],'',''],
		['PAGE','2168',jdecode('TOWELS+*+MAGNETS'),jdecode(''),'/2126/2168.html','true',[],'','']
	],'',''],
	['PAGE','11785',jdecode('GOLF+TEE+COVER'),jdecode(''),'/11785/index.html','true',[ 
		['PAGE','11806',jdecode('PRICING'),jdecode(''),'/11785/11806.html','true',[],'',''],
		['PAGE','11827',jdecode('INSTALLATION+PICS'),jdecode(''),'/11785/11827.html','true',[],'',''],
		['PAGE','11848',jdecode('COMPLETED+PICS'),jdecode(''),'/11785/11848.html','true',[],'',''],
		['PAGE','11869',jdecode('FABRIC+COLORS'),jdecode(''),'/11785/11869.html','true',[],'','']
	],'',''],
	['PAGE','2210',jdecode('CONTACT'),jdecode(''),'/2210.html','true',[],'',''],
	['PAGE','8901',jdecode('DEALER+SIGN+UP'),jdecode(''),'/8901.html','true',[],'',''],
	['PAGE','12322',jdecode('DEALER+LOGIN'),jdecode(''),'/12322/index.html','true',[ 
		['PAGE','12343',jdecode('WHOLESALE+HRDWR'),jdecode(''),'/12322/12343.html','true',[],'',''],
		['PAGE','12364',jdecode('SINGLE+BANNER'),jdecode(''),'/12322/12364.html','true',[],'',''],
		['PAGE','12385',jdecode('DOUBLE+BANNER'),jdecode(''),'/12322/12385.html','true',[],'',''],
		['PAGE','12406',jdecode('CENTER+MOUNT'),jdecode(''),'/12322/12406.html','true',[],'',''],
		['PAGE','12427',jdecode('BANNER+FLAG'),jdecode(''),'/12322/12427.html','true',[],'',''],
		['PAGE','42801',jdecode('FLAGS'),jdecode(''),'/12322/42801.html','true',[],'',''],
		['PAGE','42822',jdecode('BANNERS'),jdecode(''),'/12322/42822.html','true',[],'','']
	],'',''],
	['PAGE','19601',jdecode('PHOTO+ALBUM'),jdecode(''),'/19601.html','true',[],'','']];
var siteelementCount=44;
theSitetree.topTemplateName='Easy';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='49';
theSitetree.graphicsetId='57';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Easy',
				paletteFamily: 	'003366',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'49',
				graphicsetId: 	'57',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'003366',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-735']={
webappId:    '7008',
documentId:  '8901',
internalId:  '735',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20100519-140739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2126',
internalId:  '',
customField: '20100303-155222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2147',
internalId:  '',
customField: '20100303-155311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2168',
internalId:  '',
customField: '20100303-155555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2042',
internalId:  '',
customField: '20100303-154336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1601',
internalId:  '',
customField: '20090218-113256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85601',
internalId:  '',
customField: '20090625-125035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20100303-151439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1664',
internalId:  '',
customField: '20100303-151547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1685',
internalId:  '',
customField: '20100303-151627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1706',
internalId:  '',
customField: '20100303-151800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20100303-151844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1727',
internalId:  '',
customField: '20100303-151923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1748',
internalId:  '',
customField: '20100303-151958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11722',
internalId:  '',
customField: '20090206-171933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10122',
internalId:  '',
customField: '20090218-145502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1874',
internalId:  '',
customField: '20100303-153303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1895',
internalId:  '',
customField: '20100303-153452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11743',
internalId:  '',
customField: '20100303-153734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1937',
internalId:  '',
customField: '20100303-153934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1958',
internalId:  '',
customField: '20100303-155042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1811',
internalId:  '',
customField: '20091027-111405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1832',
internalId:  '',
customField: '20100303-152746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1853',
internalId:  '',
customField: '20091027-112415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11785',
internalId:  '',
customField: '20100303-155653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11806',
internalId:  '',
customField: '20100303-155821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11827',
internalId:  '',
customField: '20081215-103148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11848',
internalId:  '',
customField: '20090218-134821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11869',
internalId:  '',
customField: '20090218-135012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2210',
internalId:  '',
customField: '20100528-154011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20090218-141116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12322',
internalId:  '',
customField: '20080731-095330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12343',
internalId:  '',
customField: '20080919-150926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12364',
internalId:  '',
customField: '20080731-095330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12385',
internalId:  '',
customField: '20080731-095330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12406',
internalId:  '',
customField: '20080731-095330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12427',
internalId:  '',
customField: '20080731-095330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42801',
internalId:  '',
customField: '20080820-095258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42822',
internalId:  '',
customField: '20080820-095258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20090218-141240'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '107501',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107501',
internalId:  '',
customField: '20081215-103614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107801',
internalId:  '',
customField: '20090218-130825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107822',
internalId:  '',
customField: '20100303-154934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107843',
internalId:  '',
customField: '20100303-155001'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INPCND';
var companyName   = 'PAGEANTRY+WORLD';
var htmlTitle	  = '';
var metaKeywords  = 'flags%2C+banners%2C+flagpoles%2C+vinyl%2C+pennants%2C+mounting+hardware%2C+strapping%2C++street+banner%2C+rope%2C+signs%2C+decorations%2C+pagentry%2C+promote%2C+advertise%2C+sports%2C+golf%2C+golf+tee+cover%2C+banner+flag%2C+indoor%2C+outdoor%2C+special+events%2C+bunting%2C+shade+structure%2C+screen+printing%2C+appliqu%C3%A9%2C+four+color+process%2C+dye+sublimation%2C+acid+dye%2C+wholesale%2C+Olympics%2C+military%2C+armed+forces%2C+coast+guard%2C+POW-MIA%2C+veterans%2C+confederate%2C+foreign%2C+city%2C+advertising%2C+decorative%2C+nautical%2C+yardarms%2C+religious%2C+church%2C+bracket%2C+theme+park%2C+amusement%2C+county+fair%2C+fabric%2C+cleats%2C+clamps%2C+halyard%2C+spears%2C+eagles%2C+IAFE%2C+IAPA%2C+WFA%2C+WWA%2C+trade+shows%2C+pageantry%2C+pagentry%2C+baseball%2C+finials%2C+mall%2C+NASCAR%2C+grand+opening%2C+retail%2C+go-cart%2C+go-kart%2C+lapel+pins%2C+snaps%2C+Surf+City%2C+Hungtington+Beach%2C+California%2C+Texas%2C+Kyle+Texas%2C+canopy%2C+collegiate%2C+territory%2C+parade%2C+fans%2C+information%2C+celebration%2C+specialty%2C+vendor%2C+valley+forge%2C+annin%2C+eder%2C+vexology%2C+parade%2C+';
var metaContents  = 'wholesale+flag+sales%2C+retail+flag+sales%2C+wholesale+banner+hardware+sales%2C+flagpole+hardware+sales%2C+parade%2C+';
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();
};
