var funcs=[];function runOnLoad(B,D,C){var A=new Object();A.func=B;A.params=D;if(C!=null&&C){funcs.unshift(A)}else{funcs.push(A)}}var onLoadRunner=function(){while(funcs.length>0){var A=funcs.shift();try{A.func(A.params)}catch(B){}}};if(window.addEventListener){window.addEventListener("load",onLoadRunner,false)}else{if(window.attachEvent){window.attachEvent("onload",onLoadRunner)}else{window.onLoad=onLoadRunner}}function add_lang(A,E,C){var D,B;for(D=0;D<C;D++){cur_div=(E+D);if(document.getElementById(cur_div).style.display=="none"){document.getElementById(cur_div).style.display="inline";for(B=D+1;B<C;B++){if(document.getElementById(E+B).style.display=="none"){return }}document.getElementById(A).style.display="none";return }}}function is_cookies_on(A){if(navigator.cookieEnabled==0){error_div=$("error-block").rows[0].cells[0];error_div.innerHTML=A;$("error-block").setStyle({backgroundColor:"#FF0000"});return false}return true}function is_email(A){return A.match(/(^([a-z0-9][a-z0-9_\-\.\+]*)@([a-z0-9][a-z0-9\.\-]{0,63}\.(com|org|net|biz|info|name|net|pro|aero|coop|museum|[a-z]{2,4}))$)/i)}var pageTracker;function getGATracker(C,B){try{pageTracker=B._getTracker(C)}catch(A){}}function gaTrackPageview(A){if(A){try{pageTracker._trackPageview(A)}catch(B){}}else{try{pageTracker._trackPageview()}catch(B){}}}function gaTrackEvent(C,E,A,D){if(!A){try{pageTracker._trackEvent(C,E)}catch(B){}}else{if(!D){try{pageTracker._trackEvent(C,E,A)}catch(B){}}else{try{pageTracker._trackEvent(C,E,A,D)}catch(B){}}}}function gaSetVar(B){try{pageTracker._setVar(B)}catch(A){}}function gaTrackTrans(B,L,M,G,A,J,C,E,F,N,D,K,I){try{pageTracker._addTrans(B,L,M,G,A,J,C,E);pageTracker._addItem(B,F,N,D,K,I);pageTracker._trackTrans()}catch(H){}}function client_bench_marker(A,B){this.profiler_times=new Array();this.profiler_keys=new Array();this.profiler_array_size=0;this.benchmark_name=A;this.request_id=B;this.start_time=start_time;this.mark_time=mark_time;this.stop_time=stop_time;this.send_marks=send_marks;this.print_in_browser=print_in_browser;this.microtime=microtime}function start_time(){this.profiler_keys[this.profiler_array_size]=this.benchmark_name+"_client_start";this.profiler_times[this.profiler_array_size]=this.microtime();this.profiler_array_size++}function mark_time(A){this.profiler_keys[this.profiler_array_size]=this.benchmark_name+"_client_"+A;this.profiler_times[this.profiler_array_size]=this.microtime();this.profiler_array_size++}function stop_time(){this.profiler_keys[this.profiler_array_size]=this.benchmark_name+"_client_stop";this.profiler_times[this.profiler_array_size]=this.microtime();this.profiler_array_size++}function send_marks(A,B){if(A){this.mark_time("page_loaded")}if(this.profiler_keys.length>0){$("request_id").value=this.request_id;$("benchmark_name").value=this.benchmark_name;$("BenchMarkingKeys").value=Object.toJSON(this.profiler_keys);$("BenchMarkingTimeStamps").value=Object.toJSON(this.profiler_times);var C="/BenchMarking/process_timestamps";var D=Form.serialize(document.BenchMarkingForm);new Ajax.Request(C,{method:"post",parameters:D})}if(B){this.print_in_browser()}}function print_in_browser(){if(this.profiler_keys.length>0){var G=this.profiler_times[0].split(" ");var D=parseFloat(G[0])+parseFloat(G[1]);document.write("<b>"+this.profiler_keys[0]+": at ("+this.profiler_times[0]+")</b> "+0+"<br />");var E=D;var F=0;for(var A=1;A<this.profiler_array_size;A++){var C=this.profiler_times[A].split(" ");F=parseFloat(C[0])+parseFloat(C[1]);var B=F-E;document.write("<b>"+this.profiler_keys[A]+": at ("+this.profiler_times[A]+")</b> "+B+"<br />");E=F}B=F-D;document.write("<b>Overall time:</b> "+B+"<br />")}}function microtime(B){var A=new Date().getTime()/1000;var C=parseInt(A,10);return(B)?A:(Math.round((A-C)*1000)/1000)+" "+C}