﻿
$.fn.textHighlight = function () {
    $(this).css({ opacity: .5 })
    .hover(
    function () {
        $(this).css({opacity:0.9});
    },
    function () {
        $(this).css({ opacity: .5 });
    });
}

$(document).ready(function () {
    /*$('#logo').click(function () {
        window.location.href = 'index.htm';
    });
    $('.feature p').textHighlight();
    $('#download-list p').textHighlight();*/
});

function sendEmail(id, author, url, email, comment, success, fail) {
    $.ajax({
        url: 'http://pr.yuntu.com/jimi_feedbacks/wp-comments-post.php',
        type: 'POST',
        dataType: 'text',
        data: {
            author:author,
            url:url,
            email:email,
            comment:comment,
            comment_post_ID:id
        },
        success: success || function () { alert('Post Successed!'); },
        fail: fail || function () { alert('Post is failed!'); }
    });
}
