
    	function slider_ticker() {
    		
    		idToHide = icurrentpicture;
    		
    		icurrentpicture ++;
    		
    		idToShow = icurrentpicture;
    		
    		if(idToShow == ipictures+1) {
    			icurrentpicture = 1;
    			idToShow = icurrentpicture;
    			
    		}
    		
    		display_picture(idToHide,idToShow);
    		
    		if(dev_status == 'DEV' && stop_slider == true)
    			log("Slider stopped");
    		else
		    	setTimeout('slider_ticker()', timer);    		
    	}
    	
    	function display_picture(idToHide,idToShow) {

			//   ** Glitch  Report  **
			//   ** 14 November 10  **
			//   Last picture (#6) , showed up badly, the id to hide (#1) was 
			//   too slow to hide  and we got two pictures at the same time
			//   - during a few MS -
			
			// Next IF is a hack regarding the glitch report above
			if(idToHide == ipictures && idToShow == idefaultpicture) {
				log('glitch hack');
				hidecontent(htmlsliderid + ipictures);
				hidecontent(htmlslidertextid + ipictures)
				
				setTimeout(function(){
					showcontent(htmlsliderid + idefaultpicture);
					showcontent(htmlslidertextid + idefaultpicture);
					log('----------------');					
				},600);
				
			} 
			// end of the hack			
			
			else {
		
				if(idToHide != 0) {
					hidecontent(htmlsliderid + idToHide);
					hidecontent(htmlslidertextid + idToHide);
				}
				
				setTimeout(function(){
					showcontent(htmlslidertextid + idToShow);			
					showcontent(htmlsliderid + idToShow);
			log('----------------');					
				},600);
				
			}

    	}
    	
    	function hidecontent(id) {
    		log("Hidding " + id);
    		$('#' + id).fadeOut('slow');
    	}
    	function showcontent(id) {
    		log("Showing " + id);
    		$('#' + id).fadeIn('slow');
    	}
    	
    	
    			// jQuery based image slider
		$(document).ready(function(){
		
			$('#jsearch').val(default_search_value);
			
	    	setTimeout('slider_ticker()', timer);	
	    
		});
		


