﻿$(document).ready(function() {

    $(".SocialAnchor").click(function() {
        var socLink = "";

        switch ($(this).attr("id")) {
            case "delicious":
                socLink = "http://del.icio.us/post?url=" + document.location.href + "&title=" + document.title;
                break;
            case "facebook":
                socLink = "http://www.facebook.com/home.php?#!/pages/SwingPRO/187801893489?ref=ts";
                break;
            case "twitter":
                socLink = "http://twitter.com/home?status=" + window.location.href;
                break;
            case "blogger":

                break;
            case "linkedin":
                socLink = "http://www.linkedin.com/shareArticle?mini=true&url=" + location.href + "&title=" + document.title;
                break;
            case "digg":
                socLink = "http://digg.com/submit?phase=2&url=" + document.location.href + "&title=" + document.title;
                break;
            case "google":
                socLink = "http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=" + document.location.href + "&title=" + document.title;
                break;
        }
        window.open(socLink, "social");
    })
    $(".SocialAnchor").hover(
            function() {
                //                var thisId = $(this).attr("id");
                //                var img = $(this).children("img");
                //                img.attr("src", "images/SocialMedia/" + thisId + "-64x64.png");
                //$(this).effect('bounce', { times: 5 }, 300);
            },
            function() {
                //                var thisId = $(this).attr("id");
                //                var img = $(this).children("img");
                //                img.attr("src", "images/SocialMedia/" + thisId + "-32x32.png");
                //$(this).removeClass("hoverState");
            }
        )
})

