tmpValue = '';
function inputFocus(obj)
{
	if(tmpValue == '')
	{
		tmpValue = obj.value;
		obj.value = '';
	}
}

function inputBlur(obj)
{
	if(obj.value == "")
	{
		obj.value = tmpValue;
		tmpValue = '';
	}
}

function inputFocus1()
{
	document.getElementById("haslo1id").style.display = 'none';
	document.getElementById("haslo2id").style.display = 'inline';
	document.getElementById("haslo2id").focus();
}

function inputBlur1()
{
	if(document.getElementById("haslo2id").value == '')
	{
		document.getElementById("haslo2id").style.display = 'none';
		document.getElementById("haslo1id").style.display = 'inline';
	}
}

$(document).ready(function () {
	$("a.lightbox").lightbox();
	
	$("ul.top > li").mouseover(function() {
		if($(this).hasClass('current') && !$(this).hasClass('leavecurrent') && !$(this).hasClass('removecurrent'))
			$(this).addClass('leavecurrent');
		else
			$(this).addClass('removecurrent');
			
		$(this).addClass('current');
		$(this).children("ul").show();
	})
	
	/*$("ul.top li ul").mouseover(function() {
		$(this).show();
		$(this).parent().mouseover();
		
	})*/
	//$("ul.top li ul li").unbind('mouseover');
	
	$("ul.top > li").mouseout(function() {
		if($(this).hasClass('removecurrent'))
		{
			$(this).removeClass('current');
		}
			
		$(this).children("ul").hide();
	})
	
	if($(".modalBox").length)
	{
		$(".modalBox").click(function() {return false;});
		$(".modalBox").createDialog();
	}
	
	
});