var jsContentBoxes={
	start:function(){
		if(document.getElementById('contentBoxes')==null)return false;
		var contentBoxes = document.getElementById('contentBoxes').getElementsByTagName('ul')[0];
		var items= new Array();
		if(contentBoxes){
			for (var a=0;a<contentBoxes.childNodes.length;a++){
				if(contentBoxes.childNodes[a].tagName=='LI'){
					contentBoxes.childNodes[a].items = items;
					items.push(contentBoxes.childNodes[a]);
					contentBoxes.childNodes[a].onclick = function(){
						for (var b=0;b<this.items.length;b++){
							this.items[b].className='';
						}
						this.className='current';
					}
				}
			}
			
		}
	},	
	init:function(){
		var This=this;
		if(typeof(window.addEventListener)!='undefined'){
			window.addEventListener('load',function(){This.start();},false);
		}else if(typeof(document.addEventListener)!='undefined'){
			document.addEventListener('load',function(){This.start();},false);
		}else if(typeof(window.attachEvent)!='undefined'){
			window.attachEvent('onload', function(){This.start()});
		}
	}	
	
};jsContentBoxes.init();
