/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','108601',jdecode('Rodman+MUSE'),jdecode(''),'/108601.html','true',[],''],
	['PAGE','60801',jdecode('Rodman+Yachts'),jdecode(''),'/60801/index.html','true',[ 
		['PAGE','578',jdecode('38%26%23x27%3B+Rodman+Yacht'),jdecode(''),'/60801/578.html','true',[],''],
		['PAGE','2085',jdecode('41%26%23x27%3B+Rodman+Yacht'),jdecode(''),'/60801/2085.html','true',[],''],
		['PAGE','620',jdecode('64%26%23x27%3B+Rodman+Yacht'),jdecode(''),'/60801/620.html','true',[],'']
	],''],
	['PAGE','61201',jdecode('Rodman+Fisher+%26+Cruiser'),jdecode(''),'/61201/index.html','true',[ 
		['PAGE','494',jdecode('R+670'),jdecode(''),'/61201/494.html','true',[],''],
		['PAGE','65601',jdecode('R+810'),jdecode(''),'/61201/65601.html','true',[],''],
		['PAGE','65301',jdecode('R+870'),jdecode(''),'/61201/65301.html','true',[],''],
		['PAGE','118001',jdecode('R+940+'),jdecode(''),'/61201/118001.html','true',[],''],
		['PAGE','2001',jdecode('R+1040+'),jdecode(''),'/61201/2001.html','true',[],''],
		['PAGE','2022',jdecode('R+1170+'),jdecode(''),'/61201/2022.html','true',[],''],
		['PAGE','2043',jdecode('R+1250'),jdecode(''),'/61201/2043.html','true',[],''],
		['PAGE','2064',jdecode('R+1250+FP'),jdecode(''),'/61201/2064.html','true',[],'']
	],''],
	['PAGE','683',jdecode('SAS+Vektor+'),jdecode(''),'/683/index.html','true',[ 
		['PAGE','80701',jdecode('Adria+Vektor+950'),jdecode(''),'/683/80701.html','true',[],''],
		['PAGE','80722',jdecode('Adria+Vektor+1002'),jdecode(''),'/683/80722.html','true',[],''],
		['PAGE','184624',jdecode('Adriana+36'),jdecode(''),'/683/184624.html','true',[],''],
		['PAGE','124724',jdecode('Adriana+44'),jdecode(''),'/683/124724.html','true',[],'']
	],''],
	['PAGE','58301',jdecode('Rabljena+plovila'),jdecode(''),'/58301.html','true',[],''],
	['PAGE','85701',jdecode('Servisne+storitve'),jdecode(''),'/85701.html','true',[],''],
	['PAGE','767',jdecode('Povezave'),jdecode(''),'/767.html','true',[],''],
	['PAGE','788',jdecode('O+nas'),jdecode(''),'/788.html','true',[],''],
	['PAGE','58322',jdecode('Kontakt'),jdecode(''),'/58322.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Gaudy';
theSitetree.paletteFamily='5C5D96';
theSitetree.keyvisualId='5964';
theSitetree.keyvisualName='kv_5964.jpg';
theSitetree.fontsetId='20277';
theSitetree.graphicsetId='11905';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='6E8BCE';
var theTemplate={
				name: 			'Gaudy',
				paletteFamily: 	'5C5D96',
				keyvisualId: 	'5964',
				keyvisualName: 	'kv_5964.jpg',
				fontsetId: 		'20277',
				graphicsetId: 	'11905',
				contentColor: 	'000000',
				contentBGColor: '6E8BCE',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '58322',
internalId:  '490330',
customField: 'sl:SI:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20091112-084842'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '61201',
internalId:  '',
customField: '20090922-010649'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20060205-000448'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '65601',
internalId:  '',
customField: '20080501-132606'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '65301',
internalId:  '',
customField: '20060204-232608'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '118001',
internalId:  '',
customField: '20070131-151120'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20080501-130841'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2022',
internalId:  '',
customField: '20080501-130953'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2043',
internalId:  '',
customField: '20080501-131051'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2064',
internalId:  '',
customField: '20080501-131231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '60801',
internalId:  '',
customField: '20080501-131502'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20060207-110516'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2085',
internalId:  '',
customField: '20060207-111024'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20060207-111403'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '108601',
internalId:  '',
customField: '20090922-010001'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20091112-084755'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80701',
internalId:  '',
customField: '20070307-053603'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80722',
internalId:  '',
customField: '20070307-052216'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '124724',
internalId:  '',
customField: '20091112-084920'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58301',
internalId:  '',
customField: '20100629-233251'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '85701',
internalId:  '',
customField: '20070217-225726'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '767',
internalId:  '',
customField: '20090922-010745'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '788',
internalId:  '',
customField: '20100616-234532'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58322',
internalId:  '',
customField: '20100629-233231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '184624',
internalId:  '',
customField: '20091112-084819'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASI010INXFBC';
var companyName   = '++++SB+JAHT+';
var htmlTitle	  = 'www.sbyacht.si';
var metaKeywords  = 'SB+JAHT%2C+SB+YACHT%2C+Adriana+44%2C+Adriana+36%2C++Rodman%2C+SAS++Vektor%2C++Triplast+jadrnice%2C++%C4%8Darter%2C+charter%2C+yacht+broker%2C+jadrnice%2C+motorna+jahta%2C+sail+boat%2C+motor+boat%2C++Elan%2C+Beneteau%2C+Jeanneau%2C+used+boats%2C+rabljene+barke%2C+servis+plovil%2C++adriana+44%2C+yacht+surveying%2C+sodni+cenilec%2C+yacht+transport%2C+prevoz+plovil%2C+%C4%8Darter+management%2C+charter+management%2C+yacht+brokerage%2C+second+hand+boats%2C+';
var metaContents  = 'SB+JAHT+Slovenia+';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
