var obj;
var so;
var cont;	
$(document).ready(function(){

	startSlider();
	
	});
	
function startSlider(){

	document.getElementById("imgSlider").src="./slideshow/"+lan+"/homeimage1.jpg";
	cont=1;
	$("#imgSlider").bind("load", function(){
 		intervalSlider=setTimeout('goSlide()', 4800);
		jQuery("#imgSlider").fadeIn('slow', function(){
		
		});
	});
	}
	
function goSlide(){
	
	cont++;
	if(cont>6){
		cont=1;
		}
	$("#imgSlider").unbind("load");
	clearTimeout (intervalSlider);
	jQuery("#imgSlider").fadeOut("normal", function(){
		
		document.getElementById("imgSlider").src="./slideshow/"+lan+"/homeimage"+cont+".jpg";
		});
		
	$("#imgSlider").bind("load", function(){
 		intervalSlider=setTimeout('goSlide()',4800);
			jQuery("#imgSlider").fadeIn('slow', function(){
		
		});
	});
	
	}
