var mwpdeploy=function(){function e(e){o.debug&&(console&&console.log?console.log(e):alert(e))}function t(e,t){if(null==e||0==e.length)return!0;var n=e.charAt(e.length-1);if("+"!=n&&"*"!=n&&-1!=e.indexOf("_")&&"_"!=n&&(e+="*",n="*"),e=e.substring(0,e.length-1),e.length>0){var i=e.charAt(e.length-1);"."!=i&&"_"!=i||(e=e.substring(0,e.length-1))}return"*"==n?0==t.indexOf(e):"+"==n&&e<=t}function n(e){return null==e||0==e.length?"http://java.com/dt-redirect":("&"==e.charAt(0)&&(e=e.substring(1,e.length)),"http://java.com/dt-redirect?"+e)}function i(e,t){for(var n=e.length,i=0;iHow to enable Java ?) OR '),e+='Install Java from here.

',webphone_api.common.UserChooseEnginePopup(e,!0,!1,function(){},null,5)},3e3),!0},isAutoInstallEnabled:function(e){return!!this.isPluginInstalled()&&(void 0===e&&(e=null),r(e))},isCallbackSupported:function(){return this.isPluginInstalled()&&this.compareVersionToPattern(this.getPlugin().version,["10","2","0"],!1,!0)},installLatestJRE:function(e){if(this.isPluginInstalled()&&this.isAutoInstallEnabled()){var t=!1;return t=this.isCallbackSupported()?this.getPlugin().installLatestJRE(e):this.getPlugin().installLatestJRE(),t&&(this.refresh(),null!=this.returnPage&&(document.location=this.returnPage)),t}var i=this.getBrowser(),a=navigator.platform.toLowerCase();return"true"==this.EAInstallEnabled&&-1!=a.indexOf("win")&&null!=this.EarlyAccessURL?(this.preInstallJREList=this.getJREs(),null!=this.returnPage&&(this.myInterval=setInterval("deployJava.poll()",3e3)),location.href=this.EarlyAccessURL,!1):"MSIE"==i?this.IEInstall():"Netscape Family"==i&&-1!=a.indexOf("win32")?this.FFInstall():(location.href=n((null!=this.returnPage?"&returnPage="+this.returnPage:"")+(null!=this.locale?"&locale="+this.locale:"")+(null!=this.brand?"&brand="+this.brand:"")),!1)},runApplet:function(t,n,i){"undefined"!=i&&null!=i||(i="1.1");var a=i.match("^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?$");if(null==this.returnPage&&(this.returnPage=document.location),null!=a){"?"!=this.getBrowser()?this.versionCheck(i+"+")?this.writeAppletTag(t,n):this.installJRE(i+"+")&&(this.refresh(),location.href=document.location,this.writeAppletTag(t,n)):this.writeAppletTag(t,n)}else e("[runApplet()] Invalid minimumVersion argument to runApplet():"+i)},writeAppletTag:function(e,t){var n="';s||(i+=''),r&&(n+=' code="dummy"'),n+=">",webphone_api.InsertApplet(n+"\n"+i+"\n")},InsertApplet:function(e){void 0!==document.getElementById("wpappletconatiner")&&null!==document.getElementById("wpappletconatiner")?(e="",void 0!==e&&null!==e&&e.length>0?document.getElementById("wpappletconatiner").innerHTML=e:alert("Phone is not defined")):alert("No place to load phone")},versionCheck:function(t){var n=0,i=t.match("^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?(\\*|\\+)?$");if(null!=i){for(var a=!1,r=!1,l=new Array,s=1;s':"Netscape Family"==i&&(n=''),"undefined"==document.body||null==document.body)document.write(n),document.location=t;else{var a=document.createElement("div");a.id="div1",a.style.position="relative",a.style.left="-10000px",a.style.margin="0px auto",a.className="dynamicDiv",a.innerHTML=n,document.body.appendChild(a)}},createWebStartLaunchButtonEx:function(e,t){null==this.returnPage&&(this.returnPage=e);var n="javascript:deployJava.launchWebStartApplication('"+e+"');";document.write('')},createWebStartLaunchButton:function(e,t){null==this.returnPage&&(this.returnPage=e);var n="javascript:if (!deployJava.isWebStartInstalled(""+t+"")) {if (deployJava.installLatestJRE()) {if (deployJava.launch(""+e+"")) {}}} else {if (deployJava.launch(""+e+"")) {}}";document.write('')},launch:function(e){return document.location=e,!0},isPluginInstalled:function(){var e=this.getPlugin();return!(!e||!e.jvms)},isAutoUpdateEnabled:function(){return!!this.isPluginInstalled()&&this.getPlugin().isAutoUpdateEnabled()},setAutoUpdateEnabled:function(){return!!this.isPluginInstalled()&&this.getPlugin().setAutoUpdateEnabled()},setInstallerType:function(e){return this.installType=e,!!this.isPluginInstalled()&&this.getPlugin().setInstallerType(e)},setAdditionalPackages:function(e){return!!this.isPluginInstalled()&&this.getPlugin().setAdditionalPackages(e)},setEarlyAccess:function(e){this.EAInstallEnabled=e},isPlugin2:function(){if(this.isPluginInstalled()&&this.versionCheck("1.6.0_10+"))try{return this.getPlugin().isPlugin2()}catch(e){}return!1},allowPlugin:function(){return this.getBrowser(),"Safari"!=this.browserName2&&"Opera"!=this.browserName2&&"Firefox"!=this.browserName2},getPlugin:function(){this.refresh();var e=null;return this.allowPlugin()&&(e=document.getElementById("deployJavaPlugin")),e},compareVersionToPattern:function(e,t,n,i){if(e==undefined||t==undefined)return!1;var a=e.match("^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?$");if(null!=a){for(var r=0,l=new Array,s=1;st[s])return!0}return!0}for(var s=0;s "+t),-1!=t.indexOf("msie")&&-1==t.indexOf("opera")?(this.browserName="MSIE",this.browserName2="MSIE"):-1!=t.indexOf("trident")||-1!=t.indexOf("Trident")?(this.browserName="MSIE",this.browserName2="MSIE"):-1!=t.indexOf("iphone")?(this.browserName="Netscape Family",this.browserName2="iPhone"):-1!=t.indexOf("firefox")&&-1==t.indexOf("opera")?(this.browserName="Netscape Family",this.browserName2="Firefox"):-1!=t.indexOf("chrome")?(this.browserName="Netscape Family",this.browserName2="Chrome"):-1!=t.indexOf("safari")?(this.browserName="Netscape Family",this.browserName2="Safari"):-1!=t.indexOf("mozilla")&&-1==t.indexOf("opera")?(this.browserName="Netscape Family",this.browserName2="Other"):-1!=t.indexOf("opera")?(this.browserName="Netscape Family",this.browserName2="Opera"):(this.browserName="?",this.browserName2="unknown"),e("[getBrowser()] Detected browser name:"+this.browserName+", "+this.browserName2)}return this.browserName},testUsingActiveX:function(t){var n="JavaWebStart.isInstalled."+t+".0";if("undefined"==typeof ActiveXObject||!ActiveXObject)return e("[testUsingActiveX()] Browser claims to be IE, but no ActiveXObject object?"),!1;try{return null!=new ActiveXObject(n)}catch(i){return!1}},testForMSVM:function(){if("undefined"!=typeof oClientCaps){var e=oClientCaps.getComponentVersion("{08B0E5C0-4FCB-11CF-AAA5-00401C608500}","ComponentID");return""!=e&&"5,0,5000,0"!=e}return!1},testUsingMimeTypes:function(t){if(!navigator.mimeTypes)return e("[testUsingMimeTypes()] Browser claims to be Netscape family, but no mimeTypes[] array?"),!1;for(var n=0;ni[0]||!(n[0]i[1]||!(n[1]i[2]||!(n[2]