jQuery(document).ready(function(){
jQuery(".check").mousedown(
function() {
     changeCheck(jQuery(this));
});
jQuery(".check").each(
function() {
     changeCheckStart(jQuery(this));
});
});
function changeCheck(el)
{
     var el = el,
          input = el.find("input").eq(0);
   	 if(!input.attr("checked")) {
		el.css("background-position","0 -14px");	
		input.attr("checked", true)
	} else {
		el.css("background-position","0 0");	
		input.attr("checked", false)
	}
     return true;
}
function changeCheckStart(el)
{
var el = el,
		input = el.find("input").eq(0);
      if(input.attr("checked")) {
		el.css("background-position","0 -14px");	
		}
     return true;
}

jQuery(document).ready(function(){
	$(".dop").click(function () {
		$(this).toggleClass("act");
		$(".dopblock").toggle();
		$(".sel").css("width","133px");
    });
	var params = {
	changedEl: "#kw, #town, #reg, #price, #pred, #tip, #pred, #etag, #vsetag, #komunalka, #svet, #com",
	scrollArrows: true
	}
	cuSel(params);
});

