var cs = 1;
var goOn = true;
var csState = new Array(false,0,0,0,0,0,0,0,0);
function runSlide(){
    var options = {};
    if(csState[cs]){
        csState[cs] = 0;
        //$("#s"+cs).hide();
		$("#s"+cs).animate({opacity: 'hide'}, 3000);
    	cs++;
	} else {
	    csState[cs] = 1;
	    //$("#s"+cs).show();
	    $("#s"+cs).animate({opacity: 'show'}, 5000);
	}

    if(cs >= csState.length) cs = 1;
    if(goOn) setTimeout('runSlide();',2000);
}
