PyukiWiki CVS Commit
pyuki****@lists*****
2012年 2月 13日 (月) 18:04:14 JST
Index: PyukiWiki-Devel/skin/common.en.js diff -u PyukiWiki-Devel/skin/common.en.js:1.472 PyukiWiki-Devel/skin/common.en.js:1.473 --- PyukiWiki-Devel/skin/common.en.js:1.472 Mon Feb 13 17:52:10 2012 +++ PyukiWiki-Devel/skin/common.en.js Mon Feb 13 18:04:14 2012 @@ -1,4 +1,4 @@ /* "PyukiWiki" version 0.2.0-p2-preview1 $$ */ -/* $Id: common.en.js,v 1.472 2012/02/13 08:52:10 papu Exp $ */ +/* $Id: common.en.js,v 1.473 2012/02/13 09:04:14 papu Exp $ */ -var d=document,w=window,ie=d.selection?1:0,moz=(d.getSelection&&!w.opera)?1:0;function addec_link(a){var b=addec_ext(a);if(confirm("New mail creation as address\n>>"+b)){location=b}}function addec_text(a,c){var b=addec_ext(a);d.getElementById(c).innerHTML=b}function addec_ext(e){for(var h="",b=0;b<e.length;b+=4){var a=cs.indexOf(e.charAt(b))*cs.length+cs.indexOf(e.charAt(b+1)),f=cs.indexOf(e.charAt(b+2)),g=f*cs.length+cs.indexOf(e.charAt(b+3))-a;h=h+String.fromCharCode(g)}return h}function openURI(b,c){window.open(b,c);return false}function keyCode(a){var a=w.event||a;if(d.all){return a.keyCode}else{if(d.getElementById){return a.keyCode?a.keyCode:a.charCode}else{if(d.layers){return a.which}}}}function escpress(a){if(a==null){return true}if(d.all&&keyCode(a)==27){return false}return true}function getClientWidth(){if(self.innerWidth){return self.innerWidth}else{if(d.documentElement&&d.documentElement.clientWidth){return d.documentElement.clientWidth}else{if(d.body){return d.bo dy.clientWidth}}}}function getClientHeight(){if(self.innerHeight){return self.innerHeight}else{if(d.documentElement&&d.documentElement.clientHeight){return d.documentElement.clientHeight}else{if(d.body){return d.body.clientHeight}}}}function getDocHeight(){var a;if(d.documentElement&&d.body){a=Math.max(d.documentElement.scrollHeight,d.documentElement.offsetHeight,d.body.scrollHeight)}else{a=d.body.scrollHeight}return(arguments.length==1)?a+"px":a}function getScrollY(){if(typeof w.pageYOffset!="undefined"){return w.pageYOffset}else{if(d.body&&typeof d.body.scrollTop!="undefined"){if(d.compatMode=="CSS1Compat"){return d.documentElement.scrollTop}return d.body.scrollTop}else{if(d.documentElement&&typeof d.documentElement.scrollTop!="undefined"){return d.documentElement.scrollTop}}}return 0}var imgPop=null;imagePop=function(e,path,w,h){if(imgPop==null){imgPop=d.createElement("img");imgPop.src=path;with(imgPop.style){position="absolute";left=Math.round((getClientWidth()-w)/2)+"px ";top=Math.round((getClientHeight()-h)/2+getScrollY())+"px";margin="0";zIndex=1000;border="4px groove Teal";display="none"}d.body.appendChild(imgPop);if(imgPop.complete){imgPop.style.display="block"}else{w.status="画像読み込み中…"}imgPop.onload=function(){imgPop.style.display="block";w.status=""};imgPop.onclick=function(){d.body.removeChild(imgPop);imgPop=null};imgPop.title="Close for mouse click"}};hackFirefoxToolTip=function(e){var aa=d.getElementsByTagName("a"),tT=d.createElement("div"),sd=d.createElement("div");with(tT.style){position="absolute";backgroundColor="ivory";border="1px solid #333";padding="1px 3px 1px 3px";font="500 11px arial";zIndex=10000;top="-100px"}with(sd.style){position="absolute";MozOpacity=0.3;MozBorderRadius="3px";background="#000";zIndex=tT.style.zIndex-1}for(i=0,l=aa.length;i<l;i++){if(aa[i].getAttribute("title")!=null||aa[i].getAttribute("alt")!=null){aa[i].onmouseover=function(e){var _title=this.getAttribute("title")!=null?this.getAttribute("ti tle"):this.getAttribute("alt");this.setAttribute("title","");_title=_title.replace(/[\r\n]+/g,"<br/>").replace(/\s/g," ");if(_title==""){return}tT.style.left=20+e.pageX+"px";tT.style.top=10+e.pageY+"px";tT.innerHTML=_title;with(sd.style){width=tT.offsetWidth-2+"px";height=tT.offsetHeight-2+"px";left=parseInt(tT.style.left)+5+"px";top=parseInt(tT.style.top)+5+"px"}};aa[i].onmouseout=function(){this.setAttribute("title",tT.innerHTML.replace(/<br\/>/g," ").replace(/ /g," "));tT.style.top="-1000px";sd.style.top="-1000px";tT.innerHTML=""}}}d.body.appendChild(sd);d.body.appendChild(tT)};w.onload=function(){if(w.sidebar){hackFirefoxToolTip()}}; +var d=document,w=window,ie=d.selection?1:0,moz=(d.getSelection&&!w.opera)?1:0,p="px";function addec_link(a){var b=addec_ext(a);if(confirm("New mail creation as address\n>>"+b)){location=b}}function addec_text(a,c){var b=addec_ext(a);d.getElementById(c).innerHTML=b}function addec_ext(e){for(var h="",b=0;b<e.length;b+=4){var a=cs.indexOf(e.charAt(b))*cs.length+cs.indexOf(e.charAt(b+1)),f=cs.indexOf(e.charAt(b+2)),g=f*cs.length+cs.indexOf(e.charAt(b+3))-a;h=h+String.fromCharCode(g)}return h}function openURI(b,c){window.open(b,c);return false}function keyCode(a){var a=w.event||a;if(d.all){return a.keyCode}else{if(d.getElementById){return a.keyCode?a.keyCode:a.charCode}else{if(d.layers){return a.which}}}}function escpress(a){if(a==null){return true}if(d.all&&keyCode(a)==27){return false}return true}function getClientWidth(){if(self.innerWidth){return self.innerWidth}else{if(d.documentElement&&d.documentElement.clientWidth){return d.documentElement.clientWidth}else{if(d.body){retu rn d.body.clientWidth}}}}function getClientHeight(){if(self.innerHeight){return self.innerHeight}else{if(d.documentElement&&d.documentElement.clientHeight){return d.documentElement.clientHeight}else{if(d.body){return d.body.clientHeight}}}}function getDocHeight(){var a;if(d.documentElement&&d.body){a=Math.max(d.documentElement.scrollHeight,d.documentElement.offsetHeight,d.body.scrollHeight)}else{a=d.body.scrollHeight}return(arguments.length==1)?a+p:a}function getScrollY(){u="undefined";if(typeof w.pageYOffset!=u){return w.pageYOffset}else{if(d.body&&typeof d.body.scrollTop!=u){if(d.compatMode=="CSS1Compat"){return d.documentElement.scrollTop}return d.body.scrollTop}else{if(d.documentElement&&typeof d.documentElement.scrollTop!=u){return d.documentElement.scrollTop}}}return 0}var iP=null;imagePop=function(e,path,w,h){if(iP==null){iP=d.createElement("img");iP.src=path;with(iP.style){position="absolute";left=Math.round((getClientWidth()-w)/2)+p;top=Math.round((getClientHeight() -h)/2+getScrollY())+p;margin="0";zIndex=1000;border="4px groove Teal";display="none"}d.body.appendChild(iP);if(iP.complete){iP.style.display="block"}else{w.status="画像読み込み中…"}iP.onload=function(){iP.style.display="block";w.status=""};iP.onclick=function(){d.body.removeChild(iP);iP=null};iP.title="Close for mouse click"}};hF=function(e){var aa=d.getElementsByTagName("a"),tT=d.createElement("div"),sd=d.createElement("div");with(tT.style){position="absolute";backgroundColor="ivory";border="1px solid #333";padding="1px 3px 1px 3px";font="500 11px arial";zIndex=10000;top="-100px"}with(sd.style){position="absolute";MozOpacity=0.3;MozBorderRadius="3px";background="#000";zIndex=tT.style.zIndex-1}for(i=0,l=aa.length;i<l;i++){if(aa[i].getAttribute("title")!=null||aa[i].getAttribute("alt")!=null){aa[i].onmouseover=function(e){var _title=this.getAttribute("title")!=null?this.getAttribute("title"):this.getAttribute("alt");this.setAttribute("title","");_title=_title.replace(/[\r\n] +/g,"<br/>").replace(/\s/g," ");if(_title==""){return}tT.style.left=20+e.pageX+p;tT.style.top=10+e.pageY+p;tT.innerHTML=_title;with(sd.style){width=tT.offsetWidth-2+p;height=tT.offsetHeight-2+p;left=parseInt(tT.style.left)+5+p;top=parseInt(tT.style.top)+5+p}};aa[i].onmouseout=function(){this.setAttribute("title",tT.innerHTML.replace(/<br\/>/g," ").replace(/ /g," "));tT.style.top="-1000px";sd.style.top="-1000px";tT.innerHTML=""}}}d.body.appendChild(sd);d.body.appendChild(tT)};w.onload=function(){if(w.sidebar){hF()}}; Index: PyukiWiki-Devel/skin/common.en.js.src diff -u PyukiWiki-Devel/skin/common.en.js.src:1.346 PyukiWiki-Devel/skin/common.en.js.src:1.347 --- PyukiWiki-Devel/skin/common.en.js.src:1.346 Mon Feb 13 17:52:10 2012 +++ PyukiWiki-Devel/skin/common.en.js.src Mon Feb 13 18:04:14 2012 @@ -1,11 +1,12 @@ /* "PyukiWiki" version 0.2.0-p2-preview1 $$ */ -/* $Id: common.en.js.src,v 1.346 2012/02/13 08:52:10 papu Exp $ */ +/* $Id: common.en.js.src,v 1.347 2012/02/13 09:04:14 papu Exp $ */ /* Code=EUC-JP */ var d=document, w=window, ie=d.selection ? 1 : 0, - moz=(d.getSelection && !w.opera) ? 1 : 0; + moz=(d.getSelection && !w.opera) ? 1 : 0, + p='px'; /* for antispam.inc.cgi */ function addec_link(ad) { @@ -90,53 +91,56 @@ var h; if(d.documentElement && d.body){ h = Math.max( - d.documentElement.scrollHeight,d.documentElement.offsetHeight,d.body.scrollHeight - ); + d.documentElement.scrollHeight, + d.documentElement.offsetHeight, + d.body.scrollHeight + ); } else h = d.body.scrollHeight; - return (arguments.length==1) ? h + 'px' : h; + return (arguments.length==1) ? h + p : h; } function getScrollY(){ - if(typeof w.pageYOffset != "undefined"){ + u="undefined"; + if(typeof w.pageYOffset != u){ return w.pageYOffset; - } else if(d.body && typeof d.body.scrollTop != "undefined"){ + } else if(d.body && typeof d.body.scrollTop != u){ if(d.compatMode == 'CSS1Compat'){ return d.documentElement.scrollTop;; } return d.body.scrollTop; - } else if(d.documentElement && typeof d.documentElement.scrollTop != "undefined"){ + } else if(d.documentElement && typeof d.documentElement.scrollTop != u){ return d.documentElement.scrollTop; } return 0; } -var imgPop = null; +var iP = null; imagePop = function (e, path, w, h){ - if(imgPop==null){ - imgPop = d.createElement("img"); - imgPop.src = path; - with (imgPop.style){ + if(iP==null){ + iP = d.createElement("img"); + iP.src = path; + with (iP.style){ position = "absolute"; - left = Math.round((getClientWidth()-w) / 2) + "px"; - top = Math.round((getClientHeight()-h) / 2 + getScrollY()) + "px"; + left = Math.round((getClientWidth()-w) / 2) + p; + top = Math.round((getClientHeight()-h) / 2 + getScrollY()) + p; margin = "0"; zIndex = 1000; border = "4px groove Teal"; display = "none"; } - d.body.appendChild(imgPop); - if(imgPop.complete){ - imgPop.style.display = "block"; + d.body.appendChild(iP); + if(iP.complete){ + iP.style.display = "block"; } else w.status = "画像読み込み中…"; - imgPop.onload = function(){imgPop.style.display="block"; w.status="";} - imgPop.onclick = function(){d.body.removeChild(imgPop);imgPop=null;} - imgPop.title = "Close for mouse click"; + iP.onload = function(){iP.style.display="block"; w.status="";} + iP.onclick = function(){d.body.removeChild(iP);iP=null;} + iP.title = "Close for mouse click"; } } /* from http://martin.p2b.jp/index.php?date=20050201 */ -hackFirefoxToolTip = function(e){ +hF = function(e){ var aa=d.getElementsByTagName('a'), tT=d.createElement('div'), sd=d.createElement('div'); @@ -164,14 +168,14 @@ this.setAttribute('title', ''); _title=_title.replace(/[\r\n]+/g,'<br/>').replace(/\s/g,' '); if(_title=='') return; - tT.style.left=20+e.pageX+'px'; - tT.style.top=10+e.pageY+'px'; + tT.style.left=20+e.pageX+p; + tT.style.top=10+e.pageY+p; tT.innerHTML=_title; with(sd.style){ - width=tT.offsetWidth-2+'px'; - height=tT.offsetHeight-2+'px'; - left=parseInt(tT.style.left)+5+'px'; - top=parseInt(tT.style.top)+5+'px'; + width=tT.offsetWidth-2+p; + height=tT.offsetHeight-2+p; + left=parseInt(tT.style.left)+5+p; + top=parseInt(tT.style.top)+5+p; } } aa[i].onmouseout=function(){ @@ -187,5 +191,5 @@ } w.onload = function(){ - if(w.sidebar) hackFirefoxToolTip(); + if(w.sidebar) hF(); } Index: PyukiWiki-Devel/skin/common.ja.js diff -u PyukiWiki-Devel/skin/common.ja.js:1.473 PyukiWiki-Devel/skin/common.ja.js:1.474 --- PyukiWiki-Devel/skin/common.ja.js:1.473 Mon Feb 13 17:52:10 2012 +++ PyukiWiki-Devel/skin/common.ja.js Mon Feb 13 18:04:14 2012 @@ -1,4 +1,4 @@ /* "PyukiWiki" version 0.2.0-p2-preview1 $$ */ -/* $Id: common.ja.js,v 1.473 2012/02/13 08:52:10 papu Exp $ */ +/* $Id: common.ja.js,v 1.474 2012/02/13 09:04:14 papu Exp $ */ -var d=document,w=window,ie=d.selection?1:0,moz=(d.getSelection&&!w.opera)?1:0;function addec_link(a){var b=addec_ext(a);if(confirm("送信先を\n>> "+b+"\nとして新規にメールを作成します.")){location=b}}function addec_text(a,c){var b=addec_ext(a);d.getElementById(c).innerHTML=b}function addec_ext(e){for(var h="",b=0;b<e.length;b+=4){var a=cs.indexOf(e.charAt(b))*cs.length+cs.indexOf(e.charAt(b+1)),f=cs.indexOf(e.charAt(b+2)),g=f*cs.length+cs.indexOf(e.charAt(b+3))-a;h=h+String.fromCharCode(g)}return h}function openURI(b,c){window.open(b,c);return false}function keyCode(a){var a=w.event||a;if(d.all){return a.keyCode}else{if(d.getElementById){return a.keyCode?a.keyCode:a.charCode}else{if(d.layers){return a.which}}}}function escpress(a){if(a==null){return true}if(d.all&&keyCode(a)==27){return false}return true}function getClientWidth(){if(self.innerWidth){return self.innerWidth}else{if(d.documentElement&&d.documentElement.clientWidth){return d.documentElement.clientWidth}else{if(d. body){return d.body.clientWidth}}}}function getClientHeight(){if(self.innerHeight){return self.innerHeight}else{if(d.documentElement&&d.documentElement.clientHeight){return d.documentElement.clientHeight}else{if(d.body){return d.body.clientHeight}}}}function getDocHeight(){var a;if(d.documentElement&&d.body){a=Math.max(d.documentElement.scrollHeight,d.documentElement.offsetHeight,d.body.scrollHeight)}else{a=d.body.scrollHeight}return(arguments.length==1)?a+"px":a}function getScrollY(){if(typeof w.pageYOffset!="undefined"){return w.pageYOffset}else{if(d.body&&typeof d.body.scrollTop!="undefined"){if(d.compatMode=="CSS1Compat"){return d.documentElement.scrollTop}return d.body.scrollTop}else{if(d.documentElement&&typeof d.documentElement.scrollTop!="undefined"){return d.documentElement.scrollTop}}}return 0}var imgPop=null;imagePop=function(e,path,w,h){if(imgPop==null){imgPop=d.createElement("img");imgPop.src=path;with(imgPop.style){position="absolute";left=Math.round((getClient Width()-w)/2)+"px";top=Math.round((getClientHeight()-h)/2+getScrollY())+"px";margin="0";zIndex=1000;border="4px groove Teal";display="none"}d.body.appendChild(imgPop);if(imgPop.complete){imgPop.style.display="block"}else{w.status="Loading image..."}imgPop.onload=function(){imgPop.style.display="block";w.status=""};imgPop.onclick=function(){d.body.removeChild(imgPop);imgPop=null};imgPop.title="マウスクリックで閉じます"}};hackFirefoxToolTip=function(e){var aa=d.getElementsByTagName("a"),tT=d.createElement("div"),sd=d.createElement("div");with(tT.style){position="absolute";backgroundColor="ivory";border="1px solid #333";padding="1px 3px 1px 3px";font="500 11px arial";zIndex=10000;top="-100px"}with(sd.style){position="absolute";MozOpacity=0.3;MozBorderRadius="3px";background="#000";zIndex=tT.style.zIndex-1}for(i=0,l=aa.length;i<l;i++){if(aa[i].getAttribute("title")!=null||aa[i].getAttribute("alt")!=null){aa[i].onmouseover=function(e){var _title=this.getAttribute("title")!=null?t his.getAttribute("title"):this.getAttribute("alt");this.setAttribute("title","");_title=_title.replace(/[\r\n]+/g,"<br/>").replace(/\s/g," ");if(_title==""){return}tT.style.left=20+e.pageX+"px";tT.style.top=10+e.pageY+"px";tT.innerHTML=_title;with(sd.style){width=tT.offsetWidth-2+"px";height=tT.offsetHeight-2+"px";left=parseInt(tT.style.left)+5+"px";top=parseInt(tT.style.top)+5+"px"}};aa[i].onmouseout=function(){this.setAttribute("title",tT.innerHTML.replace(/<br\/>/g," ").replace(/ /g," "));tT.style.top="-1000px";sd.style.top="-1000px";tT.innerHTML=""}}}d.body.appendChild(sd);d.body.appendChild(tT)};w.onload=function(){if(w.sidebar){hackFirefoxToolTip()}}; +var d=document,w=window,ie=d.selection?1:0,moz=(d.getSelection&&!w.opera)?1:0,p="px";function addec_link(a){var b=addec_ext(a);if(confirm("送信先を\n>> "+b+"\nとして新規にメールを作成します.")){location=b}}function addec_text(a,c){var b=addec_ext(a);d.getElementById(c).innerHTML=b}function addec_ext(e){for(var h="",b=0;b<e.length;b+=4){var a=cs.indexOf(e.charAt(b))*cs.length+cs.indexOf(e.charAt(b+1)),f=cs.indexOf(e.charAt(b+2)),g=f*cs.length+cs.indexOf(e.charAt(b+3))-a;h=h+String.fromCharCode(g)}return h}function openURI(b,c){window.open(b,c);return false}function keyCode(a){var a=w.event||a;if(d.all){return a.keyCode}else{if(d.getElementById){return a.keyCode?a.keyCode:a.charCode}else{if(d.layers){return a.which}}}}function escpress(a){if(a==null){return true}if(d.all&&keyCode(a)==27){return false}return true}function getClientWidth(){if(self.innerWidth){return self.innerWidth}else{if(d.documentElement&&d.documentElement.clientWidth){return d.documentElement.clientWidth}els e{if(d.body){return d.body.clientWidth}}}}function getClientHeight(){if(self.innerHeight){return self.innerHeight}else{if(d.documentElement&&d.documentElement.clientHeight){return d.documentElement.clientHeight}else{if(d.body){return d.body.clientHeight}}}}function getDocHeight(){var a;if(d.documentElement&&d.body){a=Math.max(d.documentElement.scrollHeight,d.documentElement.offsetHeight,d.body.scrollHeight)}else{a=d.body.scrollHeight}return(arguments.length==1)?a+p:a}function getScrollY(){u="undefined";if(typeof w.pageYOffset!=u){return w.pageYOffset}else{if(d.body&&typeof d.body.scrollTop!=u){if(d.compatMode=="CSS1Compat"){return d.documentElement.scrollTop}return d.body.scrollTop}else{if(d.documentElement&&typeof d.documentElement.scrollTop!=u){return d.documentElement.scrollTop}}}return 0}var iP=null;imagePop=function(e,path,w,h){if(iP==null){iP=d.createElement("img");iP.src=path;with(iP.style){position="absolute";left=Math.round((getClientWidth()-w)/2)+p;top=Math.round(( getClientHeight()-h)/2+getScrollY())+p;margin="0";zIndex=1000;border="4px groove Teal";display="none"}d.body.appendChild(iP);if(iP.complete){iP.style.display="block"}else{w.status="Loading image..."}iP.onload=function(){iP.style.display="block";w.status=""};iP.onclick=function(){d.body.removeChild(iP);iP=null};iP.title="マウスクリックで閉じます"}};hF=function(e){var aa=d.getElementsByTagName("a"),tT=d.createElement("div"),sd=d.createElement("div");with(tT.style){position="absolute";backgroundColor="ivory";border="1px solid #333";padding="1px 3px 1px 3px";font="500 11px arial";zIndex=10000;top="-100px"}with(sd.style){position="absolute";MozOpacity=0.3;MozBorderRadius="3px";background="#000";zIndex=tT.style.zIndex-1}for(i=0,l=aa.length;i<l;i++){if(aa[i].getAttribute("title")!=null||aa[i].getAttribute("alt")!=null){aa[i].onmouseover=function(e){var _title=this.getAttribute("title")!=null?this.getAttribute("title"):this.getAttribute("alt");this.setAttribute("title","");_title=_t itle.replace(/[\r\n]+/g,"<br/>").replace(/\s/g," ");if(_title==""){return}tT.style.left=20+e.pageX+p;tT.style.top=10+e.pageY+p;tT.innerHTML=_title;with(sd.style){width=tT.offsetWidth-2+p;height=tT.offsetHeight-2+p;left=parseInt(tT.style.left)+5+p;top=parseInt(tT.style.top)+5+p}};aa[i].onmouseout=function(){this.setAttribute("title",tT.innerHTML.replace(/<br\/>/g," ").replace(/ /g," "));tT.style.top="-1000px";sd.style.top="-1000px";tT.innerHTML=""}}}d.body.appendChild(sd);d.body.appendChild(tT)};w.onload=function(){if(w.sidebar){hF()}}; Index: PyukiWiki-Devel/skin/common.ja.js.src diff -u PyukiWiki-Devel/skin/common.ja.js.src:1.346 PyukiWiki-Devel/skin/common.ja.js.src:1.347 --- PyukiWiki-Devel/skin/common.ja.js.src:1.346 Mon Feb 13 17:52:10 2012 +++ PyukiWiki-Devel/skin/common.ja.js.src Mon Feb 13 18:04:14 2012 @@ -1,11 +1,12 @@ /* "PyukiWiki" version 0.2.0-p2-preview1 $$ */ -/* $Id: common.ja.js.src,v 1.346 2012/02/13 08:52:10 papu Exp $ */ +/* $Id: common.ja.js.src,v 1.347 2012/02/13 09:04:14 papu Exp $ */ /* Code=EUC-JP */ var d=document, w=window, ie=d.selection ? 1 : 0, - moz=(d.getSelection && !w.opera) ? 1 : 0; + moz=(d.getSelection && !w.opera) ? 1 : 0, + p='px'; /* for antispam.inc.cgi */ function addec_link(ad) { @@ -90,53 +91,56 @@ var h; if(d.documentElement && d.body){ h = Math.max( - d.documentElement.scrollHeight,d.documentElement.offsetHeight,d.body.scrollHeight - ); + d.documentElement.scrollHeight, + d.documentElement.offsetHeight, + d.body.scrollHeight + ); } else h = d.body.scrollHeight; - return (arguments.length==1) ? h + 'px' : h; + return (arguments.length==1) ? h + p : h; } function getScrollY(){ - if(typeof w.pageYOffset != "undefined"){ + u="undefined"; + if(typeof w.pageYOffset != u){ return w.pageYOffset; - } else if(d.body && typeof d.body.scrollTop != "undefined"){ + } else if(d.body && typeof d.body.scrollTop != u){ if(d.compatMode == 'CSS1Compat'){ return d.documentElement.scrollTop;; } return d.body.scrollTop; - } else if(d.documentElement && typeof d.documentElement.scrollTop != "undefined"){ + } else if(d.documentElement && typeof d.documentElement.scrollTop != u){ return d.documentElement.scrollTop; } return 0; } -var imgPop = null; +var iP = null; imagePop = function (e, path, w, h){ - if(imgPop==null){ - imgPop = d.createElement("img"); - imgPop.src = path; - with (imgPop.style){ + if(iP==null){ + iP = d.createElement("img"); + iP.src = path; + with (iP.style){ position = "absolute"; - left = Math.round((getClientWidth()-w) / 2) + "px"; - top = Math.round((getClientHeight()-h) / 2 + getScrollY()) + "px"; + left = Math.round((getClientWidth()-w) / 2) + p; + top = Math.round((getClientHeight()-h) / 2 + getScrollY()) + p; margin = "0"; zIndex = 1000; border = "4px groove Teal"; display = "none"; } - d.body.appendChild(imgPop); - if(imgPop.complete){ - imgPop.style.display = "block"; + d.body.appendChild(iP); + if(iP.complete){ + iP.style.display = "block"; } else w.status = "Loading image..."; - imgPop.onload = function(){imgPop.style.display="block"; w.status="";} - imgPop.onclick = function(){d.body.removeChild(imgPop);imgPop=null;} - imgPop.title = "マウスクリックで閉じます"; + iP.onload = function(){iP.style.display="block"; w.status="";} + iP.onclick = function(){d.body.removeChild(iP);iP=null;} + iP.title = "マウスクリックで閉じます"; } } /* from http://martin.p2b.jp/index.php?date=20050201 */ -hackFirefoxToolTip = function(e){ +hF = function(e){ var aa=d.getElementsByTagName('a'), tT=d.createElement('div'), sd=d.createElement('div'); @@ -164,14 +168,14 @@ this.setAttribute('title', ''); _title=_title.replace(/[\r\n]+/g,'<br/>').replace(/\s/g,' '); if(_title=='') return; - tT.style.left=20+e.pageX+'px'; - tT.style.top=10+e.pageY+'px'; + tT.style.left=20+e.pageX+p; + tT.style.top=10+e.pageY+p; tT.innerHTML=_title; with(sd.style){ - width=tT.offsetWidth-2+'px'; - height=tT.offsetHeight-2+'px'; - left=parseInt(tT.style.left)+5+'px'; - top=parseInt(tT.style.top)+5+'px'; + width=tT.offsetWidth-2+p; + height=tT.offsetHeight-2+p; + left=parseInt(tT.style.left)+5+p; + top=parseInt(tT.style.top)+5+p; } } aa[i].onmouseout=function(){ @@ -187,5 +191,5 @@ } w.onload = function(){ - if(w.sidebar) hackFirefoxToolTip(); + if(w.sidebar) hF(); } Index: PyukiWiki-Devel/skin/common.lang.js.src diff -u PyukiWiki-Devel/skin/common.lang.js.src:1.417 PyukiWiki-Devel/skin/common.lang.js.src:1.418 --- PyukiWiki-Devel/skin/common.lang.js.src:1.417 Mon Feb 13 17:52:10 2012 +++ PyukiWiki-Devel/skin/common.lang.js.src Mon Feb 13 18:04:14 2012 @@ -1,11 +1,12 @@ /* "PyukiWiki" version 0.2.0-p2-preview1 $$ */ -/* $Id: common.lang.js.src,v 1.417 2012/02/13 08:52:10 papu Exp $ */ +/* $Id: common.lang.js.src,v 1.418 2012/02/13 09:04:14 papu Exp $ */ /* Code=EUC-JP */ var d=document, w=window, ie=d.selection ? 1 : 0, - moz=(d.getSelection && !w.opera) ? 1 : 0; + moz=(d.getSelection && !w.opera) ? 1 : 0, + p='px'; /* for antispam.inc.cgi */ function addec_link(ad) { @@ -91,55 +92,58 @@ var h; if(d.documentElement && d.body){ h = Math.max( - d.documentElement.scrollHeight,d.documentElement.offsetHeight,d.body.scrollHeight - ); + d.documentElement.scrollHeight, + d.documentElement.offsetHeight, + d.body.scrollHeight + ); } else h = d.body.scrollHeight; - return (arguments.length==1) ? h + 'px' : h; + return (arguments.length==1) ? h + p : h; } function getScrollY(){ - if(typeof w.pageYOffset != "undefined"){ + u="undefined"; + if(typeof w.pageYOffset != u){ return w.pageYOffset; - } else if(d.body && typeof d.body.scrollTop != "undefined"){ + } else if(d.body && typeof d.body.scrollTop != u){ if(d.compatMode == 'CSS1Compat'){ return d.documentElement.scrollTop;; } return d.body.scrollTop; - } else if(d.documentElement && typeof d.documentElement.scrollTop != "undefined"){ + } else if(d.documentElement && typeof d.documentElement.scrollTop != u){ return d.documentElement.scrollTop; } return 0; } -var imgPop = null; +var iP = null; imagePop = function (e, path, w, h){ - if(imgPop==null){ - imgPop = d.createElement("img"); - imgPop.src = path; - with (imgPop.style){ + if(iP==null){ + iP = d.createElement("img"); + iP.src = path; + with (iP.style){ position = "absolute"; - left = Math.round((getClientWidth()-w) / 2) + "px"; - top = Math.round((getClientHeight()-h) / 2 + getScrollY()) + "px"; + left = Math.round((getClientWidth()-w) / 2) + p; + top = Math.round((getClientHeight()-h) / 2 + getScrollY()) + p; margin = "0"; zIndex = 1000; border = "4px groove Teal"; display = "none"; } - d.body.appendChild(imgPop); - if(imgPop.complete){ - imgPop.style.display = "block"; + d.body.appendChild(iP); + if(iP.complete){ + iP.style.display = "block"; } else w.status = "画像読み込み中…"; # lang_en } else w.status = "Loading image..."; # lang_ja - imgPop.onload = function(){imgPop.style.display="block"; w.status="";} - imgPop.onclick = function(){d.body.removeChild(imgPop);imgPop=null;} - imgPop.title = "Close for mouse click"; # lang_en - imgPop.title = "マウスクリックで閉じます"; # lang_ja + iP.onload = function(){iP.style.display="block"; w.status="";} + iP.onclick = function(){d.body.removeChild(iP);iP=null;} + iP.title = "Close for mouse click"; # lang_en + iP.title = "マウスクリックで閉じます"; # lang_ja } } /* from http://martin.p2b.jp/index.php?date=20050201 */ -hackFirefoxToolTip = function(e){ +hF = function(e){ var aa=d.getElementsByTagName('a'), tT=d.createElement('div'), sd=d.createElement('div'); @@ -167,14 +171,14 @@ this.setAttribute('title', ''); _title=_title.replace(/[\r\n]+/g,'<br/>').replace(/\s/g,' '); if(_title=='') return; - tT.style.left=20+e.pageX+'px'; - tT.style.top=10+e.pageY+'px'; + tT.style.left=20+e.pageX+p; + tT.style.top=10+e.pageY+p; tT.innerHTML=_title; with(sd.style){ - width=tT.offsetWidth-2+'px'; - height=tT.offsetHeight-2+'px'; - left=parseInt(tT.style.left)+5+'px'; - top=parseInt(tT.style.top)+5+'px'; + width=tT.offsetWidth-2+p; + height=tT.offsetHeight-2+p; + left=parseInt(tT.style.left)+5+p; + top=parseInt(tT.style.top)+5+p; } } aa[i].onmouseout=function(){ @@ -190,5 +194,5 @@ } w.onload = function(){ - if(w.sidebar) hackFirefoxToolTip(); + if(w.sidebar) hF(); } Index: PyukiWiki-Devel/skin/common.sjis.ja.js diff -u PyukiWiki-Devel/skin/common.sjis.ja.js:1.303 PyukiWiki-Devel/skin/common.sjis.ja.js:1.304 --- PyukiWiki-Devel/skin/common.sjis.ja.js:1.303 Mon Feb 13 17:52:10 2012 +++ PyukiWiki-Devel/skin/common.sjis.ja.js Mon Feb 13 18:04:14 2012 @@ -1,4 +1,4 @@ /* "PyukiWiki" version 0.2.0-p2-preview1 $$ */ -/* $Id: common.sjis.ja.js,v 1.303 2012/02/13 08:52:10 papu Exp $ */ +/* $Id: common.sjis.ja.js,v 1.304 2012/02/13 09:04:14 papu Exp $ */ -var d=document,w=window,ie=d.selection?1:0,moz=(d.getSelection&&!w.opera)?1:0;function addec_link(a){var b=addec_ext(a);if(confirm("Mæð\n>> "+b+"\nƵÄVKÉ[ð쬵ܷ.")){location=b}}function addec_text(a,c){var b=addec_ext(a);d.getElementById(c).innerHTML=b}function addec_ext(e){for(var h="",b=0;b<e.length;b+=4){var a=cs.indexOf(e.charAt(b))*cs.length+cs.indexOf(e.charAt(b+1)),f=cs.indexOf(e.charAt(b+2)),g=f*cs.length+cs.indexOf(e.charAt(b+3))-a;h=h+String.fromCharCode(g)}return h}function openURI(b,c){window.open(b,c);return false}function keyCode(a){var a=w.event||a;if(d.all){return a.keyCode}else{if(d.getElementById){return a.keyCode?a.keyCode:a.charCode}else{if(d.layers){return a.which}}}}function escpress(a){if(a==null){return true}if(d.all&&keyCode(a)==27){return false}return true}function getClientWidth(){if(self.innerWidth){return self.innerWidth}else{if(d.documentElement&&d.documentElement.clientWidth){return d.documentElement.clientWidth}else{if(d. body){return d.body.clientWidth}}}}function getClientHeight(){if(self.innerHeight){return self.innerHeight}else{if(d.documentElement&&d.documentElement.clientHeight){return d.documentElement.clientHeight}else{if(d.body){return d.body.clientHeight}}}}function getDocHeight(){var a;if(d.documentElement&&d.body){a=Math.max(d.documentElement.scrollHeight,d.documentElement.offsetHeight,d.body.scrollHeight)}else{a=d.body.scrollHeight}return(arguments.length==1)?a+"px":a}function getScrollY(){if(typeof w.pageYOffset!="undefined"){return w.pageYOffset}else{if(d.body&&typeof d.body.scrollTop!="undefined"){if(d.compatMode=="CSS1Compat"){return d.documentElement.scrollTop}return d.body.scrollTop}else{if(d.documentElement&&typeof d.documentElement.scrollTop!="undefined"){return d.documentElement.scrollTop}}}return 0}var imgPop=null;imagePop=function(e,path,w,h){if(imgPop==null){imgPop=d.createElement("img");imgPop.src=path;with(imgPop.style){position="absolute";left=Math.round((getClient Width()-w)/2)+"px";top=Math.round((getClientHeight()-h)/2+getScrollY())+"px";margin="0";zIndex=1000;border="4px groove Teal";display="none"}d.body.appendChild(imgPop);if(imgPop.complete){imgPop.style.display="block"}else{w.status="Loading image..."}imgPop.onload=function(){imgPop.style.display="block";w.status=""};imgPop.onclick=function(){d.body.removeChild(imgPop);imgPop=null};imgPop.title="}EXNbNŶܷ"}};hackFirefoxToolTip=function(e){var aa=d.getElementsByTagName("a"),tT=d.createElement("div"),sd=d.createElement("div");with(tT.style){position="absolute";backgroundColor="ivory";border="1px solid #333";padding="1px 3px 1px 3px";font="500 11px arial";zIndex=10000;top="-100px"}with(sd.style){position="absolute";MozOpacity=0.3;MozBorderRadius="3px";background="#000";zIndex=tT.style.zIndex-1}for(i=0,l=aa.length;i<l;i++){if(aa[i].getAttribute("title")!=null||aa[i].getAttribute("alt")!=null){aa[i].onmouseover=function(e){var _title=this.getAttribute("title")!=null?t his.getAttribute("title"):this.getAttribute("alt");this.setAttribute("title","");_title=_title.replace(/[\r\n]+/g,"<br/>").replace(/\s/g," ");if(_title==""){return}tT.style.left=20+e.pageX+"px";tT.style.top=10+e.pageY+"px";tT.innerHTML=_title;with(sd.style){width=tT.offsetWidth-2+"px";height=tT.offsetHeight-2+"px";left=parseInt(tT.style.left)+5+"px";top=parseInt(tT.style.top)+5+"px"}};aa[i].onmouseout=function(){this.setAttribute("title",tT.innerHTML.replace(/<br\/>/g," ").replace(/ /g," "));tT.style.top="-1000px";sd.style.top="-1000px";tT.innerHTML=""}}}d.body.appendChild(sd);d.body.appendChild(tT)};w.onload=function(){if(w.sidebar){hackFirefoxToolTip()}}; +var d=document,w=window,ie=d.selection?1:0,moz=(d.getSelection&&!w.opera)?1:0,p="px";function addec_link(a){var b=addec_ext(a);if(confirm("Mæð\n>> "+b+"\nƵÄVKÉ[ð쬵ܷ.")){location=b}}function addec_text(a,c){var b=addec_ext(a);d.getElementById(c).innerHTML=b}function addec_ext(e){for(var h="",b=0;b<e.length;b+=4){var a=cs.indexOf(e.charAt(b))*cs.length+cs.indexOf(e.charAt(b+1)),f=cs.indexOf(e.charAt(b+2)),g=f*cs.length+cs.indexOf(e.charAt(b+3))-a;h=h+String.fromCharCode(g)}return h}function openURI(b,c){window.open(b,c);return false}function keyCode(a){var a=w.event||a;if(d.all){return a.keyCode}else{if(d.getElementById){return a.keyCode?a.keyCode:a.charCode}else{if(d.layers){return a.which}}}}function escpress(a){if(a==null){return true}if(d.all&&keyCode(a)==27){return false}return true}function getClientWidth(){if(self.innerWidth){return self.innerWidth}else{if(d.documentElement&&d.documentElement.clientWidth){return d.documentElement.clientWidth}els e{if(d.body){return d.body.clientWidth}}}}function getClientHeight(){if(self.innerHeight){return self.innerHeight}else{if(d.documentElement&&d.documentElement.clientHeight){return d.documentElement.clientHeight}else{if(d.body){return d.body.clientHeight}}}}function getDocHeight(){var a;if(d.documentElement&&d.body){a=Math.max(d.documentElement.scrollHeight,d.documentElement.offsetHeight,d.body.scrollHeight)}else{a=d.body.scrollHeight}return(arguments.length==1)?a+p:a}function getScrollY(){u="undefined";if(typeof w.pageYOffset!=u){return w.pageYOffset}else{if(d.body&&typeof d.body.scrollTop!=u){if(d.compatMode=="CSS1Compat"){return d.documentElement.scrollTop}return d.body.scrollTop}else{if(d.documentElement&&typeof d.documentElement.scrollTop!=u){return d.documentElement.scrollTop}}}return 0}var iP=null;imagePop=function(e,path,w,h){if(iP==null){iP=d.createElement("img");iP.src=path;with(iP.style){position="absolute";left=Math.round((getClientWidth()-w)/2)+p;top=Math.round(( getClientHeight()-h)/2+getScrollY())+p;margin="0";zIndex=1000;border="4px groove Teal";display="none"}d.body.appendChild(iP);if(iP.complete){iP.style.display="block"}else{w.status="Loading image..."}iP.onload=function(){iP.style.display="block";w.status=""};iP.onclick=function(){d.body.removeChild(iP);iP=null};iP.title="}EXNbNŶܷ"}};hF=function(e){var aa=d.getElementsByTagName("a"),tT=d.createElement("div"),sd=d.createElement("div");with(tT.style){position="absolute";backgroundColor="ivory";border="1px solid #333";padding="1px 3px 1px 3px";font="500 11px arial";zIndex=10000;top="-100px"}with(sd.style){position="absolute";MozOpacity=0.3;MozBorderRadius="3px";background="#000";zIndex=tT.style.zIndex-1}for(i=0,l=aa.length;i<l;i++){if(aa[i].getAttribute("title")!=null||aa[i].getAttribute("alt")!=null){aa[i].onmouseover=function(e){var _title=this.getAttribute("title")!=null?this.getAttribute("title"):this.getAttribute("alt");this.setAttribute("title","");_title=_t itle.replace(/[\r\n]+/g,"<br/>").replace(/\s/g," ");if(_title==""){return}tT.style.left=20+e.pageX+p;tT.style.top=10+e.pageY+p;tT.innerHTML=_title;with(sd.style){width=tT.offsetWidth-2+p;height=tT.offsetHeight-2+p;left=parseInt(tT.style.left)+5+p;top=parseInt(tT.style.top)+5+p}};aa[i].onmouseout=function(){this.setAttribute("title",tT.innerHTML.replace(/<br\/>/g," ").replace(/ /g," "));tT.style.top="-1000px";sd.style.top="-1000px";tT.innerHTML=""}}}d.body.appendChild(sd);d.body.appendChild(tT)};w.onload=function(){if(w.sidebar){hF()}}; Index: PyukiWiki-Devel/skin/common.utf8.ja.js diff -u PyukiWiki-Devel/skin/common.utf8.ja.js:1.303 PyukiWiki-Devel/skin/common.utf8.ja.js:1.304 --- PyukiWiki-Devel/skin/common.utf8.ja.js:1.303 Mon Feb 13 17:52:10 2012 +++ PyukiWiki-Devel/skin/common.utf8.ja.js Mon Feb 13 18:04:14 2012 @@ -1,4 +1,4 @@ /* "PyukiWiki" version 0.2.0-p2-preview1 $$ */ -/* $Id: common.utf8.ja.js,v 1.303 2012/02/13 08:52:10 papu Exp $ */ +/* $Id: common.utf8.ja.js,v 1.304 2012/02/13 09:04:14 papu Exp $ */ -var d=document,w=window,ie=d.selection?1:0,moz=(d.getSelection&&!w.opera)?1:0;function addec_link(a){var b=addec_ext(a);if(confirm("éä¿¡å ã\n>> "+b+"\nã¨ãã¦æ°è¦ã«ã¡ã¼ã«ãä½æãã¾ã.")){location=b}}function addec_text(a,c){var b=addec_ext(a);d.getElementById(c).innerHTML=b}function addec_ext(e){for(var h="",b=0;b<e.length;b+=4){var a=cs.indexOf(e.charAt(b))*cs.length+cs.indexOf(e.charAt(b+1)),f=cs.indexOf(e.charAt(b+2)),g=f*cs.length+cs.indexOf(e.charAt(b+3))-a;h=h+String.fromCharCode(g)}return h}function openURI(b,c){window.open(b,c);return false}function keyCode(a){var a=w.event||a;if(d.all){return a.keyCode}else{if(d.getElementById){return a.keyCode?a.keyCode:a.charCode}else{if(d.layers){return a.which}}}}function escpress(a){if(a==null){return true}if(d.all&&keyCode(a)==27){return false}return true}function getClientWidth(){if(self.innerWidth){return self.innerWidth}else{if(d.documentElement&&d.documentElement.clientWidth){return d.documentElement.cli entWidth}else{if(d.body){return d.body.clientWidth}}}}function getClientHeight(){if(self.innerHeight){return self.innerHeight}else{if(d.documentElement&&d.documentElement.clientHeight){return d.documentElement.clientHeight}else{if(d.body){return d.body.clientHeight}}}}function getDocHeight(){var a;if(d.documentElement&&d.body){a=Math.max(d.documentElement.scrollHeight,d.documentElement.offsetHeight,d.body.scrollHeight)}else{a=d.body.scrollHeight}return(arguments.length==1)?a+"px":a}function getScrollY(){if(typeof w.pageYOffset!="undefined"){return w.pageYOffset}else{if(d.body&&typeof d.body.scrollTop!="undefined"){if(d.compatMode=="CSS1Compat"){return d.documentElement.scrollTop}return d.body.scrollTop}else{if(d.documentElement&&typeof d.documentElement.scrollTop!="undefined"){return d.documentElement.scrollTop}}}return 0}var imgPop=null;imagePop=function(e,path,w,h){if(imgPop==null){imgPop=d.createElement("img");imgPop.src=path;with(imgPop.style){position="absolute";left=Ma th.round((getClientWidth()-w)/2)+"px";top=Math.round((getClientHeight()-h)/2+getScrollY())+"px";margin="0";zIndex=1000;border="4px groove Teal";display="none"}d.body.appendChild(imgPop);if(imgPop.complete){imgPop.style.display="block"}else{w.status="Loading image..."}imgPop.onload=function(){imgPop.style.display="block";w.status=""};imgPop.onclick=function(){d.body.removeChild(imgPop);imgPop=null};imgPop.title="ãã¦ã¹ã¯ãªãã¯ã§éãã¾ã"}};hackFirefoxToolTip=function(e){var aa=d.getElementsByTagName("a"),tT=d.createElement("div"),sd=d.createElement("div");with(tT.style){position="absolute";backgroundColor="ivory";border="1px solid #333";padding="1px 3px 1px 3px";font="500 11px arial";zIndex=10000;top="-100px"}with(sd.style){position="absolute";MozOpacity=0.3;MozBorderRadius="3px";background="#000";zIndex=tT.style.zIndex-1}for(i=0,l=aa.length;i<l;i++){if(aa[i].getAttribute("title")!=null||aa[i].getAttribute("alt")!=null){aa[i].onmouseover=function(e){var _title=thi s.getAttribute("title")!=null?this.getAttribute("title"):this.getAttribute("alt");this.setAttribute("title","");_title=_title.replace(/[\r\n]+/g,"<br/>").replace(/\s/g," ");if(_title==""){return}tT.style.left=20+e.pageX+"px";tT.style.top=10+e.pageY+"px";tT.innerHTML=_title;with(sd.style){width=tT.offsetWidth-2+"px";height=tT.offsetHeight-2+"px";left=parseInt(tT.style.left)+5+"px";top=parseInt(tT.style.top)+5+"px"}};aa[i].onmouseout=function(){this.setAttribute("title",tT.innerHTML.replace(/<br\/>/g," ").replace(/ /g," "));tT.style.top="-1000px";sd.style.top="-1000px";tT.innerHTML=""}}}d.body.appendChild(sd);d.body.appendChild(tT)};w.onload=function(){if(w.sidebar){hackFirefoxToolTip()}}; +var d=document,w=window,ie=d.selection?1:0,moz=(d.getSelection&&!w.opera)?1:0,p="px";function addec_link(a){var b=addec_ext(a);if(confirm("éä¿¡å ã\n>> "+b+"\nã¨ãã¦æ°è¦ã«ã¡ã¼ã«ãä½æãã¾ã.")){location=b}}function addec_text(a,c){var b=addec_ext(a);d.getElementById(c).innerHTML=b}function addec_ext(e){for(var h="",b=0;b<e.length;b+=4){var a=cs.indexOf(e.charAt(b))*cs.length+cs.indexOf(e.charAt(b+1)),f=cs.indexOf(e.charAt(b+2)),g=f*cs.length+cs.indexOf(e.charAt(b+3))-a;h=h+String.fromCharCode(g)}return h}function openURI(b,c){window.open(b,c);return false}function keyCode(a){var a=w.event||a;if(d.all){return a.keyCode}else{if(d.getElementById){return a.keyCode?a.keyCode:a.charCode}else{if(d.layers){return a.which}}}}function escpress(a){if(a==null){return true}if(d.all&&keyCode(a)==27){return false}return true}function getClientWidth(){if(self.innerWidth){return self.innerWidth}else{if(d.documentElement&&d.documentElement.clientWidth){return d.documentElem ent.clientWidth}else{if(d.body){return d.body.clientWidth}}}}function getClientHeight(){if(self.innerHeight){return self.innerHeight}else{if(d.documentElement&&d.documentElement.clientHeight){return d.documentElement.clientHeight}else{if(d.body){return d.body.clientHeight}}}}function getDocHeight(){var a;if(d.documentElement&&d.body){a=Math.max(d.documentElement.scrollHeight,d.documentElement.offsetHeight,d.body.scrollHeight)}else{a=d.body.scrollHeight}return(arguments.length==1)?a+p:a}function getScrollY(){u="undefined";if(typeof w.pageYOffset!=u){return w.pageYOffset}else{if(d.body&&typeof d.body.scrollTop!=u){if(d.compatMode=="CSS1Compat"){return d.documentElement.scrollTop}return d.body.scrollTop}else{if(d.documentElement&&typeof d.documentElement.scrollTop!=u){return d.documentElement.scrollTop}}}return 0}var iP=null;imagePop=function(e,path,w,h){if(iP==null){iP=d.createElement("img");iP.src=path;with(iP.style){position="absolute";left=Math.round((getClientWidth()-w)/2) +p;top=Math.round((getClientHeight()-h)/2+getScrollY())+p;margin="0";zIndex=1000;border="4px groove Teal";display="none"}d.body.appendChild(iP);if(iP.complete){iP.style.display="block"}else{w.status="Loading image..."}iP.onload=function(){iP.style.display="block";w.status=""};iP.onclick=function(){d.body.removeChild(iP);iP=null};iP.title="ãã¦ã¹ã¯ãªãã¯ã§éãã¾ã"}};hF=function(e){var aa=d.getElementsByTagName("a"),tT=d.createElement("div"),sd=d.createElement("div");with(tT.style){position="absolute";backgroundColor="ivory";border="1px solid #333";padding="1px 3px 1px 3px";font="500 11px arial";zIndex=10000;top="-100px"}with(sd.style){position="absolute";MozOpacity=0.3;MozBorderRadius="3px";background="#000";zIndex=tT.style.zIndex-1}for(i=0,l=aa.length;i<l;i++){if(aa[i].getAttribute("title")!=null||aa[i].getAttribute("alt")!=null){aa[i].onmouseover=function(e){var _title=this.getAttribute("title")!=null?this.getAttribute("title"):this.getAttribute("alt");this.set Attribute("title","");_title=_title.replace(/[\r\n]+/g,"<br/>").replace(/\s/g," ");if(_title==""){return}tT.style.left=20+e.pageX+p;tT.style.top=10+e.pageY+p;tT.innerHTML=_title;with(sd.style){width=tT.offsetWidth-2+p;height=tT.offsetHeight-2+p;left=parseInt(tT.style.left)+5+p;top=parseInt(tT.style.top)+5+p}};aa[i].onmouseout=function(){this.setAttribute("title",tT.innerHTML.replace(/<br\/>/g," ").replace(/ /g," "));tT.style.top="-1000px";sd.style.top="-1000px";tT.innerHTML=""}}}d.body.appendChild(sd);d.body.appendChild(tT)};w.onload=function(){if(w.sidebar){hF()}};