/* [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','1701',jdecode('HOME'),jdecode(''),'/1701.html','true',[],'',''],
	['PAGE','149987',jdecode('APPLY+NOW'),jdecode(''),'/149987.html','true',[],'',''],
	['PAGE','172255',jdecode('2010+PAGEANT+PHOTOS'),jdecode(''),'/172255.html','true',[],'',''],
	['PAGE','128345',jdecode('MISS'),jdecode(''),'/128345/index.html','true',[ 
		['PAGE','184595',jdecode('2010'),jdecode(''),'/128345/184595.html','true',[],'',''],
		['PAGE','128366',jdecode('2009'),jdecode(''),'/128345/128366.html','true',[],'',''],
		['PAGE','31312',jdecode('2008'),jdecode(''),'/128345/31312.html','true',[],'',''],
		['PAGE','38312',jdecode('2007'),jdecode(''),'/128345/38312.html','true',[],'',''],
		['PAGE','38333',jdecode('2006'),jdecode(''),'/128345/38333.html','true',[],'','']
	],'',''],
	['PAGE','128387',jdecode('TEEN'),jdecode(''),'/128387/index.html','true',[ 
		['PAGE','184616',jdecode('2010'),jdecode(''),'/128387/184616.html','true',[],'',''],
		['PAGE','128408',jdecode('2009'),jdecode(''),'/128387/128408.html','true',[],'',''],
		['PAGE','31333',jdecode('2008'),jdecode(''),'/128387/31333.html','true',[],'',''],
		['PAGE','38354',jdecode('2007'),jdecode(''),'/128387/38354.html','true',[],'',''],
		['PAGE','38375',jdecode('2006'),jdecode(''),'/128387/38375.html','true',[],'','']
	],'',''],
	['PAGE','128429',jdecode('Jr.+TEEN'),jdecode(''),'/128429/index.html','true',[ 
		['PAGE','184637',jdecode('2010'),jdecode(''),'/128429/184637.html','true',[],'',''],
		['PAGE','128450',jdecode('2009'),jdecode(''),'/128429/128450.html','true',[],'',''],
		['PAGE','31354',jdecode('2008'),jdecode(''),'/128429/31354.html','true',[],'',''],
		['PAGE','38396',jdecode('2007'),jdecode(''),'/128429/38396.html','true',[],'',''],
		['PAGE','38417',jdecode('2006'),jdecode(''),'/128429/38417.html','true',[],'','']
	],'',''],
	['PAGE','169425',jdecode('MARRIOTT+WEST+'),jdecode(''),'/169425.html','true',[],'',''],
	['PAGE','31438',jdecode('VENUE+The+Scottish+Rite'),jdecode(''),'/31438.html','true',[],'',''],
	['PAGE','31501',jdecode('Rite+Care'),jdecode(''),'/31501.html','true',[],'',''],
	['PAGE','31522',jdecode('LINKS'),jdecode(''),'/31522.html','true',[],'',''],
	['PAGE','31396',jdecode('RULES'),jdecode(''),'/31396.html','true',[],'',''],
	['PAGE','43512',jdecode('CONTACT+US'),jdecode(''),'/43512.html','true',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Logg';
theSitetree.paletteFamily='3D4B78';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='426';
theSitetree.graphicsetId='467';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='3D4B78';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Logg',
				paletteFamily: 	'3D4B78',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'426',
				graphicsetId: 	'467',
				contentColor: 	'000000',
				contentBGColor: '3D4B78',
				a_color: 		'3D4B78',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128366',
internalId:  '',
customField: '20100421-145020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128345',
internalId:  '',
customField: '20100421-144613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20100512-084549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31333',
internalId:  '',
customField: '20090809-083523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169425',
internalId:  '',
customField: '20100422-135649'
};
webappMappings['7008']=webappMappings['7008-2084']={
webappId:    '7008',
documentId:  '149987',
internalId:  '2084',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31312',
internalId:  '',
customField: '20090204-132229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38312',
internalId:  '',
customField: '20090809-083207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38333',
internalId:  '',
customField: '20090809-083349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38354',
internalId:  '',
customField: '20090809-083616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38375',
internalId:  '',
customField: '20090809-083747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31354',
internalId:  '',
customField: '20090809-083951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38396',
internalId:  '',
customField: '20091025-065420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38417',
internalId:  '',
customField: '20090809-084054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31396',
internalId:  '',
customField: '20100219-165411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31438',
internalId:  '',
customField: '20100220-071846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172255',
internalId:  '',
customField: '20100510-144939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184595',
internalId:  '',
customField: '20100512-085743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31501',
internalId:  '',
customField: '20100220-072256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31522',
internalId:  '',
customField: '20100220-072325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43512',
internalId:  '',
customField: '20100220-072438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128387',
internalId:  '',
customField: '20100421-145602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128429',
internalId:  '',
customField: '20100421-155007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128408',
internalId:  '',
customField: '20100223-124028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128450',
internalId:  '',
customField: '20091206-075950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149987',
internalId:  '',
customField: '20091011-144435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184616',
internalId:  '',
customField: '20100512-085827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184637',
internalId:  '',
customField: '20100512-085912'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010IN3X75';
var companyName   = 'Miss+Virginia+United+States';
var htmlTitle	  = 'Miss+Virginia+United+States';
var metaKeywords  = 'Catherine+Kim+Katie+Jones+Ashley+Crossman+Elle+Bunn+Courtney+Sturgill+Erica+Bullock+Kelsee+Grant+Megan+Evans+Tierra+Bell+Rita+McClenny+allan+harvie+Michael+Taylor+Couture+Splash+Models+Modelogic+Whilamina+Image+Miss+Virginia++Miss+Virginia+United+Utates++Miss+Virginia+U.S.++Miss+Virginia+US++Pageants++Ms.+Virginia++Miss+Virginia+Teen++Miss+Teen+Virginia++Miss+Virginia+Junior+Teen++Miss+Virginia+Teen+Junior++Miss+Junior+Teen+Virginia+++Miss+Teen+Junior+Virginia++Miss+Pre+teen++pageant++pageants++united+states++beauty+++girls++ladies++young+ladies++young+women++fashion++modeling+++vogue++supermodels++model++models++gown++gowns++swim+suit++bathing+suit++evening+gown++pageantry+Christie+Black+Susie+Evans+liz+barker';
var metaContents  = 'Miss+Virginia+Pageant+for+young+girls%2C+women%2C+and+ladies.+++Miss+Virginia+United+States+Pageants+Official+Rules++Conditions%3A++++++1.+Ages+20+and+27+for+the+Miss%2C+16+and+19+Teen+or+ages+of+13+and+15+Junior+Teen.++++++2.+Is+single%2C+not+married%2C+has+never+been+married%2C+and+has+never+had+children.+++++%5B***Ms.+Division+%2825-50%29+single%2C+divorced%2C+widowed%2C+with+children+ok.***%5D++++3.+Has+never+posed+nude+in+film+or+print+media.++++4.+Is+a+natural+born+Female.++++5.+Has+never+given+birth.++++6.+Is+a+resident%2C+attends+school+or+is+of+a+military+family+in+the+Commonwealth+of+Virginia.++++7.+Is+a+citizen+of+the+United+States%2C+by+proof+of+a+birth+certificate+or+naturalization+document.++++++MISS+VIRGINIA%2C+TEEN+VIRGINIA%2C+JUNIOR+TEEN+VIRGINIA++Ms.+VIRGINIA+UNITED+STATES+PAGEANTS+++++++++++JUDGES+PERSONAL+INTERVIEW+%2825%25%29++++The+Judge%E2%80%99s+personal+interview+is+a+very+special+opportunity+for+the+delegate+to+represent+themselves+as+an+individual+and+show+their+personality.+Each+delegate+will+have+eight+minutes+of+interview+time.+In+the+first+minute+%E2%80%93+personal+introduction+limited+to+a+few+sentences+and+the+following+minutes+will+be+for+the+judge%E2%80%99s+questions+to+the+delegate.+It+will+be+a+pleasant+and+enjoyable+atmosphere+where+the+judge%E2%80%99s+will+get+to+know+you+better.+The+interview+will+be+in+the+form+of+a+friendly+conversation+and+not+in+the+form+of+a+test+or+exam%21++++Please+be+natural+and+relaxed+and+just+simply+yourself.+Each+person+is+beautiful+in+their+own+way.+Let+our+judge%E2%80%99s+see+who+you+are+and+where+you+come+from.++++Please+pick+a+tasteful+and+elegant+outfit+such+as+a+dress+or+suit%2C+pantyhose+and+shoes.+%28No+trousers%2C+sweaters%2C+jeans+or+sneakers.%29+Judges+need+to+see+your+individual+character+and+charm+and+not+be+distracted+by+your+stage+presence.+If+you+choose+to+wear+make-up+it+should+look+natural%2C+%28day+look%29%21++++STAGE+COMPETITION++++1.+OPENING+OF+THE+EVENT%3A+++++Will+be+conducted+and+performed+in+your+Vogue+Outfit+%28see+Miss+Vogue+under+special+competitions%29.++++++SWIMSUIT+COMPETITION%3A+%2825%25%29++++Miss%2C+MS.%2C+TEEN+and+JUNIOR+TEEN%3A+One+piece+or+Two+piece+by+your+personal+choice.+You+can+have+a+swimsuit+of+any+color+with+full+coverage+on+the+bottom%2C+%28no+thongs+are+allowed-+you+will+be+disqualified+if+you+do+not+comply%29.+Pantyhose+are+optional.+Padding+is+allowed+only+in+natural+and+tasteful+way.+Shoes+are+your+choice+%28no+sneakers%2C+socks%2C+sandals+or+flip+flops%29+If+you+will+wear+slippers+please+secure+them+with+tape+or+rubber+band+%28remember+it+is+impossible+to+walk+in+slippers+with+pantyhose+on%29.++++If+you+have+any+body+modifications+such+as+tatooing%2C+piercing+%28other+than+one+set+of+earrings%29+please+cover+with+make-up+or+remove.++++%2B***Please+remember+that+the+swimsuit+competition+is+about+your+athletic+fitness%2C+posture%2C+grace+and+the+way+you+walk+and+present+yourself.+Look+natural+and+tasteful.+If+you+feel+unsure+in+heels+please+pick+a+flat+shoe+or+smaller+heels.+It+will+look+better+than+if+you+will+try+to+make+it+through+the+stage+in+uncomfortable+shoes%21++++++EVENING+GOWN+COMPETITION%3A+%2825%25%29++++This+is+the+time+for+you+to+be+a+real+princess.+The+evening+gown+should+be+full+length+%28a+Gown+touches+the+floor+in+some+way+when+you+are+in+your+shoes%21%21%21%29+and+represent+your+individual+taste+in+style+and+color.+Just+be+beautiful%2C+elegant+and+brilliant.+Please+practice+walking+in+your+gown+at+home+in+the+shoes+you+plan+to+wear+on+stage.+It+is+very+important+that+you+learn+to+carry+yourself+well+in+the+gown+so+that+you+feel+comfortable+and+natural.+This+competition+is+about+beauty%2C+glamour%2C+posture+and+confidence.+Gloves+are+allowed+if+the+delegate+chooses.++++4.+ON+STAGE+Question%3A+%2825%25%29+++++++%28one+question%29Will+be+conducted+in+your+Evening+Gown.++++++++++SPECIAL+COMPETITIONS%3A++++%28Delegates+in+Miss%2C+Teen%2C+Junior+Teen+and+Ms.+are+awarded+prizes+separately%29++++++Points+for+these+competitions+are+separate+and+will+not+affect+the+score+for+the+United+States+Titles.++++++MISS+VOGUE%3A+++++This+competition+is+complete+freedom+of+your+style+fantasies.+It+is+a+fashion+runway+and+you+are+the+designer.+It+is+about+your+taste+and+ideas+of+what+is+in+style.+You+can+even+make+the+outfit+yourself+if+you+choose+but+is+not+required.+You+can+pick+any+type+and+style+of+clothes%2C+accessories+and+shoes.+It+is+a+show+for+everyday+wear.+Not+a+show+for+swimsuits%2C+lingerie%2C+pajamas+or+night+gowns.+No+nudity+of+any+kind+and+no+bare+feet%21+You+can+surprise+us+but+please+do+not+shock+us.+This+is+NOT+a+part+of+your+overall+score+but+goes+a+long+way+toward+showing+us+who+you+are.++++We+are+putting+together+a+separate+panel+of+judge%E2%80%99s+for+this+competition+who+are+professionals+in+designing+and+styling.+++++++++MISS+PHOTOGENIC+%3A++++The+delegates+have+to+supply+to+the+pageant+their+favorite+photo+of+themselves+which+they+feel+best+reflects+their+attributes+%2F+beauty.+This+competition+is+again+the+complete+freedom+of+your+artistic+ideas.+The+photo+can+be+color%2C+black++white%2C+have+special+color+effects%2C+portrait+or+full+length%2C+seated+or+in+motion+etc.+Any+style+and+back+ground.+It+should+be+a+current+photo+not+older+than+six+months.+No+nudity+of+any+kind+is+allowed.+It+should+be+the+delegate+only+in+the+photo.+No+relatives%2C+friends+or+animals+ie.+Only+inanimate+objects.+++++++++MISS+CONGENIALITY+%3A++++The+delegate+themselves+will+vote+on+the+one+delegate+they+felt+was+the+most+friendly%2C+pleasant%2C+helpful%2C+kind%2C+charming+and+their+most+favorite+delegate+in+the+contest.+The+majority+of+votes+will+determine+the+winner.+Ballots+to+be+returned+after+second+day+rehearsal.++++++++++++++++++BEST+ADD+PAGE%3A++++The+delegate+with+the+most+original+and+interesting+add+page+will+win+a+special+prize.+++++++++ADDITIONAL+INFORMATION%3A+++++++++REHEARSALS%3A++++Please+wear+comfortable+clothes.+Please+bring+your+pageant+shoes+or+ones+that+are+very+similar+in+height+and+sole.+We+will+be+working+hard+with+you+on+the+way+you+walk+and+present+yourself.+You+will+only+benefit+if+you+are+wearing+the+same+or+similar+shoes+as+for+the+competition.+If+you+would+like+to+bring+your+gown+with+you+to+rehearsals+and+train+with+me+you+are+welcome+to+do+so.+We+will+work+with+everyone+to+make+sure+that+you+are+your+best+in+the+spotlight%21+++++++++FREE+TIME%3A++++It+is+your+personal+business+what+you+will+wear+during+your+free+time+at+the+event.+Please+remember+that+everyone+at+the+hotel+will+be+aware+that+the+pageant+is+taking+place+and+could+take+your+picture+at+any+time.+Remember+that+you+may+be+the+one+crowned+at+the+finales+and+we+all+want+everyone+to+look+their+best+and+behave+appropriately+at+all+times.+You+are+a+reflection+of+your+local+community%2C+the+Commonwealth+of+Virginia+and+the+United+States+Pageant+System.+This+will+insure+that+we+make+the+event+beautiful+and+memorable+for+everybody.++++';
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();
};
