﻿jQuery.noConflict();

jQuery(document).ready(function() {

    jQuery("#sharedButtons a").click(function(e) {
        e.preventDefault();
        var urlArte = window.location;


        switch (jQuery(this).attr("title")) {
            case "Twitter":

                window.open("http://twitter.com/home/?status=Essa arte eu recomendo " + urlArte);
                break;
            case "Delicious":
                window.open("http://delicious.com/save?url=" + urlArte + "&title=..::URBAN - ARTS::..");
                break;
            case "Digg":
                window.open("http://digg.com/submit?phase=2&url=" + urlArte + "&title=..::URBAN - ARTS::..");
                break;
            case "Technorati":
                window.open("http://www.technorati.com/faves?add=" + urlArte);
                break;
            case "Google":
                window.open("http://www.google.com/bookmarks/mark?op=edit&bkmk=" + urlArte + "&title=..::URBAN - ARTS::..");
                break;
            case "Stumbleupon":
                window.open("http://www.stumbleupon.com/submit?url=" + urlArte + "&title=..::URBAN - ARTS::..");
                break;
            case "Facebook":
                window.open("http://www.facebook.com/sharer.php?u=" + urlArte + "&t=..::URBAN - ARTS::..");
                break;
            default:
                break;
        }

        pageTracker._trackEvent('share', jQuery(this).attr("title"));

    });
});