





	function addEvents() {
	   var button= document.getElementsByTagName("img");
	   for(i=0;i<button.length;i++) {
	    if(button[i].parentNode.tagName=="A") {
		 	button[i].i1=new Image();	button[i].i1.src= button[i].src;
		 	button[i].i2=new Image();	button[i].i2.src= button[i].src.replace(/1(.gif)$/,"2$1");
			button[i].onmouseover= function() { this.src=this.i2.src; }
			button[i].onmouseout = function() { this.src=this.i1.src; }
			button[i].onfocus	 = function() { this.blur(); }
	   }}
	}
	




	function felir() {
		hf.hir.value=1;
		hf.submit();
	}
	function leir() {
		hf.hir.value=-1;
		hf.submit();
	}
	function reset() {	
		f= document.forms;
		for(i=0;i<f.length;i++) { f[i].reset(); }
	}



	function search() {
		str= document.getElementById('sid').value;
		location.href= ".?"+str;
	}
	





	
	function setupHs() {
		hs.graphicsDir = 'css/hs/';
		hs.align = 'center';
		hs.transitions = ['expand', 'crossfade'];
		hs.outlineType = 'rounded-white';
		hs.numberPosition = 'caption';
		hs.dimmingOpacity = 0.30;
		hs.dimmingDuration= 100;
		hs.expandDuration = 200;
		hs.restoreDuration= 0;
	
		// Add the controlbar
		if (hs.addSlideshow) hs.addSlideshow({
			//slideshowGroup: 'group1',
			interval: 5000,
			repeat: true,
			useControls: true,
			fixedControls: 'fit',
			overlayOptions: {
				opacity: 0.60,
				position: 'bottom center',
				hideOnMouseOut: true
			}
		});
	}
	




	
	window.onload = function() {
	  addEvents();
	}
	
	setupHs();
	
	
	
