 $(document).ready(function () {
	 $("#input-search").bind('focus', function() { if ($("#input-search").val() == "введите строку для поиска") { $("#input-search").val("")};  }).bind('blur', function() { if ($("#input-search").val() == "") { $("#input-search").val("введите строку для поиска")};  });
	 
/* 	 $("select").selectbox();*/
 });
 
 /*** UI and page Object blocking ***/
 function blockPage() {
 	$.blockUI({ css: { 
 		    border: 'none', 
 		    padding: '15px', 
 		    backgroundColor: '#000', 
 		    '-webkit-border-radius': '10px', 
 		    '-moz-border-radius': '10px', 
 		    opacity: '.5', 
 			color: '#fff' 
 		} }); 
 }

 function unblockPage() {
 	$.unblockUI();
 	
 	document_tables_rows = $('table.ussual_table > tbody > tr');
   	for(i=0;i<document_tables_rows.length;i++) {
 	  	document_tables_rows.bind("mouseover", function() { $(this).addClass('even_row_hover') });
 		document_tables_rows.bind("mouseout", function() { $(this).removeClass('even_row_hover') });
   	}
 }
 
function update_margin(){
	rttopdiv = document.getElementById('info-container');
	rttopdiv.style.top = ((document.body.scrollLeft + document.body.clientWidth) / 100 * 4) - 5 + "em";
}
