/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Mr J | http://www.huntingground.net/ */

var scrollStep=2

var timerLeft=""
var timerRight=""
var scrollback
var toStart=""
  
/**
function startScroll(id) {
  timerRight=setTimeout("scrollDivLeft('"+id+"')",30)
  
}

function toStart(id){
  document.getElementById(id).scrollLeft-=document.getElementById(id).scrollWidth
}

**/

function scrollBack(id) {
  timerLeft=setTimeout("scrollDivRight('"+id+"')",10)
  
}

function toLeft(id){
  document.getElementById(id).scrollLeft-=660
}

function scrollDivLeft(id){
  clearTimeout(timerRight) 
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",10)
}

function scrollDivRight(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",10)
  
}

function toRight(id){
  document.getElementById(id).scrollLeft+=660
  //document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}

// Following scripts are for popups
/**
var state = 'none';
	
function showhide(layer_ref)
{
	if(state == 'block')
	{
		state = 'none';
	}
	else
	{
		state = 'block';
	}

	if(document.all)
	{ //IS IE 4 or 5 (or 6 beta)
		eval("document.all." +layer_ref+ ".style.display = state");
	}

	if (document.layers) 
	{ //IS NETSCAPE 4 or below
		document.layers[layer_ref].display = state;
	}
		
	if (document.getElementById && !document.all) 
	{
		document.getElementById(layer_ref).style.display = state;
	}
}

function hide(id)
{
	if(document.all)
	{ //IS IE 4 or 5 (or 6 beta)
		eval("document.all." +id+ ".style.display = 'none'");
	}

	if (document.layers) 
	{ //IS NETSCAPE 4 or below
		document.layers[id].display = 'none';
	}
		
	if (document.getElementById && !document.all) 
	{
		document.getElementById(id).style.display = 'none';
	}
}**/
