function checkForm(formId)
{
	var notFilled = false;

	$([rel='required']).each(
		function(intIndex) {
			if($(this).attr("value") == "") {
				notFilled = true;
			}
		}
	);

	if(notFilled == true) {
		alert("Je potrebné vyplniť všetky údaje !");
		return false;
	}

	return true;
}

function toogleContentById(byId)
{
	var c = '#' + byId;
	if($(c).css('display') == 'none')
	{
		$(c).slideDown(400);
	}
	else
	{
		$(c).slideUp(400);
	}

	return false;
}

function checkForm()
{
	if ((document.getElementById('regName').value=="") || (document.getElementById('regText').value==""))
	{
		window.alert("Je potrebné vyplniť všetky údaje !");
		return false;
	}
	else
	{
		return true;
	}
}

$().ready(function() {

	$("#overFooter").append("<div style='width:227px; height:285px; background:transparent url(css/img/ornate.png) no-repeat left top; position: absolute; left:-42px; top: -171px;'></div>");

    $("#gallery a").fancybox();

});
