
function changebg(x) {
       document.getElementById(x).style.backgroundImage = ""; 
 } 


function exitwin(){
alert ('Incorrect Login Password.'); window.close();
}


function get_cookie()
{
if (document.cookie.length>0)
  {
  document.holdem_tool_free.custom.value=document.cookie.substring(document.cookie.indexOf('AFFI=')+5) 
  }

}


function hideAll(){
hideImage('CIT');
hideImage('BK');
hideImage('TT');
hideImage('OL');
}

function showImage (name, x, y, offset) {

  var c = document.getElementById(name);
  var leftoffset=0;
  var topoffset=0;

if (document.documentElement && document.documentElement.scrollTop) {
	topoffset = document.documentElement.scrollTop;}
	else if (document.body) {
		topoffset = document.body.scrollTop;}
else{ topoffset=window.pageYOffset;}


if (document.documentElement && document.documentElement.scrollLeft) {
	leftoffset = document.documentElement.scrollLeft;}
	else if (document.body) {
		leftoffset = document.body.scrollLeft;}
else{leftoffset=window.pageXOffset;}


if (offset == 0) {topoffset=0; leftoffset=0;}

  c.style.top =  topoffset + y + "px";
  c.style.left = leftoffset + x + "px";

}


function hideImage (name) {

  var c = document.getElementById(name);

  c.style.left        = -5000+"px";

}


var scroller;
function main()
{
	scroller = new KScroller(160, 2040, 3);
	scroller.setPause(false);

}



function KScroller(width, height, speed)
{
	this.width = width
	this.height = height
	this.top = height;
	this.left = 0;
	this.speed = speed;
	this.isPaused = true;
	this.deltaTime = 33.3;
	this.timer = 0;

	domObject = new Object();
	domObject.getObj = getObj;
	domObject.getObj('MENU2-CONTENT');
	this.div = domObject.obj;
	
	// Assign member functions to the object
	this.onTimer = onTimer;
	this.setPause = setPause;
	this.setPosn = setPosn;


}



// KScroller
function onTimer()
{
	if( this.isPaused )
	{
		// We have been paused since the last timer
		this.timer = 0
		return
	}

	if( this.top > -this.height )
		this.top -= this.speed
	else
		this.top = 900//this.height
	this.setPosn()
	this.timer = setTimeout('scroller.onTimer()', this.deltaTime)
}

// KScroller
function setPause(newState)
{
	this.isPaused = newState
	if( ! this.isPaused )
		if( this.timer == 0 )
			this.timer = setTimeout('scroller.onTimer()', this.deltaTime)
}

// KScroller
function setPosn()
{
	this.div.style.top = scroller.top+"px"
	this.div.style.left = scroller.left+"px" 
}

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
  }
	else if (document.all)
  {
		this.obj = document.all[name];
		this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}













