var U=null;var browsername=null;var browserversion=null;var os=null;var jre=null;var O=null;var F=null;var e=null;var checkcount=0;var an=screen.width;var al=screen.height;var D=0;var C=0;var ag=null;var o=null;var r=null;var appName=null;var archive=null;var n=null;var w=null;var H=null;function setAlternatePage(page){this.w=page;};function setSplashPage(page){this.H=page;};function startGalileo(at,archive){checkcount=0;appName=at;archive="galileo.jar, "+archive;determineClient();detectJRE();if(H!=null){document.write("<iframe name='splashframe' id='splashframe' frameborder='0' width='100%' height='100%' src='splash.html'></iframe>");}else{document.write("<iframe name='splashframe' id='splashframe' frameborder='0' width='100%' height='100%'></iframe>");}document.write("<iframe name='A' id='A' frameborder='0' width='100%' height='5%' scrolling='no' marginwidth='0px' marginheight='0px'></iframe>");document.write("<iframe name='v' id='v' frameborder='0' width='0%' height='0%' src='galileo.html'></iframe>");var af=parent.A;af.document.open();af.document.write("<applet id='Galileo' name='Galileo'","style='position: absolute; left: 0; top: 0; visibility: visible; '","width='100%' height='100%'","codebase='.'","code='galileo.riaf.core.GApplet.class'","archive='"+archive+"'","param name='appname' value='"+appName+"'","param name='browserbased' value='true'","scriptable = 'true'>","<param name='appname' value='"+appName+"'>","<param name='browserbased' value='true'>","<param name='ass' value='"+n+"'>","</applet>");e=af.document.applets[0];if(e==undefined){e=af.document.Galileo;}af.document.close();document.close();U=window.setInterval("Q()",100);};function setStyleSheet(n){this.n=n;};function Q(){if(e!=null){var af=parent.A;var L=0;try{L=e.isLoaded();}catch(aq){checkcount++;if(checkcount>100){window.clearInterval(U);if(w==null){writeJavaPage();}else{window.location=w;}}}if(L==1){try{o=window.location.href.replace(/:[\/]*/,"://");o=o.replace(/\s/g,"%20");e.setClientInfo(os,browsername,browserversion,navigator.userAgent);r=o;ag=o.split("#")[0];e.startApplication(appName);}catch(aq){alert(aq);}}else if(L==2){window.clearInterval(U);reportWindowSize();var hash=window.location.hash;if(hash.length>0){hash=hash.substring(1);e.navigateTo(hash,true);}U=window.setInterval("aa()",5);ae();}}};function writeJavaPage(){window.document.write("<div style='width: 100%; padding-top: 50px; text-align: center'>");window.document.write("The page you are trying to view requires the<br>");window.document.write("Java Plugin from Sun Microsystems.");window.document.write("</div>");window.document.close();};function ae(){var aj=document.getElementById("splashframe");var af=document.getElementById("A");if(aj){aj.width="0";aj.height="0";}af.width="100%";af.height="100%";};function B(){if(browsername=="MSIE"){D=document.body.clientWidth;C=document.body.clientHeight;}else{D=window.innerWidth;C=window.innerHeight;}};function reportWindowSize(){if(e!=null){B();e.setClientWindowSize(D,C);}};function aa(){var l=e.getAppLocation();var d=null;if(browsername=="MSIE"){var ak=parent.v;d=o;var hash=ak.document.getElementById("history");if(hash!=null){d+="#"+hash.value;}}else{d=window.location.href;d=d.replace(/\s/g,"%20");}d=d.replace(/:[\/]*/,"://");l=new String(l).replace(/:[\/]*/,"://");if(l!=d){var hash=null;if(d!=r){r=d;var m=r.match(/#(.*)/);if(m!=null&&m.length>1){hash=m[1];if(browsername=="MSIE"){window.location.hash=hash;}if(hash.length>0){e.navigateTo(hash,true);}else{e.navigateHome();}}else{if(browsername=="MSIE"){window.location.hash="";}e.navigateHome();}}else{r=l;var m=r.match(/#(.*)/);if(m!=null&&m.length>1){hash=m[1];window.location.hash=hash;if(browsername=="MSIE"){var ak=parent.v;ak.document.open();ak.document.write("<div id='history' value='"+hash+"'/>");ak.document.close();}}}}};function detectJRE(){var list=deployJava.getJREs();if(list.length>0){jre=list[list.length-1];parseJRE(jre);}};function parseJRE(jre){O=jre.split(".")[1];R=jre.split(".")[2];F=R.split("_")[1];};function t(){var M;if(browsername=="MSIE"||browsername=="Firefox"||browsername=="Safari"||browsername=="Mozilla"){M=confirm("The website you are trying to access requires the use of the "+"Java Plugin from Sun MicroSystems.  "+"Would you like to install the latest version?");}else{M=confirm("The website you are trying to access requires the use of the "+"Java Plugin from Sun MicroSystems. Due to your T version "+"we are unable to detect the presence of this plugin. "+"Would you like to install the latest version?");}if(M){deployJava.installLatestJRE();}};function determineClient(){var P=navigator.appName;var userAgent=navigator.userAgent;if(userAgent.indexOf("Windows")!= -1){os="Windows";}else if(userAgent.indexOf("Mac")!= -1){os="MacOSX";}else if(userAgent.indexOf("Linux")!= -1){os="Linux";}else if(userAgent.indexOf("SunOS")!= -1){os="SunOS";}else{os="Unknown";}if(P=="Microsoft Internet Explorer"){browsername="MSIE";browserversion=I();}else if(userAgent.indexOf("Firefox")!= -1){f("Firefox");}else if(userAgent.indexOf("Opera")!= -1){f("Opera");}else if(userAgent.indexOf("Camino")!= -1){f("Camino");}else if(userAgent.indexOf("Safari")!= -1){f("Safari");}else if(userAgent.indexOf("Konqueror")!= -1){f("Konqueror");}else if(userAgent.indexOf("Mozilla")!= -1){f("Mozilla");}else{T="Unknown";}};function f(id){var userAgent=navigator.userAgent;var g=userAgent.split(" ");var K=false;var au="";for(var i=0;i<g.length&&K==false;i++){if(g[i].indexOf(id)> -1){au=g[i];K=true;}}if(K==true){g=au.split('/');browsername=g[0];browserversion=g[1];}return K;};function I(){var userAgent=navigator.userAgent.substr(navigator.userAgent.indexOf("("),navigator.userAgent.indexOf(")"));var version=null;var g=userAgent.split(";");for(var i=0;i<g.length;i++){if(g[i].indexOf("MSIE")> -1){version=g[i].split(" ")[2];}}return version;}