Rits.Util={linkPopup:function(B,D,L,C,J,E,H,N,K,F,I,A,M){if(!B){B="/"}if(!D){D=400}if(!L){L=300}if(!C){C="_window"}if(!J){J=(screen.width-D)/2}if(!E){E=(screen.height-L)/2}if(!H){H="yes"}if(!N){N="no"}if(!K){K="no"}if(!F){F="no"}if(!I){I="no"}if(!A){A="no"}if(!M){M="yes"}settings="height="+L+",width="+D+",top="+J+",left="+E+",scrollbars="+H+",toolbar="+N+",location="+K+",status="+F+",menubar="+I+",resizable="+A+",dependent="+M;var G=window.open(""+B+"",""+C+"",settings);if(parseInt(navigator.appVersion)>=4){G.window.focus()}},getCookie:function(C){var D=document.cookie.indexOf(C+"=");var A=D+C.length+1;if((!D)&&(C!=document.cookie.substring(0,C.length))){return null}if(D==-1){return null}var B=document.cookie.indexOf(";",A);if(B==-1){B=document.cookie.length}return unescape(document.cookie.substring(A,B))},setCookie:function(C,E,D,G,A,H){var B=new Date();B.setTime(B.getTime());if(D){D=D*1000*60*60*24}var F=new Date(B.getTime()+(D));document.cookie=C+"="+escape(E)+((D)?";expires="+F.toGMTString():"")+((G)?";path="+G:"")+((A)?";domain="+A:"")+((H)?";secure":"")},delCookie:function(B,C,A){if(getCookie(B)){document.cookie=B+"="+((C)?";path="+C:"")+((A)?";domain="+A:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}},reload:function(A){if(!A){A=window}A.location.reload()},refresh:function(A){setTimeout("Rits.Util.reload()",A)},preloadImages:function(){if(document.images){if(!document.preload){document.preload=new Array()}}var B;var A=document.preload.length;for(B=0;B<arguments.length;B++){if(arguments[B].indexOf("#")!=0){document.preload[A]=new Image();document.preload[A++].src=arguments[B]}}},modifyUrlParameter:function(C,E,B,A){if(!B){B=location.href}B=B.replace(new RegExp(/(#.*)/),"");if(B.indexOf("?"+C+"=")!=-1||B.indexOf("&"+C+"=")!=-1){var D=new RegExp(C+"=[^&]*");B=B.replace(D,C+"="+escape(E))}else{if(B.indexOf("?")!=-1){B=B+"&"+C+"="+escape(E)}else{B=B+"?"+C+"="+escape(E)}}if(!A){location.href=B}return B},appendHtml:function(C,A){var B=$(C);B.innerHTML+=A},updateParent:function(){if(window.opener&&!window.opener.closed){Rits.Util.reload(window.opener)}self.close()},openFile:function(A){window.top.opener.SetUrl(A);window.top.close();window.top.opener.focus()},changeDisplay:function(A){if($D.getStyle(A,"display")=="none"){$D.setStyle(A,"display","")}else{$D.setStyle(A,"display","none")}},showDisplay:function(A){if($D.getStyle(A,"display")=="none"){$D.setStyle(A,"display","")}},hideDisplay:function(A){if($D.getStyle(A,"display")!="none"){$D.setStyle(A,"display","none")}}}