/* [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','2001',jdecode('Home'),jdecode(''),'/2001.html','true',[],'',''],
	['PAGE','41501',jdecode('Product+Catalog'),jdecode(''),'/41501/index.html','true',[ 
		['PAGE','61924',jdecode('Starter+Kit'),jdecode(''),'/41501/61924.html','true',[],'',''],
		['PAGE','59906',jdecode('0525F10000'),jdecode(''),'/41501/59906.html','true',[],'',''],
		['PAGE','59897',jdecode('3625R14'),jdecode(''),'/41501/59897.html','true',[],'',''],
		['PAGE','59915',jdecode('4RDDJ22'),jdecode(''),'/41501/59915.html','true',[],'',''],
		['PAGE','62767',jdecode('4RDDJ22-CLP'),jdecode(''),'/41501/62767.html','true',[],'',''],
		['PAGE','59924',jdecode('6RDDJ2210'),jdecode(''),'/41501/59924.html','true',[],'',''],
		['PAGE','62689',jdecode('6RDDJ2210-CLP'),jdecode(''),'/41501/62689.html','true',[],'',''],
		['PAGE','59942',jdecode('6RDDJ2213'),jdecode(''),'/41501/59942.html','true',[],'',''],
		['PAGE','62698',jdecode('6RDDJ2213-CLP'),jdecode(''),'/41501/62698.html','true',[],'',''],
		['PAGE','60240',jdecode('C3RC'),jdecode(''),'/41501/60240.html','true',[],'',''],
		['PAGE','60957',jdecode('DSH'),jdecode(''),'/41501/60957.html','true',[],'',''],
		['PAGE','60249',jdecode('GC-1'),jdecode(''),'/41501/60249.html','true',[],'',''],
		['PAGE','60565',jdecode('PSR+Heaters'),jdecode(''),'/41501/60565.html','true',[],'',''],
		['PAGE','60913',jdecode('RS-2+'),jdecode(''),'/41501/60913.html','true',[],'',''],
		['PAGE','60258',jdecode('SR51J'),jdecode(''),'/41501/60258.html','true',[],'',''],
		['PAGE','60267',jdecode('SR52J'),jdecode(''),'/41501/60267.html','true',[],'',''],
		['PAGE','60276',jdecode('SRP'),jdecode(''),'/41501/60276.html','true',[],'','']
	],'',''],
	['PAGE','61340',jdecode('Installation+Types'),jdecode(''),'/61340/index.html','true',[ 
		['PAGE','62268',jdecode('Cable+Jig+Assembly'),jdecode(''),'/61340/62268.html','true',[],'',''],
		['PAGE','62409',jdecode('Cable+Length%3F'),jdecode(''),'/61340/62409.html','true',[],'',''],
		['PAGE','62305',jdecode('Cabling+the+6RDDJ22+Jig'),jdecode(''),'/61340/62305.html','true',[],'',''],
		['PAGE','61349',jdecode('Flat+Roof+Drains'),jdecode(''),'/61340/61349.html','true',[],'',''],
		['PAGE','61358',jdecode('Canale+or+Scupper'),jdecode(''),'/61340/61358.html','true',[],'',''],
		['PAGE','61367',jdecode('Snow+Load+Control'),jdecode(''),'/61340/61367.html','true',[],'',''],
		['PAGE','61376',jdecode('Combinations'),jdecode(''),'/61340/61376.html','true',[],'',''],
		['PAGE','62367',jdecode('Power+Connection'),jdecode(''),'/61340/62367.html','true',[],'',''],
		['PAGE','62376',jdecode('Controllers'),jdecode(''),'/61340/62376.html','true',[],'','']
	],'',''],
	['PAGE','58735',jdecode('Specification'),jdecode(''),'/58735.html','true',[],'',''],
	['PAGE','12601',jdecode('About+us'),jdecode(''),'/12601.html','true',[],'',''],
	['PAGE','59173',jdecode('FAQ'),jdecode(''),'/59173/index.html','true',[ 
		['PAGE','12748',jdecode('About+Ice+Dams'),jdecode(''),'/59173/12748.html','true',[],'',''],
		['PAGE','12643',jdecode('About+Cable+Jigs'),jdecode(''),'/59173/12643.html','true',[],'','']
	],'',''],
	['PAGE','61111',jdecode('Photo+Album'),jdecode(''),'/61111/index.html','true',[ 
		['PAGE','62505',jdecode('Project+Photos'),jdecode(''),'/61111/62505.html','true',[],'',''],
		['PAGE','62514',jdecode('Test+Site+Photos'),jdecode(''),'/61111/62514.html','true',[],'','']
	],'',''],
	['PAGE','61712',jdecode('Tips+and+Tricks'),jdecode(''),'/61712.html','true',[],'',''],
	['PAGE','59302',jdecode('Library.pdf'),jdecode(''),'/59302.html','true',[],'',''],
	['PAGE','59777',jdecode('References'),jdecode(''),'/59777.html','true',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Disco';
theSitetree.paletteFamily='000066';
theSitetree.keyvisualId='1873';
theSitetree.keyvisualName='business.jpg';
theSitetree.fontsetId='307';
theSitetree.graphicsetId='363';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000066';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Disco',
				paletteFamily: 	'000066',
				keyvisualId: 	'1873',
				keyvisualName: 	'business.jpg',
				fontsetId: 		'307',
				graphicsetId: 	'363',
				contentColor: 	'FFFFFF',
				contentBGColor: '000066',
				a_color: 		'000066',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20100405-193608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58735',
internalId:  '',
customField: '20091110-210409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20091110-210604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12748',
internalId:  '',
customField: '20090619-214150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12643',
internalId:  '',
customField: '20090629-162302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41501',
internalId:  '',
customField: '20100910-194803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59173',
internalId:  '',
customField: '20091110-211827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62268',
internalId:  '',
customField: '20090729-224427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61111',
internalId:  '',
customField: '20090604-173225'
};
webappMappings['7060']=webappMappings['7060-4b4c8725151f65165db2492403dd8b87']={
webappId:    '7060',
documentId:  '62505',
internalId:  '4b4c8725151f65165db2492403dd8b87',
customField: 'language:en;country:US;'
};
webappMappings['7050']=webappMappings['7050-609']={
webappId:    '7050',
documentId:  '59302',
internalId:  '609',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59302',
internalId:  '',
customField: '20090220-184658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62409',
internalId:  '',
customField: '20090804-205805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62767',
internalId:  '',
customField: '20090901-144310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59897',
internalId:  '',
customField: '20091110-205750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59906',
internalId:  '',
customField: '20090603-155938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59915',
internalId:  '',
customField: '20090528-174730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59924',
internalId:  '',
customField: '20090828-223659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60276',
internalId:  '',
customField: '20091110-210218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62689',
internalId:  '',
customField: '20090828-224028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59942',
internalId:  '',
customField: '20090828-223839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60240',
internalId:  '',
customField: '20091110-205902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60249',
internalId:  '',
customField: '20091110-210002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60258',
internalId:  '',
customField: '20091110-210125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60267',
internalId:  '',
customField: '20091110-210155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62698',
internalId:  '',
customField: '20090828-224259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59777',
internalId:  '',
customField: '20090527-145649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60565',
internalId:  '',
customField: '20091110-210028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60913',
internalId:  '',
customField: '20091110-210100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60957',
internalId:  '',
customField: '20091110-205924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62305',
internalId:  '',
customField: '20090730-220608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61340',
internalId:  '',
customField: '20090729-224206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61376',
internalId:  '',
customField: '20090804-210233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61367',
internalId:  '',
customField: '20090804-203726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61349',
internalId:  '',
customField: '20090804-195842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61358',
internalId:  '',
customField: '20090804-195949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61712',
internalId:  '',
customField: '20090604-173031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62367',
internalId:  '',
customField: '20090728-215831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61924',
internalId:  '',
customField: '20091223-220646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62376',
internalId:  '',
customField: '20090728-215949'
};
webappMappings['7060']=webappMappings['7060-8fd4ce19a3ff17d0e800164ef1f3d6f1']={
webappId:    '7060',
documentId:  '62514',
internalId:  '8fd4ce19a3ff17d0e800164ef1f3d6f1',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62505',
internalId:  '',
customField: '20090730-200514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62514',
internalId:  '',
customField: '20090730-222855'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050IN34R2';
var companyName   = 'Roof+Drain+De-icing+Systems+Inc.';
var htmlTitle	  = 'roofdrainde-icingsystems.com';
var metaKeywords  = 'Jigs++Roof++De-Icing++Ice++Snow++Melt++Melting++Cable++SR-Trace++Easy-Heat++Cable+Jig++Flooding++Dams++Gutter++Grid++Downspout++Freezing+Rain';
var metaContents  = 'Roof++Roof+Drains++Roof+De-Icing++Roof+Drain+De-Icing++Jigs++Cable+Jigs++Heat+Trace++SR+Trace+Cable++Ice+Melt++Snow+Melt++Roof+Flooding++Ice+Dams++Easy-Heat++Heated+Floors++Heated+Drive+Ways++Heated+Sidewalks++Gutter+De-Icing++Drain+De-Icing++Roof+Snow+Melting++Roof+Ice+Melting++Heated+Mats++Grid++Self-regulating+Cable++Canale++Scupper+Downspout+';
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();
};

