/* [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','13901',jdecode('The+Right+Cliq'),jdecode(''),'/13901.html','true',[],'',''],
	['PAGE','17701',jdecode('TRC+Data+Recovery'),jdecode(''),'/17701.html','true',[],'',''],
	['PAGE','17743',jdecode('Computer+Repair'),jdecode(''),'/17743.html','true',[],'',''],
	['PAGE','17764',jdecode('Networking'),jdecode(''),'/17764.html','true',[],'',''],
	['PAGE','358301',jdecode('Buying+a+New+Computer'),jdecode(''),'/358301/index.html','true',[ 
		['PAGE','358401',jdecode('Laptop+Buyers+Guide'),jdecode(''),'/358301/358401.html','true',[],'',''],
		['PAGE','358422',jdecode('Desktop+Buyers+Guide'),jdecode(''),'/358301/358422.html','true',[],'',''],
		['PAGE','362301',jdecode('Online+Discounts'),jdecode(''),'/358301/362301.html','true',[],'','']
	],'',''],
	['PAGE','344401',jdecode('Helpful+Hints'),jdecode(''),'/344401/index.html','true',[ 
		['PAGE','335801',jdecode('Best+Backups'),jdecode(''),'/344401/335801.html','true',[],'',''],
		['PAGE','343801',jdecode('Files+to+Backup'),jdecode(''),'/344401/343801.html','true',[],'','']
	],'',''],
	['PAGE','351001',jdecode('Testimonials'),jdecode(''),'/351001.html','true',[],'',''],
	['PAGE','14015',jdecode('Contact'),jdecode(''),'/14015/index.html','true',[ 
		['PAGE','351801',jdecode('About+Us'),jdecode(''),'/14015/351801.html','true',[],'','']
	],'','']];
var siteelementCount=14;
theSitetree.topTemplateName='Konzept';
theSitetree.paletteFamily='6C05A7';
theSitetree.keyvisualId='571';
theSitetree.keyvisualName='bildung.jpg';
theSitetree.fontsetId='121';
theSitetree.graphicsetId='139';
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: 			'Konzept',
				paletteFamily: 	'6C05A7',
				keyvisualId: 	'571',
				keyvisualName: 	'bildung.jpg',
				fontsetId: 		'121',
				graphicsetId: 	'139',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'6C05A7',
				b_color: 		'C8D0ED',
				c_color: 		'000000',
				d_color: 		'15094B',
				e_color: 		'C5B39F',
				f_color: 		'900B4D',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20091222-142308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20071105-132416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17743',
internalId:  '',
customField: '20071106-120610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17764',
internalId:  '',
customField: '20071105-133414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '344401',
internalId:  '',
customField: '20091221-030141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '362301',
internalId:  '',
customField: '20100107-023631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '335801',
internalId:  '',
customField: '20071106-121035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343801',
internalId:  '',
customField: '20071105-135612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '351001',
internalId:  '',
customField: '20070730-164852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14015',
internalId:  '',
customField: '20070730-165337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '351801',
internalId:  '',
customField: '20070730-170120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '358301',
internalId:  '',
customField: '20091228-035031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '358401',
internalId:  '',
customField: '20100216-025528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '358422',
internalId:  '',
customField: '20091222-131709'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEUTL';
var companyName   = '-+++T+H+E++++R+I+G+H+T++++C+L+I+Q+++-';
var htmlTitle	  = 'The+Right+Cliq+-+Quality+Service%2C+Reasonably+Priced%2C+and+Guaranteed+-+Washington+DC+Computer+Repair-';
var metaKeywords  = 'Washington+DC%2C+Computer+Repair%2C++Computer+Service%2C+Data+Recovery%2C++Washington+DC%2C+Hard+Drive+Repair%2C++Dell%2C+Compaq%2C+HP%2C+Apple+Diagnostics+Network+Troubleshooting%2C+Outlook%2C+Computer+Training%2C+Geek+Squad%2C+Mac%2C+PC%2C+Geeks%2C+Nerds%2C+20016%2C+20008%2C+20007%2C+20009%2C+20005%2C+20037%2C+20015%2C+20012%2C+20036%2C+Cleveland+park%2C+Georgetown%2C+Dupont%2C+Adams-Morgan%2C+Van+Ness%2C+Tenleytown%2C+Kalorama';
var metaContents  = 'Washington+DC+Computer+Service+Repair+Data+Recovery+Washington+DC';
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();
};
