// Sortable
Event.observe(window, 'load', function() {
    $$('table#sortable tbody > tr:nth-child(odd)').each(function(s) {
        s.addClassName('odd');
    });
    $$('table#sortable tbody > tr:nth-child(even)').each(function(s) {
        s.addClassName('even');
    });
});

/*
function alertTimerClickHandler() {
	if ( document.getElementById("alertTimerButton").value == "Click me and wait!" ) {
		document.getElementById("alertTimerButton").value = "Click me to stop the timer!";
		alertTimerId = setTimeout ( "showAlert()", 3000 );
	}
}
*/

function saveIt(name) {
	var x = "hide-intro";
	if (!x)
		//alert('Nincs megadva cookie!');
	else {
		Cookies.create(name,x,365);
		alert('Cookie létrehozva!');
	}
}
/*
function readIt(name) {
	//alert('Létrehozott cookie: ' + Cookies[name]);
	if (Cookies[name] == "hide-intro") {
		//alert (Cookies[name]);
		document.getElementById("intro").style.display='none';
	}
	Cookies.erase(name);
}
*/
function closeIntro() {
	var intro = $('intro');
	var introFlash = $('intro_flash');
	if (intro && introFlash) {
		//introFlash.hide();
		new Effect.Fade(intro, { duration:0.6 });
	}
	introActive = false;
	document.getElementById('scrl').style.overflow = 'scroll';
}
