function concurs_detalii(daurl) {
	window.location.href = daurl;
}

function showConcursId(cid) {
	for (var i=0; i<max_conc_count; i++) {
		var x = findObject("concdiv_"+i);
		if (i==cid)
			x.style.display = '';
		else
			x.style.display = 'none';
	}
}
var conc_timer = 0;
function initMainPageConcursuri() {
	// set the rotation timer
	if (max_conc_count > 1) {
		conc_timer = setInterval('nextConcurs()', 3000);
		showConcursId(cur_conc_id);
	}
}

function nextConcurs() {
	cur_conc_id++;
	if (cur_conc_id >= max_conc_count)
		cur_conc_id = 0;
	showConcursId(cur_conc_id);
}