function popup(url, width, height) {
	if(url.substring(0,4) == "http" || url.substring(0,3) == "www") {
		var w = window.open(url, "popup", "width="+width+",height="+height+",scrollbars=yes,resizable=no");
	} else {
		var w = window.open(window.location.protocol+"//"+window.location.host+"/"+url, "popup", "width="+width+",height="+height+",scrollbars=yes,resizable=no");
	}
	w.focus();
}

function sBmrk(site, inUrl, inTitle){
	var url = '';
	switch(site) {
		case 'facebook':
			url = 'http://www.facebook.com/share.php?u='+inUrl;
			break;
		case 'digg':
			url = 'http://digg.com/submit?phase=2&url='+inUrl;
			break;
		case 'stumbleupon':
			url = 'http://www.stumbleupon.com/submit?url='+inUrl;
			break;
		case 'delicious':
			url = 'http://del.icio.us/post?url='+inUrl+';title='+inTitle;
			break;
		case 'gnolia':
			url = 'http://ma.gnolia.com/bookmarklet/add?url='+inUrl+';title='+inTitle;
			break;
		case 'pusha':
			url = 'http://www.pusha.se/posta?url='+inUrl+';title='+inTitle;
			break;
		default:
			return;
	}
	var w = window.open(url, "popup", "width=830,height=650,scrollbars=yes,resizable=yes");
	w.focus();
}
