/* [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 theSitetree=[ 
	['PAGE','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Products'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','473',jdecode('Indirect+bonding+products'),jdecode(''),'/452/473.html','true',[],''],
		['PAGE','494',jdecode('Featured+headgear+'),jdecode(''),'/452/494.html','true',[],''],
		['PAGE','11301',jdecode('Headgear+Catalog'),jdecode(''),'/452/11301.html','true',[],''],
		['PAGE','15501',jdecode('Basics+of+Headgear'),jdecode(''),'/452/15501.html','true',[],''],
		['PAGE','515',jdecode('Auxillary+products'),jdecode(''),'/452/515.html','true',[],''],
		['PAGE','641',jdecode('Directions+and+MSDS+'),jdecode(''),'/452/641.html','true',[],'']
	],''],
	['PAGE','8601',jdecode('Whats+new'),jdecode(''),'/8601.html','true',[],''],
	['PAGE','536',jdecode('About+us'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','17101',jdecode('Map'),jdecode(''),'/536/17101.html','true',[],'']
	],''],
	['PAGE','9101',jdecode('Terms+and+Conditions'),jdecode(''),'/9101.html','true',[],''],
	['PAGE','662',jdecode('Interesting+links'),jdecode(''),'/662.html','true',[],''],
	['PAGE','17006',jdecode('Guestbook'),jdecode(''),'/17006/index.html','true',[ 
		['PAGE','17001',jdecode('Read+Guestbook'),jdecode(''),'/17006/17001.html','false',[],'']
	],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Job';
theSitetree.paletteFamily='B1B0B0';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10656';
theSitetree.graphicsetId='10757';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='B1B0B0';
var theTemplate={
				name: 			'Job',
				paletteFamily: 	'B1B0B0',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10656',
				graphicsetId: 	'10757',
				contentColor: 	'FFFFFF',
				contentBGColor: 'B1B0B0',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'494848',
				e_color: 		'494848',
				f_color: 		'494848',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20071008-212807'
};
webappMappings['1002']=webappMappings['1002-17006AHW050INE1QQ']={
webappId:    '1002',
documentId:  '17006',
internalId:  '17006AHW050INE1QQ',
customField: 'icq=false'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '17101',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20071008-203325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20071008-191807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20071008-220316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20071008-213356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20071008-202213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20071008-191253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20071008-161150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20071008-183603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20071008-215512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20071008-214923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9101',
internalId:  '',
customField: '20071008-154215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20071008-160237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17006',
internalId:  '',
customField: '20071008-203426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17001',
internalId:  '',
customField: '20071008-203426'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INE1QQ';
var companyName   = 'Ortho+Kinetics+Corporation';
var htmlTitle	  = 'Ortho+Kinetics+Corporation-+Orthodontic+products';
var metaKeywords  = 'Orthodontic+headgear%2C+dental+headgear%2C+orthodontic+facebows%2C+orthodontic+force+modules%2C+orthodontic+compliance+monitoring%2C+orthodontic+force+systems%2C+dental+manufacturing%2C+orthodontic+product+development%2C+orthodontic+pillows%2C+orthodontic+cushions%2C+extraoral+force+systems%2C+traction+extraoral%2C+arco+extraoral%2C+orthodontic+indirect+bonding%2C+IDBS%2C+indirect+bonding%2C+curing+lights%2C+storage+cases%2C+Emiluma%2C+Quick+IDBS%2C+NewGear%2C+Nitro%2C+NiForce%2C+ClassIII%2B%2C+Compliance+Science%2C+Affirm+smart+headgear%2C+EZOrtho+light%2C+EZ+light+stick';
var metaContents  = 'Ortho+Kinetics+Corporation+is+a+manufacturer+of+orthodontic+ie+dental+headgear+and+force+systems.++Our+products+include+orthodontic+facebows%2C+headgear%2C+reverse+pull+masks%2C+headgear+bags%2C+ligatures%2C+bite+plate+facebows+and+other+items+used+by+orthodontic+professionals+in+the+correction+of+malocclusions+%28crooked+teeth%29.++Ortho+Kinetics+is+a+FDA+registered%2C+GMP+compliant+manufacturer+of+CE+marked+orthodontic+products.';
					                                                                    
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) {														 
    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();
}
/* EOF */					                                                            
