function go_url(url) {
	document.location.href = url;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function openFlashPoker() {
	var poker_link = 'https://mppv2flash3.valueactive.eu/Ladbrokes/lobby/';
	//var poker_link = 'https://mppv2flash3.valueactive.eu/Ladbrokes/lobby.aspx';
	//var poker_link = 'https://flashpoker.ladbrokes.com/ladbrokes/lobby';
	//var poker_link = 'http://poker.ladbrokes.com/layout/default/template/flash_holding.html';
	openFlashPokerPopup('poker_lobby', poker_link,790,571);
}

function openFlashPokerPopup(name, url, width, height) {
	var new_win = window.open(url, name,'width=' + width + ',height=' + height + ',directories=no,toolbar=no,resizable=no,location=no,menubar=no,status=no,scrollbars=no');
}

$(document).ready(
		function()
		{

		$("#scrollable").scrollable({items:'.items',horizontal:true});
		if (hu_offset) {
			$("#hu_scrollable").scrollable({size: 3,horizontal:true,speed: 1000,mousewheel:false,items: '.hu_items',prev:'.hu_prev',next:'.hu_next',offset:hu_offset});
			$(".current_hu").click();
		}


		$("#scrollable .items").css({height:"70px"});
		$("#scrollable .prev").css({display:"block"});
		$("#scrollable .next").css({display:"block"});


		// Toggle Image Popup
		$('#scrollable .items a').click(function()
			{
			   	if($('#image_popup').css('display') == 'none')
			   	{
					$('#image_popup').fadeIn("slow");
			   	}
					var title = $(this).attr("href");
					var desc = $(this).attr("title");
				    $("#image_popup .image_area").html("<img src=\""+title+"\"/><div class=\"image_desc\">"+desc+"</div>");
			   	
			 return false;  	
			}
		);
		
		// Close Image Popup
		$('#image_popup a').click(function()
			{
			   	if($('#image_popup').css('display') == 'block')
			   	{
					$('#image_popup').fadeOut("slow");
			   	}
			 return false;  	
			}
		);
		
}
);

