$('input:text,input:password').addClass('bord');
$('a:has(img),a:has(span)').addClass('non-decor');
$('[title]').not('a[rel]').tooltip();

$(".toggler").each(function (){
	$("span:last",this).hide();
	$(this).click(function (){$('span',this).toggle();})
});

$("table.striped tbody").each(function() {$(this).children('tr:visible:odd').addClass('bg1');}); 
$("table.striped_even tbody").each(function() {$(this).children('tr:visible:even').addClass('bg1');}); 

//try {window.alert = window.infoMess;}
//catch (err) {window.alert('Your browser does not support overloading standart function ' + err);}

$('input','#info_mess').click(function (){$('#info_mess').hide('puff', 400);});
$(".sp_bord").css({background: "#EBF3FF", padding: "3px"});
$(".sp_").css({background: "white", padding: "5px"});


$("#cat_show_pref_but").click(function (){
	var t = $("#cat_show_pref_but").offset();
	$("#cat_show_pref_div").css({top: t["top"]+"px", right: "20px"}).show(400);
});

basket_redraw({'amount':$('#basket_amount').text()});

$('.price').click(function(e) {
	$('#price_legend').css({top:e.pageY+'px', left:e.pageX-200+'px'}).fadeIn(250);
});
$('.price2').click(function(e) {
	$('#price2_legend').css({top:e.pageY+'px', left:e.pageX-200+'px'}).fadeIn(250);
});
$('#price_legend .close, #price2_legend .close').click(function() { $(this).parent().fadeOut(250); });

$(window).resize();
