/* [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','701',jdecode('Spyder3Elite'),jdecode(''),'/701.html','true',[],''],
	['PAGE','77701',jdecode('Spyder3Pro'),jdecode(''),'/77701.html','true',[],''],
	['PAGE','77722',jdecode('Spyder3Studio'),jdecode(''),'/77722.html','true',[],''],
	['PAGE','77743',jdecode('Spyder3Print'),jdecode(''),'/77743.html','true',[],''],
	['PAGE','77764',jdecode('Spyder2express+'),jdecode(''),'/77764.html','true',[],''],
	['PAGE','77785',jdecode('Spyder3TV+'),jdecode(''),'/77785.html','true',[],''],
	['PAGE','77806',jdecode('SpyderTV+PRO+'),jdecode(''),'/77806.html','true',[],''],
	['PAGE','91701',jdecode('Ksi%C4%99ga+Go%C5%9Bci'),jdecode(''),'/91701.html','true',[],''],
	['PAGE','91722',jdecode('Wyszukiwartka'),jdecode(''),'/91722.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Sedan';
theSitetree.paletteFamily='556698';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='30300';
theSitetree.graphicsetId='11106';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Sedan',
				paletteFamily: 	'556698',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'30300',
				graphicsetId: 	'11106',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'556698',
				e_color: 		'556698',
				f_color: 		'556698',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20080817-111956'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '77806',
internalId:  '',
customField: 'language:pl;country:PL;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '77764',
internalId:  '',
customField: 'language:pl;country:PL;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '77785',
internalId:  '',
customField: 'language:pl;country:PL;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '701',
internalId:  '',
customField: 'language:pl;country:PL;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '91722',
internalId:  '',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91722',
internalId:  '',
customField: '20080817-144656'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '77701',
internalId:  '',
customField: 'language:pl;country:PL;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '77722',
internalId:  '',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77701',
internalId:  '',
customField: '20080817-114624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77722',
internalId:  '',
customField: '20080817-114705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77743',
internalId:  '',
customField: '20080817-114719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77764',
internalId:  '',
customField: '20080817-114802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77785',
internalId:  '',
customField: '20080817-114835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77806',
internalId:  '',
customField: '20080817-112453'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '77743',
internalId:  '',
customField: 'language:pl;country:PL;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '91701',
internalId:  '',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91701',
internalId:  '',
customField: '20080817-144655'
};
webappMappings['1002']=webappMappings['1002-91701ahpl10in3gf4']={
webappId:    '1002',
documentId:  '91701',
internalId:  '91701ahpl10in3gf4',
customField: 'icq=false'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '91722',
internalId:  'search',
customField: 'language:pl;country:PL;'
};
var canonHostname = 'wsc2.home.net.pl';
var accountId     = 'AHPL10IN3GF4';
var companyName   = 'Kalibratory+monitor%C3%B3w%2C+drukarek%2C+telewizor%C3%B3w';
var htmlTitle	  = 'ColorVision+kalibratory+monitor%C3%B3w%2C+drukarek%2C+telewizor%C3%B3w';
var metaKeywords  = 'kalibratory+monitor%C3%B3w%2C+kalibracja+monitora%2C+kalibratory+monitora%2C+kalibracja%2C+kalibrator+monitora%2C+kalibracja+telewizora%2C+spyder3elite%2C+spyder3pro%2C+spyder3studio%2C+spyder3print%2C+spyder2express%2C+spyder3tv%2C+spydertv+pro%2C+datacolor%2C+colorvision%2C+poligrafia%2C+pantone%2C+druk';
var metaContents  = 'ColorVision+%E2%80%93+wielokrotnie+nagradzane+narz%C4%99dzia+do+zarz%C4%85dzania+i+kontroli+koloruColorVision+to+linia+popularnych+produkt%C3%B3w+zarz%C4%85dzania+barw%C4%85+dla+fotografik%C3%B3w%2C+projektant%C3%B3w+graficznych+oraz+producent%C3%B3w+wideo.+W+sk%C5%82ad+oferty+ColorVision+wchodz%C4%85+doskona%C5%82e+narz%C4%99dzia+do+korekty+kolorystycznej+w%C5%82%C4%85czaj%C4%85c+kalibratory+monitorowe%2C+rozwi%C4%85zania+do+profilowania+drukarek+oraz+systemy+kalibracji+TV.+Spyder3+to+obecnie+standard+precyzyjnej+kalibracji+monitor%C3%B3w+dost%C4%99pny+dla+u%C5%BCytkownik%C3%B3w+na+ka%C5%BCdym+poziomie+zaawansowania.';
					                                                                    
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 */					                                                            
