/* [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','4437',jdecode('B+I+O+G+E+L'),jdecode(''),'/4437.html','true',[],'',''],
	['PAGE','130201',jdecode('News'),jdecode(''),'/130201.html','true',[],'',''],
	['PAGE','8891',jdecode('Solutions'),jdecode(''),'/8891/index.html','true',[ 
		['PAGE','157001',jdecode('Quality+Management'),jdecode(''),'/8891/157001.html','true',[],'',''],
		['PAGE','330843',jdecode('ISO+-+Certificate'),jdecode(''),'/8891/330843.html','true',[],'',''],
		['PAGE','330870',jdecode('GMP+-+Certificate'),jdecode(''),'/8891/330870.html','true',[],'','']
	],'',''],
	['PAGE','144603',jdecode('What+is+gelatin'),jdecode(''),'/144603/index.html','true',[ 
		['PAGE','157701',jdecode('Amino+acids'),jdecode(''),'/144603/157701.html','true',[],'','']
	],'',''],
	['PAGE','144630',jdecode('Raw+materials'),jdecode(''),'/144630.html','true',[],'',''],
	['PAGE','8972',jdecode('Type+A+or+B'),jdecode(''),'/8972.html','true',[],'',''],
	['PAGE','8999',jdecode('The+Mesh+1+x+1'),jdecode(''),'/8999/index.html','true',[ 
		['PAGE','157728',jdecode('Particle+size+spectres'),jdecode(''),'/8999/157728.html','true',[],'',''],
		['PAGE','206572',jdecode('Mesh-Documentation+%28follow+up+page%29'),jdecode(''),'/8999/206572.html','false',[],'',''],
		['PAGE','367392',jdecode('Micronisation+Technology'),jdecode(''),'/8999/367392.html','true',[],'','']
	],'',''],
	['PAGE','355892',jdecode('Gelatin+properties'),jdecode(''),'/355892/index.html','true',[ 
		['PAGE','356492',jdecode('Dissolving+Gelatin'),jdecode(''),'/355892/356492.html','true',[],'',''],
		['PAGE','356519',jdecode('Concentration'),jdecode(''),'/355892/356519.html','true',[],'',''],
		['PAGE','356546',jdecode('Viscosity'),jdecode(''),'/355892/356546.html','true',[],'',''],
		['PAGE','356573',jdecode('Melting+Temperatures'),jdecode(''),'/355892/356573.html','true',[],'','']
	],'',''],
	['PAGE','221372',jdecode('Applications'),jdecode(''),'/221372/index.html','true',[ 
		['PAGE','144903',jdecode('Your+Application'),jdecode(''),'/221372/144903.html','true',[],'','']
	],'',''],
	['PAGE','378492',jdecode('G+E+L+I%26%23x27%3B+M+A+T+E++'),jdecode(''),'/378492/index.html','true',[ 
		['PAGE','205935',jdecode('Applying+Gelatin+%28Folgeseite%29'),jdecode(''),'/378492/205935.html','false',[],'','']
	],'',''],
	['PAGE','303435',jdecode('V+I+T+A+G+E+L+++Hydrolysates'),jdecode(''),'/303435/index.html','true',[ 
		['PAGE','351392',jdecode('For+active+living'),jdecode(''),'/303435/351392.html','true',[],'',''],
		['PAGE','351419',jdecode('Composition+of+VITAGEL'),jdecode(''),'/303435/351419.html','true',[],'',''],
		['PAGE','351446',jdecode('Functionality'),jdecode(''),'/303435/351446.html','true',[],'',''],
		['PAGE','351473',jdecode('VITAGEL+Products'),jdecode(''),'/303435/351473.html','true',[],'',''],
		['PAGE','351500',jdecode('Properties+of+VITAGEL'),jdecode(''),'/303435/351500.html','true',[],'',''],
		['PAGE','351527',jdecode('Quick+solubility'),jdecode(''),'/303435/351527.html','true',[],'',''],
		['PAGE','377960',jdecode('Halal+Certificates'),jdecode(''),'/303435/377960.html','true',[],'',''],
		['PAGE','352592',jdecode('Sample+Order'),jdecode(''),'/303435/352592.html','true',[],'','']
	],'',''],
	['PAGE','356892',jdecode('Literature'),jdecode(''),'/356892.html','true',[],'',''],
	['PAGE','130228',jdecode('Environment'),jdecode(''),'/130228.html','true',[],'',''],
	['PAGE','130255',jdecode('Logistics+'),jdecode(''),'/130255/index.html','true',[ 
		['PAGE','390660',jdecode('Certification'),jdecode(''),'/130255/390660.html','true',[],'','']
	],'',''],
	['PAGE','130309',jdecode('Contact'),jdecode(''),'/130309.html','true',[],'',''],
	['PAGE','360292',jdecode('Imprint'),jdecode(''),'/360292.html','true',[],'',''],
	['PAGE','366892',jdecode('Disclaimer'),jdecode(''),'/366892.html','true',[],'',''],
	['PAGE','392665',jdecode('Anfahrt'),jdecode(''),'/392665.html','true',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Blog';
theSitetree.paletteFamily='649B30';
theSitetree.keyvisualId='11512';
theSitetree.keyvisualName='kv_11512.jpg';
theSitetree.fontsetId='32865';
theSitetree.graphicsetId='13949';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='989696';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Blog',
				paletteFamily: 	'649B30',
				keyvisualId: 	'11512',
				keyvisualName: 	'kv_11512.jpg',
				fontsetId: 		'32865',
				graphicsetId: 	'13949',
				contentColor: 	'FFFFFF',
				contentBGColor: '989696',
				a_color: 		'FFB434',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-8849']={
webappId:    '7008',
documentId:  '8972',
internalId:  '8849',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-8850']={
webappId:    '7008',
documentId:  '130309',
internalId:  '8850',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-8851']={
webappId:    '7008',
documentId:  '144903',
internalId:  '8851',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130201',
internalId:  '',
customField: '20100528-150314'
};
webappMappings['1501']=webappMappings['1501-1954426']={
webappId:    '1501',
documentId:  '4437',
internalId:  '1954426',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4437',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4437',
internalId:  '',
customField: '20100129-171408'
};
webappMappings['7008']=webappMappings['7008-8852']={
webappId:    '7008',
documentId:  '356892',
internalId:  '8852',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-8853']={
webappId:    '7008',
documentId:  '355892',
internalId:  '8853',
customField: 'language:de;country:CH;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '392665',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['7008']=webappMappings['7008-8848']={
webappId:    '7008',
documentId:  '352592',
internalId:  '8848',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '392665',
internalId:  '',
customField: '20080530-111751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8891',
internalId:  '',
customField: '20040823-175521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157001',
internalId:  '',
customField: '20081110-133631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '330843',
internalId:  '',
customField: '20081110-123155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '330870',
internalId:  '',
customField: '20080530-101352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144603',
internalId:  '',
customField: '20080530-105049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157701',
internalId:  '',
customField: '20060804-092021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144630',
internalId:  '',
customField: '20081110-132949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8972',
internalId:  '',
customField: '20050818-174902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8999',
internalId:  '',
customField: '20040909-171422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157728',
internalId:  '',
customField: '20040823-132749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206572',
internalId:  '',
customField: '20040903-092734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '367392',
internalId:  '',
customField: '20050221-150223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '355892',
internalId:  '',
customField: '20080530-105626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '356492',
internalId:  '',
customField: '20041015-170002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '356519',
internalId:  '',
customField: '20041015-162657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '356546',
internalId:  '',
customField: '20041015-162447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '356573',
internalId:  '',
customField: '20041015-170338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221372',
internalId:  '',
customField: '20080530-105338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144903',
internalId:  '',
customField: '20040908-175530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '378492',
internalId:  '',
customField: '20100528-145903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205935',
internalId:  '',
customField: '20040903-092734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '303435',
internalId:  '',
customField: '20070502-163039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '351392',
internalId:  '',
customField: '20060804-091745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '351419',
internalId:  '',
customField: '20041007-195538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '351446',
internalId:  '',
customField: '20041007-194444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '351473',
internalId:  '',
customField: '20041007-200404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '351500',
internalId:  '',
customField: '20060804-093646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '351527',
internalId:  '',
customField: '20041007-195122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '377960',
internalId:  '',
customField: '20050824-155519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '352592',
internalId:  '',
customField: '20050818-181249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '356892',
internalId:  '',
customField: '20060804-094140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130228',
internalId:  '',
customField: '20080530-105937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130255',
internalId:  '',
customField: '20081110-132305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '390660',
internalId:  '',
customField: '20070502-161051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130309',
internalId:  '',
customField: '20060804-095032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '360292',
internalId:  '',
customField: '20100528-143017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '366892',
internalId:  '',
customField: '20050111-081744'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INX3YV';
var companyName   = 'B+++I+++O+++G+++E+++L+++++-++++performing+competence+in+Gelatins+and+Collagen+Hydrolysates';
var htmlTitle	  = '';
var metaKeywords  = 'Gelatin+Gelatine+Alimentaire+Speisegelatine+Protein+Collagen+Biogel+Vitagel+Bloom+Pig+Calf+Skin+Hydrolysed+Switzerland+Lucerne+Luzern+Hydrolisierte+Kollagen+pH-value+viscosity+GMP-Certificate+ISO+9001%3A2000+Amino+Acids+mesh+size+Gelatina+Alimentare+Viskosit%C3%A4t+Transparency+Transparenz+Specification+Spezifiktion+essentielle+essential+Rinderspalt+Schweineschwarten+Gallertfestigkeit+Gelly+Strength+L%C3%B6sung+Solution+Molecular+Weight+Molekulargewicht+Giancarlo+Rohn+Roland+Fischer+%C3%8CSO+22000%3A2005+Arthrose';
var metaContents  = 'Welcome+to+the+world+of+BIOGEL+Tailor+-+Made+Gelatin.+The+solution+provider+for+gelatin+applications+in+food+and+pharmaceutical+products.+Call+%2B41+41+418+40+50';
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();
};
