/* js shrinker: Dojo ShrinkSafe */
WCUtils._ie=(document.all&&!window.opera)?true:false;
WCUtils._ie5=WCUtils._ie&&(navigator.appVersion.indexOf("MSIE 5.")!=-1);
WCUtils._ie_le_6=(WCUtils._ie&&(navigator.appVersion.indexOf("MSIE 5.")!=-1||navigator.appVersion.indexOf("MSIE 6.")!=-1))?true:false;
WCUtils._safari=navigator.userAgent.indexOf("AppleWebKit/")!=-1?true:false;
WCUtils._netfront=(navigator.appName.indexOf("NetFront")!=-1)?true:false;
WCUtils._fb_softbank=(WCUtils._netfront&&navigator.platform=="SoftBank")?true:false;
WCUtils._fb_docomo=(WCUtils._netfront&&navigator.platform=="DoCoMo")?true:false;
WCUtils._fb_kddi=(window.opera&&navigator.platform=="KDDI")?true:false;
WCUtils._mobile_fb=(WCUtils._fb_kddi|WCUtils._fb_softbank|WCUtils._fb_docomo)?true:false;
WCUtils._gecko=!WCUtils._safari&&navigator.product=="Gecko";
function WCUtils(){
}
function _WCUtils_removeAllChildren(_1){
if(_1==null){
return;
}
while(_1.hasChildNodes()){
_1.removeChild(_1.firstChild);
}
}
WCUtils.removeAllChildren=_WCUtils_removeAllChildren;
function _WCUtils_viewInnerHTML(id){
var w=window.open("","_innerHTML","");
var e=id?document.getElementById(id):document.body;
w.document.open();
w.document.write("<html><head><title>inner html (debug)</title></head><body><div><pre>"+WCUtils.escapeHTML(e?e.innerHTML:"")+"</pre></div></body></html>");
w.document.close();
w.focus();
}
WCUtils.viewInnerHTML=_WCUtils_viewInnerHTML;
function _WCUtils_escapeHTML(s){
return s.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;");
}
WCUtils.escapeHTML=_WCUtils_escapeHTML;
function _WCUtils_unescapeHTML(s){
return s.replace(/&quot;/g,"\"").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");
}
WCUtils.unescapeHTML=_WCUtils_unescapeHTML;
function _WCUtils_trim(_7){
if(_7==null){
return "";
}
return _7.replace(/^\s+|\s+$/,"");
}
WCUtils.trim=_WCUtils_trim;
function _WCUtils_trimx(_8){
if(_8==null){
return "";
}
return _8.replace(/^[\s\u3000]+|[\s\u3000]+$/,"");
}
WCUtils.trimx=_WCUtils_trimx;
function _WCUtils_startsWith(s1,s2){
if(s1==null||s1.length<s2.length){
return false;
}
return s1.substring(0,s2.length)==s2;
}
WCUtils.startsWith=_WCUtils_startsWith;
function _WCUtils_endsWith(s1,s2){
if(s1==null||s1.length<s2.length){
return false;
}
return s1.substring(s1.length-s2.length)==s2;
}
WCUtils.endsWith=_WCUtils_endsWith;
function _WCUtils_isIE(){
return WCUtils._ie;
}
WCUtils.isIE=_WCUtils_isIE;
function _WCUtils_createInputElement(tp,_e){
if(WCUtils.isIE()){
var _f=document.createElement("<input type=\""+tp+"\" name=\""+_e+"\">");
return _f;
}else{
var _f=document.createElement("input");
_f.type=tp;
_f.name=_e;
return _f;
}
}
WCUtils.createInputElement=_WCUtils_createInputElement;
function _WCUtils_bgCacheBugWorkaround(){
if(WCUtils._ie_le_6){
if(document.execCommand&&document.queryCommandSupported&&document.queryCommandSupported("BackgroundImageCache")){
document.execCommand("BackgroundImageCache",false,true);
}
}
}
WCUtils.bgCacheBugWorkaround=_WCUtils_bgCacheBugWorkaround;
function _WCUtils_lpad(s,len,p){
s=""+s;
while(s.length<len){
s=p+s;
}
return s;
}
WCUtils.lpad=_WCUtils_lpad;
function _WCUtils_setText(elm,s){
var t=document.createTextNode(s);
elm.appendChild(t);
}
WCUtils.setText=_WCUtils_setText;
function _WCUtils_formatMessage(msg,_17){
return msg.replace(/{([0-9]+)}/g,function(val,_19){
return _17[_19]==null?val:_17[_19];
});
}
WCUtils.formatMessage=_WCUtils_formatMessage;
function _WCUtils_formatDate(dt,_1b){
return _1b.replace(/(yyyy|MM|dd|HH|mm|ss|EEE|E)/g,function(val){
if(val=="yyyy"){
return dt.getFullYear();
}else{
if(val=="MM"){
return WCUtils.lpad(dt.getMonth()+1,2,"0");
}else{
if(val=="dd"){
return WCUtils.lpad(dt.getDate(),2,"0");
}else{
if(val=="HH"){
return WCUtils.lpad(dt.getHours(),2,"0");
}else{
if(val=="mm"){
return WCUtils.lpad(dt.getMinutes(),2,"0");
}else{
if(val=="ss"){
return WCUtils.lpad(dt.getSeconds(),2,"0");
}else{
if(val=="EEE"){
return WCUtils.DAYNAME_EEE[dt.getDay()];
}else{
if(val=="E"){
return WCUtils.DAYNAME_E[dt.getDay()];
}
}
}
}
}
}
}
}
});
}
WCUtils.formatDate=_WCUtils_formatDate;
function _WCUtils_numFormat(val,n){
val=Math.round(val*Math.pow(10,n))+"";
var v=(val.length==n?"0":val.substring(0,val.length-n))+"."+val.substring(val.length-n,val.length);
return v;
}
WCUtils.numFormat=_WCUtils_numFormat;
function _WCUtils_addRule(_20,_21){
var _22;
var n=document.styleSheets.length;
if(n==0){
if(this.editDocument.createStyleSheet){
_22=document.createStyleSheet();
}else{
var elm=document.createElement("style");
elm.appendChild(this.editDocument.createTextNode(""));
document.getElementsByTagName("head")[0].appendChild(elm);
_22=document.styleSheets[0];
}
}else{
_22=document.styleSheets[n-1];
}
if(_22.addRule){
_22.addRule(_20,_21,_22.rules.length);
}else{
if(_22.insertRule){
try{
_22.insertRule(_20+_21,_22.cssRules.length);
}
catch(ex){
_22.insertRule(_20+_21,0);
}
}
}
}
WCUtils.addRule=_WCUtils_addRule;
function _WCUtils_nvl(s,def){
return s==null?def:s;
}
WCUtils.nvl=_WCUtils_nvl;
function _WCUtils_nvl2(s,def){
return s==null||s.length==0?def:s;
}
WCUtils.nvl2=_WCUtils_nvl2;
WCUtils.DAYNAME_EEE=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
WCUtils.DAYNAME_E=new Array("\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f");
function _WCUtils_getCookie(_29){
var val=null;
if(document.cookie&&document.cookie.length!=0){
var ss=document.cookie.split("; ");
for(var i=ss.length-1;i>=0;i--){
var x=ss[i].split("=");
if(x.length!=2){
continue;
}
if(x[0]==_29){
val=x[1];
break;
}
}
}
return val==null?null:unescape(val);
}
WCUtils.getCookie=_WCUtils_getCookie;
function _WCUtils_addCookie(_2e,_2f,_30,_31){
WCUtils.addCookie2(_2e,_2f,_30,_31,null);
}
WCUtils.addCookie=_WCUtils_addCookie;
function _WCUtils_addCookie2(_32,_33,_34,_35,_36){
var d=_34<=0?null:new Date();
if(d){
d.setTime(d.getTime()+(_34*24*60*60*1000));
}
var s=_32+"="+escape(_33)+(d?(" ;expires="+d.toGMTString()):" ")+";path="+(_35?_35:"/")+(_36?(" ;domain="+_36):"");
document.cookie=s;
}
WCUtils.addCookie2=_WCUtils_addCookie2;
function _WCUtils_deleteCookie(_39,_3a){
WCUtils.addCookie(_39,"",1,_3a);
WCUtils.addCookie(_39,"",-1,_3a);
}
WCUtils.deleteCookie=_WCUtils_deleteCookie;
function _WCUtils_imgPopup(url){
var w=window.open("","_imgpopup","width=0,height=0,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no");
w.document.open();
w.document.write(WCUtils.imgPopupHTML+"<img src=\""+url+"\" id=\"x\" style=\"border:0\" /></a></body></html>");
w.document.close();
}
WCUtils.imgPopup=_WCUtils_imgPopup;
WCUtils.imgPopupHTML="<html><head>\n"+"<script type=\"text/javascript\"><!--\n"+"function fit() {\n"+"if (window.innerWidth){\n"+" w = window.innerWidth; h = window.innerHeight;\n"+"}\n"+"else {\n"+" w = document.body.clientWidth; h = document.body.clientHeight;\n"+"}\n"+"var img = document.getElementById('x');\n"+"window.resizeBy(img.width - w, img.height - h);\n"+"self.focus();\n"+"}\n"+"//-->\n"+"</script>\n"+"</head>\n"+"<body onload=\"fit()\" style=\"margin:0;padding:0;\">\n"+"<a href=\"javascript:void(0)\" onclick=\"window.close();return false;\">";
function _WCUtils_appendScript(url){
var s=document.createElement("script");
s.type="text/javascript";
s.charset="UTF-8";
s.src=url;
document.getElementsByTagName("head").item(0).appendChild(s);
}
WCUtils.appendScript=_WCUtils_appendScript;
function _WCUtils_addEventListener(elm,_40,_41){
if(elm.addEventListener){
elm.addEventListener(_40,_41,false);
}else{
if(elm.attachEvent){
elm.attachEvent("on"+_40,_41);
}
}
}
WCUtils.addEventListener=_WCUtils_addEventListener;
function _WCUtils_removeEventListener(elm,_43,_44){
if(elm.removeEventListener){
elm.removeEventListener(_43,_44,false);
}else{
if(elm.detachEvent){
elm.detachEvent("on"+_43,_44);
}
}
}
WCUtils.removeEventListener=_WCUtils_removeEventListener;
function _WCUtils_isChild(p,c){
while(c){
if(c==p){
return true;
}
c=c.parentNode;
}
return false;
}
WCUtils.isChild=_WCUtils_isChild;
function _WCUtils_getDocumentSize(){
var _47=document.compatMode!="CSS1Compat";
var w=_47?document.body.scrollWidth:document.documentElement.scrollWidth;
var h=_47?document.body.scrollHeight:document.documentElement.scrollHeight;
var w2=document.body.innerWidth?document.body.innerWidth:_47?document.body.clientWidth:document.documentElement.clientWidth;
var h2=document.body.innerHeight?document.body.innerHeight:_47?document.body.clientHeight:document.documentElement.clientHeight;
w=w<w2?w2:w;
h=h<h2?h2:h;
return [w,h];
}
WCUtils.getDocumentSize=_WCUtils_getDocumentSize;
function _WCUtils_getDimension(){
var _4c=document.compatMode!="CSS1Compat";
var ie=WCUtils.isIE();
var x=ie?(_4c?document.body.scrollLeft:document.documentElement.scrollLeft):window.pageXOffset;
var y=ie?(_4c?document.body.scrollTop:document.documentElement.scrollTop):window.pageYOffset;
var w=ie?(_4c?document.body.clientWidth:document.documentElement.clientWidth):window.innerWidth;
var h=ie?(_4c?document.body.clientHeight:document.documentElement.clientHeight):window.innerHeight;
return [x,y,w,h];
}
WCUtils.getDimension=_WCUtils_getDimension;
function _WCUtils_centerWindow(elm){
var dim=WCUtils.getDimension();
var w=elm.offsetWidth;
var h=elm.offsetHeight;
var _56=(dim[2]-w)/2;
if(_56<0){
_56=0;
}
var top=(dim[3]-h)/2;
if(top<0){
top=0;
}
elm.style.left=(dim[0]+_56)+"px";
elm.style.top=(dim[1]+top)+"px";
}
WCUtils.centerWindow=_WCUtils_centerWindow;
function _WCUtils_getAbsPos(elm){
if(elm.nodeType==3&&WCUtils._gecko&&navigator.productSub<20030624){
elm=elm.parentNode;
}
var top=0;
var _5a=0;
var w=elm.offsetWidth;
var h=elm.offsetHeight;
do{
top+=elm.offsetTop;
_5a+=elm.offsetLeft;
elm=elm.offsetParent;
}while(elm!=null);
return [_5a,top,w,h];
}
WCUtils.getAbsPos=_WCUtils_getAbsPos;
function _WCUtils_blinkStart(tag){
var _5e=document.getElementsByTagName(tag);
for(var i=0;i<_5e.length;i++){
if(_5e[i].style.textDecoration=="blink"){
if(WCUtils.blinkTid==null){
WCUtils.blinkTid=setInterval(WCUtils.blinkFunc,1000);
}
WCUtils.blinkElms[WCUtils.blinkElms.length]=_5e[i];
}
}
}
WCUtils.blinkStart=_WCUtils_blinkStart;
function _WCUtils_blinkFunc(){
for(var i=0;i<WCUtils.blinkElms.length;i++){
WCUtils.blinkElms[i].style.visibility=WCUtils.blinkElms[i].style.visibility=="visible"?"hidden":"visible";
}
}
WCUtils.blinkFunc=_WCUtils_blinkFunc;
WCUtils.blinkTid=null;
WCUtils.blinkElms=new Array();
function _WCUtils_showPopup(e,n){
WCUtils.showPopup2(e,n,false,null);
}
WCUtils.showPopup=_WCUtils_showPopup;
function _WCUtils_showPopup2(e,n,op,cb){
var evt=e?e:window.event;
evt.cancelBubble=true;
if(evt.stopPropagation){
evt.stopPropagation();
}
var _68=evt.target?evt.target:evt.srcElement;
WCUtils._showPopup2(_68,n,op,cb);
}
WCUtils.showPopup2=_WCUtils_showPopup2;
function _WCUtils__showPopup2(_69,n,op,cb){
WCUtils.hideCurrentPopup();
var elm=document.getElementById(n);
if(elm&&elm.style.display!="block"){
elm.style.display="block";
WCUtils.adjustPopup(_69,elm);
WCUtils.curPopup=elm;
WCUtils.curPopupOp=op;
WCUtils.curPopupCb=cb;
if(op&&WCUtils.isIE()){
WCUtils.hideOverlapped(elm,"select","hidden");
}
WCUtils.addEventListener(document,"click",WCUtils.popupClickFunc);
WCUtils.addEventListener(document,"keydown",WCUtils.popupKeydownFunc);
}
}
WCUtils._showPopup2=_WCUtils__showPopup2;
function _WCUtils_adjustPopup(_6e,_6f){
var dim=WCUtils.getAbsPos(_6e);
var _71=0;
var _72=0;
if(WCUtils._netfront){
_71=document.body.scrollWidth;
_72=document.body.scrollHeight;
}else{
if(document.documentElement&&document.documentElement.clientWidth){
_71=document.documentElement.clientWidth;
_72=document.documentElement.clientHeight;
}else{
if(document.body&&document.body.clientWidth){
_71=document.body.clientWidth;
_72=document.body.clientHeight;
}else{
if(window.innerWidth){
_71=window.innerWidth-20;
_72=window.innerHeight;
}
}
}
}
if((dim[0]+_6f.offsetWidth)>_71){
dim[0]=_71-_6f.offsetWidth;
if(dim[0]<0){
dim[0]=0;
}
}
if((dim[1]+dim[3]+_6f.offsetHeight)>_72){
if(dim[1]>_6f.offsetHeight){
dim[1]=dim[1]-_6f.offsetHeight-dim[3];
}
}
_6f.style.left=dim[0]+"px";
_6f.style.top=(dim[1]+dim[3])+"px";
}
WCUtils.adjustPopup=_WCUtils_adjustPopup;
function _WCUtils_hideOverlapped(elm,tag,_75){
var dim=WCUtils.getAbsPos(elm);
var _77=document.getElementsByTagName(tag);
for(var i=0;i<_77.length;i++){
var _79=WCUtils.getAbsPos(_77[i]);
if(_79[0]>(dim[0]+dim[2])||_79[1]>(dim[1]+dim[3])||(_79[0]+_79[2])<dim[0]||(_79[1]+_79[3])<dim[1]){
continue;
}
if(WCUtils.isChild(elm,_77[i])){
continue;
}
_77[i].style.visibility=_75;
}
}
WCUtils.hideOverlapped=_WCUtils_hideOverlapped;
function _WCUtils_hideCurrentPopup(){
WCUtils.hideCurrentPopup2(false);
}
WCUtils.hideCurrentPopup=_WCUtils_hideCurrentPopup;
function _WCUtils_hideCurrentPopup2(_7a){
if(WCUtils.curPopup){
WCUtils.removeEventListener(document,"click",WCUtils.popupClickFunc);
WCUtils.removeEventListener(document,"keydown",WCUtils.popupKeydownFunc);
if(WCUtils.curPopupOp&&WCUtils.isIE()){
WCUtils.hideOverlapped(WCUtils.curPopup,"select","visible");
}
if(_7a&&WCUtils.curPopupCb!=null){
WCUtils.curPopupCb();
}
WCUtils.curPopup.style.display="none";
WCUtils.curPopup.style.top="0px";
WCUtils.curPopup.style.left="0px";
WCUtils.curPopup=null;
WCUtils.curPopupOp=false;
WCUtils.curPopupCb=null;
}
}
WCUtils.hideCurrentPopup2=_WCUtils_hideCurrentPopup2;
function _WCUtils_popupClickFunc(e){
if(!WCUtils.curPopup){
return;
}
var evt=e?e:window.event;
var elm=evt.target?evt.target:evt.srcElement;
if(!WCUtils.isChild(WCUtils.curPopup,elm)){
WCUtils.hideCurrentPopup2(true);
}
}
WCUtils.popupClickFunc=_WCUtils_popupClickFunc;
function _WCUtils_popupKeydownFunc(e){
if(!WCUtils.curPopup){
return;
}
var evt=e?e:window.event;
var elm=evt.target?evt.target:evt.srcElement;
if(evt.keyCode==27){
WCUtils.hideCurrentPopup();
return false;
}
return true;
}
WCUtils.popupKeydownFunc=_WCUtils_popupKeydownFunc;
WCUtils.curPopup=null;
WCUtils.curPopupOp=false;
WCUtils.curPopupCb=null;
function _WCUtils_appendImg(_81,img){
if(WCUtils._ie_le_6&&!img.complete){
img.onload=function(){
_81.appendChild(this);
};
img.onabort=function(){
this.onerror=null;
this.onabort=null;
this.onload=null;
_81.appendChild(this);
};
img.onerror=function(){
this.onerror=null;
this.onabort=null;
this.onload=null;
_81.appendChild(this);
};
}else{
_81.appendChild(img);
}
}
WCUtils.appendImg=_WCUtils_appendImg;
function _WCUtils_getEmpx(){
var _83=WCUtils._ie_le_6;
var e=document.createElement("span");
e.style.width="1px";
e.style.height="1em";
e.style.position="absolute";
e.style.top="-100px";
document.body.appendChild(e);
var x=e.offsetHeight-(_83?2:0);
document.body.removeChild(e);
return x;
}
WCUtils.getEmpx=_WCUtils_getEmpx;
function _WCUtils_getEmpx2(_86){
var _87=WCUtils._ie_le_6;
var e=document.createElement("span");
e.style.width="1px";
e.style.height="1em";
e.style.position="absolute";
e.style.top="-100px";
var p=document.getElementById(_86);
p.appendChild(e);
var x=e.offsetHeight-(_87?2:0);
p.removeChild(e);
return x;
}
WCUtils.getEmpx2=_WCUtils_getEmpx2;
function WCImgPopup(){
}
WCImgPopup.shield=null;
WCImgPopup.loading=null;
WCImgPopup.imgdiv=null;
WCImgPopup.img=null;
WCImgPopup.status=0;
WCImgPopup.initialized=false;
WCImgPopup.loadingHtml="<div id=\"imgPopupLoading\">"+"<img id=\"imgPopupLoadingImg\" src=\"/_common/images/loading.gif\" style=\"border:0;vertical-align:middle;\" />"+" \u8aad\u307f\u8fbc\u307f\u4e2d...</div>";
function _WCImgPopup_init(_8b){
WCImgPopup.shield=document.createElement("div");
WCImgPopup.shield.id="imgPopupModalshield";
WCImgPopup.shield.style.position="absolute";
WCImgPopup.shield.style.visibility="hidden";
WCImgPopup.shield.style.left="0px";
WCImgPopup.shield.style.top="0px";
WCImgPopup.shield.style.zIndex=2;
WCImgPopup.shield.style.backgroundColor="#000000";
document.body.appendChild(WCImgPopup.shield);
WCImgPopup.loading=document.createElement("div");
WCImgPopup.loading.id="imgPopupLoadingdiv";
WCImgPopup.loading.innerHTML=_8b?_8b:WCImgPopup.loadingHtml;
WCImgPopup.loading.style.position="absolute";
WCImgPopup.loading.style.visibility="hidden";
WCImgPopup.loading.style.left="0px";
WCImgPopup.loading.style.top="0px";
WCImgPopup.loading.style.zIndex=3;
document.body.appendChild(WCImgPopup.loading);
WCImgPopup.imgdiv=document.createElement("div");
WCImgPopup.imgdiv.id="imgPopupImgdiv";
WCImgPopup.imgdiv.style.position="absolute";
WCImgPopup.imgdiv.style.visibility="hidden";
WCImgPopup.imgdiv.style.left="0px";
WCImgPopup.imgdiv.style.top="0px";
WCImgPopup.imgdiv.style.zIndex=4;
document.body.appendChild(WCImgPopup.imgdiv);
WCImgPopup.initialized=true;
}
WCImgPopup.init=_WCImgPopup_init;
function _WCImgPopup_start(e,_8d){
if(!WCImgPopup.initialized){
WCImgPopup.init(null);
}
var evt=e?e:window.event;
if(evt){
evt.cancelBubble=true;
if(evt.stopPropagation){
evt.stopPropagation();
}
}
if(WCImgPopup.status!=0){
WCImgPopup.hideAll();
}
WCImgPopup.status=1;
WCImgPopup.showModalShield();
WCImgPopup.showLoading();
WCImgPopup.img=new Image();
WCImgPopup.img.className="imgPopup";
WCImgPopup.img.onload=WCImgPopup.imgOnload;
WCImgPopup.img.onerror=WCImgPopup.imgOnfail;
WCImgPopup.img.onabort=WCImgPopup.imgOnfail;
WCImgPopup.img.src=_8d;
if(WCImgPopup.img.complete&&!window.opera){
WCImgPopup.imgOnload();
}
}
WCImgPopup.start=_WCImgPopup_start;
function _WCImgPopup_showLoading(){
WCUtils.centerWindow(WCImgPopup.loading);
WCImgPopup.loading.style.visibility="visible";
}
WCImgPopup.showLoading=_WCImgPopup_showLoading;
function _WCImgPopup_hideLoading(){
WCImgPopup.loading.style.left="0px";
WCImgPopup.loading.style.top="0px";
WCImgPopup.loading.style.visibility="hidden";
}
WCImgPopup.hideLoading=_WCImgPopup_hideLoading;
function _WCImgPopup_imgOnload(){
if(WCImgPopup.status!=2){
WCImgPopup.hideLoading();
WCUtils.removeAllChildren(WCImgPopup.imgdiv);
WCImgPopup.imgdiv.appendChild(WCImgPopup.img);
WCImgPopup.showImgDiv();
WCImgPopup.adjustModalShield();
WCImgPopup.status=2;
}
}
WCImgPopup.imgOnload=_WCImgPopup_imgOnload;
function _WCImgPopup_imgOnfail(){
alert("load image: failed.");
WCImgPopup.hideAll();
}
WCImgPopup.imgOnfail=_WCImgPopup_imgOnfail;
function _WCImgPopup_showImgDiv(){
WCUtils.centerWindow(WCImgPopup.imgdiv);
WCImgPopup.imgdiv.style.visibility="visible";
}
WCImgPopup.showImgDiv=_WCImgPopup_showImgDiv;
function _WCImgPopup_hideImgDiv(){
WCUtils.removeAllChildren(WCImgPopup.imgdiv);
WCImgPopup.imgdiv.style.visibility="hidden";
}
WCImgPopup.hideImgDiv=_WCImgPopup_hideImgDiv;
function _WCImgPopup_showModalShield(){
WCImgPopup.shield.style.visibility="visible";
WCImgPopup.adjustModalShield();
WCUtils.addEventListener(document,"click",WCImgPopup.onClick);
WCUtils.addEventListener(window,"resize",WCImgPopup.adjustModalShield);
WCUtils.addEventListener(document,"keydown",WCImgPopup.onKeydown);
}
WCImgPopup.showModalShield=_WCImgPopup_showModalShield;
function _WCImgPopup_adjustModalShield(){
if(WCImgPopup.shield==null||WCImgPopup.shield.style.visibility=="hidden"){
return;
}
var _8f=WCUtils.getDocumentSize();
WCImgPopup.shield.style.left="0px";
WCImgPopup.shield.style.top="0px";
WCImgPopup.shield.style.width=_8f[0]+"px";
WCImgPopup.shield.style.height=_8f[1]+"px";
return false;
}
WCImgPopup.adjustModalShield=_WCImgPopup_adjustModalShield;
function _WCImgPopup_hideModalShield(){
if(WCImgPopup.shield!=null&&WCImgPopup.shield.style.visibility!="hidden"){
WCImgPopup.shield.style.visibility="hidden";
WCImgPopup.shield.style.width="0px";
WCImgPopup.shield.style.height="0px";
WCUtils.removeEventListener(document.body,"resize",WCImgPopup.adjustModalShield);
WCUtils.removeEventListener(document,"click",WCImgPopup.onClick);
WCUtils.removeEventListener(document,"keydown",WCImgPopup.onKeydown);
}
}
WCImgPopup.hideModalShield=_WCImgPopup_hideModalShield;
function _WCImgPopup_onClick(e){
if(WCImgPopup.status!=2){
return false;
}
WCImgPopup.hideAll();
return false;
}
WCImgPopup.onClick=_WCImgPopup_onClick;
function _WCImgPopup_onKeydown(_91){
var e=_91?_91:window.event;
if(e.keyCode==27){
WCImgPopup.hideAll();
return false;
}
return true;
}
WCImgPopup.onKeydown=_WCImgPopup_onKeydown;
function _WCImgPopup_hideAll(){
WCImgPopup.status=0;
WCImgPopup.hideLoading();
WCImgPopup.hideImgDiv();
WCImgPopup.hideModalShield();
}
WCImgPopup.hideAll=_WCImgPopup_hideAll;
