if(typeof Rits=="undefined"){var Rits={}}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.height-N)/2}if(!E){E=(screen.width-D)/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)},setStatus:function(A){window.status=A},updateParent:function(){if(window.opener&&!window.opener.closed){Rits.Util.reload(window.opener)}self.close()},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}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},changeTab:function(H,B,E,F){var C=B*2+1;var D=H*2;var G;for(var A=1;A<=C;A++){G=$(E+A);if(A==D){G.className="tabMenuItem_on"}else{if(A==D-1){if(G.className=="tab_left_off"||G.className=="tab_left_on"){G.className="tab_left_on"}else{G.className="tab_off_on"}}else{if(A==D+1){if(G.className=="tab_right_off"||G.className=="tab_right_on"){G.className="tab_right_on"}else{G.className="tab_on_off"}}else{if(G.className=="tabMenuItem_on"){G.className="tabMenuItem_off"}else{if(G.className=="tab_left_on"){G.className="tab_left_off"}else{if(G.className=="tab_right_on"){G.className="tab_right_off"}else{if(G.className=="tab_on_off"||G.className=="tab_off_on"){G.className="tab_off_off"}}}}}}}}for(var A=1;A<=B;A++){G=$(F+A);if(A==H){G.style.display=""}else{G.style.display="none"}}},appendHtml:function(C,A){var B=$(C);B.innerHTML+=A},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")}}}