//нестандартные шрифты
Cufon.replace(".Myriad,.account-menu-item .cufon");

//параметры для нестандартного селекта
var params = {
            changedEl: ".lineForm select,.form_select",
            visRows: 5,
            scrollArrows: true
        };

var exposeFieldElement;

cuSel(params);

    //функция для тени текста
    $.fn.textDropShadow = function (ShdwClass) {
            $(this).css('position', 'relative').html('<span class=' + ShdwClass + '>' + $(this).html() + '</span><span style="position:relative;">' + $(this).html() + '</span>');
            return $(this);
           }

	//минимальная ширина для ie6
    function minWidth() {
           	document.getElementById("contentContainer").style.width = (document.body.clientWidth < 999 ? "999px" :
"99%");
    };

    $(function () {
    	//тень в ie для текста меню на вкладках
    	if ($("html").hasClass("ie")) {
    		$("#main_menu ul li.active a span").textDropShadow("menu_shadowed", true);
    	}

		//эмулируем свойство min-width в ie6
    	if ($("html").hasClass("ie6")) {
    		minWidth();
    		window.resize(function(){minWidth();});
    	}

    	//анимация для страницы новости
    	//раскрываем новость при клике по названию
    	$(".news_title .psevdo_link").click(function () {
    		$(this).addClass("disable").parents(".news_item").find(".news_desc").fadeIn();
    	});

    	$(".news_item_close .psevdo_link").click(function () {
    		$(this).parents(".news_desc").hide().parents(".news_item").find(".news_title .psevdo_link").removeClass("disable");
    	});

    });


