// JavaScript Document
var domain = location.hostname;
var hostname = location.hostname;
var pathname = location.pathname;
var filename = pathname.split("/keiba_check")[1];
var filename = (filename != undefined || "undefined") ? filename : "";
var MAIN_HOST = "blog.keiba-check.com";
var MAIN_URL = "http://" + MAIN_HOST;


if (domain != MAIN_HOST) {
	//location.href= MAIN_URL + filename;
}



//キャッシュ読み込み防止策用乱数
var getFs_timef = function () { return "?cache=" + (new Date()).getTime();}





////prototype.js Ajaxクラスを使用
//
var _result = {};
function getHorseProp(kettonum)	{

	var url = MAIN_URL + date + "/us/" + "us" + kettonum + ".txt";
	var myAjax = new Ajax.Request(
			url, 
			{
				method: 'get', 
				parameters: '', 
				onComplete: showResponse
			});
		
}


function showResponse(originalRequest)	{
	
	var __r = originalRequest.responseText;
	//put returned XML in the textarea
	$('result').value = __r;
	
	_result = eval(__r);

}
