//表示非表示 //styleswitcher //top flash //popup ///////////////////////////////////////////////////////////////// //表示非表示 function div_on(id) { document.getElementById(id).style.visibility="visible"; document.getElementById(id).style.display="inline"; } function div_off(id) { document.getElementById(id).style.visiblity="hidden"; document.getElementById(id).style.display="none"; } //ページスクロール function scroller(i){ scroller_up(i,1000); } function scroller_up(i,y){ y = y + (i - y)*.1; window.scroll(0,y); if (((i - y) <= .6)&&((i - y) >= -.6)) { y = i; }else{ setTimeout("scroller_up("+i+","+y+")",1); } } function scroller_e(i){ y = 1; kyoukai = i*.6; while(y <= kyoukai) { window.scroll(0,y); y = y + (y*.08); } while(y != i) { window.scroll(0,y); y = y + (i-y)*.08; if (((i - y) <= .6)&&((i - y) >= -.6)) { y = i; } } } //////////////////////////////////////////////////////////////////// //styleswitcher function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } } function getActiveStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title"); } return null; } function getPreferredStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title") ) return a.getAttribute("title"); } return null; } function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } window.onload = function(e) { var cookie = readCookie("style"); var title = cookie ? cookie : getPreferredStyleSheet(); setActiveStyleSheet(title); } window.onunload = function(e) { var title = getActiveStyleSheet(); createCookie("style", title, 365); } var cookie = readCookie("style"); var title = cookie ? cookie : getPreferredStyleSheet(); setActiveStyleSheet(title); //end styleswitcher ///////////////////////////////////////////////////////////////////////////////// //flash //v1.0 //Copyright 2006 Adobe Systems, Inc. All rights reserved. function AC_AddExtension(src, ext) { if (src.indexOf('?') != -1) return src.replace(/\?/, ext+'?'); else return src + ext; } function AC_Generateobj(objAttrs, params, embedAttrs) { var str = ' '; str += ''); document.write(''); document.write(''); document.write(''); } function topMap_visit(){ document.write(''); document.write(''); document.write(''); document.write(''); } /* function topMap2(){ document.write(''); document.write(''); document.write(''); document.write(''); } */ function topflash(){ document.write(''); document.write(''); document.write(''); } function topflash02(){ document.write(''); document.write(''); document.write(''); document.write(''); } //yado fla map function yMap(){ document.write(''); document.write(''); document.write(''); document.write(''); } //yahoo map fla map function mMap(){ document.write(''); document.write(''); document.write(''); document.write(''); } /////////////////////////////////////////////////////////////// //google map用 popup function yadoMap(latlng) { //test //url0 = "http://senior-traveler.net/test/"; //url1 = "yadomap.html?"; //url0 = "http://dev.tikitabi.com/yadomap/"; //本番 url0 = "http://tikitabi.com/yadomap/"; url1 = "yadomap.php?"; url = url0+url1+latlng; //var b12 = window.open('yadomap.html','yadoMap','scrollbars=no,width=510,height=460'); var b12 = window.open(url,'yadoMap','scrollbars=no,width=510,height=460'); } function tourcode_add2(num, lat, lng){ //日本測地系を変更 //座標変換開始 var ret = ""; //返却値 //じゃらんは日本測地系で、単位はミリ秒、変換するには、3600000で割る var lat0 = lat; //緯度→ var lng0 = lng; //経度→ //var lat0 = lat/3600000; //緯度→ //var lng0 = lng/3600000; //経度→ lat0 = lat0 - (0.00010695 * lat0) + (0.000017464 * lng0) + 0.0046017; lng0 = lng0 - (0.000046038 * lat0) - (0.000083043 * lng0) + 0.010040; //座標変換完了 //座標変換後、その値を返す //indi.indi_stop(); //return false; ret = "lat="+lat0+"&lng="+lng0; return ret; } function copyit(theField) { //リンク先コピー var tempval=eval("document."+theField); tempval.focus(); tempval.select(); if(navigator){ if(navigator.userAgent){ if(navigator.userAgent.indexOf("MSIE") == -1){ return false; } } } therange=tempval.createTextRange(); therange.execCommand("Copy"); return false; } /////////////////////////////////////////////////////////////// //tiitabi_g用 popup function tikitabi_g() { window.open("/map/st_ani.swf","OpenWindow","scrollbars=no,width=510,height=400"); } //説明popup function newWindow (htmFile) { maniWindow = window.open(htmFile, "WindowName", "menubar=no,statusbar=yes,resizable=no,height=300,width=400"); }