/* [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','5101',jdecode('Home'),jdecode(''), jdecode('%2F5101.html'), 'true',[],'',''],
	['PAGE','5152',jdecode('Products'),jdecode(''), jdecode('%2F5152%2Findex.html'), 'true',[ 
		['PAGE','149467',jdecode('Bone+Cutting+Forceps'),jdecode(''), jdecode('%2F5152%2F149467.html'), 'true',[],'',''],
		['PAGE','9722',jdecode('Drill+Bits+-+Jackobs+Chuck'),jdecode(''), jdecode('%2F5152%2F9722.html'), 'true',[],'',''],
		['PAGE','215478',jdecode('Drill+Bits+-+Quick+Connect'),jdecode(''), jdecode('%2F5152%2F215478.html'), 'true',[],'',''],
		['PAGE','152567',jdecode('Forceps'),jdecode(''), jdecode('%2F5152%2F152567.html'), 'true',[],'',''],
		['PAGE','8601',jdecode('K-Wire+-+Smooth'),jdecode(''), jdecode('%2F5152%2F8601.html'), 'true',[],'',''],
		['PAGE','12001',jdecode('K-Wire+-+Threaded'),jdecode(''), jdecode('%2F5152%2F12001.html'), 'false',[],'',''],
		['PAGE','161867',jdecode('K-Wire+and+Pin+Gauge'),jdecode(''), jdecode('%2F5152%2F161867.html'), 'true',[],'',''],
		['PAGE','9885',jdecode('Mallets'),jdecode(''), jdecode('%2F5152%2F9885.html'), 'true',[],'',''],
		['PAGE','9801',jdecode('Pin+%26+Wire+Cutters'),jdecode(''), jdecode('%2F5152%2F9801.html'), 'true',[],'',''],
		['PAGE','54434',jdecode('Pin+%26+Wire+Guards'),jdecode(''), jdecode('%2F5152%2F54434.html'), 'true',[],'',''],
		['PAGE','9906',jdecode('Pliers'),jdecode(''), jdecode('%2F5152%2F9906.html'), 'true',[],'',''],
		['PAGE','9927',jdecode('Retractors'),jdecode(''), jdecode('%2F5152%2F9927.html'), 'true',[],'',''],
		['PAGE','9969',jdecode('Rongeur+Forceps'),jdecode(''), jdecode('%2F5152%2F9969.html'), 'true',[],'',''],
		['PAGE','9990',jdecode('Scissors'),jdecode(''), jdecode('%2F5152%2F9990.html'), 'true',[],'',''],
		['PAGE','9701',jdecode('Steinmann+Pin+-+Smooth'),jdecode(''), jdecode('%2F5152%2F9701.html'), 'true',[],'',''],
		['PAGE','9948',jdecode('Steinmann+Pin+-+Thread'),jdecode(''), jdecode('%2F5152%2F9948.html'), 'false',[],'',''],
		['PAGE','9843',jdecode('Sterilization+and+Disp.'),jdecode(''), jdecode('%2F5152%2F9843.html'), 'true',[],'','']
	],'',''],
	['PAGE','5173',jdecode('About+us'),jdecode(''), jdecode('%2F5173.html'), 'true',[],'',''],
	['PAGE','5194',jdecode('Contact'),jdecode(''), jdecode('%2F5194.html'), 'true',[],'',''],
	['PAGE','16601',jdecode('K-Wires'),jdecode(''), jdecode('%2F16601.html'), 'false',[],'',''],
	['PAGE','17201',jdecode('Steinmann+Pins'),jdecode(''), jdecode('%2F17201.html'), 'false',[],'',''],
	['PAGE','41823',jdecode('Steri+Case+for+Drills'),jdecode(''), jdecode('%2F41823.html'), 'false',[],'',''],
	['PAGE','41523',jdecode('Steri+Case+for+K-Wire+%26+S-Pins'),jdecode(''), jdecode('%2F41523.html'), 'false',[],'',''],
	['PAGE','9864',jdecode('Forceps+for+Pulling+and+Twisting+Wire'),jdecode(''), jdecode('%2F9864.html'), 'false',[],'',''],
	['PAGE','163967',jdecode('E-mail+Contact'),jdecode(''), jdecode('%2F163967.html'), 'true',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1754';
theSitetree.keyvisualName='krankenhaus.jpg';
theSitetree.fontsetId='291';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1754',
				keyvisualName: 	'krankenhaus.jpg',
				fontsetId: 		'291',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20111111-103423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5152',
internalId:  '',
customField: '20110927-110252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5173',
internalId:  '',
customField: '20111111-103935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5194',
internalId:  '',
customField: '20101102-145737'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20111026-162927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9948',
internalId:  '',
customField: '20111026-163855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20111026-163828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9722',
internalId:  '',
customField: '20111026-162733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20111026-163540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20111026-163006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9843',
internalId:  '',
customField: '20111026-163958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9864',
internalId:  '',
customField: '20111012-121021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9885',
internalId:  '',
customField: '20110629-100212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9906',
internalId:  '',
customField: '20111026-163723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9927',
internalId:  '',
customField: '20110629-100707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9969',
internalId:  '',
customField: '20111026-163756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9990',
internalId:  '',
customField: '20110629-100917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20120109-135113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17201',
internalId:  '',
customField: '20120109-135031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41523',
internalId:  '',
customField: '20110928-153837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41823',
internalId:  '',
customField: '20111026-172617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54434',
internalId:  '',
customField: '20111026-163624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149467',
internalId:  '',
customField: '20111026-162620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161867',
internalId:  '',
customField: '20111026-163429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152567',
internalId:  '',
customField: '20110307-105538'
};
webappMappings['7008']=webappMappings['7008-9892']={
webappId:    '7008',
documentId:  '163967',
internalId:  '9892',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163967',
internalId:  '',
customField: '20101102-151853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215478',
internalId:  '',
customField: '20111111-103305'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INLTGY';
var companyName   = 'Simpex+Medical%2C+Inc.';
var htmlTitle	  = 'Simpex+Medical%2C+K-wire%2C+Steinmann+Pins%2C+Drill+Bits%2C+orthopedic%2C+surgical+instruments%2C+kirschner%2C+simplex';
var metaKeywords  = 'Simpex+Medical+Kirschner+k-wires+orthopedic+fixation+wire+steinmann+pin+guards+pins+smooth+threaded+single+double+trocar+diamnond+twist+drill+bit+bits++pliers+sterilization+drills+cutter+steinman+simplex+surgery+instruments+surgical+stainmen+orthopaedic+dispensing+cutters+bone+.062+.045+.035+2.0+mm+3.2+4.8+3%2F16+1%2F8+1.6+1.1';
var metaContents  = 'Simpex+Medical+offers+an+extensive+line+of+orthopedic+pins+and++wires+including+K-Wires+%28+Kirschner+Wire%29+and+Steinmann+Pins%2C+drill+bits%2C+pin+and+wire+cutters%2C+orthopedic+surgery+instruments%2C+sterilization+trays%2C+and+other+surgical+supplies.';
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();
};

