

function clearT() {
	if (t) {
		clearTimeout(t)
	}
}

function go_lights() {
	//blink_speed = 200
	blink_off();
	blink_on();
	t=setTimeout("go_lights()",blink_speed);
}

function blink_off() {
	if (image_counter != 1) {
		pre_image_counter = (image_counter - 1)
	} else {
		pre_image_counter = 10
	}
	
	reset_image = eval( "document.image" + pre_image_counter);
	reset_image.src = reg_imag.src
}

function blink_on() {
	if (image_counter == 11) {
		image_counter=1;
	}
	if (image_counter == 4 || image_counter == 5 || image_counter == 6) {
	 highlight_image = game_imag;
	 blink_speed = 200;
	} else {
	 highlight_image = high_imag
	}
	change_image = eval( "document.image" + image_counter);
	change_image.src = highlight_image.src
	image_counter ++ ;
}

var image_counter=1;
var high_imag= new Image;
high_imag.src="../global_media/h_button.gif"
var reg_imag= new Image;
reg_imag.src="../global_media/button.gif";
blink_speed =200
var game_imag = new Image; 
game_imag.src = "../global_media/button_game.gif";
clearT();