this_u = document.location.href;
this_t = document.getElementsByTagName('title')[0];
if ( !!this_t.childNodes.length ) {
	this_t = this_t.firstChild.data;
} else if ( this_t.innerHTML ) {
	this_t = this_t.innerHTML;
}

function sharerlink(type) {
	if (type) {
		switch (type) {
			case "facebook":
				sharer_u = "http://www.facebook.com/sharer.php?u="+this_u+"&t="+this_t;
				break;
			case "stumbleupon":
				sharer_u = "http://www.stumbleupon.com/submit?url="+this_u+"&title="+this_t;
				break;
			case "reddit":
				sharer_u = "http://reddit.com/submit?url="+this_u+"&title="+this_t;
				break;
			case "digg":
				sharer_u = "http://digg.com/remote-submit?phase=2&url="+this_u+"&title="+this_t;
				break;
			case "delicious":
				sharer_u = "http://del.icio.us/post?v=4&noui&jump=close&url="+this_u+"&title="+this_t;
				break;
		}
		javascript:openWin(sharer_u,643,415,'share');
	}
}


function openWin(url, width, height,name) {
	options = "resizable=1,scrollbars=1,menubar=0,status=1,width="+width+",height="+height;
	new2Win = window.open(url, name ,options);
}

function newaccount() {
	var url;
	url = "https://www.ladbrokes.com/lbr_portal?action=go_register&casino_aff=default&system_source=OBE&system_source_id=OBS_WEB&AFF_ID=19005&InstantPlay=Lobby&return_url=http^//www.ladbrokes.com/lbr_portal";
	reg_win = openWin(url,640,590,'regwindow');
		
}


