function getFlashMovieObject(movieName)	{
	if (window.document[movieName]) {
		return window.document[movieName];
	}
	if (navigator.appName.indexOf("Microsoft Internet")==-1) {
		if (document.embeds && document.embeds[movieName])
			return document.embeds[movieName]; 
	} else {
		return document.getElementById(movieName);
	}
}

function gyoji(val) {
    setCommand(getFlashMovieObject(zv.id), 'jsCom', val);
}

function fsiControl(val) {
    setCommand((document.all)? document.getElementById('zv_obj') : document.zv_obj, 'FSICMD', val);
}

function FSInoCommand(){
	setFSICommand("FSICMD", "");
}

function setFSICommand(arg){
    setCommand((document.all)? document.getElementById('fsiviewer') : document.fsiviewer, 'FSICMD', arg);
}

function setCommand(object, cmd, arg){
	if(object  && typeof object.SetVariable != "undefined"){
		try{
			object.SetVariable(cmd, arg);
		}catch(error){}
	}
}