/* header */
$(document).ready(function(){
            $(".titleblog  h1").dropShadow({left: 0, top: -20, blur: 1, opacity: 0.9, swap: "#797979", color: "#C3C3C3" });
});
/* header  end */
/* menu */
$(document).ready(function(){
            $(".menu a").append("<em></em>");
            
            $(".menu a").hover(function(){
                $(this).find("em").animate({opacity: "show", top: "-75" }, "slow");
                var hoverText = $(this).attr("title");
                $(this).find("em").text(hoverText);
            },   function(){
                $(this).find("em").animate({opacity: "hide", top: "-85"}, "fast");
            });
            $(".menu a").hover(function(){
            $(this).find("p").dropShadow({left: -10, top: 0, blur: 1, color: "#000", opacity: 0.9});
            },
                        function(){
                        $(this).find(" p").removeShadow();
            });
        });
/* menu end */
/* sidebar */
$(document).ready(function(){
            $("#tabs").tabs();
});
$(document).ready(function(){
            $('#rssh3').FontEffect({
                 mirror:true,
                 mirrorOffset:-5,
                 shadow:true,
                 shadowColor:"#000",
                 shadowOffsetTop:0,
                 shadowOffsetLeft:0,
                 shadowOpacity:0.2
            });
            $('.title-widget, #tabs-search-title').FontEffect({
            shadow:true,
            shadowColor:"#9bc354",
            shadowOffsetTop:0,
            shadowOffsetLeft:0,
            shadowOpacity:0.5
            });
            $('#textsearch').focus(function(){
                $(this).css("border", "3px solid #9bc354")
            });
            $('#textsearch').blur(function(){
                $(this).css("border", "3px solid #B7B7B7");
            });
            var hostname = location.hostname;
            $('#buttonsearch').mousedown(function(){
                $(this).css("background", "url(http://"+hostname+"/mywp/wp-content/themes/DarkStyle/images/search-button2.png) no-repeat");
            });
            $('#buttonsearch').mouseout(function(){
                $(this).css("background", "url(http://"+hostname+"/mywp/wp-content/themes/DarkStyle/images/search-button.png) no-repeat");
            });
            $('#buttonsearch').mouseup(function(){
                $(this).css("background", "url(http://"+hostname+"/mywp/wp-content/themes/DarkStyle/images/search-button.png) no-repeat");
            });
});
/*sidebar end */
/* content */
$(document).ready(function()
{
    $(' .post').find('#date-post').FontEffect({
    gradient:true,
    gradientColor:"#FFF",
    gradientLength:70,
    outline:true,
    outlineColor1:"#5F5F5F",
    mirror:true,
    mirrorHeight:100,
    mirrorTLength:100,
    mirrorOffset:-8
    });
    $('.title-post a').FontEffect({
    gradient:true,
    gradientColor:"#FFF",
    gradientLength:70,
    outline:true,
    outlineColor1:"#5F5F5F"
    });
    $('.no-post').FontEffect({
    gradient:true,
    gradientColor:"#FFF",
    gradientLength:80,
    outline:true,
    outlineColor1:"#2D2D2D",
    shadow:true,
    shadowColor:"#CCC",
    shadowOffsetTop:1,
    shadowOffsetLeft:1,
    shadowOpacity:0.5
    });
});

/* content end */
/*comments */
$(document).ready(function()
{
            $('#comments').FontEffect({
                        gradient:true,
                        gradientColor:"#FFF",
                        gradientLength:70,
                        outline:true,
                        outlineColor1:"#5F5F5F"
            });
            $('#commentlist').hide();
            $('#slidecommentslist').text('Развернуть комментария');
            $('#slidecommentslist').click(function(){
                        if($('#commentlist').is(':hidden'))
                        {
                                    $('#commentlist').slideDown("slow");
                                    $('#slidecommentslist').text('Скрыть комментария');
                        }
                        else
                        {
                                    $('#commentlist').slideUp();
                                    $('#slidecommentslist').text('Развернуть комментария');
                        }
            });
            $('.text-comment').focus(function(){
                $(this).css("border", "3px solid #9bc354")
            });
            $('.text-comment').blur(function(){
                $(this).css("border", "3px solid #B7B7B7");
            });
            $('#postcomment').FontEffect({
                        shadow:true,
                        shadowColor:"#9bc354",
                        shadowOffsetTop:0,
                        shadowOffsetLeft:0,
                        shadowOpacity:0.5
            });
            var hostname = location.hostname;
            $('#submit').mousedown(function(){
                $(this).css("background", "url(http://"+hostname+"/mywp/wp-content/themes/DarkStyle/images/submit-comment-2.png) no-repeat");
            });
            $('#submit').mouseout(function(){
                $(this).css("background", "url(http://"+hostname+"/mywp/wp-content/themes/DarkStyle/images/submit-comment-1.png) no-repeat");
            });
            $('#submit').mouseup(function(){
                $(this).css("background", "url(http://"+hostname+"/mywp/wp-content/themes/DarkStyle/images/submit-comment-1.png) no-repeat");
            });
});
/* comments */
/* footer */
$(document).ready(function(){
            $(".copyright a").append("<em></em>");
            
            $(".copyright a").hover(function() {
                        $(this).find("em").animate({opacity: "show", top: "-35"}, "slow");
                        var hoverText = "O_o а ты поставил гиперссылку на geloni-el.ru когда копипастил?";
                        $(this).find("em").text(hoverText);
            },          function(){
                        $(this).find("em").animate({opacity: "hide", top: "-35" }, "fast");
            });
});
$(document).ready(function() {
            $(".crmessage").dropShadow({left: -10, top: 0, blur: 1, color: "#000", opacity: 0.9});
});
/* footer end */