function switch_ids(D,F){var G=D.value;if(G==""){return}var C=new String(window.location);var B=new String("");var A=new String("");C=C.split("#");if(C[1]){B="#"+C[1]}C=C[0];A=C.split("/");A=A[3];if(A.length==2&&C.indexOf("/"+A+"/")!=-1&&is_regexp){var E=new RegExp("/\\w{2}/");C=C.replace(E,"/"+G+"/")}else{if(C.indexOf(F+"=")!=-1&&is_regexp){var E=new RegExp(F+"=\\w+&?");C=C.replace(E,"")}if(C.indexOf("?")==-1){C+="?"}else{lastchar=C.substr(C.length-1);if(lastchar!="&"&&lastchar!="?"){C+="&"}}C=C+F+"="+G}window.location=C+B}function visibility_mode_switch(A,B,C){IE=(window.ActiveXObject)?true:false;if(IE){request=new ActiveXObject("Microsoft.XMLHTTP")}else{request=new XMLHttpRequest()}if(request){request.onreadystatechange=function(){visibility_mode_handler(B,C)};request.open("GET",A+"&nocache="+Math.random(0,9999),true);request.send("")}}function visibility_mode_handler(finish,vars){if(request.readyState==4){if(request.status==200){eval(finish+"(request, vars)")}}}function visibility_mode_finish(A,B){response=A.responseXML.documentElement;newstate=response.getElementsByTagName("newuservisiblitymode")[0].firstChild.data;oldstate=response.getElementsByTagName("olduservisiblitymode")[0].firstChild.data;B.src=B.src.replace(oldstate,newstate)};