function getURL() {
        var str = window.document.URL.toString();
        var x = str.split('&');
        var newTitle= encodeURIComponent(document.title.toString());
        u = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109" + "&" + x[1] + "&";
	   	if (x[2])
		  {
			  u += x[2];
		  }
    	u1 = encodeURIComponent(u) + ";partner=prnews" + "&jump=doclose";
		
	    news1 = "http://del.icio.us/post?url="+u1+"&amp;title="+ newTitle;
	    window.open(news1,"_blank","toolbar=no, location=yes, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=700, height=500");
        return true;      
}
//  added for PRN.Com _1.3- for post to diggit 
function getdiggURL() {
        var str = window.document.URL.toString();
        var x = str.split('&');
        var newTitle = encodeURIComponent(document.title.toString());
        u = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109" + "&" + x[1] + "&";
	   	if (x[2])
		  {
			  u += x[2];
		  }
    	u1 = encodeURIComponent(u);

	    news1 = "http://digg.com/submit?phase=2&url="+u1+"&title="+ newTitle;
	    window.open(news1,"_blank");
        return true;      
}
// change for PRN.Com _1.3- ends 
//  added for PRN.Com _1.4- for Technorati implementation
function gettechURL() {
        var str = window.document.URL.toString();
        var x = str.split('&');
        var newTitle = encodeURIComponent(document.title.toString());
        news1 = "http://technorati.com/search/"+'"'+newTitle+'"';
	    window.open(news1,"_blank");
        return true;      
}
// change for PRN.Com _1.4- ends 
function getblogURL() {
        var str = window.document.URL.toString();
        var x = str.split('&');
        var newTitle = encodeURIComponent(document.title.toString());
		var words = newTitle.split('%20');
		var s = words.join("+"); 
		news1 = "http://blogsearch.google.com/blogsearch?hl=en&q="+s+"&btnG=Search+Blogs";
	    window.open(news1,"_blank");
        return true;      
}
function blogger()
{
	javascript:popw='';
	Q='';
	x=document;
	y=window;
	if(x.selection) 
		{Q=x.selection.createRange().text;} 
	else if (y.getSelection) 
		{Q=y.getSelection();} 
	else if (x.getSelection) 
		{Q=x.getSelection();}
	var url = location.href;
    var a = url.split('&');
	if (a[0].indexOf("ACCT=104") > 0)
	{
		var b = a[0].replace(/ACCT=104/g, "ACCT=109");
	}
	else if (a[0].indexOf("ACCT=105") > 0)
	{
		var b = a[0].replace(/ACCT=105/g, "ACCT=109");
	}
	else if (a[0].indexOf("ACCT=106") > 0)
	{
		var b = a[0].replace(/ACCT=106/g, "ACCT=109");
	}
	else if (a[0].indexOf("ind_focus.story") > 0)
	{
		var b = a[0].replace(/ind_focus.story/g, "109");
	}
	else {
		var b = a[0];
	}
	
	var new_url =b +"&" + a[1] + "&";
	if (a[2])
		  {
			  new_url += a[2];
		  }
		
	popw = y.open('http://www.blogger.com/blog_this.pyra?t=' + escape(Q) + '&u=' + escape(new_url) + '&n=' + escape(document.title),'bloggerForm','scrollbars=no,width=475,height=300,top=175,left=75,status=yes,resizable=yes');
	if (!document.all) T = setTimeout('popw.focus()',50);
	void(0);
	return true;
}

function wordpress()
{

	void (btw=window.open ('http://wordpress.com/wp-admin/','bookmarklet','scrollbars=yes,width=600,height=460,left=100,top=150,status=yes,resizable=yes'));btw.focus();
    return true;
}

function newswine()
{
	var url = location.href;
    var a = url.split('&');
	if (a[0].indexOf("ACCT=104") > 0)
	{
		var b = a[0].replace(/ACCT=104/g, "ACCT=109");
	}
	else if (a[0].indexOf("ACCT=105") > 0)
	{
		var b = a[0].replace(/ACCT=105/g, "ACCT=109");
	}
	else if (a[0].indexOf("ACCT=106") > 0)
	{
		var b = a[0].replace(/ACCT=106/g, "ACCT=109");
	}
	else if (a[0].indexOf("ind_focus.story") > 0)
	{
		var b = a[0].replace(/ind_focus.story/g, "109");
	}
	else {
		var b = a[0];
	}
	
	var new_url =b +"&" + a[1] + "&";
	if (a[2])
		  {
			  new_url += a[2];
		  }

 var news = 'http://www.newsvine.com/_wine/save?popoff=1&h=' + escape(document.title) + '&u='+ escape(new_url);
 window.open(news,'newsvine','toolbar=no,width=590,height=600,resizable=yes,scrollbars=yes');
 return true;
}   
  
function reddit()
{
	var url = location.href;
    var a = url.split('&');
	if (a[0].indexOf("ACCT=104") > 0)
	{
		var b = a[0].replace(/ACCT=104/g, "ACCT=109");
	}
	else if (a[0].indexOf("ACCT=105") > 0)
	{
		var b = a[0].replace(/ACCT=105/g, "ACCT=109");
	}
	else if (a[0].indexOf("ACCT=106") > 0)
	{
		var b = a[0].replace(/ACCT=106/g, "ACCT=109");
	}
	else if (a[0].indexOf("ind_focus.story") > 0)
	{
		var b = a[0].replace(/ind_focus.story/g, "109");
	}
	else {
		var b = a[0];
	}
	
	var new_url =b +"&" + a[1] + "&";
	if (a[2])
		  {
			  new_url += a[2];
		  }
	var newslink = 'http://reddit.com/submit?url=' + escape(new_url) + '&title=' + escape(document.title);
	window.open(newslink,'reddit','toolbar=no,width=590,height=600,resizable=yes,scrollbars=yes');
	return true;
}

function stumbleupon()
{
	var url = location.href;
    var a = url.split('&');
	if (a[0].indexOf("ACCT=104") > 0)
	{
		var b = a[0].replace(/ACCT=104/g, "ACCT=109");
	}
	else if (a[0].indexOf("ACCT=105") > 0)
	{
		var b = a[0].replace(/ACCT=105/g, "ACCT=109");
	}
	else if (a[0].indexOf("ACCT=106") > 0)
	{
		var b = a[0].replace(/ACCT=106/g, "ACCT=109");
	}
	else if (a[0].indexOf("ind_focus.story") > 0)
	{
		var b = a[0].replace(/ind_focus.story/g, "109");
	}
	else {
		var b = a[0];
	}
	
	var new_url =b +"&" + a[1] + "&";
	if (a[2])
		  {
			  new_url += a[2];
		  }
	var news1 = 'http://www.stumbleupon.com/submit?url=' + escape(new_url) + '&title=' + escape(document.title);
	window.open(news1,'stumbleupon','toolbar=no,width=590,height=600,resizable=yes,scrollbars=yes');
	return true;
}

var isFeedVisible = false;
var str1 = window.document.URL.toString();

function link(feedId)
{   	
    document.getElementById('link').value = str1;
	
	 divFeed = document.getElementById(feedId);	
	
		if(divFeed) 
		{
			if(divFeed.style.display == 'none') 
			{
				divFeed.style.display = 'inline'					
				isFeedVisible = true;
				document.getElementById('top').href = "#linktopagebottom";	
			}
			else
			{
				divFeed.style.display = 'none'
				
				isFeedVisible = false;
				document.getElementById('top').href = "#linktopagetop";
			   
			}
		
		}
window.setTimeout('setfocusof()',40);
		return true;
	
}
function setfocusof()
{
	document.getElementById('link').select();
}
