﻿//////////////////////////////////////////
//var button_number=8;//
//button
/*
var popUpTextimg_button = new Array();//mode
var popUpTextimg_button_on = new Array();//mode_on
	for(var i=0;i<button_number;i++)
	{
		popUpTextimg_button[i] = new Image(); popUpTextimg_button[i].src = "image/button"+i+".gif";
		popUpTextimg_button_on[i] = new Image(); popUpTextimg_button_on[i].src = "image/button"+i+"_on.gif";
	}
var popUpTextimg_button_stop = new Array();
	popUpTextimg_button_stop[0] = new Image(); popUpTextimg_button_stop[0].src = "image/stop_on.gif";
*/
//////////////////////////////////////////

function button_change(name)
{
	if(name!=anim_flg){
	//document.images['IMG_button'+name].src='image/button'+name+'_on.gif';//////////////
	//document.images['IMG_button'+anim_flg].src='image/button'+anim_flg+'.gif';//////////////
	}
	if(name==2 && aut_flg!=true){
		//document.images['IMG_stop'].src='image/stop_on.gif';
		top.frames["header"].document.images['IMG_pause'].src="img/pause.gif";
	}else{
		//document.images['IMG_stop'].src='image/stop_off.gif';
		top.frames["header"].document.images['IMG_pause'].src="img/pause_off.gif";
	}
}
var html_name=new Array();/////////////////////////////////////////1016
html_name["opening"]="right.html";//Introduction
html_name["0"]="right.html";//reset
html_name["1"]="right.html";//Inside EJX
html_name["2"]="p02.html";//Resonant Sensor
html_name["3"]="p09.html";//Rotational Head
html_name["4"]="p07.html";//Multi Sensing
html_name["5"]="p08.html";//MultiFunction LCD
html_name["red"]="p11.html";//Color Change to Red
html_name["green"]="p11.html";//Color Change to Mint Green

function text_change(name)
{
	if(name==0) if(aut_flg!=true)return;//
	parent.right.document.location.href=html_name[name];//////1016
}


