Rits.Util={linkPopup:function(C,D,N,B,J,E,H,K,L,F,I,A,M){if(!C){C="/"}if(!D){D=400}if(!N){N=300}if(!B){B="_window"}if(!J){J=(screen.width-D)/2}if(!E){E=(screen.height-N)/2}if(!H){H="yes"}if(!K){K="no"}if(!L){L="no"}if(!F){F="no"}if(!I){I="no"}if(!A){A="no"}if(!M){M="yes"}settings="height="+N+",width="+D+",top="+J+",left="+E+",scrollbars="+H+",toolbar="+K+",location="+L+",status="+F+",menubar="+I+",resizable="+A+",dependent="+M;var G=window.open(""+C+"",""+B+"",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,A,H,D,G){var B=new Date();B.setTime(B.getTime());if(A){A=A*1000*60*60*24}var F=new Date(B.getTime()+(A));document.cookie=C+"="+escape(E)+((A)?";expires="+F.toGMTString():"")+((H)?";path="+H:"")+((D)?";domain="+D:"")+((G)?";secure":"")},delCookie:function(A,C,B){if(getCookie(A)){document.cookie=A+"="+((C)?";path="+C:"")+((B)?";domain="+B:"")+";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")}}}