var last_idx = 1;

var headlines = new Array();
function SwitchTo(idx) {
	$("#cover_" + last_idx).fadeOut(1500);
	$("#cover_" + idx).fadeIn(1500);
	
	last_idx = idx;
	
	sIFR.replace( headline , {
	  selector: '.cover_title h1',
	  wmode: 'transparent',
	  css: [
		  '.sIFR-root { color: #ef0500; font-size: 20px; font-weight: normal; font-style: normal; }'
			,'a { text-decoration: none; }'
			,'a:link { color: #ef0500; }'
			,'a:hover { color: #000000; }'
		]
	  });
	
  sIFR.replace( headline_italic , {
	  selector: '.cover_track h2',
	  wmode: 'transparent',
	  css: [
		  '.sIFR-root { color: #303030; font-size: 16px; font-weight: normal; font-style: italic; }'
			,'a { text-decoration: none; }'
			,'a:link { color: #303030; }'
			,'a:hover { color: #000000; }'
		]
	  });
}
var current_idx = last_idx;
function StepNext() {
	if (current_idx+1 > max_idx) current_idx = 1;
	else current_idx++;
	$.imgpreload(headlines[current_idx],function() {
		SwitchTo(current_idx);	
	});		
}