/* [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 theSitetree=[ 
	['PAGE','502',jdecode('Home'),jdecode(''),'/502.html','true',[],''],
	['PAGE','44602',jdecode('About+Us'),jdecode(''),'/44602.html','true',[],''],
	['PAGE','44623',jdecode('Services'),jdecode(''),'/44623.html','true',[],''],
	['PAGE','44644',jdecode('Contact'),jdecode(''),'/44644.html','true',[],''],
	['PAGE','49702',jdecode('Employment'),jdecode(''),'/49702.html','true',[],'']];
var siteelementCount=5;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='0B578E';
theSitetree.keyvisualId='2031';
theSitetree.keyvisualName='digital.jpg';
theSitetree.fontsetId='337';
theSitetree.graphicsetId='394';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='0B578E';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Activate',
				paletteFamily: 	'0B578E',
				keyvisualId: 	'2031',
				keyvisualName: 	'digital.jpg',
				fontsetId: 		'337',
				graphicsetId: 	'394',
				contentColor: 	'FFFFFF',
				contentBGColor: '0B578E',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'0B578E',
				b_color: 		'FFFFFF',
				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['1501']=webappMappings['1501-5068318']={
webappId:    '1501',
documentId:  '502',
internalId:  '5068318',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '502',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '502',
internalId:  '',
customField: '20080409-215827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44602',
internalId:  '',
customField: '20080409-214145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44623',
internalId:  '',
customField: '20080429-202423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44644',
internalId:  '',
customField: '20080409-214354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49702',
internalId:  '',
customField: '20070710-211611'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0IN22PX';
var companyName   = 'SNAY+COMPUTER+TECH';
var htmlTitle	  = 'SNAY+COMPUTER+TECH';
var metaKeywords  = 'snay%2Ccomputer%2Ctech%2Cmilford%2Cmassachusetts%2Cma%2Crespective%2Clow%2Ccost%2Cprofessional%2Crepair%2Ctechnical%2Csupport%2Cfranchising%2Ccompetitors%2Cserving%2Cgreater%2Cboston%2Ccentral%2Cnorthern%2Crhode%2Cisland%2Ccurrent%2Cfuture%2Ccustomers%2Cprovide%2Cvirus%2Cspyware%2Cworm%2Cremoval%2Cwireless%2Cnetwork%2Cnetworking%2Cdata%2Crecovery%2Cbackup%2Cpc%2Cpersonal%2Ccomputers%2Claptop%2Crepair%2Crepairs%2Csecurity%2Cfirewalls%2Chardware%2Csoftware%2Cupgrades%2Cfull%2Cdiagnostic%2Ctesting%2Csetup%2Cdisassemble%2Ccustom%2Cmade%2Ctraining%2Ctechnician%2Ctechnology%2Ctechnologies%2Cworcester%2Csnaycomputertech%2Ccom%2Ctechjobs%2Cexperience%2Ccertified%2Cinformation%2Cservicing%2Coperating%2Csystem%2Cdifferent%2Cknowing%2Cthe%2Csluggish%2Cslowness%2Cassociated%2Ccomponents%2Cinvestigate%2Cfiles%2Cunwanted%2Cissue%2Cconnections%2Ca%2Ctroubleshooting';
var metaContents  = 'Snay+Computer+Tech+of+Milford%2CMa+respective+to+our+current+and+future+customers+always+have+and+always+will+provide+low+cost+professional+computer+repair+and+technical+support+standing+greatly+apart+from+franchising+competitors.Gratified+to+be+serving+all+of+Greater+Boston%2CCentral+Massachusetts+and+Northern+Rhode+Island.+Computer+problems+occur+in+different+scenarios+knowing+the+cause+of+the+problem+is+half+the+battle.As+for+example+a+PC+may+be+experiencing+sluggish+activity+than+it+normally+has+before.A+virus%2Cspyware+or+worm+could+be+the+cause+of+the+slowness+in+your+computer.Hopefully+that+its+not+and+all+the+troubles+was+your+PC+needed+a+clean-up+of+unwanted+files+accumulating+over+a+period+of+time.Another+cause+could+be+a+hardware+issue+thats+conflicting+with+the+operating+system.Snay+Computer+Tech+will+investigate+all+known+causes+of+the+problems+associated+with+your+computer+with+satisfying+results.We+specialize+in+computer+hardware+and+software+upgrades.Giving+you+the+best+knowledge+of+the+right+components+to+be+installed+in+your+system.As+technology+is+becoming+more+in+the+wireless+direction+as+cabling+becomes+the+thing+from+the+past.We+will+educate+your+mind+on+the+vulnerabilities+your+information+can+be+intercepted+through+wireless+connections.This+website+will+be+updated+often+with+information+on+new+technologies+being+developed%2Clinks+to+helpful+sites+and+much+more.Located+in+Milford%2CMassachusetts+our+services+span+from+Worcester+to+Boston+and+most+areas+in+Northern+Rhode+Island.With+convenient+access+to+major+highways+and+roadways+situated+in+our+area+you+can+expect+fast+servicing+when+the+moment+arise.Our+computer+service+technicians+are+certified+and+with+many+years+of+experience+behind+them.Its+very+important+in+choosing+the+right+technicians+especially+when+it+involves+vital+information+that+is+stored+on+your+computer.When+relying+on+a+technician+other+than+us+ask+them+if+they+are+certified.Certification+in+the+information+technology+is+what+we+are.Always+have+always+will.Snay+Computer+Tech+specializes+in+the+servicing+of+personal+computers+and+laptops.Our+professional+technicians+will+give+you+a+better+understanding+of+the+problems+relating+to+your+computer+before+the+work+will+be+performed.After+the+job+has+been+completed+depending+if+it+was+software+related+they+will+inform+you+of+the+preventive+measures+in+a+given+manner.To+get+into+more+details+of+our+services+please+call+%28774%29-232-3114.Most+situations+can+be+resolved+over+the+phone.If+not+a+technician+will+arrive+to+your+home+or+business+the+same+day+or+under+your+scheduled+convenience.Free+technical+support+is+what+we+have+to+offer.Please+use+it+respectively.Virus%2FSpyware+Removal%2CWireless+Networking%2CData+Recovery%2FBackup%2CPC%2FLaptop+Repairs%2CNetwork+Security+and+Firewalls%2CHardware%2FSoftware+Upgrades%2CFull+Diagnostic+Testing%2CComputer+Setup%2FDisassemble%2CCustom+Made+Computers%2CComputer+Training.Support%40snaycomputertech.com%2CWith+all+given+questions+relating+to+computer+servicing+and+technical+support+use+above+email.TechJobs%40snaycomputertech.com%2CInterested+in+joining+our+team+here+at+Snay+Computer+Tech.Please+use+above+email+with+a+brief+description+of+yourself+along+with+your+computer+experience.';
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();
};
