// JavaScript Document

var BASE_URL = "http://www.ntv.co.jp/appli/serverdata/newszero/";

/////// URLLog Start /////
document.write("<img src='http://appli.ntv.co.jp/url.js?url=" + location.href + "&type=2' width='1' height='1'>")
/////// URLLog End /////

function ntv_openWindow(url, name, option) {
	window.open(url, name, option);
}

function ntv_AC_Generateobj(objAttrs, params, embedAttrs) 
{
    var str = '';
    if (isIE && isWin && !isOpera)
    {
  		str += '<object ';
  		for (var i in objAttrs)
  			str += i + '="' + objAttrs[i] + '" ';
  		str += '>';
  		for (var i in params)
  			str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  		str += '</object>';
    } else {
  		str += '<embed ';
  		for (var i in embedAttrs)
  			str += i + '="' + embedAttrs[i] + '" ';
  		str += '> </embed>';
    }
		
		document.write(str);

		//return str;
}

function ntv_AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  return ntv_AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

if (DetectFlashVer(9, 0, 28)) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed

	ntv_AC_FL_RunContent(
			"src", BASE_URL + "ntvNewsZero",
			"wmode", "transparent",
			"width", "150",
			"height", "260",
			"align", "middle",
			"id", "ntvNewsZero",
			"quality", "high",
			"bgcolor", "#869ca7",
			"name", "ntvNewsZero",
			"allowScriptAccess","always",
			"type", "application/x-shockwave-flash",
			"pluginspage", "http://www.adobe.com/go/getflashplayer",
			"flashvars", "userUrl="+window.location
	);
} else {  // flash is too old or we can't detect the plugin
	document.write('最新のAdobe Flash　Player が必要です。'
	+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>');  // insert non-flash content
}
