$(function() {
	$('a[@rel*=lightbox]').lightBox({
	overlayOpacity: 0.6,
	imageLoading: 'http://www.nichiduta.ro/images/lightbox-ico-loading.gif',
	imageBtnClose: 'http://www.nichiduta.ro/images/lightbox-btn-close.gif',
	imageBtnPrev: 'http://www.nichiduta.ro/images/lightbox-btn-prev.gif',
	imageBtnNext: 'http://www.nichiduta.ro/images/lightbox-btn-next.gif'
	});
});

function reload(id) {
	theImg=document.getElementById(id);
	theImg.src +='?c='+ Math.round(Math.random()*100000);
}

function removeContent(id) {
	document.getElementById(id).style.display = "none";
	return false;
}

$(function() {
  $('img').each(function() {
    $(this)[0].oncontextmenu = function() { return false }
  });
});

$(document).ready(function() {
	
	$(".tbox").keyup(function() {
		var searchbox = $(this).val();
		var dataString = 's='+ searchbox;
		if(searchbox=='') {
		} else {
			$.ajax({
				type: "POST",
				url: "http://www.nichiduta.ro/livesearch.php",
				data: dataString,
				cache: false,
				success: function(html) {
					$("#display").html(html).show();
				}
			});
		} 
		return false;    
	});
	$('.close').click(function(){
		$('#popupWrap').hide();
		$('#popupBg').hide();
		$('#popupWrap').attr('display', 'none').hide();
		$('#popupBg').attr('display', 'none').hide();
	});
	
});



