/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('About+WCC+Ltd.'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('Products'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','8601',jdecode('Infrared+Fixtures'),jdecode(''),'/473/8601.html','true',[],''],
		['PAGE','34101',jdecode('Infrared+faucet+models'),jdecode(''),'/473/34101.html','true',[],''],
		['PAGE','34122',jdecode('Infrared+toilet+models'),jdecode(''),'/473/34122.html','true',[],''],
		['PAGE','34143',jdecode('Infrared+urinal+models'),jdecode(''),'/473/34143.html','true',[],''],
		['PAGE','8001',jdecode('Water+Saving+Toilets'),jdecode(''),'/473/8001.html','true',[],''],
		['PAGE','8622',jdecode('Shower+Heads'),jdecode(''),'/473/8622.html','true',[],''],
		['PAGE','8643',jdecode('Flush+Valves'),jdecode(''),'/473/8643.html','true',[],''],
		['PAGE','32101',jdecode('Faucet+Aerators'),jdecode(''),'/473/32101.html','true',[],''],
		['PAGE','32122',jdecode('Vandal+Proof+Fixtures'),jdecode(''),'/473/32122.html','true',[],'']
	],''],
	['PAGE','494',jdecode('Services'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','13101',jdecode('Supply+%26+Installation'),jdecode(''),'/494/13101.html','true',[],''],
		['PAGE','13122',jdecode('Toilet+Rebates'),jdecode(''),'/494/13122.html','true',[],''],
		['PAGE','13143',jdecode('Water+Audits'),jdecode(''),'/494/13143.html','true',[],'']
	],''],
	['PAGE','515',jdecode('Testimonials'),jdecode(''),'/515/index.html','true',[ 
		['PAGE','36001',jdecode('Concordia+Case+Study'),jdecode(''),'/515/36001.html','true',[],''],
		['PAGE','39301',jdecode('Charles+Hasting'),jdecode(''),'/515/39301.html','true',[],''],
		['PAGE','11243',jdecode('Cliffside+Co-op'),jdecode(''),'/515/11243.html','true',[],''],
		['PAGE','11222',jdecode('CCC+%23+316'),jdecode(''),'/515/11222.html','true',[],''],
		['PAGE','11264',jdecode('Trethewey+Dr.+Co-op'),jdecode(''),'/515/11264.html','true',[],''],
		['PAGE','11201',jdecode('2020+Don+Mills'),jdecode(''),'/515/11201.html','true',[],'']
	],''],
	['PAGE','75301',jdecode('Government+Rebates'),jdecode(''),'/75301.html','true',[],''],
	['PAGE','71301',jdecode('Links'),jdecode(''),'/71301.html','true',[],''],
	['PAGE','32143',jdecode('ECC+Ltd.'),jdecode(''),'/32143.html','true',[],''],
	['PAGE','536',jdecode('Contact+us'),jdecode(''),'/536.html','true',[],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Medium';
theSitetree.paletteFamily='F5F5F5';
theSitetree.keyvisualId='2153';
theSitetree.keyvisualName='architektur2.jpg';
theSitetree.fontsetId='355';
theSitetree.graphicsetId='407';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='F5F5F5';
var theTemplate={
				name: 			'Medium',
				paletteFamily: 	'F5F5F5',
				keyvisualId: 	'2153',
				keyvisualName: 	'architektur2.jpg',
				fontsetId: 		'355',
				graphicsetId: 	'407',
				contentColor: 	'666666',
				contentBGColor: 'F5F5F5',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'F5F5F5',
				b_color: 		'8EBFC6',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20071020-124054'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20071018-120453'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20071020-124346'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20071201-190817'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20071014-151444'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20071020-124020'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8622',
internalId:  '',
customField: '20071016-200127'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20071018-113641'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11201',
internalId:  '',
customField: '20070914-140723'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11222',
internalId:  '',
customField: '20070914-140843'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11243',
internalId:  '',
customField: '20070914-141026'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11264',
internalId:  '',
customField: '20071014-135303'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8643',
internalId:  '',
customField: '20071016-200733'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20071018-113416'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20071018-113436'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13122',
internalId:  '',
customField: '20071018-113504'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13143',
internalId:  '',
customField: '20071017-175019'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34101',
internalId:  '',
customField: '20071020-141630'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36001',
internalId:  '',
customField: '20071017-175641'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34122',
internalId:  '',
customField: '20071020-142004'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34143',
internalId:  '',
customField: '20071020-142507'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32101',
internalId:  '',
customField: '20071017-174640'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32122',
internalId:  '',
customField: '20071011-141624'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39301',
internalId:  '',
customField: '20071012-115611'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32143',
internalId:  '',
customField: '20071018-113843'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '71301',
internalId:  '',
customField: '20071215-144340'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '536',
internalId:  '769943',
customField: 'en:US:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '75301',
internalId:  '',
customField: '20071215-144246'
};
var canonHostname = 'wsc.sibername.com';
var accountId     = 'ASIB10INXLK1';
var companyName   = 'Water+Conservation+Company+Ltd.';
var htmlTitle	  = 'Water+Conservation+Company+Ltd.';
var metaKeywords  = 'water+and+energy+conservation+expertise%2C+water+saving+solutions%2C+energy+saving+solutions%2C+water+conservation%2C+water+saving+toilets%2C+water+saving+showerheads%2C+water+saving+faucets%2C+infrared+faucets%2C+infrared+toilets%2C+infrared+urinals%2C+water+saving+report%2C+municipal+toilet+rebate%2C+ontario+toilet+rebate%2C+water+saving+toilet+supplier%2C+water+saving+flush+valves+supplier%2C+water+and+energy+saving+shower+heads+supplier%2C+vandal+proof+water+saving+fixtures%2C+water+audits%2C+water+saving+showerhead+installation%2C+water+saving+faucet+installation%2C+water+saving+toilet+installation%2C+toronto%2C+ontario%2C+ottawa';
var metaContents  = 'Providing+water+and+energy+saving+solutions+to+building+owners+and+managers.+We+have+over+15+years+of+water+and+energy+conservation+expertise.+Our+water+and+energy+saving+solutions+are+specifically+designed+for+all+types+of+multi+residential%2C+commercial%2C+institutional+and+industrial+buildings.+We+have+successfully+completed+water+saving+fit+up+projects+all+across+the+Province+of+Ontario.+We+will+reduce+your+current+water+and+sewage+cost+from+25%25+to+35%25+in+a+timely+and+complaint+free+manner.+We+have+your+conservation+solution.+Detailed+analysis+of+your+existing+water+costs.+Water+saving+report+with+specific+recommendations++payback+periods.+Professional+installation+of+your+water+saving+fixtures.+Ensure+your+municipal+toilet+rebate+application+is+approved.+Full+service+warranty.+WCC+Water+Conservation+Company+provides+a+full+line+of+proven+water+and+energy+saving+fixtures+for+all+types+of+multi+unit+residential+and+commercial+buildings.+From+water+saving+toilets%2C+flush+valves%2C+urinals%2C+faucets%2C+shower+heads%2C+faucet+aerators+to+specialized+infra+red+sensor+fixtures+for+health+care+and+industry+we+have+your+water+saving+solution.+WCC+only+supplies+and+installs+proven+water+saving+toilets.++We+apply+a+very+strict+criteria+when+evaluating+and+approving+a+water+saving+toilet+for+sale+to+our+customers.++Our+approach+ensures+that+our+customers+are+completely+satisfied+with+their+new+toilets.++We+supply+and+install+toilets+from+the+leading+manufacturers++including+American+Standard%2C+Mansfield%2C+Atlantis%2C+TOTO%2C+Vortens%2C+Niagara+Flapperless.+WCC+only+supplies+and+installs+proven+water+saving+flush+valves+for+toilets+and+urinals.++We+apply+a+very+strict+criteria+when+evaluating+and+approving+a+water+saving+flush+valve+for+sale+to+our+customers.++Our+approach+ensures+that+our+customers+are+completely+satisfied+with+their+new+flush+valves.+WCC+provides+proven+water+and+energy+saving+shower+heads+for+all+types+of+residential+and+commercial+applications.++We+supply+and+install+shower+heads+from+leading++manufacturers+including+Nepitek+and+Niagara+Conservation.+WCC+water+conservation+company+provides+turnkey+water+saving+fit+up+services.+Including+current+water+consumption+analysis%2C+detailed+water+audits+and+reporting+of+specific+water+saving+fit+up+recommendations+with+payback+periods+and+product+specifications.++Supply+and+installation+of+all+types+of+water+saving+fixtures+with+full+service+warranty+and+ensuring+our+customers+receive+their+full+municipal+toilet+rebates.+With+over+15+years+of+water+saving+fit+up+experience+WCC+water+conservation+company%E2%80%99s+team+of+well+trained+professionals+will+supply+and+install+your+new+water+saving+fixtures+in+a+timely+and+professional+manner.++We+are+dedicated+to+reducing+your+current+water+and+sewage+costs.+From+installing+new+toilets%2C+shower+heads+and+faucets+aerators+in+your+multi+unit+residential+suites+to+comprehensive+commercial+water+saving+projects+we+have+the+experience+to+deliver+your+water+saving+fit+up+project+on+time+and+on+budget.++WCC+water+conservation+company+has+over+15+years+of+commercial+water+audit+experience.+Water+audits+included+a+detailed+review+of+water+consumption+data%2C+a+comprehensive+analysis+of+the+fixtures+and+equipment+that+consume+water.++Specific+water+and+dollar+saving+recommendations+with+payback+periods+and+product+specifications.+Our+water+audit+approach+is+to+work+from+the+customers+criteria+to+deliver+a+water+audit+report+that+meets+their+specific+needs.+We+have+successfully+completed+water+audits+in+all+types+of+commercial+office+buildings%2C+municipal+buildings%2C+retail+malls%2C+Federal+Government+facilities.++WCC+works+for+leading+Engineering+Companies+and+for+Energy+Performance+Contractors.++With+a+growing+number+of+municipalities+across+the+Province+of+Ontario+implementing+toilet+rebate+programs+WCC+water+conservation+company+is+your+source+for+up+to+the+minute+information+on+rebate+programs+that+are+applicable+to+your+specific+buildings.+Contact+us+to+learn+more+about+rebate+programs+in+your+area+that+will+save+your+thousands+of+dollars.++++';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            

