function inputFocus(tip, ob, dtext, pass){
	if(tip==1){
		if(ob.value==dtext){
			ob.value = "";
		}
			
		if(pass==1){
			ob.type = "password";
			
		}
	}else{
		// blur
		if(pass==1 && ob.value==""){
			ob.type = "text";
		}
		if(ob.value==""){
			ob.value = dtext;
		}
	}
}

$(document).ready(function(){
	var mcoltopmargin = 150;
	var footer_offset = $("#footer").offset();
	var mcolc_offset = $("#mcolc").offset();
	var mcolct = mcolc_offset.top;
	var footer_top = footer_offset.top;
	
	if(footer_top<430){
		footer_top = 430;	
	}
	
	if($("#mcol").height()-mcolct<footer_top){
		$("#mcol").css("height",footer_top-mcolct);
		
		var finalneo = $("#finalneNagrade").offset();

		if(finalneo.top+$("#finalneNagrade").height()<footer_top){
			$("#finalneNagrade").css("height", footer_top-(finalneo.top));
		}
	}
	if($("#rcol").height()-167<footer_top){
		$("#rcol").css("height",footer_top-167);
	}
	/*
	if($("#mcol").height()-mcoltopmargin>$("#rcol").height()){
		$("#rcol").css("height",$("#mcol").height()-mcoltopmargin);
	}else{
		$("#mcol").css("height",$("#rcol").height()+mcoltopmargin);
	}
	if($("#rcol").height()<420){
		$("#rcol").css("height","420px");
		if($("#mcol").height()-mcoltopmargin<$("#rcol").height()){
			$("#mcol").css("height",$("#rcol").height()+mcoltopmargin);
		}
	}
	*/
	$("#rcol").fadeIn();
});