/* [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','801',jdecode('Home'),jdecode(''),'/801.html','true',[],'',''],
	['PAGE','12501',jdecode('Products'),jdecode(''),'/12501.html','true',[],'',''],
	['PAGE','873',jdecode('Contact'),jdecode(''),'/873.html','true',[],'','']];
var siteelementCount=3;
theSitetree.topTemplateName='Powering';
theSitetree.paletteFamily='FD7100';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10382';
theSitetree.graphicsetId='10570';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='808080';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Powering',
				paletteFamily: 	'FD7100',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10382',
				graphicsetId: 	'10570',
				contentColor: 	'FFFFFF',
				contentBGColor: '808080',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20091029-155709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '873',
internalId:  '',
customField: '20091028-212828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20091029-161206'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010IN3LMW';
var companyName   = 'HYBRID++Pty+Ltd+';
var htmlTitle	  = 'Hybrid+Australia++++++++Kayaks++Architecture+++Photography';
var metaKeywords  = 'Kayak+foot+pump%2C+kayak+bilge+pumps%2C+kayak+hands+free+pump%2C+sea+kayak+hands+free+pumps%2C+kayak+sails%2C+kayak+telescopic+sails%2C+sea+kayak%2C+surf+kayaks%2C+playboats%2C+acoustic+wall+panels%2C+acoustic+ceiling+panels%2C+acoustic+wall+tiles%2C+acoustic+ceiling+tiles%2C+commerical+interior+design%2C++residential+interior+design%2C+interior+design%2C+restaurant+acoustic+panels%2C+cafe+acoustic+panels%2C+telescopic+kayak+sail%2C+kayak+sail+++kayak+pump%2C+Yakima+mount%2C+Werner+mount%2C+Stich+and+Glue%2C+SG%2C+sea+kayak+design%2C+sea+kayak+design+consultancy%2C+sea+kayak+safety+gear%2C+sea+Kayak++safety+gear+design%2C+Restaurant+Acoustic+Panels%2C+Cafe+Acoustic+Panels%2C+r+service%2C+Brother+fax+service%2C+HP+fax+service%2C+Lexmark+printer+service%2C+Canon+fax+service%2C+Oki+printer+service%2C+Sagem+fax+service%2C+kayak+gear%2C+outdoor+gear%2C+camping+gear%2C+architecture%2C+design%2C+interior+design%2C+Council+plans%2C+acoustic+panels%2C+restaurant+panels%2C+cafe+panels%2C+restaurant+tiles%2C+cafe+tiles%2C+6+panel+hull%2C+world+first%2C+Yakima%2C+Werner%2C+Yakima+kayak+mount%2C+Werner+kayak+mount%2C+kayak+foot+pump%2C+foot+pump+kit%2C+kayak+foot+pump+kit%2C+surf+kayak%2C+sea+kayak%2C+kayak+design+consultancy+Hybrid+kayak+design%2C+Hybrid+kayak+sails%2C+Hybrid+telescopic+kayak+sails%2C+Hybrid+kayak+foot+pump%2C+Hybrid+sea+kayaks%2C+Hybrid+sea+kayak+design%2C+Guzzler%2C+foot+pump+Guzzler%2C+kayak+Guzzler+foot+pump+kit%2C+kayak+with+wheels%2C+kayak+for+double+leg+amputees%2C+kayak+for+paraplegics%2C+world+first+ever+kayak+with+wheels%2C+Hybrid+Unlimited%2C+new+house+design%2C+bathroom+and+kitchen+design%2C+aluminium+louvres%2C+shade+sails%2C+photography%2C+event+photography%2C+wedding+photography%2C+real+estate+photography%2C+cameras%2C+images%2C+outdoor+photography%2C+expedition+photography';
var metaContents  = 'Photography+DESIGN+++Acoustic+Wall+and+Ceiling+Panels++Commercial+and+Residential+Interiors++Design+and+Development+of+New+Dwellings++++++++++++KAYAKS+and++OUTDOORS+++Telescopic+Sails+++Kayak+Pump+++Kayaks++++++ARCHITECTURE+ACOUSTIC+++Wall+and+Ceiling+Panels++COMMERCIAL++Interior++Design+RESIDENTIAL++Interior++Design+RESTAURANTS++Cafes+supplied+with+Acoustic+Panels+DESIGN+and++Development+of++new+dwellings+++Plans+for+Council++WORLDS+FIRST++6+Panel+Stitch++Glue++Sea+Kayak+Hull+++Launched+2002++WORLDS+FIRST+TELESCOPIC+KAYAK+SAIL++Launched+2006+WORLDS+FIRST+KAYAK+Pump+Yakima+%28Werner%29+mount+Launched+2007+SEA+TO+SUMMIT++Outdoor+Products++Equipment+and+Gear+SEA+KAYAK+Safety+Gear+Design+Consultancy++++++++Email%3A+hybrid8%40bigpond.com+++++++++++++++++++++++++++ABN%3A+55+058+871+202++++++++++++EST%3A+1992++++++++++++++++++Sydney+Telephone%3A+++++9211+5522+++++++++++++++++++++++International+Telephone%3A+%2B+61++2++9211+5522+++++++++We+accept+payments+by++CHEQUE+VISA%2C+MASTERCARD+AMERICAN+EXPRESS+++++++++++++Address%3A++9++Belmore+Street+Surry+Hills+NSW+2010++Australia++++All+brand+names+mentioned+on+this+website+are+for+reference+purposes+only+and+copyright+and+trademarks+are+held+by+their+respective+owners.+++++';
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();
};
