<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<% Ajax.RegisterClientScriptInclude(Url.Content("~/Content/Scripts/jquery-1.3.2.min.js")); %>

<%
    var url = ViewData["url"] as string;
    var title = ViewData["title"] as string;
    var encodedUrl = Url.Encode(url);
    var encodedTitle = Url.Encode(title);
%>

<div id="itineraryShare" class="off itineraryAddinBox">
    <h3>Share</h3>
    <% if(Ajax.JavaScriptEnabled()) { %><span class="close" onclick="$('#itineraryShare').fadeOut()">Close</span><% }    %>
    <ul class="shareit">
        <li>
            <a href="http://twitter.com/home?status=Check+out+at+<%=encodedTitle%>+at+<%=encodedUrl%>" title="send to twitter"><span class="twitter"></span>twitter</a>
        </li>
        <li>
            <a href="http://www.facebook.com/share.php?u=<%=encodedUrl%>&amp;t=<%=encodedTitle%>" title="send to facebook"><span class="facebook"></span>facebook</a>
        </li>
        <li>
            <a href="http://del.icio.us/post?url=<%=encodedUrl%>&amp;title=<%=encodedTitle%>" title="send to del.icio.us"><span class="delicious"></span>del.icio.us</a>
        </li>
        <li>
            <a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=<%=encodedUrl%>&amp;title=<%=encodedTitle%>" title="send to google"><span class="google"></span>google</a>
        </li>
        <li>
            <a href="http://www.stumbleupon.com/refer.php?url=<%=encodedUrl%>&amp;title=<%=encodedTitle%>" title="send to stumbleupon"><span class="stumbleupon"></span>stumbleupon</a>
        </li>
    </ul>
</div>