//
//	sub.js - Hiro.YASUTOMO SANSTREAM INC.
//
//	2007-9-26  ver 1.0  : original version
//	2007-9-26  ver 1.1  : + flg_debug, put_xbuf()
//	2007-9-27  ver 1.2  : + chk_navigator() + WE310 version Wise-002
//	2007-10-1  ver 1.3  : WE310 version Wise-003
//
//	2007-11-6  ver 1.4  : + getCookie/setCookie/clearCookie from tohoho
//	2007-11-7  ver 1.4.1: + acq_PositionSave/Load/Clear
//	2007-11-19 ver 1.4.2:  l_ShowDbgMsg support
//	2007-11-29 ver 1.4.3:  v_CPID support (upto ACQULIA VOD 1.7.0.1-)
//	2007-12-7  ver 1.4.4:  Bugfix cs_UserID null cut for Firefox
//
//	2008-1-11  ver 1.5  : WE310 version Wise-006
//	2008-1-25  ver 1.5.1: we_status and we_player to global
//	2008-2-18  ver 1.5.2: ww/hh size 0 --> 100%
//	2008-2-18  ver 1.5.3: live html parameter + AutoStart
//
//	2008-4-16  ver 1.6  : npAcqVPlayer.xpi support
//

var	flg_debug = 0;
var	cs_UserID = "anonymous";
var	cs_Ticket = "";


function chk_navigator()
{
	if(window.navigator.appName == "Microsoft Internet Explorer"){
		return("IE");
	}else if(window.navigator.appName == "Netscape"){
		return("NS");
	}else if(window.navigator.appName == "ANT Galio"){
		return("WE310");
	}else{
		return(window.navigator.appName);
	}
}
var	flg_navigator = chk_navigator();

function put_xbuf( xbuf )
{
	if(flg_debug != 0){
		var     buf = "";
		buf += "<br><table bgcolor=#ffffff border=1>\n";
		buf += "<tr align=center bgcolor=#c0f0f0><td><b>Name</b></td><td><b>Value</b></td></tr>\n";
		buf += "<tr><td>appName</td><td>" + window.navigator.appName + "</td></tr>\n";
		buf += "<tr><td>appCodeName</td><td>" + window.navigator.appCodeName + "</td></tr>\n";
		buf += "<tr><td>appVersion</td><td>" + window.navigator.appVersion + "</td></tr>\n";
		buf += "<tr><td>appUserAgent</td><td>" + window.navigator.appUserAgent + "</td></tr>\n";
		buf += "<tr><td>flg_navigator</td><td>" + flg_navigator + "</td></tr>\n";
		buf += "<tr><td>xbuf</td><td><textarea cols=65 rows=15>" + xbuf + "</textarea></td></tr>\n";
		buf += "</table>\n";
		document.write(buf);
	}
}

function set_cred( uid, ticket )
{
	cs_UserID = uid;
	cs_Ticket = ticket;
}

///// ------------------------ for LIVE ----------------------- /////

// --[ default settings ]--
var	l_object_id             = "AcqLPlayerX";
var	l_mimetype              = "video/acqlplayerx";
var	l_classid               = "CLSID:9FF9F9C8-9E31-4311-8821-E22AF6B4E4CF";
var	l_codebase = "http://219.105.35.37/player/AcqLPlayerX_2_0_0_7.cab#version=2,0,0,7";

var	l_LBS_ServerIP          = "";
var	l_ServerIP              = "219.105.35.41";
var	l_ShowControlBar        = 1;
var	l_EnableContextMenu     = 1;
var	l_EnableProxySetting    = 1;
var	l_EnableHttpTunneling   = 1;
var	l_AutoStart             = 1;
var	l_AutoClose             = 0;
var	l_ShowDbgMsg            = 0;
var	l_LogoPath              = "";

//
//	Put LIVE Player for Internet Explorer
//
function put_acql_IE(sdpFile, MovieTitle, ww, hh, AspectRatio)
{
	if((ww == 0)||(ww == 0)){
		ww = "100%";
		hh = "100%";
	}else{
		if(l_ShowControlBar == 1) hh += 38;
	}
	var	xbuf = "";
	xbuf += "<object id=\"" + l_object_id + "\" classid=\"" + l_classid + "\" width=\"" + ww + "\" height=\"" + hh + "\" CODEBASE=\"" + l_codebase + "\" name=\"" + l_object_id + "\" type=\"" + l_mimetype + "\">\n";
	if(l_LBS_ServerIP != ""){
		xbuf += "<param name=\"LBS_ServerIP\" value=\"" + l_LBS_ServerIP + "\">\n";
	}
	xbuf += "<param name=\"ServerIP\" value=\"" + l_ServerIP + "\">\n";
	xbuf += "<param name=\"MovieFile\" value=\"" + sdpFile + "\">\n";
	xbuf += "<param name=\"MovieTitle\" value=\"" + MovieTitle + "\">\n";
	xbuf += "<param name=\"ShowDbgMsg\" value=\"" + l_ShowDbgMsg + "\">\n";
	xbuf += "<param name=\"UserID\" value=\"" + cs_UserID + "\">\n";
	xbuf += "<param name=\"TicketID\" value=\"" + cs_Ticket + "\">\n";
	xbuf += "<param name=\"ShowControlBar\" value=\"" + l_ShowControlBar + "\">\n";
	xbuf += "<param name=\"EnableContextMenu\" value=\"" + l_EnableContextMenu + "\">\n";
	xbuf += "<param name=\"AutoStart\" value=\"" + l_AutoStart + "\">\n";
	xbuf += "<param name=\"AutoClose\" value=\"" + l_AutoClose + "\">\n";
	if(AspectRatio != ""){
		xbuf += "<param name=\"AspectRatio\"         value=\"" + AspectRatio + "\">\n";
	}
	if(l_LogoPath != ""){
		xbuf += "<param name=\"LogoPath\"         value=\"" + l_LogoPath + "\">\n";
	}
	xbuf += "</object>\n";
	document.write(xbuf);
	put_xbuf(xbuf);
}

//
//	Put LIVE Player for Netscape/FireFox/Safari
//
function put_acql_NS(sdpFile, MovieTitle, ww, hh, AspectRatio)
{
	if((ww == 0)||(hh == 0)){
		ww = "100%";
		hh = "100%";
	}else{
		if(l_ShowControlBar == 1) hh += 38;
	}
	var	xbuf = "";
	xbuf += "<embed type=\"" + l_mimetype + "\" width=\"" + ww + "\" height=\"" + hh + "\" \n";
	xbuf += " name=\"" + l_object_id + "\"\n";
	xbuf += " pluginspage=\"http://www.sanstream.co.jp/player/\"\n";

	if(l_LBS_ServerIP != ""){
		xbuf += " LBS_ServerIP=\"" + l_LBS_ServerIP + "\"\n";
	}
	xbuf += " ServerIP=\"" + l_ServerIP + "\"\n";
	xbuf += " MovieFile=\"" + sdpFile + "\"\n";
	xbuf += " MovieTitle=\"" + MovieTitle + "\"\n";

	xbuf += " UserID=\"" + cs_UserID + "\"\n";
	xbuf += " TicketID=\"" + cs_Ticket + "\"\n";
	xbuf += " ShowControlBar=\"" + l_ShowControlBar + "\"\n";
	xbuf += " ShowDbgMsg=\"" + l_ShowDbgMsg + "\"\n";
	xbuf += " EnableContextMenu=\"" + l_EnableContextMenu + "\"\n";
	xbuf += " AutoStart=\"" + l_AutoStart + "\"\n";
	xbuf += " AutoClose=\"" + l_AutoClose + "\"\n";
	if(AspectRatio != ""){
		xbuf += " AspectRatio=\"" + AspectRatio + "\"\n";
	}
	if(l_LogoPath != ""){
		xbuf += " LogoPath=\"" + l_LogoPath + "\"\n";
	}
	xbuf += "></embed>\n";
	document.write(xbuf);
	put_xbuf(xbuf);

	var embed = document.embeds[0];
}

function put_acql(sdpFile, MovieTitle, ww, hh, AspectRatio)
{
	if(flg_navigator == "IE"){
		put_acql_IE(sdpFile, MovieTitle, ww, hh, AspectRatio);

	}else if(flg_navigator == "NS"){
		put_acql_NS(sdpFile, MovieTitle, ww, hh, AspectRatio);

	}else{
		document.write("Unknown browser type.[" + flg_navigator + "]\n");
		put_xbuf("");
	}
}

///// ------------------------ for VOD ----------------------- /////

// --[ default settings ]--
var	v_object_id = "AcqVPlayerX";
var	v_classid   = "CLSID:31EE92CA-C0F5-48F7-AE60-B54CDF3BB76C";
var	v_codebase  = "http://219.105.35.37/player/AcqVPlayerX_2_0_2_21.cab#version=2,0,2,21";
var	v_winxpi    = "http://219.105.35.37/player/npAcqVPlayer.xpi";
var	v_mimetype  = "video/acqvplayerx";
var	v_HttpTunnelingType     = 0;
var	v_MovieFile             = "";

var	v_LBS_ServerIP          = "";
var	v_ServerIP              = "219.105.35.39:80";
var	v_AutoStart             = 1;
var	v_AutoConnect           = 1;
var	v_AutoClose             = 0;
var	v_AutoRepeat            = 0;
var	v_EnableAutoRepeat      = 1;
var	v_EnableContextMenu     = 1;
var	v_EnableFullScreen      = 1;
var	v_FullScreenAtStart     = 0;
var	v_FullScreenAtStartMode = 0;
var	v_NormalScreenAtEnd     = 0;
var	v_ShowControlBar        = 1;
var	v_ScreenMode            = 0;
var	v_SubFontSize           = 6;
var	v_NextPlayUrl           = "";
var	v_ShowStatusText        = 1;
var	v_DisableScreenSaver    = 1;
var	v_AlwaysOnTop           = 0;
var	v_EnableProxySetting    = 1;
var	v_EnableHttpTunneling   = 1;
var	v_EnableAccelerator     = 1;
var	v_EnableSpeedControl    = 1;
var	v_SpeedControlRange     = "50-150";
var	v_FullScreenSwitch      = 0;
var	v_LogoPath              = "";

var	v_flgCName              = 0;	// 0:MovieFile 1:CName
var	v_CPID                  = 0;	// 0=BASIC/ 0!=ASP

function set_useCName()
{
	v_flgCName = 1;
}

function set_nouseCName()
{
	v_flgCName = 0;
}

//
//	Put VOD Player for Internet Explorer
//
function put_acqv_IE(MovieFile, MovieTitle, ww, hh, AspectRatio)
{
	if((ww == "0")||(ww == 0)){
		ww = "100%";
		hh = "100%";
	}else{
		if(v_ShowControlBar == 1) hh += 66;
	}
	var	xbuf = "";
	xbuf += "<object id=\"" + v_object_id + "\" classid=\"" + v_classid + "\" width=\"" + ww + "\" height=\"" + hh + "\" CODEBASE=\"" + v_codebase + "\" name=\"" + v_object_id + "\" type=\"" + v_mimetype + "\">\n";
	if(v_LBS_ServerIP != ""){
		xbuf += "<param name=\"LBS_ServerIP\" value=\"" + v_LBS_ServerIP + "\">\n";
	}
	xbuf += "<param name=\"ServerIP\" value=\"" + v_ServerIP + "\">\n";
	if(v_flgCName == 1){
		xbuf += "<param name=\"CName\" value=\"" + MovieFile + "\">\n";
	}else{
		xbuf += "<param name=\"MovieFile\" value=\"" + MovieFile + "\">\n";
	}
	if(v_CPID != 0){
		xbuf += "<param name=\"CPID\" value=\"" + v_CPID + "\">\n";
	}
	xbuf += "<param name=\"MovieTitle\" value=\"" + MovieTitle + "\">\n";
	xbuf += "<param name=\"UserID\" value=\"" + cs_UserID + "\">\n";
	xbuf += "<param name=\"TicketID\" value=\"" + cs_Ticket + "\">\n";
	xbuf += "<param name=\"AutoStart\" value=\"" + v_AutoStart + "\">\n";
	xbuf += "<param name=\"AutoConnect\" value=\"" + v_AutoConnect + "\">\n";
	xbuf += "<param name=\"AutoClose\" value=\"" + v_AutoClose + "\">\n";
	xbuf += "<param name=\"AutoRepeat\" value=\"" + v_AutoRepeat + "\">\n";
	xbuf += "<param name=\"EnableAutoRepeat\" value=\"" + v_EnableAutoRepeat + "\">\n";
	xbuf += "<param name=\"EnableContextMenu\" value=\"" + v_EnableContextMenu + "\">\n";
	xbuf += "<param name=\"EnableFullScreen\" value=\"" + v_EnableFullScreen + "\">\n";
	xbuf += "<param name=\"FullScreenAtStart\" value=\"" + v_FullScreenAtStart + "\">\n";
	xbuf += "<param name=\"FullScreenAtStartMode\" value=\"" + v_FullScreenAtStartMode + "\">\n";
	xbuf += "<param name=\"NormalScreenAtEnd\" value=\"" + v_NormalScreenAtEnd + "\">\n";
	xbuf += "<param name=\"ShowControlBar\" value=\"" + v_ShowControlBar + "\">\n";
	xbuf += "<param name=\"ScreenMode\" value=\"" + v_ScreenMode + "\">\n";
	xbuf += "<param name=\"SubFontSize\" value=\"" + v_SubFontSize + "\">\n";
	xbuf += "<param name=\"NextPlayUrl\" value=\"" + v_NextPlayUrl + "\">\n";
	xbuf += "<param name=\"ShowStatusText\" value=\"" + v_ShowStatusText + "\">\n";
	xbuf += "<param name=\"DisableScreenSaver\" value=\"" + v_DisableScreenSaver + "\">\n";
	xbuf += "<param name=\"AlwaysOnTop\" value=\"" + v_AlwaysOnTop + "\">\n";
	xbuf += "<param name=\"EnableProxySetting\" value=\"" + v_EnableProxySetting + "\">\n";
	xbuf += "<param name=\"EnableHttpTunneling\" value=\"" + v_EnableHttpTunneling + "\">\n";
	xbuf += "<param name=\"EnableAccelerator\" value=\"" + v_EnableAccelerator + "\">\n";
	xbuf += "<param name=\"EnableSpeedControl\" value=\"" + v_EnableSpeedControl + "\">\n";
	xbuf += "<param name=\"SpeedControlRange\" value=\"" + v_SpeedControlRange + "\">\n";
	xbuf += "<param name=\"FullScreenSwitch\" value=\"" + v_FullScreenSwitch + "\">\n";
	xbuf += "<param name=\"HttpTunnelingType\" value=\"" + v_HttpTunnelingType + "\">\n";
	if(v_LogoPath != ""){
		xbuf += "<param name=\"LogoPath\" value=\"" + v_LogoPath + "\">\n";
	}
	if(AspectRatio != ""){
		xbuf += "<param name=\"AspectRatio\" value=\"" + AspectRatio + "\">\n";
	}
	xbuf += "</object>\n";
	document.write(xbuf);
	put_xbuf(xbuf);
}

//
//	Put VOD Player for Netscape/FireFox/Safari
//
function inst_npAcqVPlayer()
{
	if(!InstallTrigger.updateEnabled()) return false;
	xpi = {'ACQULIA PLAYER':v_winxpi};
	InstallTrigger.install(xpi);
}

function put_acqv_NS(MovieFile, MovieTitle, ww, hh, AspectRatio)
{
	if((ww == "0")||(ww == 0)){
		ww = "100%";
		hh = "100%";
	}else{
		if(v_ShowControlBar == 1) hh += 66;
	}
	var	xbuf = "";
	xbuf += "<embed type=\"" + v_mimetype + "\" width=\"" + ww + "\" height=\"" + hh + "\" \n";
	xbuf += " id=\"" + v_object_id + "\" name=\"" + v_object_id + "\" \n";
	xbuf += " pluginspage=\"http://www.sanstream.co.jp/player/\"\n";

	if(v_LBS_ServerIP != ""){
		xbuf += " LBS_ServerIP=\"" + v_LBS_ServerIP + "\"\n";
	}
	xbuf += " ServerIP=\"" + v_ServerIP + "\"\n";
	if(v_flgCName == 1){
		xbuf += " CName=\"" + MovieFile + "\"\n";
	}else{
		xbuf += " MovieFile=\"" + MovieFile + "\"\n";
	}
	if(v_CPID != 0){
		xbuf += " CPID=\""                  + v_CPID                  + "\"\n";
	}
	xbuf += " MovieTitle=\""            + MovieTitle              + "\"\n";

	if(cs_UserID.charCodeAt(cs_UserID.length -1) == 0){
		cs_UserID = cs_UserID.substring(0, cs_UserID.length-1);
	}
	xbuf += " UserID=\""                + cs_UserID               + "\"\n";
	xbuf += " TicketID=\""              + cs_Ticket               + "\"\n";
	xbuf += " AutoStart=\""             + v_AutoStart             + "\"\n";
	xbuf += " AutoConnect=\""           + v_AutoConnect           + "\"\n";
	xbuf += " AutoClose=\""             + v_AutoClose             + "\"\n";
	xbuf += " AutoRepeat=\""            + v_AutoRepeat            + "\"\n";
	xbuf += " EnableAutoRepeat=\""      + v_EnableAutoRepeat      + "\"\n";
	xbuf += " EnableContextMenu=\""     + v_EnableContextMenu     + "\"\n";
	xbuf += " EnableFullScreen=\""      + v_EnableFullScreen      + "\"\n";
	xbuf += " FullScreenAtStart=\""     + v_FullScreenAtStart     + "\"\n";
	xbuf += " FullScreenAtStartMode=\"" + v_FullScreenAtStartMode + "\"\n";
	xbuf += " NormalScreenAtEnd=\""     + v_NormalScreenAtEnd     + "\"\n";
	xbuf += " ShowControlBar=\""        + v_ShowControlBar        + "\"\n";
	xbuf += " ScreenMode=\""            + v_ScreenMode            + "\"\n";
	xbuf += " SubFontSize=\""           + v_SubFontSize           + "\"\n";
	xbuf += " NextPlayUrl=\""           + v_NextPlayUrl           + "\"\n";
	xbuf += " ShowStatusText=\""        + v_ShowStatusText        + "\"\n";
	xbuf += " DisableScreenSaver=\""    + v_DisableScreenSaver    + "\"\n";
	xbuf += " AlwaysOnTop=\""           + v_AlwaysOnTop           + "\"\n";
	xbuf += " EnableProxySetting=\""    + v_EnableProxySetting    + "\"\n";
	xbuf += " EnableHttpTunneling=\""   + v_EnableHttpTunneling   + "\"\n";
	xbuf += " EnableAccelerator=\""     + v_EnableAccelerator     + "\"\n";
	xbuf += " EnableSpeedControl=\""    + v_EnableSpeedControl    + "\"\n";
	xbuf += " SpeedControlRange=\""     + v_SpeedControlRange     + "\"\n";
	xbuf += " FullScreenSwitch=\""      + v_FullScreenSwitch      + "\"\n";
	xbuf += " HttpTunnelingType=\""     + v_HttpTunnelingType     + "\"\n";
	if(v_LogoPath != ""){
		xbuf += " LogoPath=\"" + v_LogoPath + "\"\n";
	}
	if(AspectRatio != ""){
		xbuf += " AspectRatio=\"" + AspectRatio + "\"\n";
	}
	xbuf += "></embed>\n";
	document.write(xbuf);
	put_xbuf(xbuf);	
	var embed = document.embeds[0];
}

function put_acqv(MovieFile, MovieTitle, ww, hh, AspectRatio)
{
	v_MovieFile = MovieFile;
	if(flg_navigator == "IE"){
		put_acqv_IE(MovieFile, MovieTitle, ww, hh, AspectRatio);

	}else if(flg_navigator == "NS"){
		put_acqv_NS(MovieFile, MovieTitle, ww, hh, AspectRatio);

	}else if(flg_navigator == "WE310"){
		put_acqv_WE310(MovieFile, MovieTitle, ww, hh, AspectRatio);

	}else{
		document.write("Unknown browser type.[" + flg_navigator + "]\n");
		put_xbuf("");
	}
}

//-------------------- getCookie/setCookie/clearCookie ------------------
var	acq_pos  = 0;

function acq_PositionLoad()
{
	acq_pos = getCookie("acq_pos" + v_ServerIP + v_MovieFile);
	if(acq_pos == ""){
		acq_pos = 0;
	}
	return(acq_pos);
}

function acq_PositionSave() {
	acq_pos = AcqVPlayerX.Position();
	setCookie("acq_pos" + v_ServerIP + v_MovieFile, acq_pos);
}

function acq_PositionClear() {
	acq_pos = 0;
	setCookie("acq_pos" + v_ServerIP + v_MovieFile, acq_pos);
}

// copy from tohoho
function getCookie(key,  tmp1, tmp2, xx1, xx2, xx3) {
	tmp1 = " " + document.cookie + ";";
	xx1 = xx2 = 0;
	len = tmp1.length;
	while (xx1 < len) {
		xx2 = tmp1.indexOf(";", xx1);
		tmp2 = tmp1.substring(xx1 + 1, xx2);
		xx3 = tmp2.indexOf("=");
		if (tmp2.substring(0, xx3) == key) {
			return(unescape(tmp2.substring(xx3 + 1, xx2 - xx1 - 1)));
		}
		xx1 = xx2 + 1;
	}
	return("");
}

// copy from tohoho
function setCookie(key, val, tmp) {
	tmp = key + "=" + escape(val) + "; ";
	// tmp += "path=" + location.pathname + "; ";
	tmp += "expires=Tue, 31-Dec-2030 23:59:59; ";
	document.cookie = tmp;
}

// copy from tohoho
function clearCookie(key) {
	document.cookie = key + "=" + "xx; expires=Tue, 1-Jan-1980 00:00:00;";
}

//-------------------- for WE310 ------------------

var	we_alphaValue = 1;
var	we_align = "center";
var	we_max_ww = 1280;
var	we_max_hh = 720;

function put_acqv_WE310(MovieFile, MovieTitle, ww, hh, AspectRatio)
{
	if(AspectRatio != ""){
		var	asp = AspectRatio.split(":");
		var	asp_xx = asp[0];
		var	asp_yy = asp[1];
		var	plain_ww = we_max_ww;
		var	plain_hh = we_max_hh;
		if(ww > 0) plain_ww = ww;
		if(hh > 0) plain_hh = hh;
		ww = plain_hh * asp[0] / asp[1];
		hh = ww * asp[1] / asp[0];
	}

	var	xx = 0;
	var	yy = 0;
	if(we_align == "center"){
		xx = (we_max_ww - ww)/2;
		yy = (we_max_hh - hh)/2;
	}
	if(we_align == "L_top"){
		xx = 0;
		yy = 0;
	}
	if(we_align == "R_top"){
		xx = we_max_ww - ww;
		yy = 0;
	}
	if(we_align == "L_bottom"){
		xx = 0;
		yy = we_max_hh - hh;
	}
	if(we_align == "R_bottom"){
		xx = we_max_ww - ww;
		yy = we_max_hh - hh;
	}
	put_acqv_WE310_size(MovieFile, xx, yy, ww, hh);
}

// 1 or 2 = (D1/D2) 640x480
// 3 or 5 = (D3/D5) 1920x1080
// 4      = (D4   ) 1280x720
function we_set_MonitorSize(xx, yy)
{
	we_max_ww = xx;
	we_max_hh = yy;
}

function we_set_D1()
{
	we_max_ww = 640;
	we_max_hh = 480;
}

function we_set_D2()
{
	we_set_D1();
}

function we_set_D3()
{
	we_max_ww = 1920;
	we_max_hh = 1072;
}

function we_set_D4()
{
	we_max_ww = 1280;
	we_max_hh = 720;
}

function we_set_D5()
{
	we_set_D3();
}

var	we_player;
var we_system;

function put_acqv_WE310_size(MovieFile, xx, yy, ww, hh)
{
	var	we_server  = v_ServerIP;
	var	we_option  = "-c mpeg -pv 5hd";
	var	we_play_option = "AspectRatio=0x0 PreBuffer=768 AutoRepeat=" + v_AutoRepeat + " ScreenMode='" + we_max_ww + "," + we_max_hh + ":" + xx + "," + yy + "," + ww + "," + hh + "'";

	if(cs_Ticket != ""){
		we_play_option = we_play_option + " UserID='" + cs_UserID + "' TicketID='" + cs_Ticket + "'" ;
	}

	if(flg_navigator == "WE310"){
		we_system = new WESystem();
		we_player = new WEPlayer();
		we_system.canMenuAutoHide(false);
		we_system.setAlpha(we_alphaValue);
	}

	var	xbuf = "";
	if(v_flgCName == 1){
		xbuf = "Server=" + we_server + " Cname=" + MovieFile + " " + we_play_option;
	}else{
		xbuf = "Server=" + we_server + " File=" + MovieFile + " " + we_play_option;
	}
	if(flg_navigator == "WE310"){
		we_player.run(xbuf);
	}
	put_xbuf("we_player.run(" + xbuf + ")");
}


