var nWS = { 
	init: function(){
	/////////
	
	
	/*Home page fwd and back buttons*/
	$$('.newsButtons').addEvent('mouseover', function() {
			this.effect('opacity',{
					wait:false,
					duration:250
			}).start(.01,.4);
		});
	$$('.newsButtons').addEvent('mouseout', function() {
			this.effect('opacity',{
					wait:false,
					duration:250
			}).start(.4,.01);
		});
	
	
	
	
	var hs4 = new noobSlide({
			box: $('box4'),
			size: 740,
			interval: 8000,
			autoPlay: true,
			handles: $ES('div','newsBut'),/**/
			items: [1,2,3,4],
			fxOptions: {
				duration: 2000,
				transition: Fx.Transitions.Back.easeInOut,
				wait: false,
				onComplete: function(){
							
				}
			},
			buttons: {
				previous: $('backbutton'),
				next: $('fwdbutton')/*,
				play: $('playit'),
				stop: $('stopit')*/
				
			},
			onWalk: function(currentItem){				
				dePage = $('page'+currentItem);
				var i=1;
				for (i=1;i<=4;i++){
					offPage= $('page'+i);
					offPage.setHTML('<img src="../com.rcifre/images/nwsbt-OFF.jpg" width="12" height="12" alt="Page'+i+'" />');
				}
				dePage.setHTML('<img src="../com.rcifre/images/nwsbt-ON.jpg" width="12" height="12" alt="Page '+currentItem+'" />');
			
			}
		});
	
	
	
	///////
	}
}


	

window.addEvent('domready', nWS.init.bind(nWS));
