page_onload(function(){var All_a=$$("e_show","a");for(var i=0;i<All_a.length;i++){if(All_a[i].className.indexOf("reflect")==-1&&All_a[i].className.indexOf("rheight")==-1&&All_a[i].href.indexOf("#")==-1){if($UA.b=="IE"){All_a[i].setAttribute("onclick",new Function("e_show(this);return false"))}else{All_a[i].setAttribute("onclick","e_show(this);return false")}}}All_a=null});function e_show(Anc,Myself){var LoadTimes=0;if(typeof(Anc)=="object"){if(href_property(Anc.href,"group")){var GroupName=href_property(Anc.href,"group");var Group=new Array();var All_a=$$("e_show","a");for(var i=0;i<All_a.length;i++){if(All_a[i].className.indexOf("reflect")==-1&&All_a[i].className.indexOf("rheight")==-1&&href_property(All_a[i].href,"group")==GroupName){Group.push(All_a[i])}}if(Group.length!=0){for(var i=0;i<Group.length;i++){if(Anc.href==Group[i].href)var GroupMySelf=i}}else{Group=null}All_a=null}else{var Group=null}}else if(typeof(Anc)=="string"){function MakeA(o,id){var e=document.createElement("a");if(id){if(o.h.indexOf("?")!=-1){o.h+="&group=temp"+id}else{o.h+="?group=temp"+id}}e.href=o.h;if(o.t&&o.t!="")e.title=o.t;return e}var AncText=decodeURIComponent(Anc);if(AncText.indexOf(",")!=-1){var g_a=AncText.split(",");var Group=new Array();for(var i=0;i<g_a.length;i++){Group.push(MakeA({h:g_a[i].split(":")[0],t:g_a[i].split(":")[1]},new Date().getMilliseconds()))}if(!Myself){Anc=Group[0];GroupMySelf=0}else{Anc=Group[Myself];GroupMySelf=Myself}}else{var Group=null;Anc=MakeA({h:AncText.split(":")[0],t:AncText.split(":")[1]})}}if(!SetSlide()){SetSlide(true)}else{if($("eb_img"))$("eb").removeChild($("eb_img"));if($("eb_doc"))$("eb").removeChild($("eb_doc"));if($("eb_group"))$("eb").removeChild($("eb_group"));if($("eb_navi"))$("eb").removeChild($("eb_navi"));if($("eb_cap"))$("eb").removeChild($("eb_cap"))}NowLoading(true);var Anc_link=NaturalURL(Anc.href);var Anc_href=Anc.href;var Anc_type=FileType(Anc.href);if(Anc_type=="img"){var I=new Image();I.src=Anc_link;image_complete(I,function(){slide(I)})}else{slide()}function slide(Contents){var win=window_size();var doc=document_size();var win_margin=120;var ad_W;var ad_H;var c_margin=20;if(Anc_type=="img"){if(typeof(Contents)=="undefined"){if(LoadTimes<15){LoadTimes++;var _Contents=new Image();Contents.src=Anc_link;image_complete(_Contentsj,function(){slide(_Contents)})}else{e_show_close()}}else{if(href_property(Anc_href,"w")&&href_property(Anc_href,"h")){var org={w:parseInt(href_property(Anc_href,"w")),h:parseInt(href_property(Anc_href,"h"))}}else{var org={w:Contents.width,h:Contents.height}}var win_R=win.w/win.h;var org_R=org.w/org.h;if(win_R>org_R){if(org.h>win.h-win_margin){ad_H=win.h-win_margin;ad_W=Math.round(ad_H*org_R)}else{ad_W=org.w;ad_H=org.h}}else{if(org.w>win.w-win_margin){ad_W=win.w-win_margin;ad_H=Math.round(ad_W/org_R)}else{ad_W=org.w;ad_H=org.h}}Contents.style.width=ad_W+"px";Contents.style.height=ad_H+"px";Contents.width=ad_W;Contents.height=ad_H;Contents.setAttribute("id","eb_img")}}else{var def_W=1000;var def_H=750;if(href_property(Anc_href,"w")&&href_property(Anc_href,"h")){ad_W=parseInt(href_property(Anc_href,"w"));ad_H=parseInt(href_property(Anc_href,"h"))}else{if(win.w<def_W+win_margin){ad_W=win.w-win_margin;if(win.h<def_H+win_margin){ad_H=win.h-win_margin}else{ad_H=def_H}}else{ad_W=def_W;if(win.h<def_H+win_margin){ad_H=win.h-win_margin}else{ad_H=def_H}}}if(href_property(Anc_href,"object")){Contentsj=document.createElement("object");Contents.data=Anc_link;Contents.width=ad_W;Contents.height=ad_H;Contents.border=0;Contents.hspace=0;Contents.vspace=0;Contents.declare=true;if($UA.b=="IE")Contents.setAttribute("classid","clsid:25336920-03F9-11CF-8FD0-00AA00686F13")}else{Contents=document.createElement("div");Contents.style.width=ad_W+"px";Contents.style.height=ad_H+"px";Contents.innerHTML=HTML_BODY(ajax.get(Anc_link))}Contents.style.overflow="auto";Contents.setAttribute("id","eb_doc")}Contents.style.margin=c_margin+"px";opacity(Contents,0);$size($("eb"),{w:ad_W+c_margin*2,h:ad_H+c_margin*2},Step2);function Step2(){$("eb").appendChild(Contents);NowLoading(false);$opacity(Contents,20,100,Step3)}function Step3(){var nv_obj=navi();$("eb").appendChild(nv_obj[0]);for(var i=1;i<nv_obj.length;i++){nv_obj[0].appendChild(nv_obj[i])}var gp_obj=group();var cp_obj=caption();if(gp_obj){$("eb").appendChild(gp_obj[0]);for(var i=1;i<gp_obj.length;i++){gp_obj[0].appendChild(gp_obj[i])}opacity(gp_obj[0],80)}if(cp_obj){$("eb").appendChild(cp_obj);cp_obj.style.top="2px";$opacity(cp_obj,70)}}function group(){if(Group){var i_prev=MakePNG24("images/eb_navi_prev.png",14,14);var i_next=MakePNG24("images/eb_navi_next.png",14,14);var group_summary_element=(GroupMySelf+1)+"&nbsp;/&nbsp;"+(Group.length)+"&nbsp;&nbsp;&nbsp;";function MakeGroupAnchor(a,d,t){var e=document.createElement("a");e.href=a.href;e.title=a.title;e.innerHTML=d;if(AncText){if($UA.b=="IE"){e.setAttribute("onclick",new Function("e_show('"+encodeURI(AncText)+"',"+t+");return false"))}else if($UA.b=="Op"){e.setAttribute("onclick","e_show('"+encodeURI(AncText)+"',"+t+");return false")}else{e.setAttribute("onclick","e_show('"+encodeURI(AncText)+"',"+t+");return false")}}else{if($UA.b=="IE"){e.setAttribute("onclick",new Function("e_show(this);return false"))}else{e.setAttribute("onclick","e_show(this);return false")}}return e};switch(GroupMySelf){case 0:var group_next_element=MakeGroupAnchor(Group[GroupMySelf+1],i_next,GroupMySelf+1);var group_prev_element=document.createTextNode("");break;case Group.length-1:var group_prev_element=MakeGroupAnchor(Group[GroupMySelf-1],i_prev,GroupMySelf-1);var group_next_element=document.createTextNode("");break;default:var group_prev_element=MakeGroupAnchor(Group[GroupMySelf-1],i_prev,GroupMySelf-1);var group_next_element=MakeGroupAnchor(Group[GroupMySelf+1],i_next,GroupMySelf+1);break}var g=document.createElement("div");g.setAttribute("id","eb_group");with(g.style){backgroundColor="#ffffff";position="absolute";left=ad_W-80+c_margin*2-4+"px";top=ad_H+c_margin*2-15-3+"px";zIndex=300;width="80px";height="15px";lineHeight="14px";fontSize="10px";verticalAlign="bottom";textAlign="right";padding="0px"}g.innerHTML=group_summary_element;opacity(g,0);return Array(g,group_prev_element,document.createTextNode("  "),group_next_element)}else{return false}};function navi(){if(href_property(Anc_href,"object")){var OpenNew_element=document.createElement("a");OpenNew_element.href=NaturalURL(HREF);OpenNew_element.title="このページを新しく開きます";OpenNew_element.setAttribute("target","_blank");OpenNew_element.innerHTML=MakePNG24("images/eb_navi_open.png",14,14)+"&nbsp"}else{var OpenNew_element=document.createTextNode("")}var Close_element=document.createElement("a");Close_element.href="#";if($UA.b=="IE"){Close_element.setAttribute("onclick",new Function("e_show_close();return false"))}else{Close_element.setAttribute("onclick","e_show_close();return false")}Close_element.innerHTML="&nbsp;"+MakePNG24("images/eb_navi_close.png",14,14);var e=document.createElement("div");with(e.style){position="absolute";backgroundColor="#ffffff";top="4px";left="0px";zIndex=250;width=ad_W+c_margin*2-4+"px";height="14px";fontSize="10px";lineHeight="1px";textAlign="right"}e.setAttribute("id","eb_navi");opacity(e,80);return Array(e,OpenNew_element,Close_element)};function caption(){if(Anc.title&&Anc.title!=""){var c=document.createElement("div");with(c.style){backgroundColor="#ffffff";position="absolute";left=c_margin+"px";zIndex="250";width=ad_W+"px";verticalAlign="top";textAlign="left";fontSize="12px";lineHeight="18px"}c.innerHTML=Anc.title;c.setAttribute("id","eb_cap");opacity(c,0);return c}else{return false}}};function SetSlide(b){if(b===true){e_show_close();var O=document.getElementsByTagName("object");if(O.length>0){var z=100;var src="images/eb_navi_mask.gif";for(var i=0;i<O.length;i++){var a=document.createElement("div");var _a=position(O[i].parentNode);with(a.style){width=O[i].width+"px";height=O[i].height+"px";position="absolute";zIndex=z;top=_a.y+"px";left=_a.x+"px";backgroundImage="url("+src+")"}a.setAttribute("id","flashmask"+i);O[i].parentNode.appendChild(a);z++}}var b=document.createElement("div");with(b.style){width=document_size().w+"px";height=Math.max(window_size().h,document_size().h)+"px";backgroundColor="#000000";position="absolute";top="0px";left="0px";zIndex="200"}b.setAttribute("id","eMask");opacity(b,60);var c=document.createElement("div");with(c.style){backgroundColor="#ffffff";width=Math.min(800,window_size().w-100)+"px";height=Math.min(600,window_size().h-100)+"px";position="absolute";zIndex="201";top=Math.round(scroll_size().y+window_size().h/2-Math.min(600,window_size().h-100)/2)+"px";left=Math.round(scroll_size().x+window_size().w/2-Math.min(800,window_size().w-100)/2)+"px"}c.setAttribute("id","eb");document.body.appendChild(b);document.body.appendChild(c);if($UA.b=="IE"){$("eMask").setAttribute("onclick",new Function("e_show_close();"))}else{$("eMask").setAttribute("onclick","e_show_close()")}}else if(b===false){e_show_close()}else{if($("eMask")&&$("eb")){return true}else{return false}}}function href_property(url,property){var a=url.indexOf("?");if(a!=-1){var query=url.slice(a+1).split("&");for(var i=0;i<query.length;i++){var pro=query[i].split("=");if(pro[0]==property&&typeof(pro[1])!="undefined"){return pro[1];break}else if(pro[0]==property){return true;break}}return false}else{return false}};function NaturalURL(url){if(url.indexOf("?")!=-1){return url.split("?")[0]}else{return url}};function FileType(url){var href=NaturalURL(url).toLowerCase();if(href.slice(-4)==".jpg"||href.slice(-4)==".gif"||href.slice(-4)==".png"){return"img"}else{return"doc"}};function NowLoading(b){var obj=typeof($("NowLoading"))=="undefined"?null:$("NowLoading");if(b===true&&obj==null){var e=document.createElement("div");with(e.style){backgroundColor="#ffffff";width="320px";height="180px";position="absolute";zIndex="1000";top=Math.round(scroll_size().y+window_size().h/2-180/2)+"px";left=Math.round(scroll_size().x+window_size().w/2-320/2)+"px"}e.setAttribute("id","NowLoading");document.body.appendChild(e);var I=new Image();I.src="images/loading.gif";I.style.margin="67px 122px";I.setAttribute("alt","Now Loading ...");$("NowLoading").appendChild(I)}else if(b===true&&obj){obj.style.backgroundColor=""}else if(b===false&&obj){document.body.removeChild(obj)}}function MakePNG24(i,w,h){if($UA.b=="IE"&&parseFloat($UA.v)<=6){return'<img src="images/eb_navi_mask.gif" style="width:'+w+'px;height:'+h+'px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='+i+')" />'}else{return'<img src="'+i+'" width="'+w+'" height="'+h+'" />'}}};function e_show_close(){var body=document.body;if($("eMask"))body.removeChild($("eMask"));if($("eb")){if($("eb_img"))$("eb").removeChild($("eb_img"));if($("eb_doc"))$("eb").removeChild($("eb_doc"));if($("eb_group"))$("eb").removeChild($("eb_group"));if($("eb_navi"))$("eb").removeChild($("eb_navi"));if($("eb_cap"))$("eb").removeChild($("eb_cap"));body.removeChild($("eb"))}if($("NowLoading"))body.removeChild($("NowLoading"));var O=document.getElementsByTagName("object");for(var i=0;i<O.length;i++){if($("flashmask"+i))O[i].parentNode.removeChild($("flashmask"+i))}};