var nth_child=1;
var nth_child_sec=1;
var t;
/*function item1(a) {
var temp_array = new Array();
temp_array[0]=$("#items_list > li:nth-child("+a+") > span:nth-child(2)");
temp_array[1]=$("#items_list > li:nth-child("+a+") > span:nth-child(1)");
return temp_array;
} TEST FUNTION */
$(document).ready(

function() {

$(".prices tr").hover ( function() { 
									$(this).addClass("sel"); 
									if( $(".prices th:nth-child(2)").is(".type") 
									&& ( $(this).is(".prices tr:nth-child(14)") || $(this).is(".prices tr:nth-child(13)") )
									) $("table.prices").addClass("over");
} , function() { $(this).removeClass("sel"); $("table.prices").removeClass("over");});

//alert('1');
$("#selecte_item > ul > li.cat").html("&nbsp;");
$("#popular ul li:even").addClass("alt");
$("#kluki ul li:even").addClass("alt");
//alert('1');

//alert('1');
}
);
function click_ch(a) {
if(a.is(".checked")) {
		a.removeClass("checked");
		a.addClass("unchecked")
		} 
		else {
		a.removeClass("unchecked");
		a.addClass("checked");
		}
}
/* a trqbva da izglejda kato $(item) */
function toggle_disable(a) {
if(a.is(".disable")) {
a.removeClass("disable"); 
a.addClass("unchecked");
} 
else{
	a.removeClass("checked");
	a.removeClass("unchecked");
	a.addClass("disable");
	}
}

function remove_itm() {
	$("#items_list > li:nth-child("+nth_child+") > span:nth-child(2)").removeClass("add");
	$("#items_list_2 > li:nth-child("+nth_child_sec+") > span:nth-child(2)").removeClass("add");
	$("#items_list > li:nth-child("+nth_child+") > span:nth-child(1)").removeClass("selected");
	$("#items_list_2 > li:nth-child("+nth_child_sec+") > span:nth-child(1)").removeClass("selected");
}