function lookhome(inputhledej) {
		if(inputhledej.length == 0) {
			// Hide the suggestion box.
			$('#suggestions').hide();
		} else {
			$.post("/rpc.php", {queryHtring: ""+inputhledej+""}, function(data){
				if(data.length >0) {
					$('#suggestions').show();
					$('#autoSuggestionsList').html(data);
				}
			});
		}
	} 
function fillhome(thisValue) {
		$('#inputhledej').val(thisValue);
		setTimeout("$('#suggestions').hide();", 200);
}
function pocet(thisValue){
znaku = thisValue;
area = document.getElementById('area');
if(area.value.length > znaku) area.value = area.value.substr(0,znaku);
}
$(function() { $('a[rel="lightbox"]').lightBox(); });
$(function() { $('a[id="lightbox"]').lightBox(); });
$(function(){
     $("#myScroll").mbScrollable({
        width:313,
        elementsInPage:1,
        elementMargin:2,
        shadow:"#999 0px 0px 0px",
        height:"auto",
        controls:"#controls",
        slideTimer:1000,
        autoscroll:true,
        scrollTimer:6000
      });
     $("#ban_scroll").mbScrollable({
                width:1005,
                elementsInPage:1,
                elementMargin:2,
                shadow:"#999 0px 0px 0px",
                height:342,
                controls:"#controls2",
                slideTimer:2000,
                autoscroll:true,
                scrollTimer:4000
      });
});
