/* [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','1801',jdecode('Home'),jdecode(''),'/1801.html','true',[],'',''],
	['PAGE','1873',jdecode('Mission'),jdecode(''),'/1873.html','true',[],'',''],
	['PAGE','9301',jdecode('Services'),jdecode(''),'/9301.html','true',[],'',''],
	['PAGE','8101',jdecode('Licenses%2FCertifications'),jdecode(''),'/8101.html','true',[],'',''],
	['PAGE','15703',jdecode('Testimonials'),jdecode(''),'/15703.html','true',[],'',''],
	['PAGE','9201',jdecode('Printable+Forms'),jdecode(''),'/9201.html','true',[],'',''],
	['PAGE','13803',jdecode('Gallery'),jdecode(''),'/13803.html','true',[],'',''],
	['PAGE','1894',jdecode('Contact+Us'),jdecode(''),'/1894/index.html','true',[ 
		['PAGE','9322',jdecode('Phone+Directory'),jdecode(''),'/1894/9322.html','true',[],'',''],
		['PAGE','9343',jdecode('Our+Address'),jdecode(''),'/1894/9343.html','true',[],'',''],
		['PAGE','10401',jdecode('Send+us+an+E-mail'),jdecode(''),'/1894/10401.html','true',[],'','']
	],'','']];
var siteelementCount=11;
theSitetree.topTemplateName='Blades';
theSitetree.paletteFamily='466AD2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='31705';
theSitetree.graphicsetId='13467';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='608DFE';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Blades',
				paletteFamily: 	'466AD2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'31705',
				graphicsetId: 	'13467',
				contentColor: 	'FFFFFF',
				contentBGColor: '608DFE',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20091125-090135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20091125-044613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1873',
internalId:  '',
customField: '20091113-063522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1894',
internalId:  '',
customField: '20091120-063908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9301',
internalId:  '',
customField: '20091113-063610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9201',
internalId:  '',
customField: '20091120-064048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9343',
internalId:  '',
customField: '20090501-074243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9322',
internalId:  '',
customField: '20100225-070257'
};
webappMappings['7008']=webappMappings['7008-1205']={
webappId:    '7008',
documentId:  '10401',
internalId:  '1205',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10401',
internalId:  '',
customField: '20090713-061232'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-22103484']={
webappId:    '1501',
documentId:  '1801',
internalId:  '22103484',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13803',
internalId:  '',
customField: '20090515-090347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15703',
internalId:  '',
customField: '20090713-063349'
};
webappMappings['7060']=webappMappings['7060-6e2db6837877546329deba5822e969c7']={
webappId:    '7060',
documentId:  '13803',
internalId:  '6e2db6837877546329deba5822e969c7',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-15703aen330inz3mb']={
webappId:    '1002',
documentId:  '15703',
internalId:  '15703aen330inz3mb',
customField: 'icq=false'
};
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN330INZ3MB';
var companyName   = 'JJas+Door+Installations%2C+Inc.';
var htmlTitle	  = 'JJas+Door+Insatllations%2C+Inc.';
var metaKeywords  = 'Here+at+JJas+Door+Installations%2C+Inc.+we+have+been+in+the+door+installation+business+since+2005.++We+are+dedicated+to+providing+our+customers+with+quality+service+at+the+best+price+possible.++We+stock+and+distribute+a+full+line+of+commercial+and+residential+hollow+metal+and+wood+doors%2C+frames%2C+louvers%2C+architectural+hardware%2C+windows%2C+architectural+millwork%2C+and+bath+accessories+from+the+leading+manufacturers.+We+gladly+serve+contractors%2C+owners%2C+architects%2C+engineers%2C+and+wholesalers+in+South+Florida+area+on+multitude+of+projects+including+condos%2C+hotels%2C+federal+buildings+and+hospitals.++We+pride+ourselves+as+having+the+highest+quality+products+and+the+most+competitive+prices.+Here+at+JJas+Door+Installations%2C+Inc.+we+are+dedicated+to+providing+our+customers+with+quality+service+at+the+best+price+possible.++We+aspire%2C+everyday%2C+towards+excellence+in+the+installation+of+commercial+and+residential+doors.++Family+owned+and+operated%2C+JJas+Door+Installations%2C+Inc.+has+been+license%2C+insured+and+in+business+since+2005.++We+pride+ourselves+as+having+the+highest+quality+products+and+the+most+competitive+prices.+jjas%2C+jjas+door%2C+jjas+doors%2C+jjas+door+installations%2C+jjas+installations%2C+jjas+installation%2C+indoor+installations%2C+door+installation%2C+hollow+metal+door%2C+hollow+metal%2C+hollow+door%2C+metal+door%2C+wood+door%2C+solid+core+wood+door%2C+hollow+metal+door+distributor%2C+metal+door+distributor%2C+solid+core+wood+door+distributor%2C+hinges%2C+hinge%2C+hardware%2C+door+hardware%2C+hung+door%2C+pre+hung+door%2C+pre-hung+door%2C+pre-hung+doors%2C+fire+rated+doors%2C+fire+rated+door%2C+fire-rated+door%2C+fire-rated+doors%2C+bi-fold%2C+bi-fold+doors%2C+hollow%2C+metal%2C+door%2C+wood%2C+solid%2C+core%2C+fire%2C+rated%2C+pre-hung%2C+pre+hung%2C+prehung%2C+hardware%2C+installations%2C+installation%2C+door%2C+doors%2C+door+installations%2C+door+installation%2C+installation%2C+contract%2C+contractor%2C+contracting';
var metaContents  = 'Here+at+JJas+Door+Installations%2C+Inc.+we+have+been+in+the+door+installation+business+since+2005.++We+are+dedicated+to+providing+our+customers+with+quality+service+at+the+best+price+possible.++We+stock+and+distribute+a+full+line+of+commercial+and+residential+hollow+metal+and+wood+doors%2C+frames%2C+louvers%2C+architectural+hardware%2C+windows%2C+architectural+millwork%2C+and+bath+accessories+from+the+leading+manufacturers.+We+gladly+serve+contractors%2C+owners%2C+architects%2C+engineers%2C+and+wholesalers+in+South+Florida+area+on+multitude+of+projects+including+condos%2C+hotels%2C+federal+buildings+and+hospitals.++We+pride+ourselves+as+having+the+highest+quality+products+and+the+most+competitive+prices.+Here+at+JJas+Door+Installations%2C+Inc.+we+are+dedicated+to+providing+our+customers+with+quality+service+at+the+best+price+possible.++We+aspire%2C+everyday%2C+towards+excellence+in+the+installation+of+commercial+and+residential+doors.++Family+owned+and+operated%2C+JJas+Door+Installations%2C+Inc.+has+been+license%2C+insured+and+in+business+since+2005.++We+pride+ourselves+as+having+the+highest+quality+products+and+the+most+competitive+prices.+jjas%2C+jjas+door%2C+jjas+doors%2C+jjas+door+installations%2C+jjas+installations%2C+jjas+installation%2C+door+installations%2C+door+installation%2C+hollow+metal+door%2C+hollow+metal%2C+hollow+door%2C+metal+door%2C+wood+door%2C+solid+core+wood+door%2C+hollow+metal+door+distributor%2C+metal+door+distributor%2C+solid+core+wood+door+distributor%2C+hinges%2C+hinge%2C+hardware%2C+door+hardware%2C+hung+door%2C+pre+hung+door%2C+pre-hung+door%2C+pre-hung+doors%2C+fire+rated+doors%2C+fire+rated+door%2C+fire-rated+door%2C+fire-rated+doors%2C+bi-fold%2C+bi-fold+doors%2C+door+installations%2C+door+installation%2C+installation%2C+contract%2C+contractor%2C+contracting';
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();
};
