
//code below handles the lead story fader
var current = 1;
var fadeTime = 500;
var lockOut=false;	
var x;	

function ClearLockout(){lockOut=false;}

function CycleLeadTimer(){if (lockOut==false){CycleRight()}}

function CycleRight()
{	var	toShow = "#Lead" + current;
	$(toShow).fadeOut(fadeTime);
	current += 1
	if (current > rCnt + 1){current=1}
	toShow = "#Lead" + current;
	$(toShow).fadeIn(fadeTime);		
}

function CycleLeft()
{	var	toShow = "#Lead" + current;
	$(toShow).fadeOut(fadeTime);
	current -= 1
	if (current < 1 ){current=rCnt + 1}
	toShow = "#Lead" + current;
	$(toShow).fadeIn(fadeTime);		
}


function goLeft()
{
  lockOut=true;
  clearTimeout(x); 	
  CycleLeft()	
  x=setTimeout("ClearLockout();",10000); 
}

function goRight(){
    lockOut=true;
    clearTimeout(x); 
    CycleRight();
    x=setTimeout("ClearLockout();",10000);
    }
