$(document).ready(function(){
    if ($('#fcategory').length){
        $('#fcategory a').click(function(){
            if ($(this).is('.curent')){
                return false;
            }
            else {
                $('#fcategory').find('.curent').removeClass('curent');
                $(this).addClass('curent');
                return false;
            }
        })
    }

    if ($.browser.msie && jQuery.browser.version < 7) {
        if ($('.c-2').length){
            $('.c-2').height(function(){
                var ie6 = $(this).height();
                if ($(this).innerHeight() % 2 == 1)
                    ie6 = ie6 + 1;
                return ie6;
            })
        }
    }
	if ($('.p-n').length){
		$('.p-n li').each(function(){
			$(this).html('<b>'+ $(this).html() +'</b>')
		})
	}
	
	if ($('#my_search').length){
		$('#my_search').focus(function(){
			if ($(this).is('.primer')){
				$(this).attr('value', '').removeClass('primer');
			}
		})
		$('#my_search').blur(function(){
			if ($(this).val() ==''){
				$(this).val('коттеджный поселок').addClass('primer');
			}
		})
		
		
	}
})

