/*var stopcounter = 0;
var stopped = false;
function hookafter()
{
	arg = arguments[2];
	if(!stopcounter && !stopped)
	{
		stopcounter = arg.countdown + 1;
		arg.autostop = 0;
	}
	if(stopcounter > 0) stopcounter = stopcounter - 1;
	if(!stopcounter) $('#mainstory_banner').cycle("stop"), stopped = true;
}*/


//jQuery(document).ready(function() {
// jQuery(function($) {
$(window).load(function() {
 $('#mainstory_banner').cycle({ 
    fx:     'fade', 
    timeout: 2000,
	speed: 2000,
	next:   '#mainstory_next', 
    prev:   '#mainstory_prev',
	pause:       1,
	//autostop:    1,
	pagerClick:  function(i, nextSlide) {
        //alert("Pager button " + i + " was clicked");
    },
	pager:  ''
 });
});
