/* [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','32',jdecode('Home'),jdecode(''), jdecode('%2F32%2Findex.html'), 'true',[ 
		['PAGE','53',jdecode('Contact'),jdecode(''), jdecode('%2F32%2F53.html'), 'true',[],'',''],
		['PAGE','1239',jdecode('Contact+%28follow+up+page%29'),jdecode(''), jdecode('%2F32%2F1239.html'), 'false',[],'','']
	],'',''],
	['PAGE','116',jdecode('Classes'),jdecode(''), jdecode('%2F116.html'), 'true',[],'',''],
	['PAGE','107',jdecode('Repair+Services'),jdecode(''), jdecode('%2F107.html'), 'true',[],'',''],
	['PAGE','2457',jdecode('Business+Corner'),jdecode(''), jdecode('%2F2457.html'), 'true',[],'',''],
	['PAGE','2466',jdecode('Consumers+Corner'),jdecode(''), jdecode('%2F2466.html'), 'true',[],'',''],
	['PAGE','2431',jdecode('Letterhead+Samples'),jdecode(''), jdecode('%2F2431.html'), 'true',[],'',''],
	['PAGE','2475',jdecode('Tips+%26+Tricks'),jdecode(''), jdecode('%2F2475.html'), 'true',[],'',''],
	['PAGE','3071',jdecode('+Magazines'),jdecode(''), jdecode('%2F3071.html'), 'true',[],'',''],
	['PAGE','3080',jdecode('Software+Reviews'),jdecode(''), jdecode('%2F3080.html'), 'true',[],'',''],
	['PAGE','3089',jdecode('Newsletter'),jdecode(''), jdecode('%2F3089.html'), 'true',[],'',''],
	['PAGE','3200',jdecode('How+to+find+us'),jdecode(''), jdecode('%2F3200.html'), 'true',[],'',''],
	['PAGE','3206',jdecode('Forum'),jdecode(''), jdecode('%2F3206.html'), 'true',[],'',''],
	['PAGE','3360',jdecode('Web+Design'),jdecode(''), jdecode('%2F3360.html'), 'true',[],'',''],
	['PAGE','3369',jdecode('Hosting%2FDomains'),jdecode(''), jdecode('%2F3369.html'), 'true',[],'',''],
	['PAGE','3378',jdecode('Special+Deals'),jdecode(''), jdecode('%2F3378.html'), 'true',[],'',''],
	['PAGE','3387',jdecode('Offers'),jdecode(''), jdecode('%2F3387.html'), 'true',[],'',''],
	['PAGE','3396',jdecode('Products'),jdecode(''), jdecode('%2F3396%2Findex.html'), 'true',[ 
		['PAGE','3405',jdecode('First+Product'),jdecode(''), jdecode('%2F3396%2F3405.html'), 'true',[],'',''],
		['PAGE','3414',jdecode('Second+Product'),jdecode(''), jdecode('%2F3396%2F3414.html'), 'true',[],'',''],
		['PAGE','3423',jdecode('Third+Product'),jdecode(''), jdecode('%2F3396%2F3423.html'), 'true',[],'','']
	],'',''],
	['PAGE','15801',jdecode('Remote+Services'),jdecode(''), jdecode('%2F15801.html'), 'true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Seifenblase';
theSitetree.paletteFamily='FF9B5E';
theSitetree.keyvisualId='2343';
theSitetree.keyvisualName='aerzte1.jpg';
theSitetree.fontsetId='379';
theSitetree.graphicsetId='430';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'optimum',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Seifenblase',
				paletteFamily: 	'FF9B5E',
				keyvisualId: 	'2343',
				keyvisualName: 	'aerzte1.jpg',
				fontsetId: 		'379',
				graphicsetId: 	'430',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'CC3300',
				e_color: 		'FF3300',
				f_color: 		'FF9966',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['1003']=webappMappings['1003-ahw050in35g611b45ebfda3']={
webappId:    '1003',
documentId:  '2475',
internalId:  'ahw050in35g611b45ebfda3',
customField: 'en:US:'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '3200',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['7050']=webappMappings['7050-2268']={
webappId:    '7050',
documentId:  '3206',
internalId:  '2268',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-1349655']={
webappId:    '1501',
documentId:  '32',
internalId:  '1349655',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-d7a381401aab7463eecfb06fa766d2f7']={
webappId:    '7060',
documentId:  '2431',
internalId:  'd7a381401aab7463eecfb06fa766d2f7',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15801',
internalId:  '',
customField: '20111026-175218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20100222-143901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20071230-231307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1239',
internalId:  '',
customField: '20060114-025622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116',
internalId:  '',
customField: '20071230-234240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107',
internalId:  '',
customField: '20071231-000626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2457',
internalId:  '',
customField: '20060624-154926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2466',
internalId:  '',
customField: '20060516-173250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2431',
internalId:  '',
customField: '20060516-173505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2475',
internalId:  '',
customField: '20060516-175811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3071',
internalId:  '',
customField: '20060610-222827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3080',
internalId:  '',
customField: '20060610-222828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3089',
internalId:  '',
customField: '20060610-222828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3200',
internalId:  '',
customField: '20060610-230146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3206',
internalId:  '',
customField: '20100222-141009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3360',
internalId:  '',
customField: '20071230-230548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3369',
internalId:  '',
customField: '20071230-230548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3378',
internalId:  '',
customField: '20071230-230548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3387',
internalId:  '',
customField: '20071230-230548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3396',
internalId:  '',
customField: '20071230-230548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3405',
internalId:  '',
customField: '20071230-230548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3414',
internalId:  '',
customField: '20071230-230548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3423',
internalId:  '',
customField: '20071230-230549'
};
webappMappings['7008']=webappMappings['7008-11401']={
webappId:    '7008',
documentId:  '53',
internalId:  '11401',
customField: 'language:en;country:US;'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050IN35G6';
var companyName   = 'My+Computer+Solutions';
var htmlTitle	  = 'My+Computer+Tutor+-+Your+One+Stop+Computer+Shop';
var metaKeywords  = 'computer+repairs%2Ccomputer+tutor%2Ccomputer+lessons%2Csupport%2C+os+installs%2C+os+installations%2C+wireless+setups%2C+computer+education%2C+comp+lessons%2C+private+computer+lessons%2Cwebsite+hosting%2Chosting%2Cweb+host%2Csite+host%2Cdomain+names%2C+domain+name%2Cweb%2Cdesign%2Cgraphic+design%2Coperating+system+repair%2Cfix+computers%2Cdrivers%2Csetups%2Cset-ups%2Cwireless%2Cinternet%2Crepair%2Ccomputer+teacher%2Cteacher%2Ccomputer+lesson%2Cexcel+lessons%2Cword+lessons%2Crepair+classes%2Cfix+it%2Ccomputer+broken%2Chelp%2Ccomputer+help%2Cplease+help+me%2Cplease+help%2Cconflicts%2Ccomputer+conflicts%2Csoftware+conflicts%2Chardware+installs%2Csoftware+installs%2Cweb+designer%2Cweb+design%2Cflash+designer%2Cflash+design%2Cflash+designs%2Cflash%2Cshopping+carts%2Cbuild+cart%2Cfixcart%2Cecommerce+design%2Cecommerce+designs%2Ccomputer+support%2C';
var metaContents  = 'Spyware+and+Viruses+are+so+wide+spread+today+that+the+average+home+computer+user+has+no+idea+whether+they+are+infected+or+not.+They+also+have+no+idea+on+how+to+protect+their+computers+from+any+threats+or+invaders.+The+average+user+needs+to+be+educated+on+how+to+use+the+computer+to+its+full+potential.+One+of+the+first+things+they+need+to+learn+is+internet+security+proceedures.++There+is+a+right+way+to+surf+the+internet+and+there+is+a+wrong+way.+If+you+go+online+without+a+good+firewall+and+good+virus+software%2C+not+to+mention+a+spyware+remover+and+stopper%2C+your+going+to+be+toast+in+about+20+minutes.++Computer+education+is+a+must+in+todays+society+and+if+a+person+wants+to+keep+up+with+the+fast+paced+world%2C+one+must+learn+everything+they+can+about+computers+and+the+associated+technology.+LESSONS+ARE+GIVEN+IN+A+PRIVATE+SETTING%2C+WITHOUT+THE+EMBARRASSMENT%21+COMPUTERS+ARE+ALSO+REPAIRED+AND+PICKED+UP+AT+YOUR+HOME+OR+OFFICE+FOR+FREE.';
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();
};

