//title summary url for social icon links

var socialIconTitle = 'JourneyCheck - Live Train Disruption/Cancellations/Delays and Real Time Departure/Arrival Boards';
var socialIconSummary = 'JourneyCheck.com provides real time, up-to-date train running and disruption information, keeping the travelling public on the move. Train Cancellations, Delays, Alterations and Engineering Work information ';
var socialIconUrl = 'http://www.journeycheck.com/'+tocDir;
var mySpaceUrl ='http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.myspace.com/index.cfm?fuseaction=postto&t=' + encodeURIComponent(socialIconTitle)+ '&c=' + encodeURIComponent(socialIconSummary)	+ '&u=' + encodeURIComponent(socialIconUrl);
var orkutUrl = 'http://promote.orkut.com/preview?nt=orkut.com&tt='+socialIconTitle+'&du='+socialIconUrl+'&cn='+socialIconSummary;
var bloggerUrl = 'http://www.blogger.com/blog_this.pyra?t='+socialIconSummary + '&u='+socialIconUrl+'&n='+socialIconTitle;
var twitterUrl = 'http://twitter.com/home?status= "Currently checking  http://www.journeycheck.com/'+tocDir+'\n' + ""+socialIconSummary+"\"";
var diggUrl = 'http://digg.com/submit?url=http://www.journeycheck.com/'+tocDir+'&title='+ "JourneyCheck-Live Train Updates and Departure/Arrival Boards";
var deliciousUrl = 'http://delicious.com/save?jump=yes&url='+socialIconUrl+'&title='+socialIconTitle;
var facebookUrl = 'http://www.facebook.com/sharer.php?u='+socialIconTitle;
var stumbleuponUrl = 'http://www.stumbleupon.com/submit?url='+socialIconTitle;


function addFavourite(divId) {
	if (window.sidebar)  // Mozilla Firefox Bookmark
		window.sidebar.addPanel(socialIconTitle, socialIconUrl, "");
	else if (window.external) // IE Favorite
		window.external.AddFavorite(socialIconUrl, socialIconTitle);
	else
	alert('To bookmark this site, click ' + 'Bookmarks | Add bookmark> ' + 'or press Ctrl+D.');

     pageTracker._trackEvent('Social Icon Event', 'click social icon', divId);
}

function openSocialIconWindow(socialIconUrl,divId){
	window.open(socialIconUrl,'ptm','height=450,width=900').focus();
    pageTracker._trackEvent('Social Icon Event', 'click social icon', divId);
}
