function ChangeStatus(C,B){if(!C||!C.parentNode){return }var A=C.parentNode;excUnAllSel(A);if(B!=""&&B!=null){clickmonkey.log(B,'');window.location.href=B}}function excUnAllSel(C){var A="menu";var B=document.getElementById(A);if(B.getElementsByTagName("ul")&&B.getElementsByTagName("ul")[0]){unAllSel(B.getElementsByTagName("ul")[0],C)}}function unAllSel(C,E){var D=C;var B=D.getElementsByTagName("li");for(var A=0;A<B.length;A++){if(B[A]==E){B[A].className=B[A].className.replace("childUnSelect","childSelect");B[A].className=B[A].className.replace("itemUnSelect","itemSelect");if(B[A].className.indexOf("Closed")!=-1){B[A].className=B[A].className.replace("Closed","Opened")}else{B[A].className=B[A].className.replace("Opened","Closed")}}else{B[A].className=B[A].className.replace("childSelect","childUnSelect");B[A].className=B[A].className.replace("itemSelect","itemUnSelect");if(!isFather(B[A],E)){B[A].className=B[A].className.replace("Opened","Closed")}}if(B[A].getElementsByTagName("ul")&&B[A].getElementsByTagName("ul")[0]){unAllSel(B[A].getElementsByTagName("ul")[0],E)}}}function isFather(B,C){var A=20;while(A>=0&&B!=C){if(!C.parentNode){break}C=C.parentNode}if(B!=null&&B==C){return true}else{return false}}String.prototype.trim=function(){return this.replace(/(^[\s\u3000\xa0]+|[\s\u3000\xa0]+$)/g,"")};function openWin(B,A){excUnAllSel(B);selectObj=B;clickmonkey.log(A,'');window.location.href=A}function AutoResizeImage(D,C,B){if(typeof (B)=="string"){B=$(B)}var A=new Image();A.onload=function(){var I;var G;var E=1;var F=A.width;var H=A.height;G=D/F;I=C/H;G=G>1?1:G;I=I>1?1:I;if(D==0&&C==0){E=1}else{if(D==0){if(I<1){E=I}}else{if(C==0){if(G<1){E=G}}else{E=(G<=I?G:I)}}}if(E<1){F=F*E;H=H*E}B.height=H;B.width=F;if(H<C){B.style.paddingTop=(C-H)/2+"px"}this.onload=function(){}};A.src=B.src};
