/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],''],
	['PAGE','552',jdecode('Computer+Systems'),jdecode(''),'/552/index.html','true',[ 
		['PAGE','636',jdecode('Apple+Desktops'),jdecode(''),'/552/636.html','true',[],''],
		['PAGE','573',jdecode('Bare+Bones'),jdecode(''),'/552/573.html','true',[],''],
		['PAGE','615',jdecode('Gaming+Systems'),jdecode(''),'/552/615.html','true',[],''],
		['PAGE','594',jdecode('Media+Centers'),jdecode(''),'/552/594.html','true',[],''],
		['PAGE','657',jdecode('Shuttle+Computers'),jdecode(''),'/552/657.html','true',[],''],
		['PAGE','678',jdecode('Refurbished+Computers'),jdecode(''),'/552/678.html','true',[],'']
	],''],
	['PAGE','699',jdecode('Monitors+%28Displays%29'),jdecode(''),'/699/index.html','true',[ 
		['PAGE','720',jdecode('Asus'),jdecode(''),'/699/720.html','true',[],''],
		['PAGE','741',jdecode('Samsung'),jdecode(''),'/699/741.html','true',[],''],
		['PAGE','762',jdecode('ViewSonic'),jdecode(''),'/699/762.html','true',[],''],
		['PAGE','783',jdecode('Refurbished+Monitors'),jdecode(''),'/699/783.html','true',[],'']
	],''],
	['PAGE','804',jdecode('Netbooks%2FNotebooks%2FLaptop'),jdecode(''),'/804/index.html','true',[ 
		['PAGE','888',jdecode('Acer'),jdecode(''),'/804/888.html','true',[],''],
		['PAGE','930',jdecode('Apple+Notebooks+%26+Accessories'),jdecode(''),'/804/930.html','true',[],''],
		['PAGE','867',jdecode('Asus'),jdecode(''),'/804/867.html','true',[],''],
		['PAGE','825',jdecode('HP%2FCompaq'),jdecode(''),'/804/825.html','true',[],''],
		['PAGE','951',jdecode('IBM%2FLenovo'),jdecode(''),'/804/951.html','true',[],''],
		['PAGE','972',jdecode('MSI'),jdecode(''),'/804/972.html','true',[],''],
		['PAGE','909',jdecode('Toshiba'),jdecode(''),'/804/909.html','true',[],'']
	],''],
	['PAGE','28759',jdecode('Notebook%2FLaptop+Peripherals'),jdecode(''),'/28759/index.html','true',[ 
		['PAGE','28780',jdecode('Notebook+Batteries%2FPower+Supply+Cables'),jdecode(''),'/28759/28780.html','true',[],''],
		['PAGE','28801',jdecode('Bags'),jdecode(''),'/28759/28801.html','true',[],'']
	],''],
	['PAGE','28822',jdecode('Computer+Components'),jdecode(''),'/28822/index.html','true',[ 
		['PAGE','28843',jdecode('CD%2FDVD%2FBlueRay+Drives'),jdecode(''),'/28822/28843.html','true',[],''],
		['PAGE','28864',jdecode('Computer+Cases'),jdecode(''),'/28822/28864.html','true',[],''],
		['PAGE','28885',jdecode('CPU+%28Processors%29'),jdecode(''),'/28822/28885.html','true',[],''],
		['PAGE','28906',jdecode('Display+Adapters%2FVideo+Cards'),jdecode(''),'/28822/28906.html','true',[],''],
		['PAGE','28927',jdecode('Hard+Drives'),jdecode(''),'/28822/28927.html','true',[],''],
		['PAGE','28948',jdecode('Motherboards'),jdecode(''),'/28822/28948.html','true',[],''],
		['PAGE','28969',jdecode('Power+Supply+Units'),jdecode(''),'/28822/28969.html','true',[],''],
		['PAGE','28990',jdecode('RAM'),jdecode(''),'/28822/28990.html','true',[],'']
	],''],
	['PAGE','29011',jdecode('DATA+Strorage+Media'),jdecode(''),'/29011/index.html','true',[ 
		['PAGE','29032',jdecode('External+Hard+Drives'),jdecode(''),'/29011/29032.html','true',[],''],
		['PAGE','29053',jdecode('SD%2FMini+SD%2FMicro+SD%2FMS+Pro'),jdecode(''),'/29011/29053.html','true',[],''],
		['PAGE','29074',jdecode('USB+Flash+Drives'),jdecode(''),'/29011/29074.html','true',[],'']
	],''],
	['PAGE','993',jdecode('Services'),jdecode(''),'/993/index.html','true',[ 
		['PAGE','1014',jdecode('Pick-Up%2FDrop-Off%2FDelivery'),jdecode(''),'/993/1014.html','true',[],''],
		['PAGE','1056',jdecode('Onsite+Tech-Support'),jdecode(''),'/993/1056.html','true',[],''],
		['PAGE','1035',jdecode('Computer+Repair'),jdecode(''),'/993/1035.html','true',[],''],
		['PAGE','23945',jdecode('Data+Recovery'),jdecode(''),'/993/23945.html','true',[],'']
	],''],
	['PAGE','29095',jdecode('Networking'),jdecode(''),'/29095/index.html','true',[ 
		['PAGE','29116',jdecode('Wireless+Networking'),jdecode(''),'/29095/29116.html','true',[],''],
		['PAGE','29137',jdecode('Wired+Networking'),jdecode(''),'/29095/29137.html','true',[],'']
	],''],
	['PAGE','29158',jdecode('Peripherals'),jdecode(''),'/29158/index.html','true',[ 
		['PAGE','29179',jdecode('Wireless%2FBluetooth+Keyboards+%26+Mice'),jdecode(''),'/29158/29179.html','true',[],''],
		['PAGE','29200',jdecode('Keyboards+%26+Mice'),jdecode(''),'/29158/29200.html','true',[],'']
	],''],
	['PAGE','29221',jdecode('Printers'),jdecode(''),'/29221/index.html','true',[ 
		['PAGE','30059',jdecode('Canon'),jdecode(''),'/29221/30059.html','true',[],''],
		['PAGE','30080',jdecode('Epson'),jdecode(''),'/29221/30080.html','true',[],''],
		['PAGE','30101',jdecode('HP'),jdecode(''),'/29221/30101.html','true',[],'']
	],''],
	['PAGE','30122',jdecode('Printer+Ink+%26+Supplies'),jdecode(''),'/30122/index.html','true',[ 
		['PAGE','30143',jdecode('Canon'),jdecode(''),'/30122/30143.html','true',[],''],
		['PAGE','30164',jdecode('Epson'),jdecode(''),'/30122/30164.html','true',[],''],
		['PAGE','30185',jdecode('HP'),jdecode(''),'/30122/30185.html','true',[],''],
		['PAGE','30206',jdecode('Lexmark'),jdecode(''),'/30122/30206.html','true',[],'']
	],''],
	['PAGE','1098',jdecode('Contact'),jdecode(''),'/1098/index.html','true',[ 
		['PAGE','1119',jdecode('Addresses'),jdecode(''),'/1098/1119.html','true',[],''],
		['PAGE','1140',jdecode('Map'),jdecode(''),'/1098/1140.html','true',[],'']
	],''],
	['PAGE','1077',jdecode('About+us'),jdecode(''),'/1077.html','true',[],'']];
var siteelementCount=61;
theSitetree.topTemplateName='Champagne';
theSitetree.paletteFamily='426388';
theSitetree.keyvisualId='11062';
theSitetree.keyvisualName='kv_11062.jpg';
theSitetree.fontsetId='31947';
theSitetree.graphicsetId='13786';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='426388';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Champagne',
				paletteFamily: 	'426388',
				keyvisualId: 	'11062',
				keyvisualName: 	'kv_11062.jpg',
				fontsetId: 		'31947',
				graphicsetId: 	'13786',
				contentColor: 	'000000',
				contentBGColor: '426388',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20090710-002011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090707-233011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20090707-235733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20090708-014326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '804',
internalId:  '',
customField: '20090710-015027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '930',
internalId:  '',
customField: '20090708-024503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '867',
internalId:  '',
customField: '20090708-024845'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20090114-083947'
};
webappMappings['1501']=webappMappings['1501-20762113']={
webappId:    '1501',
documentId:  '501',
internalId:  '20762113',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20090114-083947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20090114-083947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '678',
internalId:  '',
customField: '20090114-083947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20090709-054021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20090114-083947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20090114-083947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '762',
internalId:  '',
customField: '20090114-083947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '783',
internalId:  '',
customField: '20090710-023943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '825',
internalId:  '',
customField: '20090114-083947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23945',
internalId:  '',
customField: '20090710-025513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '888',
internalId:  '',
customField: '20090114-083947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '909',
internalId:  '',
customField: '20090114-083947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '951',
internalId:  '',
customField: '20090114-083947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '972',
internalId:  '',
customField: '20090114-083947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '993',
internalId:  '',
customField: '20090709-235916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1014',
internalId:  '',
customField: '20090711-065644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1035',
internalId:  '',
customField: '20090710-025407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1056',
internalId:  '',
customField: '20090710-034153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1077',
internalId:  '',
customField: '20090710-095139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1098',
internalId:  '',
customField: '20090709-042738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1119',
internalId:  '',
customField: '20090709-043409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1140',
internalId:  '',
customField: '20090710-022819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28759',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28780',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28801',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28822',
internalId:  '',
customField: '20090712-082505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28843',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28864',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28885',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28906',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28927',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28948',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28969',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28990',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29011',
internalId:  '',
customField: '20090712-082807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29032',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29053',
internalId:  '',
customField: '20090712-083159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29074',
internalId:  '',
customField: '20090712-083458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29095',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29116',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29137',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29158',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29179',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29200',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29221',
internalId:  '',
customField: '20090712-033521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30059',
internalId:  '',
customField: '20090712-034813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30080',
internalId:  '',
customField: '20090712-034813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30101',
internalId:  '',
customField: '20090712-034813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30122',
internalId:  '',
customField: '20090712-034813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30143',
internalId:  '',
customField: '20090712-034813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30164',
internalId:  '',
customField: '20090712-034813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30185',
internalId:  '',
customField: '20090712-034813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30206',
internalId:  '',
customField: '20090712-034813'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN040INZY72';
var companyName   = 'NationWide.Com.TW++++++++++++++++++Your+Choice+For+Computing+And+Electronics+In+Taiwan';
var htmlTitle	  = 'English+Computer+Service+in+Taiwan%2C+On-site+Tech-support+in+Taiwan%2C+English+Computer+Repair+in+Taiwan%2C+Englsih+Computer+Sales+in+Taiwan%2C+Tech-support+in+Taiwan%2C+ex-pat+tech-support%2C+';
var metaKeywords  = 'Computer%2C+Computer+Sales%2C+Computer+Repair%2C+On-site+Tech-Support%2C+English+Service%2C+Multi-lingual+services%2C+Computer+Diagnostics%2C+Computer+hardware%2C+in+Taiwan%2C+PBX+support+in+Taiwan';
var metaContents  = 'Computer%2C+Computer+Sales%2C+Computer+Repair%2C+On-site+Tech-Support%2C+English+Service%2C+Multi-lingual+services%2C+Computer+Diagnostics%2C+Computer+hardware%2C+in+Taiwan';
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();
};
