
function __JSessionRefresher() {}
(function() {
	var span = null
	var id = 0
	var href = "http://www.ladydream.com/games/sessionrefresher.js;jsessionid=AEA2A11B85A520AF71D3F393C849C0E9"
	var timeout = null
	var timeoutMills = 90000

	__JSessionRefresher.refresh = function() { with (this) {
			span = document.body.appendChild(document.createElement("SPAN"));
			span.style.display = 'none';
			span.innerHTML = 'Text for stupid IE.<s'+'cript></' + 'script>';
			setTimeout(function() {
		    	var s = span.getElementsByTagName("script")[0]
		    	s.language = "JavaScript"
		    	if (s.setAttribute) s.setAttribute('src', href+'?id='+(++id))
				else s.src = href
			}, 10)
			__JSessionRefresher.loadUp()
		}},
	__JSessionRefresher.loadUp = function(tm) { with (this) {
		if (tm) timeoutMills = tm
		if (timeout) clearTimeout(timeout)
			timeout = setTimeout(refresh, timeoutMills)
		}}
	__JSessionRefresher.callback = function(text) { with (this) {
//			document.getElementById('result').innerHTML += " "+text
			if (span) {
				setTimeout(function() {
					span.parentNode.removeChild(span)
				}, 50)
			}
		}}
	}
)();
__JSessionRefresher.loadUp()
function closeGame() {
	CloseGame()
}
function CloseGame() {
	alert('You cannot close game')
}
function goCasino(url) {
	window.location.href=url
}
function getRegisterPage(url) {
	window.location.href=url
}

function helpwnd(name) {
	if (name) {
		var hwin = window.open("http://www.ladydream.com/help/main?name="+name,	
		"helpwndq",'width=534,height=600,scrollbars=yes,toolbar=no');
		hwin.focus();
	}
}		
function refreshSession(timeout) {		
    __JSessionRefresher.loadUp(timeout)
}
(function () {
var server='http://www.ladydream.com'
var httpsession='AEA2A11B85A520AF71D3F393C849C0E9'
var url='http://www.ladydream.com/flash/en/baccarat/Baccarat.swf'
var urlRegister='http://www.ladydream.com/register;jsessionid=AEA2A11B85A520AF71D3F393C849C0E9'
var gamesession='BACCARAT_26588'
var game='BACCARAT'
var id='500000043'
var roundsToShowBanner='15'

document.write(
'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="Flash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+__freeGameWidth+'" height="'+__freeGameHeight+'"> '+
'<param name="movie" value="'+url+'?URL_REGISTER='+urlRegister+'&amp;URL_CASHIER='+urlRegister+'&amp;ROUNDSTOSHOWBANNER='+roundsToShowBanner+'&amp;GAMESESSION='+gamesession+'&amp;REAL=0&amp;HelpURL=javascript:helpwnd(\''+game+'\')&amp;URL_SERVLET=/advpost;jsessionid='+httpsession+'&amp;URL_REDIRECTOR=/games/advancedredirector;jsessionid='+httpsession+'" /> '+
'<param name="allowScriptAccess" value="always" />'+
'<param name="menu" value="false" /> <param name="quality" value="best" /> <param name="devicefont" value="true" /> <param name="bgcolor" value="#000000" /> '+
'<embed src="'+url+'?URL_REGISTER='+urlRegister+'&amp;URL_CASHIER='+urlRegister+'&amp;ROUNDSTOSHOWBANNER='+roundsToShowBanner+'&amp;GAMESESSION='+gamesession+'&amp;REAL=0&amp;HelpURL=javascript:helpwnd(\''+game+'\')&amp;URL_SERVLET=/advpost;jsessionid='+httpsession+'&amp;URL_REDIRECTOR=/games/advancedredirector;jsessionid='+httpsession+'"'+
' name="Flash" menu="false" quality="best" devicefont="true" bgcolor="#000000"'+
' width="'+__freeGameWidth+'" height="'+__freeGameHeight+'" allowScriptAccess="always"'+
' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>')
})()