/**
 * @author warski.com
 * @copyright warski.com
 */
var cBnIdx = 0;
var nBnIdx = -1;
var timeout;
var tSwitch = 5000;

$(document).ready(
function(){ 

 
});

function switchBaner() { 
 	bnLst = $('#bn a');
	for (i = 0; i < bnLst.length; i++) {
		b = bnLst[i];
		if (!$(b).is(":hidden")) {
			cBnIdx = i;
			nBnIdx = i+1;		
		}
	}

	if (nBnIdx == bnLst.length) {
	  nBnIdx =0;
	}
	if (nBnIdx > -1 ) {
//	   $(bnLst[cBnIdx]).slideUp(1000);	
//	   $(bnLst[nBnIdx]).slideDown(1000);
	   $(bnLst[cBnIdx]).hide('slow');	
	   $(bnLst[nBnIdx]).show('slow');

	}

 	if(timeout) {
         clearTimeout(timeout);
	 timeout = null;
	}

        timeout = setTimeout('switchBaner()', tSwitch);
		     
//	alert("witamy");
 }

timeout = setTimeout('switchBaner()', tSwitch);
