var k_push_vars = {
    "display_after": 30,
    "view_percentage": 0,
    "popup_font_color": "#000000",
    "popup_background": "#ffffff",
    "popup_separator": "#D4E2F0",
    "header": "Your feedback is important to us!",
    "question": "Would you be willing to give us a short (1 minute) feedback?",
    "footer": "Thank you for helping us improve our website",
    "remind": "Remind me later",
    "remind_font_color": "#3882C3",
    "yes": "Yes",
    "no": "No",
    "text_direction": "ltr",
    "images_dir": "http://cf.kampyle.com/",
    "yes_background": "#76AC78",
    "no_background": "#8D9B86",
    "site_code": 4641465
}
$(document).ready(function(){
    $('div.top-menu div.active').css("background-image", "url('http://essaysreasy.com/resources/ere/images/link_hover.png')");
    var link_array = new Array("link_about","link_service","link_prices","link_policies","link_faq","link_reviews");
    for(var i = 0;i < link_array.length;i++)
    {
            $("#"+link_array[i]).hover(function() {
                $('div.top-menu div').attr("style","background-image:none;");
                $(this).attr("style","background-image:url('http://essaysreasy.com/resources/ere/images/link_hover.png')"); },
            function () {
                $(this).attr("style","background-image:none;");
                $('div.top-menu div.active').css("background-image", "url('http://essaysreasy.com/resources/ere/images/link_hover.png')");
            });
    }
    $('#bottom_text').html("Easy to choose. Easy to use. Easy to get an 'A' for your paper!");
	$('<span class="order-3-steps"></span>').click(function(){window.location.href = "/account/order";}).insertAfter($('.wrapper_content_area_articles p:eq(1)'));
    $('div.wrapper_content_area_articles').append('<p class="buy-an-essay"><a href="http://essaysreasy.com/">Buy an essay on our website and receive a top quality writing help!</a></p>');
});

function try_submit(){
    $.getJSON('./account/index.php?gc=client/auth/jx/&email=' + $('.right_panel input[name="email"]').attr('value') + '&password=' + $('.right_panel input[name="password"]').attr('value'), function(data){
        if(data.auth == 1){
            $('.right_panel .client_login_form').submit();
        }else{
            alert('Email or password are not correct!');
        }
    });
}
function logout(){
$.get('/account/index.php?gc=client/logout/jx', function(data){
    $('#client_clientAnswer').html(data);
});
return false;
}
