<!---
//	if (top != self) top.location.href = self.location.href;
	da_image = new Image();
	da_image.src = "../../favicon.ico";

	var k = new Date();
	var C1;
	function next(url) {
		document.input.flg.value= url;
		document.input.action = "http://219.99.160.118/~www/cgi-bin/jump.cgi";
		if( document.input.C1.checked )	{
			k++;
			window.open("wait.htm",k,"explorerbar=0,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");
			document.input.target = k;
		}
		else	{
			document.input.target = "_top";
		}
		document.input.submit();
	}
	
	var C2="";
	function Clear() {
		document.input.search.focus();
		if( document.input.search.value != "")	{
			C2 = document.input.search.value; 
			document.input.search.value = "";
		}
		else	{
			document.input.search.value = C2;
		}
	}
	
	function not_blank(){
		var i;
		for(i=0; i<document.links.length; i++){
		document.links[i].target="_self";}
	}
	window.onload=not_blank;
	
    var loading="0";
	function start(){
		loading="1";
		applyValues();
		chjs();
		not_blank();
		Focus2();
	}

	function Focus2() {
		document.input.search.focus();
		document.input.search.value += "";
	}
	
	function Focus3() {
		var check1;
		alert(document.input.C1.checked);
		setCookie("check1", document.input.C1.checked);
		Focus2();
	}

    var hint;
	function disp(hint) {
		if(loading=="1") {
			document.link1.menu1.value = hint;
			document.link3.menu3.value = hint;
		}
	}

function saveValue1() {    
	setCookie("selected_star", document.URA.STAR.selectedIndex); 
}   

function saveValue2() {
//	alert(document.input.C1.checked);
	setCookie("check1", document.input.C1.checked); 
}   

function applyValues() {
	if(document.cookie != ""){   
//	var form = document.forms[0];   
	document.URA.STAR.selectedIndex = (getCookie("selected_star"))
	? getCookie("selected_star") : ""; 
	C5=getCookie("check1");
	if (C5=="false") {document.input.C1.checked = false;};
	if (C5=="true") {document.input.C1.checked = true;};
	}
}   

function setCookie(key,val){
	var tmp = key+"="+escape(val)+";";
	tmp += "expires=Fri, 31-Dec-2030 23:59:59;";
	document.cookie = tmp;
}

function getCookie(key){
	var tmp = document.cookie+";";
	var tmp1 = tmp.indexOf(key,0);
	if(tmp1 != -1){
		tmp = tmp.substring(tmp1,tmp.length);
		start = tmp.indexOf("=",0);
		end = tmp.indexOf(";",start);
		return unescape(tmp.substring(start+1,end));
	}
	return("");
}

function chjs(){
	var ua = navigator.userAgent;
	var zoomratio; 
	var check2;
	if( ua.match(/windows/i) ){
		if( ua.match(/msie/i) ){
			var smav = ScriptEngineMajorVersion();
			var smiv = ScriptEngineMinorVersion();
			var sv   = smav + smiv/10;
			if(sv >= 5.5){
				document.getElementById('zoom100').onclick = zoom100;
				document.getElementById('zoom130').onclick = zoom130;
				document.getElementById('zoom160').onclick = zoom160;
				zoomratio = getCookie('zoom');				
				if(!zoomratio){
					zoomratio = 1.0;
				}
				document.body.style.zoom = zoomratio;
			}
		}
	}
}

function zoom100(){
	var zoomratio = window.document.body.style.zoom;
	zoomratio = parseFloat(zoomratio);
	zoomratio = 1.0;
	window.document.body.style.zoom = zoomratio;
	var currentzoom = window.document.body.style.zoom;
	setCookie('zoom',currentzoom);
	Focus2();
}

function zoom130(){
	var zoomratio = window.document.body.style.zoom;
	zoomratio = parseFloat(zoomratio);
	if(zoomratio == 1.3){
		zoomratio = 1.0;
		}
	else {
		zoomratio = 1.3;
	}
	window.document.body.style.zoom = zoomratio;
	var currentzoom = window.document.body.style.zoom;
	setCookie('zoom',currentzoom);
	Focus2();
}

function zoom160(){
	var zoomratio = window.document.body.style.zoom;
	zoomratio = parseFloat(zoomratio);
	if(zoomratio == 1.6){
		zoomratio = 1.0;
		}
	else {
		zoomratio = 1.6;
	}
	window.document.body.style.zoom = zoomratio;
	var currentzoom = window.document.body.style.zoom;
	setCookie('zoom',currentzoom);
	Focus2();
}

function dw(str){
	document.write(str);
}

function trimFixed(a) {
    var x = "" + a;
    var m = 0;
    var e = x.length;
    for (var i = 0; i < x.length; i++) {
        var c = x.substring(i, i + 1);
        if (c >= "0" && c <= "9") {
            if (m == 0 && c == "0") {
            } else {
                m++;
            }
        } else if (c == " " || c == "+" || c == "-" || c == ".") {
        } else if (c == "E" || c == "e") {
            e = i;
            break;
        } else {
            return a;
        }
    }

    var b = 1.0 / 3.0;
    var y = "" + b;
    var q = y.indexOf(".");
    var n;
    if (q >= 0) {
        n = y.length - (q + 1);
    } else {
        return a;
    }

    if (m < n) {
        return a;
    }

    var p = x.indexOf(".");
    if (p == -1) {
        return a;
    }
    var w = " ";
    for (var i = e - (m - n) - 1; i >= p + 1; i--) {
        var c = x.substring(i, i + 1);
        if (i == e - (m - n) - 1) {
            continue;
        }
        if (i == e - (m - n) - 2) {
            if (c == "0" || c == "9") {
                w = c;
                continue;
            } else {
                return a;
            }
        }
        if (c != w) {
            if (w == "0") {
                var z = (x.substring(0, i + 1) + x.substring(e, x.length)) - 0;
                return z;
            } else if (w == "9") {
                var z = (x.substring(0, i) + ("" + ((c - 0) + 1)) + x.substring(e, x.length)) - 0;
                return z;
            } else {
                return a;
            }
        }
    }
    if (w == "0") {
        var z = (x.substring(0, p) + x.substring(e, x.length)) - 0;
        return z;
    } else if (w == "9") {
        var z = x.substring(0, p) - 0;
        var f;
        if (a > 0) {
            f = 1;
        } else if (a < 0) {
            f = -1;
        } else {
            return a;
        }
        var r = (("" + (z + f)) + x.substring(e, x.length)) - 0;
        return r;
    } else {
        return a;
    }
}

function cal(){
	if( document.input.search.value == "")	{
		document.input.search.focus();
		Link4();
	}
	else	{
		document.input.search.focus();
		tmp1 = document.input.search.value;
		tmp3 = "" + eval(document.input.search.value);
		tmp4 = trimFixed(tmp3);
		document.input.search.value = tmp4;
	}
}

	function Focus() {
		document.NRK.IPT.focus();
		document.NRK.IPT.value += "";
	}
	function NRK_GO(TGT)	{
		if( document.NRK.IPT.value == "www." || document.NRK.IPT.value == "")	{
			alert("ホームページのアドレスを入力してください！");
			Focus();
		}
		else if( document.NRK.IPT.value.indexOf(",") != -1 )	{
			if( confirm("通常、ホームページのアドレスには「 ，（カンマ） 」は使われません。\n\nこのままのアドレスで移動してよろしいですか？") )	{Jump()}
			else	{Focus()}
		}
		else if( document.NRK.IPT.value.indexOf("..") != -1 )	{
			if( confirm("通常、ホームページのアドレスでは　２回続けて「 ．（ドット） 」は使われません。\n\nこのままのアドレスで移動してよろしいですか？") )	{Jump()}
			else	{Focus()}
		}
		else	{
			document.NRK.action = "http://219.99.160.118/~www/cgi-bin/url.cgi";
			document.NRK.target = TGT;
			document.NRK.submit();
		}
	}
	
	function B_Push(STR)	{
		if( STR == "BS" )	{
			document.NRK.IPT.value = document.NRK.IPT.value.substring(0,document.NRK.IPT.value.length-1);
		}
		else if( STR == "ENTER" )	{
			NRK_GO('_top');
		}
		else if( STR == "WWW" )	{
			document.NRK.IPT.focus();
			if( document.NRK.IPT.value == "www.")	{
				document.NRK.IPT.value = "";
			}
			else	{
				document.NRK.IPT.value = "www.";
			}
		}
		else	{
			document.NRK.IPT.focus();
			document.NRK.IPT.value += STR;
		}
	}
	
	function Link()	{
		var LM1;
		LM1= window.open("http://www.724685.com/clock/clock.htm","clock1","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=300,height=186");
		LM1.focus();
	}
	function Link2()	{
		if(navigator.appVersion.indexOf("MSIE 7",0) != -1)	{
			LM2= window.open("http://www.724685.com/clock/clock.htm","clock2","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=300,height=186");
			LM2.focus();
		}
		else {
			var LM2;
			LM2= window.open("http://www.724685.com/clock/clock.htm","clock2","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=155,height=186");
			LM2.focus();
		}
	}
	function Link4()	{
		var LM4;
		LM4= window.open("http://www.724685.com/calc/index.htm","calc1","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=400,height=470");
		LM4.focus();
	}
	function Link3()	{
		var LM3;
		LM3= window.open("http://www.724685.com/dog.htm","day","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=280,height=60");
		LM3.focus();
	}
	function URA2_GO()	{
		parent.top.location.href = "http://rakuten.happywoman.jp/12star/" + document.URA.STAR.options[document.URA.STAR.selectedIndex].value;
	}
	function URA_GO()	{
		now = new Date();
		year1 = now.getFullYear();
		month1 = now.getMonth()+1;
		day1 = now.getDate();
		if (year1 < 2000){ year1 += 1900;}
		if (month1 < 10) { month1 = '0' + month1 }
		if (day1 < 10) { day1 = '0' + day1 }
		if (document.URA.STAR.options[document.URA.STAR.selectedIndex].value == "index.html") {
			parent.top.location.href = "http://fortune.yahoo.co.jp/12astro/index.html";
		}
		else {
			parent.top.location.href = "http://fortune.yahoo.co.jp/12astro/" + year1 + month1 + day1 + "/" +document.URA.STAR.options[document.URA.STAR.selectedIndex].value;
		}
	}
	function TV_GO()	{
		parent.top.location.href = "http://tv.so-net.ne.jp/chart/";
	}
	function CQA1()	{
		parent.top.location.href = "https://www.clubqa.com/portal/register.cgi";
	}
	function CQA2()	{
		parent.top.location.href = "https://www.clubqa.com/portal/user/";
	}
	function CQA3()	{
		parent.top.location.href = "https://www.clubqa.com/club/user/";
	}
	function Today() {
		now = new Date();
		month1 = now.getMonth()+1;
		day1 = now.getDate();
		if (month1 < 10) { month1 = '0' + month1 }
		if (day1 < 10) { day1 = '0' + day1 }
		parent.top.location.href = "http://www.nnh.to/" + month1 + "/" + day1 + ".html";
	}


	function MM_goToURL() { //v3.0
		var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
		for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	}

//----griot　追加js-------

function setStartPage() {
	document.body.style.behavior = "url('#default#homepage')";
	document.body.setHomePage("http://www.724685.com/");
}

function nav2(sel) {
   if (sel.selectedIndex == -1) return;
   var opt = sel.options[sel.selectedIndex];
   if (opt && opt.value)
      location.href = "http://www.amazon.co.jp/gp/" + opt.value + "/ref=pd_ts_b_ldr&tag=724685-22";
}

//--->