//if (top.location != location) {
//  top.location.href = document.location.href;
//}

var title = "BenQ ULV Joybooks,S35/S43";
var href = "http://www.benq.com/microsites/product/Joybook/ULV";
title = encodeURIComponent(title);

function AddToFacebook() 
{
	window.open('http://www.facebook.com/sharer.php?u=' + GetURL() + '&t=' + title + '','sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function AddToDelicious()
{
	var url = 'http://del.icio.us/post?url='+GetURL()+'&title='+title;
	window.open(url);
	return false;
}

function AddToDigg()
{
	var url = 'http://digg.com/submit?phase=2&url='+GetURL();
	window.open(url);
	return false;
}

function AddToReddit()
{
	var url = 'http://reddit.com/submit?url='+GetURL()+'&title'+title; 
	window.open(url);
	return false;
}

function AddToTwitter() 
{
	window.open('http://twitter.com/home/?status=' + title + ' ' + GetURL());
	return false;
}

function AddToPlurk() 
{
	window.open('http://www.plurk.com/?qualifier=shares&status=' + GetURL() + ' ( ' + title + ' ) ');
	return false;
}

function AddToFunP() 
{
	window.open('http://funp.com/push/submit/add.php?via=tools');
	return false;
}

function GetURL()
{
  return encodeURIComponent(href);
}

function AddToHD() 
{
  window.open('http://www.hemidemi.com/user_bookmark/new?title='+title+'&url='+GetURL());
  return false;
}

function AddToFavorite()
{
	if (document.all)
	{
		// For IE
		window.external.AddFavorite(href, document.title);
	}
	else if (window.sidebar)
	{
		// For Firefox
		window.sidebar.addPanel(document.title, href, "");
	}
}