function facebookQuiz(quizid,entryid) {
	u="http://www.spillbyen.no/quiz/" + quizid + "/" + entryid + "/";
	t=document.title;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'spillbyen.no','toolbar=0,status=0,width=626,height=436');
	return false;
}

function fbs_click() {
	u=location.href;
	t=document.title;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'spillbyen.no','toolbar=0,status=0,width=626,height=436');
	return false;
}

function nbs_click() {
	var name = encodeURIComponent(document.title);
	var url = encodeURIComponent(location.href);
	var metaArray = document.getElementsByName('description');
	var description = encodeURIComponent(metaArray[0].content);
  wnd=window.open('http://www.nettby.no/user/edit_link.php?name='+name+'&url='+url+'&description='+description,'edit_link','scrollbars=no,width=450,height=430');
	wnd.focus();
}

function twitter_click(twitterid) {
	u=location.href;
	t=document.title;
	window.open('http://twitter.com/home?status=Fra%20Snopp%20Medias%20blogg:%20The%20Christmas%20Soda-King%20-%20http://snopp.no/blogg/the-christmas-soda-king','','toolbar=0,status=0,width=626,height=436');
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'spillbyen.no','toolbar=0,status=0,width=626,height=436');
	return false;
}