//　main visiter javascript //　外部ファイル読み込み用ダミー引数fDate = new Date();fDay = fDate.getDate();fHour = fDay+'.'+fDate.getHours();fMinute = fHour+'.'+fDate.getMinutes();//　文字サイズコントロールfunction setCookie(name, value, days){	var exDays = new Date();	exDays.setDate(exDays.getDate() + days);	var exDay = exDays.toGMTString();	document.cookie = name + "=" + value + ";expires=" + exDay + ";path=/;";}function readCookie(name){	var cookie_value;	var the_cookie = document.cookie;	var start_cookie = the_cookie.indexOf(name + "=");	if(start_cookie != -1){		var cookie_value = the_cookie.charAt(start_cookie+name.length+1);	}	else cookie_value=3;	return cookie_value;}var actSize = readCookie('galCharStyle');document.write('<link rel="stylesheet" type="text/css" href="http://www.keiba.net/gallop/a/c/char/charS'+actSize+'.css" />');for(i=1; i<6; i++){	document.write('<link rel="alternate stylesheet" type="text/css" href="http://www.keiba.net/gallop/a/c/char/charS'+i+'.css" title="charS'+i+'" />');}function setCharSize(ope) {	var i, a, s=actSize;	if(ope == "sizePlus"){		s++;		if(s>5) s=5;	}	else if(ope == "sizeMinus"){		s--;		if(s<1) s=1;	}	else{		s=3;	}	actSize=s;	setCookie('galCharStyle', actSize, 7);	ttl = "charS"+actSize;	for(i=0; a = document.getElementsByTagName("link")[i]; i++){		if(a.getAttribute("rel").indexOf("alt") != -1){			a.disabled = true;			if(a.getAttribute("title") == ttl) a.disabled = false;		}	}}//　ネスティングメニューfunction nest(id){	if(document.getElementById(id+"child").style.display == "block"){		document.getElementById(id+"child").style.display = "none";		document.getElementById(id).style.background = "#cf0f0f url(http://www.keiba.net/gallop/a/i/dot_Fc.gif) no-repeat 2px 45%";	}	else{		document.getElementById(id+"child").style.display = "block";		document.getElementById(id).style.background = "#cf0f0f url(http://www.keiba.net/gallop/a/i/dot_Fo.gif) no-repeat 2px 45%";	}}function nest2(id){	if(document.getElementById(id+"child2").style.display == "block"){		document.getElementById(id+"child2").style.display = "none";		document.getElementById(id).style.background = "url(http://www.keiba.net/gallop/a/i/dot_cls.gif) no-repeat 0 3px";	}	else{		document.getElementById(id+"child2").style.display = "block";		document.getElementById(id).style.background = "url(http://www.keiba.net/gallop/a/i/dot_opn.gif) no-repeat 0 3px";	}}function nest3(id){	if(document.getElementById(id+"child3").style.display == "block"){		document.getElementById(id+"child3").style.display = "none";		document.getElementById(id).style.background = "url(http://www.keiba.net/gallop/a/i/dot_Fc.gif) no-repeat 2px 45%";	}	else{		document.getElementById(id+"child3").style.display = "block";		document.getElementById(id).style.background = "url(http://www.keiba.net/gallop/a/i/dot_Fo.gif) no-repeat 2px 45%";	}}//　オープンウインドウfunction openwin(url, w, h){	featurs = 'scrollbars=1, resizable=1, width=' + w + ', height=' + h;	window.open(url, "", featurs);}