Module.createNamespace('com.wjstc.Fading');Module.require('com.wjstc.Common',1.1);com.wjstc.Fading.NAME='com.wjstc.Fading';com.wjstc.Fading.VERSION=1.1;com.wjstc.Fading.divId='com_wjstc_fading_panel_id';com.wjstc.Fading.winking=false;com.wjstc.Fading.wColor='red';com.wjstc.Fading.bColor='white';com.wjstc.Fading.disableAndFadeObj=function(obj,fade,extraFade){var xFade=extraFade;if(extraFade){if(typeof(obj.style)!='undefined'){if(typeof(obj.style.opacity)!='undefined'){obj.style.opacity=(fade)?'0.3':'1.00';xFade=false;}}}if(typeof(obj.disabled)!='undefined'){if(fade){if(typeof(obj.olddisabled)=='undefined'){obj.olddisabled=obj.disabled;}obj.disabled=true;}else{if(typeof(obj.olddisabled)!='undefined'){obj.disabled=obj.olddisabled;}}}if(typeof(obj.action)!='undefined'){if(fade){if(typeof(obj.oldaction)=='undefined'){obj.oldaction=obj.action;}obj.action='';}else{if(typeof(obj.oldaction)!='undefined'){obj.action=obj.oldaction;}}}if(typeof(obj.onclick)!='undefined'){if(fade){if(typeof(obj.oldonclick)=='undefined'){obj.oldonclick=obj.onclick;}obj.onclick=function(){return false;};}else{if(typeof(obj.oldonclick)!='undefined'){obj.onclick=obj.oldonclick;}}}if(typeof(obj.onsubmit)!='undefined'){if(fade){if(typeof(obj.oldonsubmit)=='undefined'){obj.oldonsubmit=obj.onsubmit;}obj.onsubmit=function(){return false;};}else{if(typeof(obj.oldonsubmit)!='undefined'){obj.onsubmit=obj.oldonsubmit;}}}if(typeof(obj.onchange)!='undefined'){if(fade){if(typeof(obj.oldonchange)=='undefined'){obj.oldonchange=obj.onchange;}obj.onchange=function(){return false;};}else{if(typeof(obj.oldonchange)!='undefined'){obj.onchange=obj.oldonchange;}}}if(typeof(obj.href)!='undefined'){if(obj.tagName.toLowerCase()!='img'){if(fade){if(typeof(obj.oldhref)=='undefined'){obj.oldhref=obj.href;}obj.href='#';}else{if(typeof(obj.oldhref)!='undefined'){obj.href=obj.oldhref;}}}}if(xFade){if(typeof(obj.style)!='undefined'){if(typeof(obj.style.color)!='undefined'){if(fade){if(typeof(obj.style.oldcolor)=='undefined'){obj.style.oldcolor=obj.style.color;}obj.style.color='#AAAAAA';}else{if(typeof(obj.style.oldcolor)!='undefined'){obj.style.color=obj.style.oldcolor;}}}if(typeof(obj.style.borderColor)!='undefined'){if(fade){if(typeof(obj.style.oldborderColor)=='undefined'){obj.style.oldborderColor=obj.style.borderColor;}obj.style.borderColor='#AAAAAA';}else{if(typeof(obj.style.oldborderColor)!='undefined'){obj.style.borderColor=obj.style.oldborderColor;}}}}if(typeof(obj.filters)!='undefined'){if(typeof(obj.filters.alpha)!='undefined'){obj.filters.alpha.opacity=(fade)?30:100;}}}return xFade;};com.wjstc.Fading.fadeObj=function(obj,fade){if(typeof(fade)=="undefined"){fade=true;}var extraFade=com.wjstc.Fading.disableAndFadeObj(obj,fade,true);;var aro=obj.getElementsByTagName('*');for(var i=0;i<aro.length;++i){com.wjstc.Fading.disableAndFadeObj(aro[i],fade,extraFade);}};com.wjstc.Fading.disableObjectById=function(Id){var ob=com.wjstc.Common.getObjById(Id);com.wjstc.Fading.fadeObj(ob,true);};com.wjstc.Fading.enableObjectById=function(Id){var ob=com.wjstc.Common.getObjById(Id);com.wjstc.Fading.fadeObj(ob,false);};com.wjstc.Fading.disableObjectsByTagName=function(name){var aro=document.getElementsByTagName(name);for(var i=0;i<aro.length;++i){com.wjstc.Fading.fadeObj(aro[i],true);}};com.wjstc.Fading.enableObjectsByTagName=function(name){var aro=document.getElementsByTagName(name);for(var i=0;i<aro.length;++i){com.wjstc.Fading.fadeObj(aro[i],false);}};com.wjstc.Fading.FadeScreen=function(){this.sList='|';this.iList=[];this.mList=[];this.zList=[];this.active=0-1;};com.wjstc.Fading.wink=function(){if(com.wjstc.Fading.winking){return;}var fs=com.wjstc.Fading.fs;if(fs.active>=0){var c=com.wjstc.Common.getObjById(fs.mList[fs.active]);if(c&&c.style&&c.style.backgroundColor!=null){com.wjstc.Fading.bColor=c.style.backgroundColor;com.wjstc.Fading.wColor=(com.wjstc.Fading.bColor.indexOf('#')>=0)?com.wjstc.Util.HexAjust(com.wjstc.Fading.bColor,50):((com.wjstc.Fading.bColor.indexOf('rgb')>=0)?com.wjstc.Util.HexAjust(com.wjstc.Util.RGBToHex(com.wjstc.Fading.bColor),50):'white');com.wjstc.Fading.winking=true;setTimeout("var fs=com.wjstc.Fading.fs;var c=com.wjstc.Common.getObjById(fs.mList[fs.active]);if(c!=null){c.style.backgroundColor=com.wjstc.Fading.wColor;}",100);setTimeout("var fs=com.wjstc.Fading.fs;var c=com.wjstc.Common.getObjById(fs.mList[fs.active]);if(c!=null){c.style.backgroundColor=com.wjstc.Fading.bColor;}",200);setTimeout("var fs=com.wjstc.Fading.fs;var c=com.wjstc.Common.getObjById(fs.mList[fs.active]);if(c!=null){c.style.backgroundColor=com.wjstc.Fading.wColor;}",300);setTimeout("var fs=com.wjstc.Fading.fs;var c=com.wjstc.Common.getObjById(fs.mList[fs.active]);if(c!=null){c.style.backgroundColor=com.wjstc.Fading.bColor;}",400);setTimeout("var fs=com.wjstc.Fading.fs;var c=com.wjstc.Common.getObjById(fs.mList[fs.active]);if(c!=null){c.style.backgroundColor=com.wjstc.Fading.wColor;}",500);setTimeout("var fs=com.wjstc.Fading.fs;var c=com.wjstc.Common.getObjById(fs.mList[fs.active]);if(c!=null){c.style.backgroundColor=com.wjstc.Fading.bColor;com.wjstc.Fading.winking=false;}",600);}}};com.wjstc.Fading.FadeScreen.prototype.registerObj=function(p,ps){var m='';if(typeof(ps)!='undefined'){m=ps;}var i;var o=com.wjstc.Common.getObjById(p);if(o==null){return;}var z=1;if(o.style){if(o.style.zIndex){z=o.style.zIndex-1;}else{o.style.zIndex=z+1;}}else{o.style={};o.style.zIndex=z+1;}if(this.sList.indexOf('|'+p+'|')<0){this.sList+=p+'|';this.iList.push(p);this.mList.push(m);this.zList.push(z);}this.fadeUnfadeFS();};com.wjstc.Fading.FadeScreen.prototype.unregisterObj=function(p){var i;for(var i=0;i<this.iList.length;++i){if(this.iList[i]==p){this.sList=com.wjstc.Util.strReplStr(p+'|','',this.sList);this.iList.splice(i,1);this.mList.splice(i,1);this.zList.splice(i,1);this.fadeUnfadeFS();return;}}};com.wjstc.Fading.FadeScreen.prototype.fadeUnfadeFS=function(){var f=com.wjstc.Common.getObjById(com.wjstc.Fading.divId);this.active=0-1;if(this.sList=='|'){com.wjstc.HideSelectIE6.hs.unregisterObj(com.wjstc.Fading.divId);f.style.display='none';com.wjstc.Fading.unfade();}else{var z=this.zList[0];this.active=0;var l=this.zList.length;for(var g=1;g<l;++g){if(z<this.zList[g]){z=this.zList[g];this.active=g;}}com.wjstc.HideSelectIE6.hs.registerObj(com.wjstc.Fading.divId);com.wjstc.HideSelectIE6.hs.hideShowHS();com.wjstc.Fading.fade(z);}};com.wjstc.Fading.j=function(){var d=document.createElement('div');d.style.display='none';d.id=com.wjstc.Fading.divId;d.style.backgroundColor='#ffffff';d.style.position='absolute';d.style.left='0px';d.style.top='0px';d.style.zIndex=0;d.style.padding='0px';d.innerHTML="<table style='width: 4096px; height:3072px;'><tr><td style='width: 100%; height: 100%;background-color: #6666ff;' "+"onclick='com.wjstc.Fading.wink()'>&nbsp;</td></tr><table>";d.style.opacity=.4;d.style.filter='alpha(opacity=40)';document.body.appendChild(d);};com.wjstc.Fading.fade=function(z){var f=com.wjstc.Common.getObjById(com.wjstc.Fading.divId);if(f==null){return;}var fd=f.style;fd.zIndex=z;fd.display='block';};com.wjstc.Fading.unfade=function(){var f=com.wjstc.Common.getObjById(com.wjstc.Fading.divId);if(f==null){return;}var fd=f.style;fd.display='none';};com.wjstc.Fading.fs=new com.wjstc.Fading.FadeScreen();com.wjstc.Common.onLoadCall(com.wjstc.Fading.j);