/* [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','401',jdecode('Accueil'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','536',jdecode('Services'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','11201',jdecode('Cam%C3%A9ra+IP'),jdecode(''),'/536/11201.html','false',[],'',''],
		['PAGE','557',jdecode('Communautel+-+Installation'),jdecode(''),'/536/557.html','true',[],'',''],
		['PAGE','11001',jdecode('Contruction-site+d%26%23x27%3Bantenne'),jdecode(''),'/536/11001.html','true',[],'',''],
		['PAGE','578',jdecode('H%C3%A9bergement+de+serveurs'),jdecode(''),'/536/578.html','false',[],'',''],
		['PAGE','10201',jdecode('Internet+en+milieu+rural'),jdecode(''),'/536/10201.html','true',[],'',''],
		['PAGE','11022',jdecode('Intervention+en+hauteur'),jdecode(''),'/536/11022.html','true',[],'',''],
		['PAGE','10222',jdecode('R%C3%A9seaux+filaires'),jdecode(''),'/536/10222.html','false',[],'',''],
		['PAGE','10243',jdecode('R%C3%A9seaux+sans+fil'),jdecode(''),'/536/10243.html','false',[],'',''],
		['PAGE','11222',jdecode('R%C3%A9seaux+Fibre+optique'),jdecode(''),'/536/11222.html','false',[],'',''],
		['PAGE','11243',jdecode('T%C3%A9l%C3%A9phonie+IP'),jdecode(''),'/536/11243.html','false',[],'',''],
		['PAGE','11264',jdecode('Ing%C3%A9nerie+technique'),jdecode(''),'/536/11264.html','true',[],'','']
	],'',''],
	['PAGE','452',jdecode('Produits'),jdecode(''),'/452/index.html','false',[ 
		['PAGE','473',jdecode('Radios+clients+%28CPE%29'),jdecode(''),'/452/473.html','false',[],'',''],
		['PAGE','494',jdecode('Structures+d%26%23x27%3Bantennes'),jdecode(''),'/452/494.html','false',[],'',''],
		['PAGE','515',jdecode('P%C3%A9riph%C3%A9riques+r%C3%A9seaux'),jdecode(''),'/452/515.html','false',[],'',''],
		['PAGE','10401',jdecode('Boutique+ForSAK'),jdecode(''),'/452/10401.html','false',[],'','']
	],'',''],
	['PAGE','10901',jdecode('Support+technique'),jdecode(''),'/10901.html','true',[],'',''],
	['PAGE','10264',jdecode('Emplois'),jdecode(''),'/10264.html','true',[],'',''],
	['PAGE','10801',jdecode('Liens'),jdecode(''),'/10801.html','false',[],'',''],
	['PAGE','11401',jdecode('OSBL+Internet+%28WISP%29'),jdecode(''),'/11401.html','true',[],'',''],
	['PAGE','599',jdecode('Nous+Joindre'),jdecode(''),'/599.html','true',[],'',''],
	['PAGE','10822',jdecode('Nouvelles'),jdecode(''),'/10822.html','true',[],'',''],
	['PAGE','11101',jdecode('A+propos+de+nous'),jdecode(''),'/11101/index.html','false',[ 
		['PAGE','11122',jdecode('R%C3%A9alisations'),jdecode(''),'/11101/11122.html','true',[],'','']
	],'',''],
	['PAGE','17601',jdecode('HV+%40Rivi%C3%A8re-Rouge'),jdecode(''),'/17601/index.html','true',[ 
		['PAGE','17701',jdecode('Abonnement+r%C3%A9sidentiel'),jdecode(''),'/17601/17701.html','false',[],'',''],
		['PAGE','17722',jdecode('Abonnement+commercial'),jdecode(''),'/17601/17722.html','false',[],'','']
	],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1742';
theSitetree.keyvisualName='ebusiness2.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1742',
				keyvisualName: 	'ebusiness2.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20091102-191938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20081101-211125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20081101-211432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20081101-211501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20081101-211526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090105-205801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20091102-192043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20080212-232915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20100719-172733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10264',
internalId:  '',
customField: '20091102-194052'
};
webappMappings['4001']=webappMappings['4001-12741318']={
webappId:    '4001',
documentId:  '10401',
internalId:  '12741318',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10401',
internalId:  '',
customField: '20081018-221439'
};
webappMappings['7050']=webappMappings['7050-5727']={
webappId:    '7050',
documentId:  '10822',
internalId:  '5727',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10822',
internalId:  '',
customField: '20081101-214135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20081017-001703'
};
webappMappings['7060']=webappMappings['7060-4c2e851c413cf9bcd61916310f750078']={
webappId:    '7060',
documentId:  '11122',
internalId:  '4c2e851c413cf9bcd61916310f750078',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20090105-211918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10222',
internalId:  '',
customField: '20081101-210405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11401',
internalId:  '',
customField: '20091102-194404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20090105-215256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11264',
internalId:  '',
customField: '20091102-194321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11201',
internalId:  '',
customField: '20081017-000920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20091102-193756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11022',
internalId:  '',
customField: '20091102-193647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20081017-002049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10243',
internalId:  '',
customField: '20081101-210431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11222',
internalId:  '',
customField: '20081017-001121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11243',
internalId:  '',
customField: '20081017-001152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11122',
internalId:  '',
customField: '20081017-002016'
};
webappMappings['7008']=webappMappings['7008-9759']={
webappId:    '7008',
documentId:  '10901',
internalId:  '9759',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-10013']={
webappId:    '7008',
documentId:  '17701',
internalId:  '10013',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-10014']={
webappId:    '7008',
documentId:  '17722',
internalId:  '10014',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17722',
internalId:  '',
customField: '20081027-223430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20091006-203749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20081101-214533'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN29NG';
var companyName   = 'ForSAK+TechnoCom';
var htmlTitle	  = 'ForSAK+Technocom+%3A+Solutions+en+T%C3%A9l%C3%A9communication';
var metaKeywords  = 'Communautel+Wi-Fi+WIFI+Internet+Laurentides+SIHL+UQBM+Installation+CPE+Rivi%C3%A8re-Rouge+Mont-Laurier+Macaza+Ste-V%C3%A9ronique+Nominingue+Labelle+Minerve+Kiamika+Explornet+Sympatico+B2B2Cruralit%C3%A9+Conception';
var metaContents  = 'Service+en+t%C3%A9l%C3%A9communication+sans+fil+pour+CommunautelArtiste+en+r%C3%A9seaux+de+t%C3%A9l%C3%A9communicationUn+Qu%C3%A9bec+branch%C3%A9+sur+le+mondefracture+num%C3%A9riquetechnologies+sans+filtechnologie+Internet+Haute+vitesse+large+bande+en+milieu+ruralLe+monde+du+Wi-FiLe+monde+du+sans+filLes+r%C3%A9seaux+de+c%C3%A2blage+structur%C3%A9sLes+pyl%C3%B4nes+dantenne+et+batis+dantennesalle+technique';
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();
};

