document.write('<scr' + 'ipt type="text/javascript" src="http://i.usatoday.net/asp/usatly/handler.ashx?storyid=' + tagID + '&longUrl=' + storyURL + '"><\/scr' + 'ipt>'); if (typeof(articleSummary) == 'undefined'){ var articleSummary =""; } <!-- yahoobuzz script --> var articleSource = "USATODAY.com"; var yahooBuzzArticleId = 'usatoday:'+storyURL+'?csp=34'; var yahooBuzzBadgeType = 'text'; <!-- twitter script --> var twtUrl = usatlyshorturl; var maxLength = 140 - (twtUrl.length + 1); var twtSource = 'RT @USATODAY' if (storyTitle.length > maxLength) { storyTitle = storyTitle.substr(0, (maxLength - 5))+'...'; } var twtLink = 'http://twitter.com/home?status='+encodeURIComponent( twtSource + ' ' + storyTitle + ' ' + twtUrl ); <!-- myspace script --> function GetThis(T, C, U, L) { var targetUrl = 'http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(T) + '&c=' + encodeURIComponent(C) + '&u=' + encodeURIComponent(U) + '&l=' + L; window.open(targetUrl); } var sclListTop = ""; sclListTop +='<div class="socialContainer">'; sclListTop +=' <ul id="spritemenu" class="socialList">'; sclListTop +=' <li class="sharing-bg">Share</li>'; /*sclListTop +=' <li id="sprite0" ><span id="yahooBuzzBadge"><!-- this element will be replaced --></span></li>';*/ sclListTop +=' <li id="sprite16"><span class="spriteImage sprite16"> </span><span><a href="http://mixx.com/submit/story?page_url='+storyURL+'&partner=usat" onClick="uoTrack(\'mixx\')" target="mixx">Add to Mixx</a></span></li>'; sclListTop +=' <li id="sprite5"><span class="spriteImage sprite5"> </span><span><a href="http://www.facebook.com/sharer.php?u='+storyURL+'&title='+storyTitle+'" onClick="window.open(\'\',\'facebook\',\'width=642,height=436,left=0,top=0,resizable,scrollbars=yes\');uoTrack(\'facebook\')" target="facebook">Facebook</a></span></li>'; sclListTop +=' <li id="sprite18"><span class="spriteImage sprite18"> </span><span><a href="'+twtLink+'" target="_blank"'+'>Twitter<'+'/a></span></li>'; sclListTop +=' </ul>'; sclListTop +=' <div class="social-wrapper">'; sclListTop +=' <div id="social-treeview-wrapper">'; sclListTop +=' <ul class="share-nav">'; sclListTop +=' <li>More'; sclListTop +=' <ul id="spritemenu" class="socialList">'; sclListTop +=' <li id="sprite13"><span class="spriteImage sprite13"> </span><span><a href="http://cgi.fark.com/cgi/fark/farkit.pl?u='+storyURL+'&h='+storyTitle+'" uoTrack(\'farkit\')" target="fark">Fark</a></span></li>'; sclListTop +=' <li id="sprite1"><span class="spriteImage sprite1"> </span><span><a href="http://digg.com/submit?phase=2&url='+storyURL+'&title='+storyTitle+'&topic=" onClick="uoTrack(\'digg\')" target="digg">Digg</a></span></li>'; sclListTop +=' <li id="sprite4"><span class="spriteImage sprite4"> </span><span><a href="http://reddit.com/submit?url='+storyURL+'&title='+storyTitle+'" onClick="uoTrack(\'reddit\')" target="reddit">Reddit</a></span></li>'; sclListTop +=' <li id="sprite12"><span class="spriteImage sprite12"> </span><span><a href="http://www.myspace.com/index.cfm?fuseaction=postto&u='+storyURL+'&t='+storyTitle+'" onClick="window.open(\'\',\'myspace\',\'width=800,height=600,left=0,top=0,resizable,scrollbars=yes\');uoTrack(\'myspace\')" target="myspace">MySpace</a></span></li>'; sclListTop +=' <li id="sprite14"><span class="spriteImage sprite14"> </span><span><a href="http://www.stumbleupon.com/submit?url='+storyURL+'&h='+storyTitle+ '" uoTrack(\'stumbleupon\')" target="stumbleupon">StumbleUpon</a></span></li>'; sclListTop +=' <li id="sprite15"><span class="spriteImage sprite15"> </span><span><a href="http://www.propeller.com/story/submit/?url='+storyURL+'&title='+storyTitle+'" uoTrack(\'propeller\')" target="propeller">Propeller</a></span></li>'; sclListTop +=' <li id="sprite17"><span class="spriteImage sprite17"> </span><span><a href="http://www.linkedin.com/shareArticle?mini=true&url='+storyURL+'&title='+storyTitle+'&summary='+articleSummary+'&source='+articleSource+'" onClick="window.open(\'\',\'linkedin\',\'width=520,height=570,left=0,top=0,resizable,scrollbars=yes\'); uoTrack(\'linkedin\')" target="linkedin">LinkedIn</a></span></li>'; sclListTop +=' </ul>'; sclListTop +=' </li>'; sclListTop +=' </ul>'; sclListTop +=' </div>'; sclListTop +=' </div>'; sclListTop +='</div>'; jQuery("#topSocialButtons").append(sclListTop); jQuery(".share-nav").treeview({control: ".treecontrol",animated: "medium",collapsed: true}); jQuery(function() { jQuery.ajax({ type: "GET", url: "/marketing/rss/settings.xml", dataType: "xml", success: BuildSubscribeButtons }); }); function BuildSubscribeButtons(xml) { // Build SSTS array var url = document.location.toString(); var urlArray = url.split("/") var nurl = ""; for (i = 3; i < urlArray.length - 1; i++) { if(i<urlArray.length-2){ nurl += urlArray[i] + "|"; } else { nurl += urlArray[i]; } } var feedid = ""; var feedname = ""; var idx = 1; while (feedid == "" && idx>0) { idx = nurl.indexOf('|'); jQuery(xml).find('add').each(function(){ if (jQuery(this).attr('key') == nurl) { feedid = jQuery(this).attr('value'); } }); if (feedid == "") { nurl = nurl.replace(/(.*)\|(.*)/,"$1"); } } jQuery(xml).find('add').each(function(){ if (jQuery(this).attr('key') == feedid) { feedname = jQuery(this).attr('value'); } }); if (feedname == "") feedname = "usatoday-NewsTopStories.xml"; var sclListTop = ""; sclListTop +='<div class="socialContainer">'; sclListTop +=' <ul id="spritemenu" class="socialList">'; <!-- divider --> sclListTop +=' <li class="sharing-bg">Subscribe</li>'; <!-- subscribe buttons --> sclListTop +=' <li id="sprite-my"><span class="spriteImage sprite-my"> </span><span><a href="' + 'http://add.my.yahoo.com/rss?url=http://rssfeeds.usatoday.com/' + escape(feedname) + '" uoTrack(\'myyahoo\')" target="myyahoo">myYahoo</a></span></li>'; sclListTop +=' <li id="sprite-ig"><span class="spriteImage sprite-ig"> </span><span><a href="' + 'http://fusion.google.com/add?feedurl=http://rssfeeds.usatoday.com/' + escape(feedname) + '" uoTrack(\'igoogle\')" target="igoogle">iGoogle</a></span></li>'; sclListTop +=' </ul>'; sclListTop +=' <div class="social-wrapper">'; sclListTop +=' <div id="social-treeview-wrapper">'; sclListTop +=' <ul class="subscribe-nav">'; sclListTop +=' <li>More'; sclListTop +=' <ul id="spritemenu" class="socialList">'; sclListTop +=' <li id="sprite-nv"><span class="spriteImage sprite-nv"> </span><span><a href="' + 'http://www.netvibes.com/subscribe.php?url=http://rssfeeds.usatoday.com/' + escape(feedname) + '" uoTrack(\'netvibes\')" target="netvibes">Netvibes</a></span></li>'; sclListTop +=' <li id="sprite-ma"><span class="spriteImage sprite-ma"> </span><span><a href="' + 'http://favorites.my.aol.com/ffclient/AddFeed/?url=http://rssfeeds.usatoday.com/' + escape(feedname) + '" uoTrack(\'myaol\')" target="myaol">myAOL</a></span></li>'; sclListTop +=' </ul>'; sclListTop +=' </li>'; sclListTop +=' </ul>'; sclListTop +=' </div>'; sclListTop +=' </div>'; sclListTop +=' <ul class="whatsthis">'; <!-- what's this --> sclListTop +=' <li class="socialFoot"><a href="#open-share-help" onClick="document.getElementById(\'sclBtnInfo\').style.visibility=\'visible\';document.getElementById(\'Adv6\').style.display=\'none\';usatAj.ahah(\'sclBtnInfo\', null, \'http://www.usatoday.com/marketing/socialhelp-v1.htm\', null);" title="What\'s this"></a></li>'; sclListTop +=' </ul>'; sclListTop +=' <div id="sclBtnInfo"></div>'; sclListTop +='</div>'; jQuery("#topSocialButtons").append(sclListTop); jQuery(".subscribe-nav").treeview({control: ".treecontrol",animated: "medium",collapsed: true}); }