//include.virus.warmup() //このスクリプトはValidEdition用スクリプトから主要メソッドをごっそり抜いた機能制限版 //解析しようと試みる向きは http://cts.creasus.net/transient/sys/css/ を参照した方が早いよ //このファイルはsiteCTSのコアスクリプトでありDLLみたいな感じ? /* スクロール位置を取る関数 document.scroll = function() { return { x: this.body.scrollLeft || this.documentElement.scrollLeft, y: this.body.scrollTop || this.documentElement.scrollTop } } var y = document.scroll().y; */ /* "STRING".existLower("str") -> return true "string".existReg("[\\d]", "g|i") -> return false "string".equal("string") ->return true; "StRiNg".equalLower("string") ->return true; */ String.prototype.existLower = function (s) { return this.toLowerCase().indexOf(s) != -1;} String.prototype.existReg = function (s, f) { var r = new RegExp(this, f); return r.test(s);} String.prototype.equal = function (s) { return this == s;} String.prototype.equalLower = function (s) { return this.toLowerCase() == s;} envs.cookieSaveConfirmFlag = 0; envs.cookieSaveConfirmMsg = "■siteCTS環境設定\n\n設定をcookieに保存しようとしています。\n\nsiteCTSのcookieはまだ作られていませんが、作っちゃっていいですか?\n「キャンセル」「いいえ」を押すとcookieは作りません。もちろん設定も保存されません。\n\ncookieの有効期限は約" + (envs.cookie.limitdays ? envs.cookie.limitdays : 30) + "日間です。"; envs.cookieDisableMsg = "cookieが無効に設定されています"; ////// ▼class.constructor&member.difinition ■クラスコンストラクタ・メンバ定義 ////// ▼Navs ////// information storage class Navigator function Navs(l) { this.edition = edition; this.root = "/" + edition + "/"; this.local = l.host.match(/\.(fsv|wsv)$/) || l.protocol === "file:"; this.bodyid = document.body.id ? document.body.id : ""; try { this.contents = document.getElementsByName("contents")[0].content; } catch (e) { this.contents = ""; } try { this.fileName = document.getElementsByName("filename")[0].content; } catch (e) { this.fileName = ""; } return this; } Navs.prototype = { getRootPath : function (place) { return place.substring(place.indexOf(this.root));}, cutQueryString : function (place) { return place.replace(/[#?].+/, "");}, /* getFileName : function (place) { //ファイル名取得 place = place ? place : location.href; var dir = this.cutQueryString(place).split("/"); var file = dir.pop(); //ディレクトリ配列の最後を切取 if (!file) { //デフォルトインデックスの時は"" dir = dir.pop(); file = this.getDefaultIndex()[dir]; //配列の最後をさらに切取 if (!file) file = dir; //それでもなければ最後のディレクトリ名 } return file; }, getDefaultIndex : function () { // デフォルトインデックス取得 // //currentDirectoryName : "fileName" //ディレクトリ名とファイル名が違うもののみ登録 return { "wwwc" : "index", "transient" : "index" }; }, */ close : function () { if (!window.opener && brws.IE) window.opener = window.confirm("デフォルトウィンドウですけど本当に閉じてもいいんですか?"); if (window.opener) window.close(); }, popup : function (path) { var saw = screen.availWidth, sah = screen.availHeight; var mapW = saw <= 640 ? saw -50 : 700; var mapH = sah <= 480 ? sah -30 : 500; var mapX = screen.width - saw; var mapY = screen.height - sah; var opt = "width=" + mapW + ",height=" + mapH + ",top=" + mapY + ",left=" + mapX + ",scrollbars=1,status=1,resizable=1"; var name = "editionEQLtransientANDpopupEQL1AND"; window.open(path, name, opt); return false; }, open : function (e) { e = nazuna.srcElement(e); if (e.href) e = e.href; else { e = sakura.id("navmap"); if (e) e = e.href; else { if (navs.local) window.alert("script error at navs.open()"); return false; } } if (envs.all.nopopup) location.href = e; else navs.popup(e); return false; }, reference : function () { // リンク参照 // if (this.href.match(/\.(jpg|png|gif)$/)) { return navs.imgView(this); } else if (!this.href.match(/^http:\/\/\w+\.(creasus\.net|edfx\.org|[fw]sv)\/.+/)) { if (envs.all.wwwopen) this.target = "_blank"; //URLにUTF8エンコードが混じってるとthis.hrefで正常に取れなくなることの対策 else envs.clear(); } return true; }, imgView : function (a) { var win = window.open(); if (win) { var title = a.className.exist("tmb") ? a.childNodes[0].alt : (a.title ? a.title : "画像"); if (title.match(/^(\[ *)(.+)( *\])$/)) title = RegExp.$2.replace(/ *$/, ""); //末尾の空白もヒットするので除去 win.document.open(); win.document.write( '\n'+ '\n'+ '\n'+ '
\n'+ '\n'+ '\n'+ '