/*!	SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> !*/
var g_strAmp = "&";
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+g_strAmp+"MMplayerType="+ad+g_strAmp+"MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+=g_strAmp+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+=g_strAmp+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();

var SpeechStream = new function(){};var baa ="r\x77DontA\x6cter";var caa ="r\x77T\x48c\x6fmp";var daa ="r\x77THgen";var eaa ="r\x77THpgen";var faa = ["ScanSoft Emily_Full_22kHz","ScanSoft Samantha_Full_22kHz","ScanSoft Paulina_Full_22kHz","ScanSoft Isabel_Full_22kHz","ScanSoft Virginie_Full_22kHz","ScanSoft Julie_Full_22kHz","ScanSoft Steffi_Full_22kHz","ScanSoft Silvia_Full_22kHz","ScanSoft Claire_Full_22kHz","ScanSoft Ingrid_Full_22kHz","ScanSoft Karen_Full_22kHz","ScanSoft Raquel_Full_22kHz","ScanSoft Joana_Full_22kHz"]; var gaa = [ ["\x43lick\x20\x54\x6f\x20Spe\x61k\x20M\x6fde","\x53elect\x20this\x20then\x20cli\x63k\x20anywher\x65\x20in\x20the\x20bo\x6fk\x20t\x6f\x20st\x61rt\x20rea\x64ing\x20text","\x48az\x20cli\x63\x20para\x20el\x20mo\x64\x6f\x20\x68abla\x64o"], ["\x53peak\x20The\x20Current\x20Select\x69on","\x53p\x65ak\x20t\x68e\x20c\x75rrent\x20s\x65lection","\x4ceer\x20en\x20voz\x20alta\x20e\x6c\x20texto\x20s\x65\x6c\x65\x63cionad\x6f"], ["\x50aus\x65\x20Sp\x65ech","\x50ause\x20\x53peech","\x44isc\x75rso\x20\x64e\x20paus\x61"], ["\x53top\x20S\x70ee\x63h","\x53tops\x20speec\x68\x20playba\x63k","\x50\x61rar\x20v\x6fz"], ["\x54ranslat\x65\x20W\x6frd","\x44oub\x6ce-c\x6ci\x63k\x20a\x20word\x20in\x20t\x68e\x20book\x20and\x20\x63lick\x20this\x20\x69con\n"+"t\x6f\x20translat\x65\x20t\x68e\x20\x77ord\x20into\x20\x53panish","\x54raducir\x20pa\x6cabr\x61"], ["\x46act\x20Fin\x64er","\x53elect\x20som\x65\x20text\x20\x69n\x20the\x20book\x20and\x20click\x20t\x68\x69s\x20i\x63on\x20to\n"+"\x70\x65rform\x20a\x20Goo\x67le\x20search","\x42usc\x61dor\x20d\x65\x20datos"], ["\x44iction\x61ry","\x44ou\x62\x6ce-cl\x69ck\x20a\x20\x77\x6fr\x64\x20in\x20t\x68e\x20book\x20and\x20click\x20th\x69s\x20icon\x20to\n"+"s\x65e\x20d\x69ctionar\x79\x20\x64efinit\x69ons","\x44i\x63c\x69onario"], ["\x48ig\x68\x6cig\x68t\x20C\x79an","\x4da\x6be\x20a\x20sele\x63tion\x20in\x20the\x20book\x20and\x20click\x20this\x20ic\x6fn\x20to\n"+"\x63reate\x20a\x20b\x6cue\x20\x68ig\x68l\x69ght","\x52ealc\x65\x20azul\x20v\x65r\x64\x6fso"], ["\x48i\x67hli\x67ht\x20\x4dagent\x61","\x4da\x6be\x20a\x20sel\x65ction\x20in\x20the\x20\x62oo\x6b\x20and\x20click\x20this\x20icon\x20to\n"+"\x63reate\x20\x61\x20pink\x20\x68\x69gh\x6cight","\x52e\x61l\x63e\x20morado"], ["\x48ig\x68light\x20Yello\x77","\x4dak\x65\x20a\x20se\x6cection\x20in\x20th\x65\x20boo\x6b\x20and\x20clic\x6b\x20this\x20ic\x6fn\x20t\x6f\n"+"\x63reat\x65\x20a\x20yel\x6co\x77\x20highli\x67\x68t","\x52ealce\x20\x61m\x61rillo"], ["\x48ighlig\x68t\x20Gr\x65en","\x4dake\x20a\x20select\x69on\x20in\x20th\x65\x20book\x20\x61n\x64\x20click\x20this\x20\x69con\x20to\n"+"\x63reate\x20\x61\x20gr\x65en\x20\x68ighlig\x68t","\x52\x65alce\x20v\x65rde"], ["\x52\x65move\x20H\x69g\x68lights","\x52\x65move\x20\x61ll\x20your\x20\x68\x69\x67\x68l\x69g\x68ts\x20\x66ro\x6d\x20th\x69s\x20page","\x42orrar\x20re\x61lc\x65"], ["\x43o\x6cle\x63t\x20High\x6cights","\x43ollect\x20\x61\x6cl\x20\x79our\x20hig\x68l\x69ghts\x20\x61nd\x20d\x69splay\x20them\n"+"\x69n\x20a\x20\x77indow,\x20\x67roup\x65d\x20\x62y\x20\x63\x6flor","\x52ecopil\x61r\x20re\x61l\x63es"], ["\x43lick\x20\x68ere\x20to\x20s\x65l\x65ct\x20th\x65\x20text","\x43\x6c\x69ck\x20here\x20to\x20select\x20th\x65\x20t\x65xt","clic aqu"+ String.fromCharCode(237) +"\x20para\x20destac\x61r"], ["\x4dP3\x20Maker","\x4dP3\x20Mak\x65r","\x4d\x503\x20Maker"], ["\x43\x61lculator","\x43\x61lculat\x6fr","\x43alcu\x6cator"], ["\x47en\x65rate\x20Ca\x63h\x65","\x47\x65nerat\x65\x20Cac\x68e","\x47ener\x61te\x20Cach\x65"], ["\x43\x68\x65\x63k\x20C\x61che","\x43hec\x6b\x20Cach\x65","\x43h\x65ck\x20Cache"], ["\x50i\x63ture\x20Dicti\x6fn\x61ry","\x50\x69cture\x20Dict\x69onary","\x50icture\x20D\x69ctionar\x79"], ["\x53\x70el\x6c\x20Check\x65r","\x53p\x65l\x6c\x20Chec\x6ber","\x53pell\x20\x43\x68\x65cker"], ["\x48\x6fmoph\x6fne\x20Checker","\x48omop\x68\x6fne\x20Checker","\x48omo\x70hone\x20Che\x63\x6ber"], ["\x50re\x64iction\x20C\x68eck\x65r","\x50redict\x69on\x20C\x68ec\x6b\x65r","\x50redi\x63tion\x20Checker"], ["\x53ubmit","\x53ub\x6dit","\x53ub\x6dit"], ["\x53tic\x6by\x20note","\x53tic\x6b\x79\x20note","\x53tick\x79\x20not\x65"], ["\x43reate\x20pr\x6fnunciat\x69\x6fn","\x43r\x65\x61te\x20pr\x6fnunciat\x69on","\x43re\x61t\x65\x20\x70ron\x75n\x63iation"], ["\x45\x64it\x20pronun\x63iat\x69on","\x45dit\x20pron\x75nci\x61ti\x6fn","\x45d\x69t\x20pronunc\x69ation"]];var haa = 0;var iaa = haa++;var jaa = haa++;var kaa = haa++;var laa = haa++;var maa = haa++;var naa = haa++;var oaa = haa++;var paa = haa++;var qaa = haa++;var raa =haa++;var saa = haa++;var taa = haa++;var uaa = haa++;var vaa = haa++;var waa = haa++;var xaa = haa++;var yaa = haa++;var zaa = haa++;var Aba = haa++;var Bba = haa++;var Cba = haa++;var Dba = haa++;var Eba = haa++;var Fba = haa++;var Gba = haa++;var Hba = haa++;var Iba = haa++; var Jba = haa++; var Kba = 0;var Lba = 1;var Mba = 2;var Nba = 3;var Oba = 4;var Pba = 5;var Qba = 6;var Rba = 7;var Sba = 8;var Tba = 9;var Uba = 10;var Vba = 11;var Wba = [ 0, 33, 66, 99, 132, 165, 198, 264, 297, 330, 363, 396, 429, 0, 528, 462, 561, 594, 231, 0, 0, 0, 0, 495, 627, 660, 693, 726 ];var Xba ="t\x65xthelp\x53topCont\x69nuous";var Yba ="t\x65xthelpSk\x69p";var FAST_SPEED = 55;var MEDIUM_SPEED = 40;var DEFAULT_SPEED = MEDIUM_SPEED;var SLOW_SPEED = 25;var VERY_SLOW_SPEED = 15;var READING_AGE_4 = 25;var READING_AGE_5 = 25;var READING_AGE_6 = 26;var READING_AGE_7 = 27;var READING_AGE_8 = 28;var eba = 29;var READING_AGE_10 = 30;var READING_AGE_11 = 35;var READING_AGE_12 = 40;var READING_AGE_13 = 44;var READING_AGE_14 = 46;var READING_AGE_15 = 48;var READING_AGE_16 = 50;var fba ="eba_language ENG_UK  ENGLISH UK ENG_US ENGLISH_US SPANISH SPANISH_US ESPANOL SPANISH_ES "+"FRENCH FRENCH_CN GERMAN ITALIAN DUTCH SWEDISH AUSTRALIAN ESPAÑOL PORTUGUESE PORTUGUESE_BR "+"PORTUGUES PORTUGUÊS PORTUGUES_PT";var ENG_UK = 0;var UK = 0; var ENGLISH = 0; var ENGLISH_UK = 0; var ENG_US = 1;var ENGLISH_US = 1;var SPANISH = 2;var SPANISH_US = 2;var ESPANOL = 3; var SPANISH_ES = 3;var FRENCH = 4;var FRENCH_CN = 5;var GERMAN = 6;var ITALIAN = 7;var DUTCH = 8;var SWEDISH = 9;var AUSTRALIAN = 10;var PORTUGUESE = 11;var PORTUGUESE_BR = 11;var PORTUGUES = 12; var zba = 12;var Aca ="eba_locale LOCALE_UK LOCALE_US ";var LOCALE_UK ="UK";var LOCALE_US ="US";var clicktospeak_icon = 1;var play_icon = 2;var search_icons = 28;var translation_icon = 4;var translate_icon = 4; var translator_icon = 4; var factfinder_icon = 8;var dictionary_icon = 16;var language_icons = 224;var spelling_icon = 32;var homophone_icon = 64;var prediction_icon = 128;var highlight_icons = 3840;var highlightcyan_icon = 256;var highlightmagenta_icon = 512;var highlightyellow_icon = 1024;var highlightgreen_icon = 2048;var collect_icon = 4096;var sticky_icon = 16384;var funplay_icon = 32768;var proncreate_icon = 65536;var createpron_icon = 65536; var pronCreate_icon = 65536; var pronedit_icon = 131072;var pronEdit_icon = 131072; var editpron_icon = 131072; var selectspeed_icon = 262144;var selectSpeed_icon = 262144; var pause_icon = 524288;var mp3_icon = 1048576;var calculator_icon = 2097152;var generatecache_icon = 4194304;var checkcache_icon = 8388608;var picturedictionary_icon = 16777216;var imagedictionary_icon = 16777216;var fullbrowsealoud_icons = 7967;var standardbrowsealoud_icons = 31;var minbrowsealoud_icons = 1;var submit_icon = 8192;var no_bar = 0;var main_icons = 7967;var standard_icons = 31;var min_icons = 1;var title_rw = 0;var title_ba = 1;var title_ebooks = 2;var title_th = 3;var title_portal = 4;/* Copyright 2005-2008 Texthelp Systems Ltd
*/var Dca = false;var Eca = false; var Fca = true;var Gca = true;var Hca ="dtdType ls_teacherFlag FAST_SPEED DEFAULT_SPEED MEDIUM_SPEED SLOW_SPEED VERY_SLOW_SPEED pause_icon mp3_icon calculator_icon generatecache_icon checkcache_icon picturedictionary_icon";var Ica;var Jca = false;var Kca ="color:#000000; background:#FFFF00";var Lca ="color:#FFFFFF; background:#0000FF";var Mca = null;var Nca = false; var Oca = false;var Pca = false;var eba_actual_version ="185";var Qca ="1";var Rca ="latest"; var Sca ="160"; var Tca = -1;var Uca = fullbrowsealoud_icons;var Vca = -1;var Wca = 0;var Xca ="speechus.texthelp.com";var Yca ="speechus.texthelp.com";var Zca = null; var aca = null;var bca = null;var cca ="SpeechStream"; var dca ="/SpeechStream/"; var eca ="ScanSoft Samantha_Full_22kHz";var fca = null; var gca = null; var hca = null; var ica = -1;var jca ="rwonline"; var kca ="rwonline";var lca = 0; var mca = false; var nca = null; var oca ="US"; var pca = 40; var qca = false;var rca = false; var sca = false;var tca = false;var uca = false;var vca = false;var wca = false;var xca = false;var yca = null;var zca = 1;var Ada = false;var Bda = false;var Cda = 3; var Dda = 10; var Eda = false;var Fda = false; var Gda = false; var Hda ="*"; var Ida ="*"; var Jda ="*"; var Kda ="*"; var Lda = false; var Mda = false; var Nda ="portal.texthelp.com"; var Oda =""; var Pda = true;var Qda = null;var Rda = null;var Sda = false;var Tda = false;var Uda = null;var Vda = 10 * 1024;var Wda = false;var Xda = false;var Yda = -1;var Zda = -1;var ada = -1;var bda = -1;var cda = -1;var dda = false;var eda = false;var fda = false;var gda = false;var hda = true;var ida = null;var jda = false;var kda = false;var lda = true;var mda = false;var nda = false;var oda = false;var pda = false;var qda = false;var rda = false;var sda = true;var tda = true;var uda = null;var vda = false;var wda = null;var xda = null; var yda = 0; var zda = 0; var Aea = 0; var Bea = new Array(); var Cea = -1; var Dea = 0; var Eea = 0; var Fea = false;var Gea = false;var Hea = false;var Iea = null;var Jea = false;var Kea = 0;var Lea ="";function $rw_getAutoCacheMissingCount(){ return Kea;};function $rw_getAutoCacheError(){ return Lea ||"";};var Mea;var Nea = false;var dtdType; var Pea = false;var g_icons = new Array();var Qea = new Array();var Rea = 0;var Sea = 0;var Tea = 300;var Uea = { x:0,y:0 };var Vea = { x:0,y:0 };var Wea = null;var Xea = false;var Yea = 5;var Zea = false;var aea = 0;var bea ="";var cea = 1.0;var dea = 0.01;var eea = true;var fea = 8;var gea = 60;var hea = [0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00];var iea = [0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00];var jea = [300, 300, 300, 300, 600, 250, 220, 660, 240, 300, 300, 100];var kea = [40, 40, 40, 40, 40, 250, 40, 60, 256, 30, 30, 30];var lea = [false, false, false, false, false, false, false, false, false, false, false, false];var $g_bMouseSpeech = false;var mea ="";var nea = false;var oea = false;var pea = navigator.appName =="\x4d\x69crosoft\x20Internet\x20Expl\x6frer";var qea = navigator.appVersion.indexOf("MSIE 6.") > -1;var rea = navigator.appVersion.indexOf("MSIE 7.") > -1;var sea = navigator.appVersion.indexOf("MSIE 8.") > -1;var tea = navigator.appVersion.indexOf("MSIE 9.") > -1;var uea = false;var vea = -1;var wea;var xea;if(pea){ if(qea) { if (document.compatMode) { if (document.compatMode !="CSS1Compat") { uea = true; } } } else if(rea) { sea = true; if (document.compatMode) { if (document.compatMode !="CSS1Compat") { uea = true; } else { nea = true; } } if(document.documentMode) { vea = document.documentMode; } } else { nea = true; vea = document.documentMode; }};if(pea){ if(vea >= 9) { xea = true; wea = false; } else { xea = false; wea = true; }}var yea = navigator.appVersion.indexOf("\x43hrome") > -1;var zea = navigator.appVersion.indexOf("\x53a\x66ari") > -1; var Afa = !(pea || zea); var Bfa = navigator.userAgent.toLowerCase();var Cfa = (Bfa.indexOf("ipad") > -1 || Bfa.indexOf("ipod") > -1 || Bfa.indexOf("iphone") > -1 || Bfa.indexOf("android") > -1); if(!Array.indexOf) { Array.prototype.indexOf = function(EOb) { for(var i=0; i<this.length; i++) { if(this[i]==EOb) { return i; } } return -1; }; };var Dfa ="\x6c\x6fcalhost";var $g_strFileLoc =""; var Efa ="";var g_speakableTextAreaTarget = null;var g_nSpeakableTextAreaTimerId = 0;var Hfa = 1;var Ifa = false;var Jfa = false;var Kfa = false;var Lfa = false;var Mfa = new Array();Mfa.push("-");Mfa.push("+");Mfa.push("/");Mfa.push("*");Mfa.push("<");Mfa.push(">");Mfa.push("=");Mfa.push("^");Mfa.push("<=");Mfa.push(">=");var Nfa = new Object();Nfa["-"] ="minus";Nfa["+"] ="plus";Nfa["/"] ="divided by";Nfa["*"] ="multiplied by";Nfa["<"] ="less than";Nfa[">"] ="greater than";Nfa["="] ="equals";Nfa["^"] ="raised to the power of";Nfa["<="] ="less than or equal to";Nfa[">="] ="greater than or equal to";var Ofa = false;var Pfa = false;var Qfa = false;var Rfa = false;var eba_server_version;var eba_serverVersion; var eba_client_version;var eba_clientVersion; var eba_login_name; var eba_login_password; var eba_loginName; var eba_loginPassword; var eba_server; var eba_speech_server; var eba_speechServer; var eba_speech_server_backup;var eba_speechServerBackup; var eba_folder;var eba_client_folder;var eba_clientFolder; var eba_speech_stream_server_version = -1;var eba_voice; var eba_hover_flag; var eba_bubble_mode; var eba_bubble_freeze_on_shift_flag; var eba_voice_from_lang_flag; var eba_speed_value; var eba_speedValue; var eba_speed_offset; var eba_initial_speech_on; var eba_continuous_reading; var eba_play_start_point; var eba_speech_started_callback; var eba_rendering_speech_callback; var eba_speech_complete_callback; var eba_page_complete_callback; var eba_speak_selection_by_sentence; var eba_page_complete_after_selection; var eba_use_container; var eba_override_x; var eba_override_y; var eba_icons;var eba_no_display_icons; var eba_no_title; var eba_noTitleFlag;var eba_hidden_bar; var eba_speech_range_colours; var eba_speech_word_colours; var eba_allow_alerts_flag; var eba_alerts;var eba_language; var eba_locale; var eba_ignore_buttons;var eba_max_word_count;var eba_logo_url = null; var eba_inline_img; var eba_cache_buster; var eba_dictionary_server; var eba_custom_dictionary_url; var eba_alt_dictionary_url; var eba_translate_server; var eba_translate_source; var eba_translate_target; var eba_mp3_id; var eba_mp3_limit; var eba_mp3_callback; var eba_cust_id; var eba_custId; var eba_book_id; var eba_bookId; var eba_page_id; var eba_pageId; var eba_annotate_confirm_delete_note; var eba_annotate_persist_notes; var eba_annotate_persist_highlights; var eba_annotate_note_editor_id; var eba_annotate_highlight_editor_id; var eba_annotate_storage_url; var eba_annotate_note_reader_id; var eba_annotate_highlight_reader_id; var eba_speechCacheGenerateFlag;var eba_cache_building_mode;var eba_speechCacheFlag;var eba_speech_cache_flag;var eba_cache_mode; var eba_cache_live_generation;var eba_autoCachePage;var eba_cacheResult =""; var eba_cache_retry; var eba_cache_retry_timeout; var eba_cache_selection; var eba_cache_user_text; var eba_split_cache_path; var eba_autocache_generate;var eba_autocache_check;var eba_autocache_allspeeds;var eba_autocache_callback;var eba_autocache_no_alert;var eba_clientside_pronunciation; var eba_check_pronunciation_before_cache; var eba_skip_on_error; var eba_alter_browser_for_consistency;var eba_ssl_flag; var eba_ssl_speech; var eba_ssl_toolbar; var eba_search_speech_server; var eba_replace_speech_server; var eba_no_flash; var eba_handle_radio_checkbox_click; var eba_bypass_dom_check = false; var eba_limit_cookies; var eba_math; var eba_maths; var eba_symbol_text; var eba_abbr_array = null; var eba_date_filter_mode;var eba_build_cache_for_external_use;var eba_use_html5;var ls_teacherFlag = false; var eba_reading_age;function $rw_getVersion(){ return eba_actual_version;}function $rw_getRevision(){ return Qca;}function $rw_setIconsToLoad(p_nIcons){ var Tfa = false; if((p_nIcons & clicktospeak_icon) == clicktospeak_icon) { if(!kda) { Yda = iqa('hover', gaa[iaa][lca],Wba[iaa],true); } Tfa = true; } if((p_nIcons & play_icon) == play_icon) { if(! (uca && !tca && !vca) ) { if(!kda) { iqa('play', gaa[jaa][lca], Wba[jaa],false); } Tfa = true; } } if((p_nIcons & pause_icon) == pause_icon) { iqa('pause', gaa[kaa][lca], Wba[kaa],false); } if(Tfa) { iqa('stop', gaa[laa][lca], Wba[laa],false); } var Ufa = false; if((p_nIcons & funplay_icon) == funplay_icon) { iqa('funplay', gaa[jaa][lca], Wba[Iba],false); Ufa = true; } if(Ufa) { iqa('funstop', gaa[laa][lca], Wba[Jba],false); } if((p_nIcons & translation_icon) == translation_icon) { iqa('trans', gaa[maa][lca], Wba[maa],false); } if((p_nIcons & factfinder_icon) == factfinder_icon) { iqa('ffinder', gaa[naa][lca], Wba[naa],false); } if((p_nIcons & dictionary_icon) == dictionary_icon) { iqa('dictionary', gaa[oaa][lca], Wba[oaa],false); } if((p_nIcons & picturedictionary_icon) == picturedictionary_icon) { iqa('picturedictionary', gaa[Aba][lca], Wba[Aba],false); } if((p_nIcons & spelling_icon) == spelling_icon) { ada = iqa('spell', gaa[Bba][lca],Wba[Bba],true); } if((p_nIcons & homophone_icon) == homophone_icon) { bda = iqa('homophone', gaa[Cba][lca],Wba[Cba],true); } if((p_nIcons & prediction_icon) == prediction_icon) { cda = iqa('pred', gaa[Dba][lca],Wba[Dba],true); } var Vfa = false; if((p_nIcons & highlightcyan_icon) == highlightcyan_icon) { iqa('cyan', gaa[paa][lca], Wba[paa],false); Vfa = true; } if((p_nIcons & highlightmagenta_icon) == highlightmagenta_icon) { iqa('magenta', gaa[qaa][lca], Wba[qaa],false); Vfa = true; } if((p_nIcons & highlightyellow_icon) == highlightyellow_icon) { iqa('yellow', gaa[raa][lca],Wba[raa] ,false); Vfa = true; } if((p_nIcons & highlightgreen_icon) == highlightgreen_icon) { iqa('green', gaa[saa][lca],Wba[saa] ,false); Vfa = true; } if(Vfa) { iqa('clear', gaa[taa][lca], Wba[taa],false); } if((p_nIcons & collect_icon) == collect_icon) { iqa('collect', gaa[uaa][lca],Wba[uaa] ,false); } if((p_nIcons & mp3_icon) == mp3_icon) { iqa('mp3', gaa[waa][lca],Wba[waa] ,false); } if((p_nIcons & calculator_icon) == calculator_icon) { iqa('calculator', gaa[xaa][lca],Wba[xaa] ,false); } if((p_nIcons & generatecache_icon) == generatecache_icon) { iqa('generate_cache', gaa[yaa][lca], Wba[yaa],false); } if((p_nIcons & checkcache_icon) == checkcache_icon) { iqa('check_cache', gaa[zaa][lca],Wba[zaa] ,false); } if((p_nIcons & submit_icon) == submit_icon) { iqa('submit', gaa[Eba][lca], Wba[Eba],false); } if((p_nIcons & sticky_icon) == sticky_icon) { Zda = iqa('sticky', gaa[Fba][lca],Wba[Fba] ,true); } if(fca != null && gca != null && hca != null) { if((p_nIcons & pronCreate_icon) == pronCreate_icon) { iqa('pronCreate', gaa[Gba][lca],Wba[Gba] ,false); } if((p_nIcons & pronEdit_icon ) == pronEdit_icon ) { iqa('pronEdit', gaa[Hba][lca],Wba[Hba] ,false); } }}var Wfa = 0;function $rw_setVoice(PMb){ if(typeof(PMb) =="string") { if(PMb != null && PMb.length > 0) { eba_voice = PMb; eca = PMb; try { var Yfa = iVb.getConnector(); if(Yfa != null) { Yfa.setVoiceName(eca); } } catch(err) { Epa(err); } } }}function $rw_setVoiceForLanguage(PMb, p_nLanguageCode){ if(typeof(p_nLanguageCode) =="string") { try { p_nLanguageCode = parseInt(p_nLanguageCode); } catch(err) { Epa(err); return; } } if(typeof(PMb) =="string"&& typeof(p_nLanguageCode) =="number") { if(PMb != null && PMb.length > 0 && p_nLanguageCode >= 0 && p_nLanguageCode < faa.length) { faa[p_nLanguageCode] = PMb; } }}function $rw_setSpeedValue(p_nSpeedValue){ if(typeof(p_nSpeedValue) =="number") { if(p_nSpeedValue > -4 && p_nSpeedValue < 101) { eba_speedValue = p_nSpeedValue; eba_speed_value = p_nSpeedValue; eba_reading_age = p_nSpeedValue; pca = p_nSpeedValue; try { if(Pea) { var Yfa = iVb.getConnector(); if(Yfa != null) { Yfa.setSpeedValue(""+ pca); } } } catch(err) { Epa(err); } } } else if(typeof(p_nSpeedValue) =="string") { var Sgb = p_nSpeedValue.toUpperCase(); if(Sgb =="VERY_SLOW_SPEED") { $rw_setSpeedValue(VERY_SLOW_SPEED); } else if(Sgb =="SLOW_SPEED") { $rw_setSpeedValue(SLOW_SPEED); } else if(Sgb =="MEDIUM_SPEED") { $rw_setSpeedValue(MEDIUM_SPEED); } else if(Sgb =="FAST_SPEED") { $rw_setSpeedValue(FAST_SPEED); } }}function $rw_setBarVisibility(pza){ if(typeof(pza) =="\x62oolean") { var afa = document.getElementById("r\x77Dra\x67"); if(pza) { afa.style.visibility ="\x76is\x69ble"; afa.style.display ="\x69nline"; } else { afa.style.visibility ="\x68idden"; afa.style.display ="n\x6fne"; } rca = !pza; Sza(); }}function $rw_enableClickToSpeak(p_bEnable){ if(p_bEnable && !$g_bMouseSpeech) { $rw_event_hover(null, Yda); } else if(!p_bEnable && $g_bMouseSpeech) { $rw_event_hover(null, Yda); if(Yda > -1) { var Mka = aea; aea = 0; Rwa("hover"+"", Yda, true); aea = Mka; } }}function $rw_enableSpeachByBubbleMode(cva){ if(typeof(EWb) =="undefinded") { if(cva) { alert("Bubble speech mode is not available."); } return; } if(Dca) { kda = cva; if(!kda) { mWb(); nWb(); $rw_stopSpeech(); } } else { mda = !cva; }}function $rw_enableContinuousReading(cva){ hda = cva; eba_continuous_reading = cva; if(!hda) { ida = null; sda = false; } else { if(typeof(eba_speak_selection_by_sentence) =="boolean") { sda = eba_speak_selection_by_sentence; } else { sda = true; } if($rw_isSpeaking() && zza != null && ida == null) { if(mla != null) { var i; for(i=0; i<mla.length; i++) { if(mla[i].indexOf("$rw_readNextTarget") > -1) { mla.splice(i, 1); --i; } } } UBb(zza); } }}var cfa = null;var eba_ignore_hidden;var dfa = true;var efa ="The SpeechStream object will contain parameter objects in the future. It holds actionOnError cacheMode and pronunciation";var ffa = function(){ this.STOP = 0; this.SKIP = 1; this.action = this.STOP;};var gfa = function(){ this.NONE = 0; this.CACHE_WITH_LIVE_SERVER = 1; this.CACHE_ONLY = 2; this.CACHE_BUILDING_MODE = 3; this.mode = this.NONE; this.getLiveServer = function() { if(this.mode == this.NONE) { return Yca; } else if(this.mode == this.CACHE_ONLY) { return null; } else if(this.mode == this.CACHE_WITH_LIVE_SERVER) { return Zca; } else if(this.mode == this.CACHE_BUILDING_MODE) { if(Zca != null) { return Zca; } else { return Yca; } } }; this.setCacheMode = function(p_nMode) { try { var flash = iVb.getConnector(); if(flash != null) { switch(p_nMode) { case this.NONE: this.mode = this.NONE; eba_cache_mode = false; eba_cache_building_mode = false; eba_cache_live_generation = false; uca = false; tca = false; vca = false; flash.setCacheMode(false, false); break; case this.CACHE_WITH_LIVE_SERVER: this.mode = this.CACHE_WITH_LIVE_SERVER; eba_cache_mode = true; eba_cache_building_mode = false; eba_cache_live_generation = true; uca = true; tca = false; vca = true; flash.setCacheMode(true, true); break; case this.CACHE_ONLY: this.mode = this.CACHE_ONLY; eba_cache_mode = true; eba_cache_building_mode = false; eba_cache_live_generation = false; uca = true; tca = false; vca = false; flash.setCacheMode(true, false); break; case this.CACHE_BUILDING_MODE: this.mode = this.CACHE_BUILDING_MODE; eba_cache_mode = false; eba_cache_building_mode = true; eba_cache_live_generation = false; uca = false; tca = true; vca = false; flash.setCacheMode(true, true); break; default: Dpa("Tried to set to an invalid mode, "+ p_nMode +" is not recognised."); } } } catch(err) { } };};SpeechStream.actionOnError = new ffa();SpeechStream.cacheMode = new gfa();function $rw_stopSpeech(){ $rw_event_stop();}var ifa = 200;function $rw_speakFromId(id){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Ica = Bza; var target = Dga(id); if(target != null) { $rw_stopSpeech(); if(sda) { var Rka; Rka = Yka(target); uda = null; if(Rka != null) { target = Rka; } } cfa = target; rw_speakHoverTarget(target); } else { var Igb = document.getElementById(id); if(Igb != null) { Igb = WHb(Igb, false, null); $rw_speakCurrentSentence(Igb, 0); } }}function $rw_speakById(id){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Ica = Bza; var target = Dga(id); if(target != null) { $rw_stopSpeech(); var Rka; if(sda) { Rka = Yka(target); if(Rka == null) { uda = target; } } else { Rka = target; } if(Rka != null) { target = Rka; rw_speakHoverTarget(target); } else { target.blockCache = !Ada; rw_speakHoverTarget(target); } cfa = target; }}function $rw_speakByIdFromFile(id, dBb){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Ica = Bza; var target = Dga(id); if(target != null) { $rw_stopSpeech(); cfa = target; bBb(target, dBb); }}function $rw_speakByIdHighlightOnly(id){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Ica = Bza; var target = Dga(id); if(target != null) { $rw_stopSpeech(); cfa = target; rw_speechHighlightOnly(target); }}function $rw_speakByIdWithSpeaker(id){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Ica = Bza; var target = Dga(id); if(target != null) { $rw_stopSpeech(); wda = id; cfa = target; rw_speakHoverTarget(target); }}function Dga(id){ var Xbb = document.getElementById(id); if(Xbb != null) { var sfa = Xbb.innerHTML; if(sfa.length > 0) { var IDb = rFb(Xbb, true); if(IDb == null || IDb.nodeType != 3) { return null; } var JDb = vFb(Xbb, true); if(JDb == null || JDb.nodeType != 3) { return null; } var Gbb = FPb(IDb, 0); var Hbb = (JDb.nodeType == 3)? FPb(JDb, JDb.nodeValue.length) : FPb(JDb, 0); var qXb = new THRange(Xbb.ownerDocument.body, Gbb, Hbb); var target = new THHoverTarget(null, null, qXb); return target; } } return null;}function $rw_setSentenceFromSelection(){ try { var aWb = $rw_getTHCaretRangeFromSelection(); if(aWb == null) { return; } var Obb = JGb(aWb.Obb); var Pbb = XGb(aWb.Pbb); if(Obb != null && Pbb != null) { var Bga = new vha(Obb, Pbb); var qXb = kEb(Bga); if(qXb != null) { cfa = new THHoverTarget(null, null, qXb); } } } catch(err) { Epa(err); }}function $rw_speakCurrentSentence(qdb, ygb){ var Bza = (new Date).getTime(); var Fga = (Bza - Wfa); if(Fga < ifa ) { return; } var nga = Lga(qdb, ygb); if(nga != null) { if(nga.equals(cfa)) { if(Fga < ifa * 5) { return; } } $rw_stopSpeech(); cfa = nga; rw_speakHoverTarget(nga); } Wfa = Bza;}function $rw_speakCurrentSentenceHighlightOnly(qdb, ygb){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Wfa = Bza; var nga = Lga(qdb, ygb); if(nga != null) { $rw_stopSpeech(); cfa = nga; rw_speechHighlightOnly(nga); }}function Lga(qdb, ygb){ var qXb; var nga; if(typeof(qdb) =="undefined"|| qdb == null) { if(cfa == null) { var aWb = sHb(document.body); if(aWb == null) { return null; } qXb = kEb(aWb); nga = new THHoverTarget(null, null, qXb); } else { nga = cfa; } } else { if(qdb instanceof vha) { qXb = kEb(qdb); } else { var wbb; if(typeof(ygb) =="undefined") { wbb = new THCaret(qdb, 0, true); } else { wbb = new THCaret(qdb, ygb, true); } var Obb = JGb(wbb); var Pbb = XGb(wbb); if(Obb == null || Pbb == null) { return null; } var aWb = new vha(Obb, Pbb); if(aWb == null) { return null; } qXb = kEb(aWb); } nga = new THHoverTarget(null, null, qXb); } return nga;}function $rw_getCurrentTarget(){ return cfa;}function $rw_setCurrentTarget(hBb){ cfa = hBb;}function $rw_speakFirstSentence(){ var Jbb = null; if( Mca != null && Mca !="") { Jbb = document.getElementById(Mca); } if(Jbb == null) { Jbb = document.body; } Jbb = WHb(Jbb, false, null); $rw_speakCurrentSentence(Jbb, 0);}function $rw_speakNextSentence(){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Wfa = Bza; if(cfa == null) { $rw_speakCurrentSentence(); return; } var kga = cfa.getCaretRange(); var XBb = QIb(kga); if(XBb == null) { return; } if(lBb(kga.Obb.node, XBb.Obb.node)) { return; } var qXb = kEb(XBb); var nga = new THHoverTarget(null, null, qXb); $rw_stopSpeech(); cfa = nga; rw_speakHoverTarget(nga);}function $rw_speakNextSentenceHighlightOnly(){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Wfa = Bza; if(cfa == null) { $rw_speakCurrentSentenceHighlightOnly(); return; } var kga = cfa.getCaretRange(); var XBb = QIb(kga); if(XBb == null) { return; } var qXb = kEb(XBb); var nga = new THHoverTarget(null, null, qXb); $rw_stopSpeech(); cfa = nga; rw_speechHighlightOnly(nga);}function $rw_speakPreviousSentence(){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Wfa = Bza; if(cfa == null) { $rw_speakCurrentSentence(); return; } var kga = cfa.getCaretRange(); var lga = cIb(kga); if(lga == null) { return; } if(lBb(lga.Pbb.node, kga.Pbb.node)) { return; } var qXb = kEb(lga); var nga = new THHoverTarget(null, null, qXb); $rw_stopSpeech(); cfa = nga; rw_speakHoverTarget(nga);}function $rw_speakPreviousSentenceHighlightOnly(){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Wfa = Bza; if(cfa == null) { $rw_speakCurrentSentenceHighlightOnly(); return; } var kga = cfa.getCaretRange(); var lga = cIb(kga); if(lga == null) { return; } var qXb = kEb(lga); var nga = new THHoverTarget(null, null, qXb); $rw_stopSpeech(); cfa = nga; rw_speechHighlightOnly(nga);}function $rw_getTHCaretRangeFromSelection(){ var BOb = zNb(); if(BOb != null && BOb.range instanceof THRange) { return wEb(BOb.range); } return null;}function $rw_isTextSelectedForPlay(){ if(Pea) { try { if(g_speakableTextAreaTarget != null) { if($rw_isPaused()) { return true; } if(g_nSpeakableTextAreaTimerId != 0) { return false; } return true; } else { if($rw_isPaused()) { return true; } var Pka = zNb(); if(Pka != null && Pka.range != null) { var qXb = Pka.range; if(qXb instanceof String) { return true; } else { var target = new THHoverTarget(null, null, qXb); var edb = target.getTextPreparedForSpeech(); if(edb != null && edb.length > 0) { return true; } } } } } catch(err) { Epa(err); } } return false;}function $rw_getNumberOfHighlights(){ if(typeof(lXb) !="undefined") { return lXb.length; } else { return 0; }}function $rw_getHighlightText(index){ if(typeof(lXb) !="undefined"&& index > -1 && index < lXb.length) { if (wea) { return lXb[index].text; } else { return lXb[index].toString(); } } return"";}function $rw_getHighlightColor(index){ if(typeof(mXb) !="undefined"&& index > -1 && index < mXb.length) { return mXb[index]; } return"";}function $rw_getHighlightColour(index){ return $rw_getHighlightColor(index);}function $rw_isPageLoaded(){ return (Dca && Pea);}function $rw_highlightOnlyWTSFailed(){}function $rw_log(Nhb){ Dpa(Nhb);}function $rw_setReadingAge(p_nAge){ if(typeof(p_nAge) =="string") { try { p_nAge = parseInt(p_nAge); } catch(e) { Epa(e); return; } } if(typeof(p_nAge) =="number") { switch(p_nAge) { case 1: case 2: case 3: case 4: $rw_setSpeedValue(READING_AGE_4); break; case 5: $rw_setSpeedValue(READING_AGE_5); break; case 6: $rw_setSpeedValue(READING_AGE_6); break; case 7: $rw_setSpeedValue(READING_AGE_7); break; case 8: $rw_setSpeedValue(READING_AGE_8); break; case 9: $rw_setSpeedValue(eba); break; case 10: $rw_setSpeedValue(READING_AGE_10); break; case 11: $rw_setSpeedValue(READING_AGE_11); break; case 12: $rw_setSpeedValue(READING_AGE_12); break; case 13: $rw_setSpeedValue(READING_AGE_13); break; case 14: $rw_setSpeedValue(READING_AGE_14); break; case 15: $rw_setSpeedValue(READING_AGE_15); break; case 16: $rw_setSpeedValue(READING_AGE_16); break; default: $rw_setSpeedValue(READING_AGE_10); } }}function $rw_getVoice(){ return eba_voice;}function $rw_getSpeed(){ return eba_speed_value;}function $rw_setCustomerId(p_strVal){ try { eba_cust_id = p_strVal; fca = p_strVal; var flash = iVb.getConnector(); if(flash != null) { flash.setCustomerId(p_strVal); } var Igb = document.getElementById("editPageMsg"); if(Igb != null) { Igb.innerHTML =""; } if(Kfa ) { ASb.deleteAll(); DTb(); } yga(); } catch(ignore) { Epa(ignore); }}function $rw_setBookId(p_strVal){ try { eba_book_id = p_strVal; gca = p_strVal; var flash = iVb.getConnector(); if(flash != null) { flash.setBookId(p_strVal); } var Igb = document.getElementById("editPageMsg"); if(Igb != null) { Igb.innerHTML =""; } if(Kfa ) { ASb.deleteAll(); DTb(); } yga(); } catch(ignore) { Epa(ignore); }}function $rw_setPageId(p_strVal){ try { eba_page_id = p_strVal; hca = p_strVal; var flash = iVb.getConnector(); if(flash != null) { flash.setPageId(p_strVal); } var Igb = document.getElementById("editPageMsg"); if(Igb != null) { Igb.innerHTML =""; } if(Kfa ) { ASb.deleteAll(); DTb(); } yga(); } catch(ignore) { Epa(ignore); }}function yga(){ if(Gda) { if(Ida !="*"&& typeof(Ccb) !="undefined") { var pab = Gda; Gda = false; ZZb(true); Gda = pab; } if(Hda !="*"&& typeof(Mfb) !="undefined") { aeb(); } if(Ida !="*"&& typeof(Ccb) !="undefined") { Ccb(); } else { if(Hda !="*"&& typeof(Mfb) !="undefined") { Mfb(); } } }}function Aha(){ Bea = Gha(); yda = 0; zda = 1; if(Fea) { zca = 1; $rw_setSpeedValue(SLOW_SPEED); } xda = sHb(document.body); yda = Cha(xda); Aea = Bea.length; Cea = -1; Qha(true);}function Cha(Dha){ var Nza = Dha; var i = 0; while(Nza != null) { i++; Nza = QIb(Nza); } i += Bea.length; if(Fea) { return i * 3; } else { return i; }}function Gha(){ var Eha = new Array(); if(jda) { return Eha; } var Fha = document.getElementsByTagName("img"); var bhb = Fha.length; var i; for(i=0; i<bhb;i++) { var Iha = Fha[i]; if(Iha.style.display =="none"&& dfa) { continue; } if(dJb(Iha)) { continue; } if(Iha.getAttribute("msg")!= null) { continue; } var wJb = Iha.getAttribute("title"); if(wJb != null && wJb.length > 0) { if(wJb.trimTH().length > 0) { Eha.push(Iha); } } else { wJb = Iha.getAttribute("alt"); if(wJb != null && wJb.length > 0) { if(wJb.trimTH().length > 0) { Eha.push(Iha); } } } } return Eha;}function Kha(qdb){ if(qdb == null) { return""; } var SWb = qdb.getAttribute("title"); if(SWb != null && SWb.length > 0) { return SWb; } else { var TWb = qdb.getAttribute("alt"); if(TWb != null && TWb.length > 0) { return TWb; } else { var UWb = qdb.getAttribute("msg"); if(UWb != null && UWb.length > 0) { return UWb; } } } return"";}function Qha(Rha){ var lgb =""; var Sha =""; if(xda == null) { var AQb = false; if(Cea < Aea ) { if(Cea > -1 && Cea < Bea.length) { var Uha = Kha(Bea[Cea]); if(Uha.trimTH().length > 0) { if(mca) { zya(fya(Bea[Cea])); } var OCb = new SpeechStream.SpeechRequest(); OCb.setString(Uha, SpeechStream.SpeechRequestBookmarks.OUTER); Sha = OCb.getText(); lgb = OCb.getFinalText(); AQb = true; } } } if(!AQb) { if(Rha) { $rw_autogenSpeechFilesCallback("Success"); } else { $rw_checkAutogenCachedFilesCallback("Success"); } return; } } else { var GEb = ICb(xda, new Array()); zya(GEb.voice); if(GEb.vbb != null) { xda = GEb.vbb; yda++; } lgb = GEb.edb; Sha = GEb.PBb; } var flash = iVb.getConnector(); if(flash != null) { var NEb = ZEb(); var zka; if(SpeechStream.pronunciation.mode == SpeechStream.pronunciation.CLIENT_PRONUNCIATION_FOR_LIVE_SERVER) { zka = zMb(lgb); } else { zka = zMb(Sha); } if(wca) { var TEb = aEb(zka); NEb = NEb +"/"+ TEb; } if(Rha) { var Cla = eqa(true) + SpeechStream.cacheMode.getLiveServer() +"/"; flash.autogenSpeechFiles(lgb, NEb, zka, !Jfa, Cla); } else { var Ybb = NEb +"/"+ zka; flash.checkAutogenCachedFiles(Ybb); } }}function $rw_autogenSpeechFilesCallback(hha){ if(hha =='Success') { var iha = false; if(Fea ) { if(zca == 1 || zca == 2) { zca++; } else { zca = 1; iha = true; } switch(zca) { case 1: $rw_setSpeedValue(SLOW_SPEED); break; case 2: $rw_setSpeedValue(MEDIUM_SPEED); break; case 3: $rw_setSpeedValue(FAST_SPEED); break; } } else { iha = true; } if(iha) { xda = QIb(xda, null); if(xda != null) { zda++; if(yda >= zda) { $rwj('#pb1').progressBar((zda / yda) * 100); Qha(true); } else { $rwj.unblockUI(); Lea ="Error: More sentences to be cached than counted in initial count at the start of this process!"; if(!Jea) { alert(Lea); } if(typeof(Iea) =="string") { uma(Iea); } } } else { if(Aea > 0 && Cea < (Aea - 1)) { ++zda; $rwj('#pb1').progressBar((zda / yda) * 100); ++Cea; Qha(true); } else { $rwj.unblockUI(); var Cla = eqa(true) + SpeechStream.cacheMode.getLiveServer() +"/"; var flash = iVb.getConnector(); flash.autoGenComplete(Cla); if(Iea == null && !Jea) { alert("Page Cached Successfully!"); } } } } else { zda++; Qha(true); } } else { $rwj.unblockUI(); Lea = hha; if(!Jea) { alert(hha); } if(typeof(Iea) =="string") { uma(Iea); } }}function gha(){ Bea = Gha(); yda = 0; zda = 1; Dea = 0; Eea = 0; if(Fea) { zca = 1; $rw_setSpeedValue(SLOW_SPEED); } xda = sHb(document.body); yda = Cha(xda); Aea = Bea.length; Cea = -1; Qha(false);}function $rw_checkAutogenCachedFilesCallback(hha){ if(hha =='Success') { ++Dea; } else { ++Eea; } var iha = false; if(Fea) { if(zca == 1 || zca == 2) { zca++; } else { zca = 1; iha = true; } switch(zca) { case 1: $rw_setSpeedValue(SLOW_SPEED); break; case 2: $rw_setSpeedValue(MEDIUM_SPEED); break; case 3: $rw_setSpeedValue(FAST_SPEED); break; } } else { iha = true; } if(iha) { xda = QIb(xda, null); if(xda != null) { zda++; if(yda >= zda) { $rwj('#pb1').progressBar((zda / yda) * 100); Qha(false); } else { $rwj.unblockUI(); Lea ="Error: More sentences to be cached than counted in initial count at the start of this process!"; if(!Jea) { alert(Lea); } if(typeof(Iea) =="string") { uma(Iea); } } } else { if(Aea > 0 && Cea < (Aea-1)) { ++zda; $rwj('#pb1').progressBar((zda / yda) * 100); ++Cea; Qha(false); } else { $rwj.unblockUI(); if(Eea > 0) { Lea ="Missing files!  Checked page and found that "+ Eea +" sentences out of "+ zda +" where not cached."; Kea = Eea; if(!Jea) { alert(Lea); } } if(typeof(Iea) =="string") { uma(Iea); } else { if(Eea == 0 && !Jea) { alert("Checked page and found that all "+ zda +" sentences were cached."); } } } } } else { zda++; Qha(false); }}function $rw_autogenCompleteCallback(hha){ if(hha !="Success") { Lea = hha; if(!Jea) { alert("Finished autogeneration process.  "+ hha); } } if(typeof(Iea) =="string") { uma(Iea); } }function $rw_setTranslateSource(JVb){ Icb.setSource(JVb);}function $rw_setTranslateTarget(p_strTarget){ Icb.setTarget(p_strTarget);}function mha(nha, nbb){ var jha = nha; var kha = nbb; this.self = {count:jha, data:kha};}var lha = -10;function THCaret(qdb, ygb, cbb){ this.node = qdb; this.offset = ygb; this.forwardBias = cbb; if(PCb(this.node)) { this.offset = lha; }};THCaret.prototype.isSpecialCase = function(){ return (this.offset == lha);};THCaret.prototype.check = function(){ var jBb = true; with (this) { if(node == null || node.parentNode == null) { jBb = false; } else { if( node.nodeType != 3) { if(node.nodeType == 1 && this.offset == lha) { } else { jBb = false; } } else if(this.offset < 0 || this.offset >node.nodeValue.length) { jBb = false; } } } return jBb;};THCaret.prototype.toString = function(){ var edb ="THCaret "; if(this.node != null) { if(this.node.nodeType == 3) { edb += this.node.nodeValue +" "+ this.node.parentNode.tagName +" "; } else if(this.node.nodeType == 1) { edb += this.node.tagName +" "; } } edb += this.offset; return edb;};THCaret.prototype.equals = function(Vbb){ if(Vbb == null) { return false; } return this.node == Vbb.node && this.offset == Vbb.offset && this.forwardBias == Vbb.forwardBias;};function vha(PIb, yCb){ this.Obb = PIb; this.Pbb = yCb;};vha.prototype.equals = function(qIb){ if(qIb == null) { return false; } return this.Obb.equals(qIb.Obb) && this.Pbb.equals(qIb.Pbb);};vha.prototype.toString = function(){ return rw_getTextOverCaretRange(this);};SpeechStream.DateFilterModes = {DATE:2,NUMBER:1,NONE:0};SpeechStream.DateFilter = function(){ var yha = 2; var zha = SpeechStream.DateFilterModes; var Aia = /^[ ,.?!;:\x27\x22\x82\x91\x92\x93\x94]+|[ ,.?!;:\x27\x22\x82\x91\x92\x93\x94]+$/g;this.setMode = function(p_nMode) { var Bia = parseInt(p_nMode); if(Bia == zha.NONE || Bia == zha.NUMBER || Bia == zha.DATE) { yha = Bia; } else if(typeof(p_nMode) =="string") { if(p_nMode =="NONE") { yha = zha.NONE; } else if(p_nMode =="NUMBER") { yha = zha.NUMBER; } else if(p_nMode =="DATE") { yha = zha.DATE; } } };this.getMode = function() { return yha; };this.checkDatesFromString = function(ehb) { var zXb = false; var rSb = ehb.split(" "); zXb = this.checkDatesFromList(rSb); if(zXb) { var bhb = rSb.length; var NQb =""; for(i=0; i<bhb - 1; i++) { NQb += rSb[i]; NQb +=" "; } NQb += rSb[bhb - 1]; return NQb; } else { return ehb; } };this.checkDatesFromList = function(eSb) { var Hfb; var zXb = false; var bhb = eSb.length; var i; for(i=0; i<bhb; i++) { Hfb = Ria(eSb[i]); if(Hfb != eSb[i]) { eSb[i] = Hfb; zXb = true; } } return zXb; };function Kia(lCb) { var zcb; switch(yha) { case 0: zcb = lCb; break; case 1: if(Oia(lCb)) { zcb =" "+ lCb.substring(0, 1) +","+ lCb.substring(1, 4) +" "; } else { zcb = lCb; } break; case 2: if(Oia(lCb)) { var Mia = parseInt(lCb); var Nia = parseInt(lCb.substring(2,4)); if(Mia < 1000) { zcb = lCb; } else if( ( (Mia >= 1000 && Mia < 2000) || Mia >= 2100 ) && Nia == 0 ) { zcb =" "+ lCb.substring(0, 2) +" hundred "; } else if( ( (Mia >= 1000 && Mia < 2000) || Mia >= 2100 ) && ( Nia > 0 && Nia < 10 ) ) { zcb =" "+ lCb.substring(0, 2) +" oh "+ lCb.substring(3, 4) +" "; } else if( ( (Mia >= 1000 && Mia < 2000) || Mia >= 2010 ) && Nia >= 10 ) { zcb =" "+ lCb.substring(0, 2) +" "+ lCb.substring(2, 4) +" "; } else if(Mia == 2000) { zcb =" two thousand "; } else if(Mia > 2000 && Mia < 2010) { zcb =" two thousand and "+ lCb.substring(3, 4) +" "; } else { zcb = lCb; } } else { zcb = lCb; } break; default: zcb = lCb; break; } return zcb; }; function Oia(lCb) { if(lCb.length == 4) { if(!isNaN(lCb)) { if(parseInt(lCb) >= 1000) { return true; } } } return false; };function Ria(ehb) { if(ehb == null) { return ehb; } var lgb = ehb.replace(Aia,''); if(lgb.length == 4) { var NQb = Kia(lgb); if(NQb != lgb) { var n = ehb.indexOf(lgb); return ehb.substring(0, n) + NQb + ehb.substring(n + 4); } } return ehb; };};var Uia = new SpeechStream.DateFilter();var Via = -1;var Wia = 0;var Xia = 1;var Yia = 2;var Zia = 3;var aia = 4;var bia = 5;var cia = 6;var dia = 7;var eia = 8;function fia(mBb, mia, rOb, nia){ this.body = mBb.ownerDocument.body; this.wbb = new THCaret(mBb, mia, true); this.xbb = new THCaret(rOb, nia, false); this.Gbb = FPb(mBb, mia); this.Hbb = FPb(rOb, nia);};fia.prototype.refresh = function(){ with (this) { if(wbb.check() == false || xbb.check() == false) { var vbb = oLb(this.body, this.Gbb.path, this.Gbb.offset, this.Hbb.path, this.Hbb.offset); var wbb = vbb.Obb; var xbb = vbb.Pbb; if(wbb == null && xbb == null) { wbb = new THCaret(document.body, 0, true); xbb = new THCaret(document.body, 0, false); } else if(wbb == null || xbb == null) { if(wbb == null) { wbb = new THCaret(xbb.node, xbb.offset, true); } else { xbb = new THCaret(wbb.node, wbb.offset, false); } } } }};fia.prototype.toString = function(){ this.refresh(); var range = soa(this.body); range.setStart(this.wbb.node, this.wbb.offset); range.setEnd(this.xbb.node, this.xbb.offset); return range.toString();};fia.prototype.getStartAsRange = function(){ var range = soa(this.body); range.setStart(this.wbb.node, this.wbb.offset); range.setEnd(this.wbb.node, this.wbb.offset); return range;};fia.prototype.getEndAsRange = function(){ var range = soa(this.body); range.setStart(this.xbb.node, this.xbb.offset); range.setEnd(this.xbb.node, this.xbb.offset); return range;};fia.prototype.equals = function(hBb){ return (this.Gbb.path == hBb.Gbb.path && this.Gbb.offset == hBb.Gbb.offset && this.Hbb.path == hBb.Hbb.path && this.Hbb.offset == hBb.Hbb.offset);};fia.prototype.compareRange = function(hBb){ if(this.equals(hBb)) { return Wia; } this.refresh(); hBb.refresh(); var ria = this.getStartAsRange(); var sia = this.getEndAsRange(); var tia = hBb.getStartAsRange(); var uia = hBb.getEndAsRange(); var via = ria.compareBoundaryPoints("START_TO_START", tia); var wia = ria.compareBoundaryPoints("START_TO_START", uia); var xia = sia.compareBoundaryPoints("START_TO_START", tia); var yia = sia.compareBoundaryPoints("START_TO_START", uia); var zgb = Via; if(wia > -1) { zgb = Xia; } else if(xia < 1) { zgb = Yia; } else if(via == -1) { if(yia == -1) { zgb = cia; } else { zgb = Zia; } } else if(via == 0) { if(yia == -1) { zgb = dia; } else if(yia == 0) { zgb = Wia; } else { zgb = Zia; } } else { if(yia == -1) { zgb = aia; } else if(yia == 0) { zgb = eia; } else { zgb = bia; } } return zgb;};function THDomRefPt(ZLb, ygb){ this.path = ZLb; this.offset = ygb;};THDomRefPt.prototype.isSpecialCase = function(){ return (this.offset == lha);};THDomRefPt.prototype.toString = function(){ return"THDomRefPt "+ this.path +" "+ this.offset;};function THHoverTarget(lRb, ZLb, Ija){ this.body = lRb; this.path = ZLb; this.range = Ija; this.JQb = null; this.blockCache = false; this.textToSpeak = null; this.textToSpeakNoChanges = null; this.allowContinuous = true; this.useHighlighting = true;};THHoverTarget.prototype.isRange = function(){ return this.range != null; };THHoverTarget.prototype.getCaretRange = function(){ var vbb; if(this.isRange()) { vbb = oLb(this.range.body, this.range.Gbb.path, this.range.Gbb.offset, this.range.Hbb.path, this.range.Hbb.offset); } else { var caret = ULb(this.body, this.path, -1, true); vbb = new vha(caret, caret); } return vbb;};THHoverTarget.prototype.getTextPreparedForSpeech = function(){ this.prepareTextForSpeech(); return this.textToSpeak;};THHoverTarget.prototype.prepareTextForSpeech = function(){ var Jja; var Kja; if(this.isRange()) { this.JQb = new Array(); var Lja = vBb(this.range.body, this.range.Gbb, this.range.Hbb, this.JQb); zya(Lja.voice); if(Lja.vbb != null) { var Mja = Lja.vbb; this.range = kEb(Mja); } Jja = Lja.edb; Kja = Lja.PBb; } else { var caret = ULb(this.body, this.path, -1, true); if(caret != null && caret.node != null) { var Oja = YPb(caret.node); if(Oja.trimTH().length == 0) { Jja =""; Kja =""; } else { if(mca) { zya(fya(caret.node)); } else { zya(null); } var OCb = new SpeechStream.SpeechRequest(); OCb.setString(Oja, SpeechStream.SpeechRequestBookmarks.OUTER); Jja = OCb.getFinalText(); Kja = OCb.getText(); } } else { Jja =""; Kja =""; } } if(mca && Jja.length > 0) { var Sta; if(nca!= null) { Sta = nca; } else { nca = eca; } if(nca =="\x53canSoft\x20Em\x69l\x79_\x46ull_22\x6bHz"|| nca =="\x53can\x53oft\x20Daniel_\x46\x75ll_22k\x48z"|| nca =="\x53c\x61nSo\x66t\x20J\x69ll_\x46\x75ll_22k\x48z"|| nca =="\x53canSoft\x20Samanth\x61_Fu\x6c\x6c_22kH\x7a"|| nca =="\x53canSoft\x20T\x6fm_Full_\x322kHz"|| nca =="\x56\x57\x20Kat\x65"|| nca =="\x56W\x20P\x61ul") { Jja ="<volume level=\"75\"/>"+ Jja; Kja ="<volume level=\"75\"/>"+ Kja; } } this.textToSpeak = Jja; this.textToSpeakNoChanges = Kja;};THHoverTarget.prototype.highlightRange = function(){ try { if(this.range != null) { var vbb = oLb(this.range.body, this.range.Gbb.path, this.range.Gbb.offset, this.range.Hbb.path, this.range.Hbb.offset); var Obb = vbb.Obb; var Pbb = vbb.Pbb; if(Obb != null && Pbb != null) { rw_setSpeechRangeImpl(Obb.node, Obb.offset, Pbb.node, Pbb.offset,"sp"); } else { } } } catch(err) { Dpa("Error in THHoverTargetClass:highlightRange: "+ err.message); }};THHoverTarget.prototype.unhighlightRange = function(){ try { if(this.range != null) { var vbb = oLb(this.range.body, this.range.Gbb.path, this.range.Gbb.offset, this.range.Hbb.path, this.range.Hbb.offset); var Obb = vbb.Obb; var Pbb = vbb.Pbb; if(Obb != null && Pbb != null) { rw_removeSpeechHighlight(yna(Obb, Pbb), false); } else { } } } catch(err) { Dpa("Error in THHoverTarget:unhighlightRange: "+err.message); }};THHoverTarget.prototype.equals = function(hWb){ if(hWb == null) { return false; } if(this.isRange() != hWb.isRange()) { return false; } if(this.isRange()) { return this.range.equals(hWb.range); } else { return this.path.equalsTH(hWb.path); }};THHoverTarget.prototype.toString = function(){ var edb ="THHoverTarget "; if(this.path != null) { edb+="path="+ this.path; } else if(this.range != null) { edb+= this.range.toString(); } return edb;};SpeechStream.pronunciation = new function(){ this.NONE = 0; this.SERVER_PRONUNCIATION = 1; this.CLIENT_PRONUNCIATION_FOR_OFFLINE_CACHE = 2; this.CLIENT_PRONUNCIATION_FOR_LIVE_SERVER = 3; this.mode = this.SERVER_PRONUNCIATION; this.checkPronunciation = function() { return (this.mode != this.NONE && SpeechStream.cacheMode.mode != SpeechStream.cacheMode.CACHE_ONLY && this.mode != this.SERVER_PRONUNCIATION); }; this.fetchData = function() { if(this.mode == this.NONE || SpeechStream.cacheMode.mode == SpeechStream.cacheMode.CACHE_ONLY) { return false; } if(this.mode != this.SERVER_PRONUNCIATION) { return true; } else { if( (Uca & pronCreate_icon) == pronCreate_icon || (Uca & pronEdit_icon) == pronEdit_icon ) { return true; } } return false; }; this.encodeData = function() { return (this.mode != this.NONE && this.mode != this.SERVER_PRONUNCIATION); }; this.setPronunciation = function(p_nMode) { if(p_nMode == this.NONE || p_nMode == this.SERVER_PRONUNCIATION || p_nMode == this.CLIENT_PRONUNCIATION_FOR_OFFLINE_CACHE || p_nMode == this.CLIENT_PRONUNCIATION_FOR_LIVE_SERVER) { this.mode = p_nMode; } };}; SpeechStream.Dictionary = function(){function Yja(pja) { return(this["+"+ pja]); }function bja(pja) { var gja ="+"+ pja; this[gja] = null; delete this[gja]; var fhb = this.Keys$__.indexOf(pja); if(fhb > -1) { this.Keys$__.splice(fhb, 1); } fhb = this.AllPageKeys$__.indexOf(pja); if(fhb > -1) { this.AllPageKeys$__.splice(fhb, 1); } if(pja.indexOf(" ") > -1) { var fhb = pja.indexOf(" "); var REb = pja.substring(0, fhb); fhb = this.MultiwordStart$__.indexOf(REb); if(fhb > -1) { this.MultiwordStart$__.splice(fhb, 1); } } }function hja(pja, dma, kja) { var gja ="+"+ pja; if(pja.substr(pja.length - 3) =="$__") { pja = pja.substr(0, pja.length - 1); } if(pja != null && pja.length > 0 && dma != null && dma.length > 0) { var lja = false; if(this[gja] != null) { lja = true; if(kja && !this.isAllPage$__(pja)) { return; } } this[gja] = dma; if(this.Keys$__.indexOf(pja) == -1) { this.Keys$__[this.Keys$__.length] = pja; } if(kja) { if(this.AllPageKeys$__.indexOf(pja) == -1) { this.AllPageKeys$__[this.AllPageKeys$__.length] = pja; } } else { if(this.AllPageKeys$__.indexOf(pja) > -1) { this.AllPageKeys$__.splice(this.AllPageKeys$__.indexOf(pja), 1); } } if(!lja) { if(pja.indexOf(" ") > -1) { var fhb = pja.indexOf(" "); var REb = pja.substring(0, fhb); this.MultiwordStart$__.push(REb); } } } }function oja(pja) { return this.AllPageKeys$__.indexOf(pja) > -1; } this.add$__ = hja; this.get$__ = Yja; this.remove$__ = bja; this.isAllPage$__ = oja; this.Keys$__ = new Array(); this.AllPageKeys$__ = new Array(); this.MultiwordStart$__ = new Array();};SpeechStream.Dictionary.prototype.deleteAll = function(){ if(typeof(this.Keys$__) !="undefined") { var Hfb; var i; for(i=0; i< this.Keys$__.length; i++) { Hfb = this.Keys$__[i]; this["+"+ Hfb] = null; delete this["+"+ Hfb]; } this.Keys$__ = new Array(); this.AllPageKeys$__ = new Array(); this.MultiwordStart$__ = new Array(); }};function THRange(lRb, tja, uja){ this.body = lRb; this.Gbb = tja; this.Hbb = uja;};THRange.prototype.equals = function(hBb){ return (this.Gbb.path == hBb.Gbb.path && this.Gbb.offset == hBb.Gbb.offset && this.Hbb.path == hBb.Hbb.path && this.Hbb.offset == hBb.Hbb.offset);};THRange.prototype.toString = function(){ with (this) { if(wea) { var range = getAsRange(); if(range != null) { return getAsRange().text; } else { return""; } } else { var range = getAsRange(); if(range != null) { return getAsRange().toString(); } else { return""; } } }};THRange.prototype.getAsRange = function(){ with (this) { var range = null; if(wea) { range = rw_getAsTextRange(this.body, this.Gbb.path, this.Gbb.offset, this.Hbb.path, this.Hbb.offset); } else { range = soa(this.body); var vbb = oLb(this.body, this.Gbb.path, this.Gbb.offset, this.Hbb.path, this.Hbb.offset); var wbb = vbb.Obb; var xbb = vbb.Pbb; if(wbb != null && xbb != null) { range.setStart(wbb.node, wbb.offset); range.setEnd(xbb.node, xbb.offset); } else { range = null; Dpa("Error in THRange:getAsRange: Failed to get the start or end caret."); } } return range; }};var yja ="SpeechMode DISABLED CLICK_SPEAK HOVER_SPEAK BUBBLE_SPEAK KEY_PRESS_SPEAK";SpeechStream.SpeechMode = new function(){ this.mode = -1; this.DISABLED = 0; this.CLICK_SPEAK = 1; this.HOVER_SPEAK = 2; this.BUBBLE_SPEAK = 4; this.KEY_PRESS_SPEAK = 8;};SpeechStream.SpeechMode.setPlayMode = function(p_nMode){ if(typeof(p_nMode) =="number") { switch(p_nMode) { case SpeechStream.SpeechMode.DISABLED: $g_bMouseSpeech = false; Rva = false; $rw_enableSpeachByBubbleMode(false); break; case SpeechStream.SpeechMode.CLICK_SPEAK: Fca = true; $g_bMouseSpeech = true; Rva = true; $rw_enableSpeachByBubbleMode(false); break; case SpeechStream.SpeechMode.HOVER_SPEAK: Fca = false; $g_bMouseSpeech = true; Rva = true; $rw_enableSpeachByBubbleMode(false); break; case SpeechStream.SpeechMode.BUBBLE_SPEAK: $g_bMouseSpeech = false; Rva = false; $rw_enableSpeachByBubbleMode(true); break; case SpeechStream.SpeechMode.KEY_PRESS_SPEAK: $g_bMouseSpeech = false; Rva = false; $rw_enableSpeachByBubbleMode(false); break; default: return; } SpeechStream.SpeechMode.mode = p_nMode; }};SpeechStream.SpeechMode.getPlayMode = function(){ if(SpeechStream.SpeechMode.mode == -1) { if(kda) { g_nSpeechMode = SpeechStream.SpeechMode.BUBBLE_SPEAK; } else if($g_bMouseSpeech && Fca) { g_nSpeechMode = SpeechStream.SpeechMode.CLICK_SPEAK; } else if($g_bMouseSpeech && !Fca) { g_nSpeechMode = SpeechStream.SpeechMode.HOVER_SPEAK; } else { g_nSpeechMode = SpeechStream.SpeechMode.KEY_PRESS_SPEAK; } } return SpeechStream.SpeechMode.mode;};SpeechStream.SpeechRequestBookmarks = {NONE:0, OUTER:1, ALL:2};SpeechStream.SpeechRequest = function(){ this.m_strText = null; this.m_strFinalText = null; this.m_bChanged = false; this.m_wordList = null;};SpeechStream.SpeechRequest.prototype.setString = function(ehb, p_nBookmarks){ var rSb = ehb.split(" "); var i; var bhb = rSb.length - 1; for(i=0; i<bhb; i++) { rSb[i] = rSb[i] +" "; } this.setWordList(rSb, p_nBookmarks);};SpeechStream.SpeechRequest.prototype.setWordList = function(eSb, p_nBookmarks){ var Bka = null; if(typeof(eba_build_cache_for_external_use) =="boolean"&& eba_build_cache_for_external_use) { var LSb =""; var bhb = eSb.length; for(i=0; i<bhb; i++) { LSb += eSb[i]; } Bka = LSb; } var zXb = false; if(Lfa) { if(TQb(eSb)) { zXb = true; } } if(Uia != null && Uia.getMode() != SpeechStream.DateFilterModes.NONE) { if(Uia.checkDatesFromList(eSb)) { zXb = true; } } this.m_strText = this.buildString(eSb, p_nBookmarks); if(SpeechStream.pronunciation.checkPronunciation()) { if(dSb(eSb)) { zXb = true; this.m_strFinalText = this.buildString(eSb, p_nBookmarks); } } this.m_bChanged = zXb; if(this.m_strFinalText == null) { this.m_strFinalText = this.m_strText; } if(Bka != null) { this.m_strText = Bka; }};SpeechStream.SpeechRequest.prototype.buildString = function(eSb, p_nBookmarks){ var Vgb = (p_nBookmarks == SpeechStream.SpeechRequestBookmarks.ALL); var Gka = (p_nBookmarks == SpeechStream.SpeechRequestBookmarks.OUTER); var LSb =""; var bhb = eSb.length; if(Gka) { LSb += wza +"0"+ xza; } for(i=0; i<bhb; i++) { if(Vgb) { LSb += wza + i + xza; } LSb += kCb(eSb[i]); } if(Gka || Vgb) { LSb += wza + bhb + xza; } return LSb;};SpeechStream.SpeechRequest.prototype.isChanged = function(){ return this.m_bChanged;};SpeechStream.SpeechRequest.prototype.getFinalText = function(){ return this.m_strFinalText;};SpeechStream.SpeechRequest.prototype.getText = function(){ return this.m_strText;};var Jka = null;var Kka = null;function $rw_event_click(event, i){ return $rw_event_hover(event, i);}function $rw_event_hover(event, i){ if(Wda && zea) { $rw_tagSentences(); } if(!Pea) { return; } if(!dda) { if(tca) { throw"The page has not fully loaded, click and speak is not available yet."; } else { cqa("The page has not fully loaded, click and speak is not available yet."); } return; } $g_bMouseSpeech = !$g_bMouseSpeech; var rfb = SpeechStream.gqa; if(i > -1) { g_icons[i][rfb.ICON_TOGGLE_STATE] = $g_bMouseSpeech; if(Cfa && !$g_bMouseSpeech) { Wra(g_icons[i][rfb.ICON_NAME],"flat", g_icons[i][rfb.ICON_OFFSET], true); } else { Wra(g_icons[i][rfb.ICON_NAME],"toggleOn", g_icons[i][rfb.ICON_OFFSET], true); } } if(Ifa && $g_bMouseSpeech) { if(Zda > -1 && typeof($rw_event_sticky) !="undefined") { $rw_event_sticky(event, Zda); var Mka = aea; aea = 0; Rwa("sticky"+"", Zda, true); aea = Mka; } } if(!$g_bMouseSpeech) { iVb.enableTouchEvents(false); $rw_event_stop(); Xva(false); Zva(false); iVb.enableTouchEvents(false); } else { Xva(true); iVb.enableTouchEvents(true); }}function $rw_isPaused(){ return (Pea && iVb.getConnector && $rw_isSpeaking() && iVb.getConnector() != null && iVb.getConnector().isPaused());}var Nka = String.fromCharCode(160);function $rw_event_play(){ if(Pea) { try { if(g_speakableTextAreaTarget != null) { if($rw_isPaused()) { $rw_event_pause(); return; } if(g_nSpeakableTextAreaTimerId != 0) { clearTimeout(g_nSpeakableTextAreaTimerId); g_nSpeakableTextAreaTimerId = 0; if(g_speakableTextAreaTarget == null) { $rw_event_play(); return; } } var Oka = g_speakableTextAreaTarget; Oka.focus(); g_speakableTextAreaTarget = null; rw_speakHoverTarget(new THHoverTarget(Oka.ownerDocument.body, rKb(Oka), null)); } else { if($rw_isPaused()) { $rw_event_pause(); return; } var Pka = zNb(); if(Pka != null && Pka.range != null) { var qXb = Pka.range; if(qXb instanceof String) { rw_speakHoverTarget(qXb); } else { if(wea) { var range = ioa(); range.collapse(); range.select(); } else { var range = ioa(); range.collapseToStart(); } var target = new THHoverTarget(null, null, qXb); var Rka; if(sda) { Rka = Yka(target); if(Rka == null) { uda = target; } } else { Rka = target; } if(Rka != null) { target = Rka; rw_speakHoverTarget(target); } else { target.blockCache = !Ada; rw_speakHoverTarget(target); } } } else { if(Mca != null) { if(cfa == null || Nca) { Nca = false; $rw_speakFirstSentence(); } else { $rw_speakCurrentSentence(); } } } } } catch(err) { Epa(err); } }}function Yka(hBb){ if(hBb == null) { return null; } var vbb = hBb.getCaretRange(); var CEb = KIb(vbb.Obb); var Uka = KIb(vbb.Pbb); if(CEb.equals(Uka)) { return null; } else { if(!Xqa(CEb)) { CEb = QIb(CEb, Uka.Pbb.node); if(CEb == null) { return null; } if(CEb.equals(Uka)) { return null; } } if(!Xqa(Uka)) { Uka = cIb(Uka, null); if(Uka == null) { return null; } if(CEb.equals(Uka)) { return null; } } var Vka; var Wka; var qXb = kEb(CEb ); Vka = new THHoverTarget(null, null, qXb); qXb = kEb(Uka ); Wka = new THHoverTarget(null, null, qXb); uda = Wka; return Vka; }}function $rw_event_funplay(){ $rw_event_play();}var aka = null;function $rw_speakText(ehb){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Ica = Bza; $rw_event_stop(); var OCb = new SpeechStream.SpeechRequest(); OCb.setString(ehb, SpeechStream.SpeechRequestBookmarks.NONE); var lgb = OCb.getText(); var KBb = OCb.getFinalText(); zya(null); jka(KBb, !Bda, lgb);}function $rw_speak(ehb, p_bNoCache, p_bFilter){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Ica = Bza; $rw_event_stop(); zya(null); if(p_bFilter) { var OCb = new SpeechStream.SpeechRequest(); OCb.setString(ehb, SpeechStream.SpeechRequestBookmarks.NONE); var lgb = OCb.getText(); var KBb = OCb.getFinalText(); jka(KBb, p_bNoCache, lgb); } else { jka(ehb, p_bNoCache, ehb); }}function jka(ehb, lka, mka){ if(typeof(eba_no_flash) =="boolean"&& eba_no_flash) { rw_sendSocketMessage("THStart"+ ehb +"THEnd"); return; } if(ehb == null && ehb.length == 0) { $rw_doSelection(-1); return; } if(!Pea) { $rw_doSelection(-1); return; } try { if(ehb.indexOf(Nka) > -1) { var fhb = ehb.indexOf(Nka) > -1; while(fhb > -1) { ehb = ehb.replace(Nka," "); fhb = ehb.indexOf(Nka, fhb + 1); } } if(typeof(mka) =="undefinded"|| mka == null ) { mka = ehb; } else { if(mka.indexOf(Nka) > -1) { var fhb = mka.indexOf(Nka) > -1; while(fhb > -1) { mka = mka.replace(Nka," "); fhb = mka.indexOf(Nka, fhb + 1); } } } var flash = iVb.getConnector(); if(flash != null) { if(zza && zza.isRange()) { Xva(true); Zva(true); $rw_doSelection(0); } if(lka && uca && vca) { flash.startSpeechFromBackup(ehb, !Jfa); wma(); } else { if(SpeechStream.cacheMode.mode == SpeechStream.cacheMode.CACHE_ONLY) { var NEb = ZEb(); var zka = zMb(mka); var Ybb; if(wca) { var TEb = aEb(zka); NEb = NEb +"/"+ TEb ; Ybb = NEb +"/"+zka; } else { Ybb = NEb +"/"+ zka; } flash.startSpeechFromCache(Ybb, ehb, false); wma(); } else if(SpeechStream.cacheMode.mode == SpeechStream.cacheMode.CACHE_WITH_LIVE_SERVER) { var NEb = ZEb(); var zka; if(SpeechStream.pronunciation.mode == SpeechStream.pronunciation.CLIENT_PRONUNCIATION_FOR_LIVE_SERVER) { zka = zMb(ehb); } else { zka = zMb(mka); } var Ybb; if(wca) { var TEb = aEb(zka); NEb = NEb +"/"+ TEb ; Ybb = NEb +"/"+zka; } else { Ybb = NEb +"/"+ zka; } flash.startSpeechFromCacheWithGen(Ybb, ehb, NEb, zka, !Jfa); wma(); } else if(SpeechStream.cacheMode.mode == SpeechStream.cacheMode.CACHE_BUILDING_MODE) { var NEb = ZEb(); var zka; if(SpeechStream.pronunciation.mode == SpeechStream.pronunciation.CLIENT_PRONUNCIATION_FOR_LIVE_SERVER) { zka = zMb(ehb); } else { zka = zMb(mka); } var Ybb; if(wca) { var TEb = aEb(zka); NEb = NEb +"/"+ TEb ; Ybb = NEb +"/"+zka; } else { Ybb = NEb +"/"+ zka; } var Cla = eqa(true) + SpeechStream.cacheMode.getLiveServer() +"/"; flash.startSpeechGenerateCache(Ybb, ehb, NEb, zka, !Jfa, Cla ); wma(); } else { flash.startSpeech(ehb, !Jfa); wma(); } } }} catch(err) { Epa(err); }}function Dla(kma, ehb){ if(ehb.indexOf("\n") > -1) { var GVb = eqa(true) + Yca +"/SpeechCache/"+ kma +".xml"; var Hla = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); Hla.open("HEAD", GVb, false); Hla.send(); return (Hla.status == 404); } return false;}function Jla(ehb, dBb){ if(ehb == null && ehb.length == 0) { $rw_doSelection(-1); return; } if(!Pea) { $rw_doSelection(-1); return; } try { var flash = iVb.getConnector(); if(flash != null) { Xva(true); $rw_doSelection(0); flash.startSpeechFromFile(ehb, dBb); wma(); } } catch(err) { Epa(err); }}function Ola(ehb){ if(ehb == null && ehb.length == 0) { $rw_doSelection(-1); return; } if(!Pea) { $rw_doSelection(-1); return; } try { var flash = iVb.getConnector(); if(flash != null) { Xva(true); $rw_doSelection(0); flash.startHighlighting(ehb); } } catch(err) { Epa(err); }}function $rw_event_pause(){ if($rw_isSpeaking()) { var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Ica = Bza; var flash = iVb.getConnector(); if(flash != null) { if(flash.isPaused()) { flash.resume(); } else { flash.pause(); } } }}function $rw_event_funstop(){ $rw_event_stop();}function $rw_event_stop(){ if(!Pea) { return; } try { if(kda) { nWb(); } mla.length = 0; ida = null; uda = null; if(ABb > 0) { clearTimeout(ABb); ABb = 0; } yAb.length = 0; if(vAb) { setTimeout("$rw_event_stop()", 100); return; } if(AAb > 0) { clearTimeout(AAb); AAb = 0; } if(BAb > 0) { clearTimeout(BAb); BAb = 0; } Xva(false); Zva(false); var flash = iVb.getConnector(); if(flash != null) { flash.stopSpeechAlt(); } yza = null; } catch(err) { Epa(err); }}function $rw_event_stop_limited(){ if(!Pea) { return; } try { mla.length = 0; ida = null; Xva(false); Zva(false); var flash = iVb.getConnector(); if(flash != null) { flash.stopSpeechAlt(); } } catch(err) { Epa(err); }}function $rw_event_mp3(){ try { var Ula = null; if(Uda != null) { var target = document.getElementById(Uda); if(target!= null) { Ula = iJb(target); } } else { Ula = fla(); } if(Ula != null) { Ula = Ula.trimTH(); if (Ula.length > 0) { if(Ula.length > Vda) { alert("Too much text was selected for making an MP3 file, there is a "+ (Vda/1024) +"k limit."); return; } var flash = iVb.getConnector(); if(flash != null) { var edb ="<br>The MP3 file for the text is being generated, <br> "+"this could take some time depending on the amount of text selected.<br><p align=\"center\">"+"<img alt=\"loading\" src=\""+ $g_strFileLoc +"rwimgs/request-processing.gif\"> </p>"; jza(Kba, edb); oza(true, Kba); flash.getMP3File(Ula); } } } } catch(err) { Epa(err); }}function $rw_mp3reply(edb){ try { if(typeof(eba_mp3_callback) !="undefined") { oza(false, Kba); eval(""+ eba_mp3_callback +"('"+ edb +"')"); } else { if(edb.length > 0) { var xsa ="Save Target As..."; if(!pea) { if(yea) { xsa ="Save Link As..."; } else if(zea) { xsa ="Download Linked File"; } else { xsa ="Save Link As..."; } } edb ="<br>Right click on the link below and select "+"'"+ xsa +"' to save the mp3 file to your hard drive.<p></p>"+"<a type='application/octet-stream' href=\""+ edb +"\">Download speech mp3 file.</a><p></p>"; jza(Kba, edb); oza(true, Kba); } } } catch(err) { Epa(err); }}var Yla ="setWarning";function setWarning(){ $rw_lexiSubmitEvent();}function $rw_lexiSubmitEvent(){ Zea = true;}function ala(){ if (wea) {var range = document.selection.createRange(); if (range.text.length > 0) { return true; } if (top.frames.length > 0) { var i = 0; var bhb = top.frames.length; for (i = 0; i < bhb; i++) { try { var eZb = top.frames[i]; range = eZb.document.selection.createRange(); if (range.text != null && range.text.length > 0) { return true; } } catch(e) { Epa(e); } } } } else {if (window.getSelection() != null && !window.getSelection().isCollapsed) { return true; } if (top.frames.length > 0) { var i = 0; var bhb = top.frames.length; for (i = 0; i < bhb; i++) { try { if (top.frames[i].getSelection() != null && !top.frames[i].getSelection().isCollapsed) { return true; } } catch(e) { Epa(e); } } } } return false;}function fla(){ var edb =''; if (wea) {var range = document.selection.createRange(); if (range.text == null || range.text.length == 0) { if (top.frames.length > 0) { var i = 0; var bhb = top.frames.length; for (i = 0; i < bhb; i++) { try { var eZb = top.frames[i]; range = eZb.document.selection.createRange(); if (range.text != null && range.text.length > 0) { break; } } catch(e) { Epa(e); } } } } edb = range.text; } else { var mNb = window.getSelection(); if(mNb.isCollapsed) { if(Jva && Jva.selectionStart != Jva.selectionEnd) { return Jva.value.substring( Jva.selectionStart, Jva.selectionEnd); } if(top.frames.length>0) { var i=0; var bhb = top.frames.length; for(i = 0; i<bhb; i++) { try { var HXb = top.frames[i].getSelection(); if(HXb != null && !HXb.isCollapsed) { mNb = HXb; break; } } catch(e) { Epa(e); } } } } if(!mNb.isCollapsed) { edb = mNb.toString(); } else { edb =""; } } return edb;}var lla = -1;var mla = new Array();function $rw_doSelection(Xwa){ if(xea) { var Pgb = null; } if (Xwa < 0) { if(Xwa == -2 && $rw_isSpeaking()) { $rw_speechCompleteCallback(); } Xva(false); Zva(false); bva(false); if(kda) { nWb(); } } else { bva(true); } if(zza && zza.isRange()) { if(Xwa != lla) { if (Xwa == -1 || Xwa == -2 || Xwa == -3) { if (lla > -1 && zza.JQb != null) { try { var JQb = zza.JQb; var bhb = JQb.length; if (lla < bhb) { var qXb = JQb[lla].range; if(xea) { Pgb = qXb.body; } var vbb = oLb(qXb.body, qXb.Gbb.path, qXb.Gbb.offset, qXb.Hbb.path, qXb.Hbb.offset); var Obb = vbb.Obb; var Pbb = vbb.Pbb; if(Obb != null && Pbb != null) { rw_removeSpeechHighlight(yna(Obb, Pbb), true); } else { Dpa("Cannot determine valid range to remove speech highlight from. "+ Obb +" "+ Pbb); } } } catch(err) { Dpa("$rw_doSelection:clear last speech:"+ err.toString()); } } lla = -1; try { zza.unhighlightRange(); } catch(err){Dpa("$rw_doSelection:unhighlightRange:"+ err.message);} } else if(zza.JQb != null) { if (lla == Xwa) { return; } var JQb = zza.JQb; var bhb = JQb.length; try { if (lla > -1 && lla < bhb) { var qXb = JQb[lla].range; var vbb = oLb(qXb.body, qXb.Gbb.path, qXb.Gbb.offset, qXb.Hbb.path, qXb.Hbb.offset); var Obb = vbb.Obb; var Pbb = vbb.Pbb; if(Obb != null && Pbb != null) { rw_removeSpeechHighlight(yna(Obb, Pbb), true); } else { Dpa("Cannot determine valid range to remove speech highlight from. "+ Obb +" "+ Pbb); } } } catch(err) { Epa(err); } if (Xwa < 0 || Xwa >= bhb) { return; } lla = Xwa; var qXb = JQb[Xwa].range; try { var vbb = oLb(qXb.body, qXb.Gbb.path, qXb.Gbb.offset, qXb.Hbb.path, qXb.Hbb.offset); var Obb = vbb.Obb; var Pbb = vbb.Pbb; if(Obb != null && Pbb != null) { var result = rw_setSpeechRangeImpl(Obb.node, Obb.offset, Pbb.node, Pbb.offset,"csp"); if(result != null && result.node != null) { KOb(result.node); } else { KOb(Obb.node); } } else { Dpa("Cannot determine valid range to add speech highlight from. "+ Obb +" "+ Pbb); } } catch(err) { Dpa("error with highlight speech range in rw_doSelection:"+ err.message); } } } } if (Xwa == -1 || Xwa == -2 || Xwa == -3) { lla = -1; zza = null; if(Xwa == -1) { if(mla.length > 0) { var Kma = mla.shift(); eval(Kma); } } if(xea) { if(Pgb != null) { var Gma = Pgb.style.display; Pgb.style.display ="none"; Pgb.style.display = Gma; } } } if(Xwa == -3) { var flash = iVb.getConnector(); var Ima = flash.getLastError(); var NZb="An error occurred with speech.  "+ Ima; if(SpeechStream.actionOnError.action == SpeechStream.actionOnError.SKIP) { Dpa(NZb); if(mla.length > 0) { var Kma = mla.shift(); eval(Kma); } } else { cqa(NZb); } }}function $displayMe(edb){ cqa(edb);}function Oma(Pma, Qma, Rma, Sma, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen){ var Lma = (screen.width - Rma) / 2; var Mma = (screen.height - Sma) / 2; var Nma ='height='+ Sma +',width='+ Rma +',top='+ Mma +',left='+ Lma +',scrollbars='+ a_bool_scrollbars +',resizable='+ a_bool_resizable +',menubar='+ a_bool_menubar +',toolbar='+ a_bool_toolbar +',location='+ a_bool_addressbar +',statusbar='+ a_bool_statusbar +',fullscreen='+ a_bool_fullscreen +''; var Tma = window.open(Pma, Qma, Nma); if (parseInt(navigator.appVersion) >= 4) { Tma.window.focus(); }}function Vma(jma){ var start = document.cookie.indexOf(jma +"="); var Xma = start + jma.length + 1; if (( !start ) && ( jma != document.cookie.substring(0, jma.length) )) { return null; } if (start == -1) { return null; } var end = document.cookie.indexOf(";", Xma); if (end == -1) { end = document.cookie.length; } return unescape(document.cookie.substring(Xma, end));}function bma(jma, dma, ema, kma, lma, hma){ var Zma = new Date(); Zma.setTime(Zma.getTime()); if (ema) { ema = ema * 1000 * 60 * 60 * 24; } var ama = new Date(Zma.getTime() + (ema)); document.cookie = jma +"="+ escape(dma) + ( ( ema ) ?";expires="+ ama.toGMTString() :"") + ( ( kma ) ?";path="+ kma :"") + ( ( lma ) ?";domain="+ lma :"") + ( ( hma ) ?";secure":"");}function ima(jma, kma, lma){ if (Vma(jma)) { document.cookie = jma +"="+ ( ( kma ) ?";path="+ kma :"") + ( ( lma ) ?";domain="+ lma :"") +";expires=Thu, 01-Jan-1970 00:00:01 GMT"; }}function oma(){ if(oab()) { var lgb = yZb(); jza(Oba, lgb); oza(true, Oba); var uza = hva("rwcollatewrapper"); var pma = document.getElementById("rwCollect"); if(pma != null) { if(parseInt(uza.scrollHeight) >= 380) {var rwTextCollect = hva("rwTextCollect"); rwTextCollect.style.height = (360); } else {var rwTextCollect = hva("rwTextCollect"); rwTextCollect.style.height = (uza.scrollHeight + 24); } }}}function $rw_event_axendolink(){ document.location ="http://www.browsealoud.info";}function dis(node){ cqa(node.tagName +"|"+ node.nodeValue +"|"+ rKb(node));}function uma(PMb){ if(PMb == null) { return; } try { var AQb = false; var bhb = PMb.length; if(bhb > 0) { if(PMb.charAt(bhb-1) ==")"|| PMb.substr(bhb-1) ==";") { AQb = true; } } else { return; } if(AQb) { eval(PMb); } else { try { eval(PMb +"();"); } catch(innerErr) { eval(PMb); } } } catch(err) { Epa(err); }}function wma(){ if(typeof(eba_speech_started_callback) =="string") { uma(eba_speech_started_callback.trimTH()); }}function $rw_renderingSpeechCallback(){ if(typeof(eba_rendering_speech_callback) =="string") { uma(eba_rendering_speech_callback.trimTH()); }}function $rw_speechCompleteCallback(){ if(typeof(eba_speech_complete_callback) =="string") { uma(eba_speech_complete_callback.trimTH()); }}function rw_pageCompleteCallBack(){ if(typeof(eba_page_complete_callback) =="string") { uma(eba_page_complete_callback.trimTH()); }} function $rw_event_calculator() { try { jza(Sba,""); oza(true, Sba); rw_calClearMem(); rw_calAddDigit('0'); } catch(err) { Epa(err); } }function $rw_event_generate_cache(){ try { $rwj.blockUI({ message:'<div id="rwDragMeGenerateCache" class="rwToolbarCaptionGenerateCache" ignore> Caching page please wait...</div><br><span id="pb1" ignore>0%</span>'}); $rwj('#pb1').progressBar(0); Aha(); } catch(err) { Epa(err); }}function $rw_event_check_cache(){ try { $rwj.blockUI({ message:'<div id="rwDragMeGenerateCache" class="rwToolbarCaptionGenerateCache" ignore> Reading Cache please wait...</div><br><span id="pb1" ignore>0%</span>'}); $rwj('#pb1').progressBar(0); gha(); } catch(err) { $rwj.unblockUI(); Epa(err); }}function zma(wQb){ var edb =""; if (wQb.nodeType == 3) { edb = wQb.nodeValue; } else if (wQb.nodeType == 1) { var pJb = wQb.firstChild; while (pJb != null) { if (pJb.nodeType == 3) { edb += pJb.nodeValue; } else if (pJb.nodeType == 1) { edb += zma(pJb); } pJb = pJb.nextSibling; } } return edb;};function Ena(wQb){ var bTb = null; var XKb = wQb.tagName.toLowerCase(); var qeb = rKb(wQb); if (XKb =="input") { var aPb = wQb.getAttribute("type"); if (aPb != null) { aPb = aPb.toLowerCase(); } var YTb =""; if (aPb == null || aPb.equalsTH("") || aPb.equalsTH("text")) { YTb = wQb.value; } else if (aPb.equalsTH("password")) { YTb ="Masked password field"; } else if (aPb.equalsTH("image")) { YTb =""; } else if (aPb.equalsTH("button") || aPb.equalsTH("submit") || aPb.equalsTH("reset")) { YTb = wQb.getAttribute("value"); } if (YTb.equalsTH("") == false) { bTb ="form:"+ qeb +";"+ YTb; } } else if (XKb =="select") { var YTb =""; var cPb = wQb.selectedIndex; var dPb =""; for (var Xab = 0; Xab < wQb.options.length; Xab++) { dPb += wQb.options[Xab].text +" "; } if (dPb.equalsTH("") == false) { if (cPb > -1) { YTb = wQb.options[cPb].text; YTb +=" selected from the list "+ dPb; } else { YTb ="No selection from the list "+ dPb; } bTb ="form"+ qeb +";"+ YTb; } } else if (XKb =="textarea") { var YTb = wQb.value; bTb ="form"+ qeb +";"+ YTb; } else if (XKb =="option") { var YTb = wQb.value; bTb ="form"+ qeb +";"+ YTb; } return bTb;}var Nna = null;function Ona(Nna){ Nna.setAttribute("onmouseover","top.doMouseOverTH(event)");}function Pna(wQb){ hna(); if (document.getElementsByTagName("frameset").item(0) != null) { var Qna = document.getElementsByTagName("frameset").item(0); Qna.removeAttribute("thSafariReaderDetails"); Qna.removeAttribute("thSafariReaderAutoDetails"); Qna.removeAttribute("thSafariReaderFlag"); } else { document.body.removeAttribute("thSafariReaderDetails"); document.body.removeAttribute("thSafariReaderAutoDetails"); document.body.removeAttribute("thSafariReaderFlag"); }};function Tna(theFrameSet, strLoc){ var Eya = theFrameSet.document; if (Eya != null) { var udb = Eya.body; if (udb != null) { Xna(theFrameSet, strLoc +"."); } } var cna; var size = theFrameSet.frames.length; for (var i = 0; i < size; i += 1) { var Cua = theFrameSet.frames[i]; cna = strLoc +".frames["+ i +"]"; Tna(Cua, cna); }};function Xna(aWindow, baseLoc){ aWindow.String.prototype.trimTH = function() { return this.replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,""); }; aWindow.String.prototype.equalsTH = function(s) { if (this.length != s.length) { return false; } for (var i = 0; i < this.length; i += 1) { if (this.charAt(i) != s.charAt(i)) { return false; } } return true; }; var udb = aWindow.document.body; var Zna = udb.getAttribute("onmouseover"); var ana = udb.getAttribute("onclick"); var bna = udb.getAttribute("onUnload"); if (typeof Zna =='function') { aWindow.onmouseover = function(event) { Zna(event); top.doMouseOverTH(event); }; } else { aWindow.onmouseover = function(event) { top.doMouseOverTH(event); }; } if (typeof ana =='function') { aWindow.onclick = function(event) { ana(event); top.doMouseClickTH(event); }; } else { aWindow.onclick = function(event) { top.doMouseClickTH(event); }; } if (typeof bna =='function') { aWindow.onunload = function() { bna(); top.Pna(); }; } else { aWindow.onunload = function() { top.Pna(); }; } var cna = baseLoc +"document.body"; udb.setAttribute("body_loc", cna);};function fna(EOb){ var dna = 0; if (EOb) { if (EOb.offsetParent) { while (EOb.offsetParent) { dna += EOb.offsetLeft; EOb = EOb.offsetParent; if (EOb.offsetParent == null) { dna += EOb.offsetLeft; } } } else if (EOb.offsetLeft) { dna += EOb.offsetLeft; } } return dna;};function gna(EOb){ var ena = 0; if (EOb) { if (EOb.offsetParent) { while (EOb.offsetParent) { ena += EOb.offsetTop; EOb = EOb.offsetParent; if (EOb.offsetParent == null) { ena += EOb.offsetTop; } } } else if (EOb.offsetTop) { ena += EOb.offsetTop; } } return ena;};function hna(){ setSpeechDetailsTH(""); setSpeechAutoDetailsTH(""); if (document.getElementsByTagName("frameset").item(0) != null) { lna(top); } else { var udb = document.body; mna(udb); }};function lna(theFrameSet){ var size = theFrameSet.frames.length; for (var i = 0; i < size; i += 1) { var Cua = theFrameSet.frames[i]; if (Cua.length == 0) { mna(Cua.document.body); Cua.String.prototype.trimTH = function() { return this.replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,""); }; Cua.String.prototype.equalsTH = function(s) { if (this.length != s.length) { return false; } for (i = 0; i < this.length; i += 1) { if (this.charAt(i) != s.charAt(i)) { return false; } } return true; }; } else { Tna(Cua); } }};function mna(wQb){ if (wQb == null) { return; } if (wQb.nodeType == 1) { if (wQb.tagName.toLowerCase() == ("font") && wQb.getAttribute("started") =="1") { var edb = zma(wQb); var Eya = wQb.ownerDocument; var lfb = Eya.createTextNode(edb); wQb.parentNode.replaceChild(lfb, wQb); } else { var qna = wQb.firstChild; while (qna != null) { var rna = qna; qna = qna.nextSibling; mna(rna); } } }};function aa(a){};function tna(NZb){ var nn = 150; if (NZb.length > nn) { while (NZb.length > nn) { var sna = NZb.substring(0, nn); NZb = NZb.substring(nn); Dpa(sna); } } else { Dpa(NZb); }};String.prototype.trimSpaceTH = function(){ return this.replace(/^[\t\r\n ]+/,"").replace(/[\t\r\n ]+$/,"");};String.prototype.trimSpaceStartTH = function(){ return this.replace(/^[\t\r\n ]+/,"");};String.prototype.trimSpaceEndTH = function(){ return this.replace(/[\t\r\n ]+$/,"");};String.prototype.trimTH = function(){ return this.replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"");};String.prototype.trimStartTH = function(){ return this.replace(/^[\s\xA0]+/,"");};String.prototype.trimEndTH = function(){ return this.replace(/[\s\xA0]+$/,"");};String.prototype.equalsTH = function(s){ if (this.length != s.length) { return false; } for (var i = 0; i < this.length; i += 1) { if (this.charAt(i) != s.charAt(i)) { return false; } } return true;};function yna(zna, Aoa){ var una = dfa; dfa = false; var vna = new Array(); try { var Jbb = zna.node; var Kbb = Aoa.node; if(Jbb.nodeType != 3) { if(Jbb.nodeType == 1 && Jbb.tagName.toLowerCase() =="math") { vna.push(Jbb); if(Jbb == Kbb) { return vna; } else { Jbb = NHb(Jbb, false, Kbb); } } else if(pea && Jbb.nodeType == 1 && Jbb.firstChild != null && Jbb.firstChild.tagName.toLowerCase() =="math") { vna.push(Jbb.firstChild); if(Jbb == Kbb) { return vna; } else { Jbb = Jbb.firstChild; Jbb = NHb(Jbb, false, Kbb); } } else { Jbb = rFb(Jbb, false); if(Jbb == null) { return vna; } } } if(Jbb == Kbb) { if(Jbb.nodeType == 3) { var edb = Jbb.nodeValue; if(edb.length > 0 && zna.offset < edb.length && Aoa.offset > 0 && Aoa.offset > zna.offset) { vna.push(Jbb); } } } else { if(Jbb.nodeType == 3) { var edb = Jbb.nodeValue; if(edb.length > 0 && zna.offset < edb.length) { vna.push(Jbb); } } else { if(Jbb.nodeType == 1 && Jbb.tagName.toLowerCase() =="math") { vna.push(Jbb); } else if(pea && Jbb.nodeType == 1 && Jbb.firstChild != null && Jbb.firstChild.tagName.toLowerCase() =="math") { Jbb = Jbb.firstChild; vna.push(Jbb); } } var Qbb = dHb(Jbb, false, Kbb, true); while (Qbb != null) { if (Qbb == Kbb) { if(Kbb.nodeType == 3) { var edb = Kbb.nodeValue; if(edb.length > 0 && Aoa.offset > 0) { vna.push(Kbb); } } else { if(Qbb.nodeType == 1 && Qbb.tagName.toLowerCase() =="math") { vna.push(Qbb); } else if(pea && Qbb.nodeType == 1 && Qbb.firstChild != null && Qbb.firstChild.tagName.toLowerCase() =="math") { vna.push(Qbb.firstChild); } } break; } else { vna.push(Qbb); } Qbb = dHb(Qbb, false, Kbb, true); } } } catch(err){Dpa("rw_setHighlight error:"+ err.message);} dfa = una; return vna;}function Loa(qdb){ if(qdb == null) { return qdb; } var Qya = qdb.parentNode; if(Qya != null && qdb.nodeType == 3) { var Eya = qdb.ownerDocument; while(qdb.previousSibling != null && qdb.previousSibling.nodeType == 3) { var edb = qdb.previousSibling.nodeValue + qdb.nodeValue; var lfb = Eya.createTextNode(edb); Qya.removeChild(qdb.previousSibling); Qya.replaceChild(lfb, qdb); qdb = lfb; } while(qdb.nextSibling != null && qdb.nextSibling.nodeType == 3) { var edb = qdb.nodeValue + qdb.nextSibling.nodeValue; var lfb = Eya.createTextNode(edb); Qya.removeChild(qdb.nextSibling); Qya.replaceChild(lfb, qdb); qdb = lfb; } } return qdb;}function Qoa(Roa){ try { var edb = Roa +""; edb = edb.trimTH(); Roa.collapseToStart(); var Jbb = Roa.anchorNode; var Toa = Roa.anchorOffset; if(Jbb.nodeType != 3) { Jbb = WHb(Jbb, false, null); Toa = 0; } else if(Toa == Jbb.nodeValue.length) { Jbb = WHb(Jbb, false, null); Toa = 0; } if(Jbb != null && Jbb.nodeType == 3) { var OPb = Jbb.nodeValue.substring(Toa); var Voa = OPb.trimStartTH(); while(OPb.length > Voa.length) { if(Voa.length == 0) { Jbb = WHb(Jbb, false, null); Toa = 0; if(Jbb == null || Jbb.nodeType != 3) { break; } } else { Toa += OPb.length - Voa.length; } OPb = Jbb.nodeValue.substring(Toa); Voa = OPb.trimStartTH(); } } var range = soa(); if(Jbb == null) { range.setStart(Roa.anchorNode, Roa.anchorOffset); range.setEnd(Roa.anchorNode, Roa.anchorOffset); } else { if(Jbb.nodeType != 3) { range = boa(Jbb, Toa, edb); } else { if((Toa + edb.length) < Jbb.nodeValue.length) { range.setStart(Jbb, Toa); range.setEnd(Jbb, Toa + edb.length); } else { range = boa(Jbb, Toa, edb); } } } return range; } catch(ignore) { var range = soa(); range.setStart(Roa.anchorNode, Roa.anchorOffset); range.setEnd(Roa.anchorNode, Roa.anchorOffset); return range; }}function boa(mBb, ygb, Nhb){ var range = soa(mBb.ownerDocument.body); range.setStart(mBb, ygb); range.setEnd(mBb, ygb); var bhb = 0; var Xoa = Nhb.length + ygb; var Qbb = mBb; while(Qbb != null && bhb < Xoa) { if(Qbb.nodeType == 3) { var edb = Qbb.nodeValue; bhb += edb.length; } if(bhb < Xoa) { Qbb = WHb(Qbb, false, null); } else { var aoa = bhb - Xoa; range.setEnd(Qbb, Qbb.nodeValue.length - aoa); } } return range;}function ioa(){ var iNb = null; if(window.getSelection) {var mNb = window.getSelection(); var nNb = null; if(mNb.isCollapsed == false) { nNb = mNb; } else { if(top.frames.length > 0) { var i = 0; var bhb = top.frames.length; for(i = 0; i < bhb; i++) { try { if(top.frames[i].getSelection() != null && top.frames[i].getSelection().isCollapsed == false) { nNb = top.frames[i].getSelection(); break; } } catch(e) { Epa(e); } } } } if(nNb == null) { return null; } iNb = nNb; } else if(document.selection) {var range = document.selection.createRange(); if(range.text.length > 0) { jQb = window; iNb = range; } else { if(top.frames.length > 0) { var i = 0; var bhb = top.frames.length; for(i = 0; i < bhb; i++) { try { var eZb = top.frames[i]; range = eZb.document.selection.createRange(); if(range.text.length > 0) { jQb = eZb; iNb = range; break; } } catch(e) { Epa(e); } } } } } return iNb;}function poa(){ var edb =""; if (wea) { var range = document.body.createTextRange(); range.expand("textedit"); edb = range.text; } else { var range = document.createRange(); range.setStartBefore(document.body); range.setEndAfter(document.body); edb = range.toString(); } return edb;}function qoa(qdb){ if(qdb.innerText) { return qdb.innerText; } else if(qdb.textContent) { return qdb.textContent; } else { return""; }}function soa(lRb){ if(typeof(lRb) =='undefined'|| lRb == null) { lRb = document.body; } if (wea) { return lRb.createTextRange(); } else { var Eya = lRb.ownerDocument; return Eya.createRange(); }}function zoa(qdb){ if(qdb.document) { return qdb.document.body; } else { return qdb.ownerDocument.body; }}function rw_getWindow(qdb){ try { if(qdb == null) { return window; } if(top.frames.length === 0) { return window; } else { var voa = qdb.ownerDocument.body; var woa = window.document.body; if(voa === woa) { return window; } var i=0; var bhb = top.frames.length; for(i = 0; i<bhb; i++) { var yoa = top.frames[i].document.body; if(yoa === voa) { return top.frames[i]; } } } } catch(err) { Dpa("Error rw_getWindow: "+ err); } return window;}function Dpa(UWb){ if(window.console && window.console.log) { window.console.log(UWb); } else if(typeof(dump) !='undefined') { dump(UWb +"\n"); }}function Epa(error){ if(error != null) { if(error.name && error.message) { Dpa("Error: "+""+ error.name +". : "+ error.message); } else if(error.message) { Dpa("Error: "+""+ error.message); } }}function Fpa(edb){ if(edb == null) { return""; } edb = edb.trimTH(); var Rpa =""; var i = 0; var n = edb.length; var Chb = -1; var Dhb = -1; for(i = 0; i < n; i++) { var ILb = edb.charCodeAt(i); if((ILb > 64 && ILb < 91) || (ILb > 96 && ILb < 123 )) { if(Chb == -1) { Chb = i; } } else { if(Chb > -1) { if(ILb == 39) { if(i < (n - 1)) { nValNext = edb.charCodeAt(i + 1); if((nValNext > 64 && nValNext < 91) || (nValNext > 96 && nValNext < 123 )) { ++i; } else { Dhb = i; break; } } else { Dhb = i; break; } } else { Dhb = i; break; } } } } if(Chb > -1) { if(Dhb > -1) { Rpa = edb.substring(Chb, Dhb); } else { Rpa = edb.substring(Chb); } } return Rpa;}function Kpa(edb){ if(edb == null) { return""; } edb = edb.trimTH(); edb = edb.replace(/[\s\xA0]+/g," "); var Rpa =""; var i = 0; var n = edb.length; var Chb = -1; var Dhb = -1; for(i = 0; i < n; i++) { var ILb = edb.charCodeAt(i); if((ILb > 64 && ILb < 91) || (ILb > 96 && ILb < 123 ) || ILb > 127) { if(Chb == -1) { Chb = i; } } else { if(Chb > -1) { if(ILb == 39) { if(i < (n - 1)) { nValNext = edb.charCodeAt(i + 1); if((nValNext > 64 && nValNext < 91) || (nValNext > 96 && nValNext < 123 ) || ILb > 127) { ++i; } else { Dhb = i; break; } } else { Dhb = i; break; } } else { Dhb = i; break; } } } } if(Chb > -1) { if(Dhb > -1) { Rpa = edb.substring(Chb, Dhb); } else { Rpa = edb.substring(Chb); } } return Rpa;}function Ppa(Nhb){ if(Nhb == null) { return""; } var Rpa = Nhb.trimTH(); if(Rpa.length == 0) { return""; } Rpa = Rpa.replace(/[\s\xA0]+/g," "); var Spa = 0; var fhb = Rpa.indexOf(' '); while(fhb > -1) { ++Spa; if(Spa == 3) { Rpa = Rpa.substr(0, fhb); break; } fhb = Rpa.indexOf(' ', fhb + 1); } return Rpa;}function Upa(Yhb){ return (Yhb > 64 && Yhb < 91) || (Yhb > 96 && Yhb < 123);}function Wpa(Yhb){ return (Yhb > 47 && Yhb < 58);}function Ypa(Yhb){ return (Yhb > 47 && Yhb < 58) || (Yhb > 63 && Yhb < 91) || (Yhb > 94 && Yhb < 123);}function epa(Nhb){ var apa = false; if (Nhb.length > 0) { if (Nhb.length > 2) { apa = true; } if (Nhb.length == 2) { var dpa = Nhb.charCodeAt(0); var cpa = Nhb.charCodeAt(1); if (dpa > 32 && dpa < 127 && cpa > 32 && cpa < 127) { apa = true; } } else { var dpa = Nhb.charCodeAt(0); if (dpa > 32 && dpa < 127) { apa = true; } } } return apa;}function hpa(edb){ if(edb == null) { return false; } for(var i = 0; i < edb.length; i++) { var ILb = edb.charCodeAt(i); if(ILb == 39 || (ILb > 47 && ILb < 58) || (ILb > 64 && ILb < 91) || ILb == 96 || (ILb > 96 && ILb < 123)) { return true; } } return false;}function kpa(lpa){ if(lpa == null || lpa.length == 0) { return lpa; } var bhb = lpa.length; for(var i = 0; i < bhb; i++) { var ILb = lpa.charCodeAt(i); if(! (ILb == 39 || ILb == 44 || ILb == 46 || (ILb > 47 && ILb < 58) || (ILb > 63 && ILb < 91) || (ILb > 94 && ILb < 123))) { lpa = lpa.replace(lpa.charAt(i),' '); } } return lpa.trimTH();}function npa(range){ var edb =""; if(range.text) { edb = range.text; } else { edb = range.toString(); } return edb;}function ppa(){ var BOb = ioa(); if(BOb == null) { return; } if(BOb.collapseToStart) { BOb.collapseToStart(); } else if(BOb.execCommand) { BOb.execCommand("UnSelect", false, null); }}function wpa(qdb){ if(qdb != null) { if(wea) { var range = soa(qdb.ownerDocument.body); range.moveToElementText(qdb) ; range.select(); } else { var Qbb = lFb(qdb, false, null); if(Qbb != null) { var range = new fia(qdb, 0, Qbb, 0); ypa(range); } } }}function ypa(XYb){ if(wea) { XYb.select(); } else { var start = XYb.wbb; var end = XYb.xbb; var jQb = rw_getWindow(start.node); if(!zea) { var Fbb = jQb.getSelection(); Fbb.collapse(start.node, start.offset); Fbb.extend(end.node, end.offset); } else { jQb.getSelection().setBaseAndExtent(start.node, start.offset, end.node, end.offset); } }}function Aqa(ahb){ return (ahb.search(/[\s\xa0]/) > -1);}function Cqa(EOb){ var Dqa = EOb +"  "; if(EOb.tagName != null) { Dqa += EOb.tagName +" "; } if(EOb.className != null) { Dqa += EOb.className +" "; } for(prop in EOb) { Dqa += prop +"  "+" | "; } alert(Dqa);}function Eqa(EOb){ var Dqa = EOb +"  "; for(prop in EOb) { Dqa += prop +"  "+" | "; } return Dqa;}function $rw_inputFieldFilter(Eab){ if(Eab == null || Eab.length == 0) { return Eab; } var i; var bhb = Eab.length; for(i = bhb - 1; i >= 0; i--) { var c = Eab.charCodeAt(i); if((c < 44 && c != 39) || c == 47 || (c > 57 && c < 65) || (c > 90 && c < 97 && c != 95) || (c > 122 && c < 128)) { Eab = Eab.substring(0, i) + Eab.substr(i + 1); } } return Eab;}function $rw_handleFieldInput(Aeb){ var pre = Aeb.value; var post = $rw_inputFieldFilter(pre); if(pre != post) { Aeb.value = post; }}function $rw_handleFieldKeyDownInput(evt){ if(!evt.ctrlKey) { var c = evt.keyCode; if((c > 32 && c < 44 && c != 39) || c == 47 || (c > 57 && c < 65) || (c > 90 && c < 97 && c != 95) || (c > 122 && c < 128)) { return false; } } return true;}function Jqa(ehb){ ehb = ehb.trimTH(); var bhb = ehb.length; var i; for(i=0; i<bhb; i++) { var c = ehb.charCodeAt(i); if((c > 47 && c < 58) || (c >63 && c<91) || (c>96 && c<123) || c==38 || c==39) { return ehb; } } return"";}function Nqa(lCb){ var bhb = lCb.length; var i = 0; var ILb; for(i=0; i<bhb; i++) { ILb = lCb.charCodeAt(i); if((ILb > 63 && ILb < 91) || (ILb > 96 && ILb < 123) || (ILb > 127 && ILb != 160)) { return true; } else if(ILb > 46 && ILb < 58) { return true; } else if((ILb > 35 && ILb < 39) || ILb == 43 || ILb == 61) { return true; } else if(ILb == 39 || ILb == 42 || ILb == 45 || ILb == 92 || (ILb > 93 && ILb < 97)) { if(nca != null) { if(nca !="VW Kate") { return true; } } else { if(eca !="VW Kate") { return true; } } } } if(Lfa) { if(FQb(lCb)) { return true; } } return false;}function Xqa(NKb){ try { if(NKb == null || NKb.Obb == null || NKb.Pbb == null) { return false; } var Obb = NKb.Obb; var Pbb = NKb.Pbb; var NPb = Obb.node; var RKb = Pbb.node; var IKb = true; var SKb = false; var TKb = NPb; var edb =""; while(TKb != null) { SKb = PCb(TKb); if(SKb || TKb.nodeType == 3) { var LSb = rJb(TKb); if(LSb != null && LSb !="") { if(TKb == RKb && Pbb.offset > -1) { LSb = LSb.substring(0, Pbb.offset); } if(TKb == NPb && Obb.offset > 0) { LSb = LSb.substring(Obb.offset); } if(Nqa(LSb)) { return true; } } } if(SKb) { TKb = lFb(TKb, false, RKb); } else { if(IKb) { TKb = XFb(TKb, true, RKb); } else { TKb = KFb(TKb, false, RKb); } } IKb = false; } } catch(err) { Epa(err); } return false;}function aqa(d){ return d.toString(16);}function bqa(h){ return parseInt(h,16);}function cqa(Eab){ if(Pca) { alert(Eab); } else { Dpa(Eab); }}function $rw_enable_alerts(p_bEnable){ if(typeof(p_bEnable) =="boolean") { Pca = p_bEnable; }}function $rw_uriEncode(Eab){ return encodeURIComponent(Eab);}function eqa(fqa){ if(fqa) { return ((nda||oda)?"https://":"http://"); } else { return ((nda||pda)?"https://":"http://"); }}/*Code designed and developed by Stuart McWilliams.*/SpeechStream.IconParameters = function(){ this.ICON_NAME = 0; this.ICON_ALT_TEXT = 1; this.ICON_OFFSET = 2; this.ICON_IS_TOGGLE = 3; this.ICON_TOGGLE_STATE = 4;};SpeechStream.gqa = new SpeechStream.IconParameters();function iqa(PMb, Fra, sRb, Ywa){ var gqa = SpeechStream.gqa; var fhb = Rea; g_icons[Rea] = new Array(5); g_icons[Rea][gqa.ICON_NAME] = PMb; g_icons[Rea][gqa.ICON_ALT_TEXT] = Fra; g_icons[Rea][gqa.ICON_OFFSET] = sRb; g_icons[Rea][gqa.ICON_IS_TOGGLE] = Ywa; g_icons[Rea][gqa.ICON_TOGGLE_STATE] = false; Rea++; return fhb;}function tqa(PMb){ var i=0; for(i=0; i<g_icons.length; i++) { if(g_icons[i][SpeechStream.gqa.ICON_NAME] == PMb) { return i; } } return -1;}function vqa(i){ var nqa = SpeechStream.gqa; var rdb = g_icons[i][nqa.ICON_NAME]; var TWb = g_icons[i][nqa.ICON_ALT_TEXT]; var hbb = g_icons[i][nqa.ICON_OFFSET]; var rqa = g_icons[i][nqa.ICON_IS_TOGGLE]; var sqa = false; if(rqa) { if(rdb =="hover"+""&& typeof(eba_initial_speech_on) =="boolean"&& eba_initial_speech_on) { g_icons[i][nqa.ICON_TOGGLE_STATE] = true; sqa = true; } } var wqa = 33; if(rdb.equalsTH("submit"+"")) { wqa = 53; } fea += wqa; var xqa = Cra(rdb,"flat"+"", TWb, wqa, hbb, true, sqa); Lva(xqa,"mouseover", function() { if(!Cfa) { if(!g_icons[i][nqa.ICON_TOGGLE_STATE]) { Nwa(rdb, i, rqa); } } }); Lva(xqa,"mouseout", function() { if(!g_icons[i][nqa.ICON_TOGGLE_STATE]) { Rwa(rdb, i, rqa); } }); Lva(xqa,"mousedown", function() { if(!Cfa) { if(!g_icons[i][nqa.ICON_TOGGLE_STATE]) { Vwa(rdb, i, rqa); } } bea = rdb; }); Lva(xqa,"mouseup", function() { if(bea.equalsTH(rdb)) { if($rw_blockClick(rdb)) { return true; } else { var NZb ='$rw_event_'+ rdb +'(null, '+ i +');'; eval(NZb); } } if(!Cfa) { if(!g_icons[i][nqa.ICON_TOGGLE_STATE]) { Nwa(rdb, i, rqa); } } }); return xqa; }function Cra(PMb, Ysa, Fra, Gra, Xwa, pza, Jra){ var zqa = Gra * tqa(PMb); var Ara = 0; if(Jra) { Ara = 66; } var usa = {}; usa["ignore"] ="1"; usa["name"] = PMb + Ysa; usa["width"] =""+ Gra; usa["height"] ="32"; usa["title"] = Fra; usa["unselectable"] ="on"; if(pza) { usa["style"] ="left:"+ zqa +"px; background-position: -"+ Xwa +"px -"+ Ara +"px;"; } else { usa["style"] ="left:"+ zqa +"px; background-position: -"+ Xwa +"px -"+ Ara +"px;"; } var NMb = OMb("span", usa, PMb, null, false); if(pea) { NMb.onselectstart = function() { return false; }; } else { NMb.onmousedown = function() { return false; }; } return NMb;}function Mra(){ fea += 100; nLeftPosition = 33 * Rea; var usa = {}; usa["ignore"] ="1"; if(pea) { usa["style"] ="width:95px;position:relative;left:"+nLeftPosition+"px;top:6px;border: 1px solid;color:#000000;backgroundColor:#f1efe5"; } else { usa["style"] ="width:95px;position:relative;left:"+nLeftPosition+"px;top:6px;border: 1px solid;color:#000000;background-color:#f1efe5"; } var Nra = OMb("select", usa, null, null, true); Lva(Nra,"change", function() { $rw_setSpeedValue(parseInt(Nra.value)); }); var Ora; usa = {}; usa["ignore"] ="1"; usa["value"] =""+ SLOW_SPEED; if(pca == -3 || pca == SLOW_SPEED) { usa["selected"] ="1"; } Ora = OMb("option", usa, null, null, true); Ora.innerHTML ="Slow"; var Pra; usa = {}; usa["ignore"] ="1"; usa["value"] =""+ MEDIUM_SPEED; if(pca == -2 || pca == MEDIUM_SPEED) { usa["selected"] ="1"; } Pra = OMb("option", usa, null, null, true); Pra.innerHTML ="Medium"; var Qra; usa = {}; usa["ignore"] ="1"; usa["value"] =""+ FAST_SPEED; if(pca == -1 || pca == FAST_SPEED) { usa["selected"] ="1"; } Qra = OMb("option", usa, null, null, true); Qra.innerHTML ="Fast"; Nra.appendChild(Ora); Nra.appendChild(Pra); Nra.appendChild(Qra); return Nra;}function Sra(PMb, Ysa){ if(Ysa != null) { var Vra = document.images[PMb + Ysa].style; Vra.visibility ="\x76isib\x6ce"; Vra.display ="\x69nl\x69ne"; Vra.width ="\x32\x36\x70x"; } if(Ysa !="\x6fff") { document.images[PMb +"off"].style.visibility ="\x68idd\x65n"; document.images[PMb +"off"].style.display ="n\x6fne"; document.images[PMb +"off"].style.width ="\x30px"; } if(Ysa !="\x6fn") { document.images[PMb +"on"].style.visibility ="\x68id\x64en"; document.images[PMb +"on"].style.display ="n\x6fn\x65"; document.images[PMb +"on"].style.width ="\x30px"; }}function Wra(PMb, Ysa, ygb, ara){ if(Ysa != null) { var Vra = document.getElementById(PMb); if(PMb =="s\x75bmit") { Vra.width ="\x353px"; } else { Vra.width ="\x333\x70x"; } } if(Ysa =="\x66\x6cat") { UMb(Vra,"backgroundPosition: -"+ ygb +"px 0px;"); } if(Ysa =="hover") { UMb(Vra,"backgroundPosition: -"+ ygb +"px -33px;"); } if(Ysa =="toggle") { UMb(Vra,"backgroundPosition: -"+ ygb +"px -66px;"); } if(Ysa =="mask") { UMb(Vra,"backgroundPosition: -"+ ygb +"px -99px;"); } if(ara) { if(Ysa =="toggleOn") { UMb(Vra,"backgroundPosition: -"+ ygb +"px -66px;"); } if(Ysa =="mask") { UMb(Vra,"backgroundPosition: -"+ ygb +"px -99px;"); } }}function $rw_barInit(){ if(!lra()) { return; } mra(); Mea = isa(); ica = parseInt(fca); if(ica >= 200 && ica < 300) { Fsa(); } if(ica == 300) { Ksa(); } if(ica >= 500 && ica < 600) { fda = true; } if(ica >= 810 && ica <820) { Tda = true; } if(ica >= 1220 && ica <1229) { Wda = true; } if(pea && !Sda) { var WAb = lta(); if(!WAb) { gda = true; if(tca) { } else { cqa("The embedded speech toolbar cannot be added due to invalid html tag markup in this page .\n"+"Try using FireFox or Safari to view this page or contact the page author to notify them of this error."); return; } } } SpeechStream.calculatePaths.initPaths(); if(Uca == 0) { eea = false; } if(eea) { nsa(); } csa(); gsa(); wta(); if((Uca & calculator_icon) == calculator_icon) { $rw_barCalInit(); } if((Uca & generatecache_icon) == generatecache_icon) { $rw_barCacheInit(); } if((Uca & dictionary_icon) == dictionary_icon || (Uca & factfinder_icon) == factfinder_icon || (Uca & translation_icon) == translation_icon) { var cra = IMb("script", ["type","text/javascript","src", $g_strFileLoc +"texthelpSearch.js"]); Mea.appendChild(cra); } if((Uca & highlightcyan_icon) == highlightcyan_icon || (Uca & highlightgreen_icon) == highlightgreen_icon || (Uca & highlightmagenta_icon) == highlightmagenta_icon || (Uca & highlightyellow_icon) == highlightyellow_icon || (Uca & collect_icon) == collect_icon || Gda) { var dra = IMb("script", ["type","text/javascript","src", $g_strFileLoc +"texthelpSS.js"]); Mea.appendChild(dra); } if((Uca & sticky_icon) == sticky_icon || Gda) { var era = IMb("script", ["type","text/javascript","src", $g_strFileLoc +"texthelpSticky.js"]); Mea.appendChild(era); } if((Uca & pronCreate_icon) == pronCreate_icon || (Uca & pronEdit_icon) == pronEdit_icon) { var fra = IMb("script", ["type","text/javascript","src", $g_strFileLoc +"texthelpPron.js"]); Mea.appendChild(fra); } if((Uca & generatecache_icon) == generatecache_icon || (Uca & checkcache_icon) == checkcache_icon) { var gra = IMb("script", ["type","text/javascript","src", $g_strFileLoc +"jquerycombined.js"]); Mea.appendChild(gra); } if(!pea) { var hra = document.getElementsByTagName('input'); for (var i = 0; i < hra.length; i++) { var ira = hra.item(i); var EPb = ira.getAttribute("t\x79pe"); if(EPb != null && EPb =="t\x65xt") { Lva(ira,"\x6douse\x75\x70", Kva); } } } if(kda) { if(!Sda) { EWb(); } } if(typeof(eba_initial_speech_on) =="boolean") { if(eba_initial_speech_on) { $g_bMouseSpeech = true; Xva(true); iVb.enableTouchEvents(eba_initial_speech_on); } }}function lra(){ var Lta = false; if(typeof(BYPASS_BROWSER_CHECK) !="\x75nd\x65fined"&& BYPASS_BROWSER_CHECK =="\x79") { Lta = true; } if(typeof(eba_bypass_dom_check) =="boolean"&& eba_bypass_dom_check) { Lta = true; Sda = true; } if(!Lta) { Lta = Nta(); } return Lta;}function mra(){ Xta(); if(typeof(pktTitleId) !="\x75ndefin\x65d") { cta(); } if(typeof(eba_annotate_storage_url) =="string"|| typeof(eba_annotate_highlight_editor_id) =="string"|| typeof(eba_annotate_note_editor_id) =="string") { bta(); } if(lca == SPANISH && typeof(eba_voice) =="undefined") { eca ="\x53canSoft\x20Pa\x75l\x69na_\x46ul\x6c_\x322k\x48z"; } if(typeof(dtdType) !="undefined") { mea = dtdType; if(dtdType =="xtran") { nea = true; } else if(dtdType =="loose") { oea = true; } } ora(); if(typeof(eba_use_html5) =="boolean") { if(!eba_use_html5) { iVb.forceFlash(); } } else { if( (typeof(Yca) =="string"&& Yca !="speechus.texthelp.com") || (typeof(Zca) =="string"&& Zca !="speechus.texthelp.com") ) { iVb.forceFlash(); } }}function ora(){ var Jsa; try { Jsa = window.location.search; } catch(err) { Jsa =""; } if(typeof(eba_autocache_generate) =="boolean"&& eba_autocache_generate) { Gea = true; } else { var YTb = vra(Jsa,"speechstreamautocache"); Gea = (YTb!= null) && (YTb.toLowerCase() =="true"); } if(!Gea) { if(typeof(eba_autocache_check) =="boolean"&& eba_autocache_check) { Hea = true; } else { var YTb = vra(Jsa,"speechstreamautocachecheck"); Hea = (YTb!= null) && (YTb.toLowerCase() =="true"); } } if(typeof(eba_autocache_no_alert) =="boolean"&& eba_autocache_no_alert) { Jea = true; } else { var YTb = vra(Jsa,"speechstreamautocachenoalert"); Jea = (YTb!= null) && (YTb.toLowerCase() =="true"); } if(Gea || Hea) { Wca = Wca | generatecache_icon; Wca = Wca | checkcache_icon; iVb.forceFlash(); } else { if(typeof(eba_icons) =="number"&& eba_icons > 0) { if( (eba_icons & generatecache_icon) == generatecache_icon || (eba_icons & checkcache_icon) == checkcache_icon ) { iVb.forceFlash(); } } if(typeof(eba_no_display_icons) =="number"&& eba_no_display_icons > 0) { if( (eba_no_display_icons & generatecache_icon) == generatecache_icon || (eba_no_display_icons & checkcache_icon) == checkcache_icon) { iVb.forceFlash(); } } } if(typeof(eba_autocache_callback) =="string") { Iea = eba_autocache_callback; } else { var YTb = vra(Jsa,"speechstreamautocachecallback"); if(YTb != null && YTb.length > 0) { YTb = decodeURIComponent(YTb); Iea = YTb; } } if(Iea && Iea.length > 0) { Iea = YQb(Iea,"\\amp;","&"); } if(typeof(eba_autocache_allspeeds) =="boolean") { Fea = eba_autocache_allspeeds; }}function vra(wra, xra){ var YTb = null; var ura = xra +"="; ura = ura.toLowerCase(); var bhb = ura.length; var Chb; var Dhb; var Bsa; var Csa = wra.toLowerCase(); Chb = Csa.indexOf(ura); while(Chb > 0) { Bsa = wra.charAt(Chb - 1); if(Bsa =="?"|| Bsa =="&") { Dhb = wra.indexOf("&", Chb + bhb); if(Dhb == -1) { YTb = wra.substr(Chb + bhb); } else { YTb = wra.substring(Chb + bhb, Dhb); } break; } else { Chb = Csa.indexOf(ura, Chb + 1); } } return YTb;}function Fsa(){ var Dsa = false; var Esa = false; eda = true; if(jca == null) { jca ="s\x63holast\x69c"; kca ="s\x63h\x6flastic"; } var Gsa = document.getElementsByTagName("meta"); var bhb = Gsa.length; var i; for(i=0; i<bhb; i++ ) { var Isa = Gsa[i]; if(Isa.name != null) { if(Isa.name.toLowerCase() =="assetid"&& Isa.content != null && Isa.content.length > 0) { hca = Isa.content; Esa = true; } else if(Isa.name.toLowerCase() =="pcode"&& Isa.content != null && Isa.content.length > 0) { gca = Isa.content; Dsa = true; } } } var Jsa = window.location.search; Chb = Jsa.indexOf("id="); while(Chb > 0) { Bsa = Jsa.charAt(Chb - 1); if(Bsa =="?"|| Bsa =="&") { Dhb = Jsa.indexOf("&", Chb + 3); if(Dhb == -1) { hca = Jsa.substr(Chb + 3); } else { hca = Jsa.substring(Chb + 3, Dhb); } Chb = -1; } else { Chb = Jsa.indexOf("id=", Chb + 1); } } Chb = Jsa.indexOf("product_id="); while(Chb > 0) { Bsa = Jsa.charAt(Chb - 1); if(Bsa =="?"|| Bsa =="&") { Dhb = Jsa.indexOf("&", Chb + 11); if(Dhb == -1) { gca = Jsa.substr(Chb + 11); Dsa = true; } else { gca = Jsa.substring(Chb + 11, Dhb); Esa = true; } Chb = -1; } else { Chb = Jsa.indexOf("product_id=", Chb + 1); } } if(!Dsa && (gca == null || gca =="")) { gca ="none"; } if(!Esa && (hca == null || hca =="")) { hca ="none"; } }function Ksa(){ gca ="index"; hca ="1"; var Lsa = document.location; if(Lsa != null) { var Hfb = Lsa.pathname; if(Hfb.length > 0) { var Nsa = Hfb.lastIndexOf("/"); if(Nsa > -1) { Hfb = Hfb.substr(Nsa + 1); var Osa = Hfb.indexOf(".html"); if(Osa > -1) { Hfb = Hfb.substring(0, Osa); gca = Hfb; } } } }}function Ssa(){ var Psa; var Qsa; var Rsa; this.initPaths = function() { Psa = eqa(false) + Xca +"/"; Qsa = eqa(true) + Yca +"/"; if(Zca != null) { Rsa = eqa(true) + Zca +"/"; } else { Rsa = null; } Usa(); var Vsa = Wsa(); Xsa(Vsa); }; this.getServerUrl = function() { return Psa; }; this.getSpeechServerUrl = function() { return Qsa; }; this.getSpeechServerUrlBackup = function() { return Rsa; }; function Usa() { if(cca == null) { cca =""; } while(cca.length > 0 && cca.charAt(0) =='/') { cca = cca.substr(1); } while(cca.length > 0 && cca.charAt(cca.length - 1) =='/') { cca = cca.substr(0, cca.length - 1); } if(cca =="") { cca ="SpeechStream"; } } function Wsa() { var Vsa; if(Rca.length > 0) { if(Rca =="latest") { Vsa = cca +"/"+ Rca; } else { Vsa = cca +"/v"+ Rca; } } else { Vsa = cca; } return Vsa; } function Xsa(Ysa) { if(Ysa.length > 0) { $g_strFileLoc = Psa + Ysa +"/"; } else { $g_strFileLoc = Psa; } Efa = dca; try { var Zsa = new String(document.location); if(Zsa.substring(0,4) =="file") { $g_strFileLoc =""; Efa =""; } } catch(ignore) { Epa(ignore); } }}SpeechStream.calculatePaths = new Ssa();function csa(){ var asa; var Bta = Cta(); if(fea > 0) { if(Oca) { if(Afa) { Ofa = true; asa = IMb("div", ["rwTHComp","1","style","visibility:hidden;display:none"],"rwDrag"); } else { asa = IMb("div", ["rwTHComp","1","style","position:relative;visibility:hidden;display:none"],"rwDrag"); } } else { asa = IMb("div", ["rwTHComp","1","style","visibility:hidden;display:none"],"rwDrag"); } var rsa = tsa(); if(!Jca) { rsa.appendChild(ysa()); } rsa.appendChild(Bta); asa.appendChild(rsa); } else { asa = IMb("div", ["rwTHComp","1","visibility","hidden"],"rwDrag"); var rsa = IMb("div", ["rwTHComp","1","visibility","hidden"],"rwDrag"); asa.appendChild(rsa); } Mea.appendChild(asa);}function gsa(){ var Pgb = document.getElementById("WebToSpeech"); if(Pgb == null) { Pgb = document.createElement("span"); Pgb.id ="WebToSpeech"; Mea.appendChild(Pgb); } Gta(SpeechStream.calculatePaths.getServerUrl(), SpeechStream.calculatePaths.getSpeechServerUrl(), SpeechStream.calculatePaths.getSpeechServerUrlBackup() );}function $rw_barDynamicStart(){ Nea = true;}function isa(){ var hsa; hsa = document.getElementById("speechStreamPlaceholder"); if(hsa == null) { if(Nea) { hsa = document.body; } else { if(Oca) { var LSb = document.body; var xIb; while(LSb != null) { if(LSb != null && LSb.nodeType == 1) { xIb = LSb; } LSb = LSb.lastChild; } if(xIb == document.body) { hsa = xIb; } else { var lsa = xIb.parentNode; var msa = document.createElement("span"); msa.id ="speechStreamPlaceholder"; lsa.insertBefore(msa, xIb); hsa = msa; } } else { hsa = document.body; } } } return hsa;}function nsa(){ if(fda) { yMb(document.body,"<link href=\""+ $g_strFileLoc +"rwMain500Bar.css\" type=\"text/css\" rel=\"stylesheet\" />", false); } else { var osa = Uca; if(Vca != -1) { osa = Vca; } var psa = clicktospeak_icon + play_icon + pause_icon; if( (osa | psa) == psa) { yMb(document.body,"<link href=\""+ $g_strFileLoc +"rwMainTHSpeechBar.css\" type=\"text/css\" rel=\"stylesheet\" />", false); } else { var qsa = psa + search_icons + picturedictionary_icon; if( (osa | qsa) == qsa) { yMb(document.body,"<link href=\""+ $g_strFileLoc +"rwMainTHSearchBar.css\" type=\"text/css\" rel=\"stylesheet\" />", false); } else { yMb(document.body,"<link href=\""+ $g_strFileLoc +"rwMainTHFullBar.css\" type=\"text/css\" rel=\"stylesheet\" />", false); } } }}function tsa(){ var rsa; var YMb ="width:"+ fea +"px;"+"visibility:hidden;"; if(rca || Jca) { YMb +="display:none;"; } var usa = {}; usa["style"] = YMb; if(!Jca) { rsa = OMb("div", usa,"rwMainOutline","rwToolbarOutline"); } else { rsa = OMb("div", usa,"rwMainOutline", null); } return rsa;}function ysa(){ var vsa; var SWb; var xsa; if(eba_logo_url == null) { if(fda || Fda) { SWb =""; xsa = null; } else { SWb ="Click here to go to www.texthelp.com"; xsa ="www.texthelp.com"; } } else if(eba_logo_url =="none") { SWb =""; xsa = null; } else { SWb ="Click here to go to "+ eba_logo_url; xsa = eba_logo_url; if(xsa.substr(0, 7) =="http://") { xsa = xsa.substr(7); } else if (xsa.substr(0, 8) =="https://") { xsa = xsa.substr(8); } } vsa = IMb("div", null,"rwDragMe","rwToolbarCaption"); var zsa; if(xsa == null) { usa = {}; usa["border"] ="0"; usa["ignore"] ="1"; usa["align"] ="right"; if(fda) { usa["src"] = $g_strFileLoc +"rwimgs500/logo500.gif"; usa["style"] ="margin: 5px; cursor:default;"; } else { usa["src"] = $g_strFileLoc +"rwimgs/logo.gif"; usa["style"] ="cursor:default"; } usa["title"] =""; usa["alt"] =""; zsa = OMb("img", usa, null, null); vsa.appendChild(zsa); } else { usa = {}; usa["border"] ="0"; usa["ignore"] ="1"; usa["align"] ="right"; if(fda) { usa["src"] = $g_strFileLoc +"rwimgs500/logo500.gif"; usa["style"] ="margin: 5px;"; } else { usa["src"] = $g_strFileLoc +"rwimgs/logo.gif"; } usa["title"] = SWb; usa["alt"] = SWb; zsa = OMb("img", usa, null, null); var Ata; usa = {}; usa["href"] = eqa(false) + xsa; usa["target"] ="new"; if(!zea) { usa["style"] ="cursor:hand"; } Ata = OMb("a", usa, null, null); Ata.appendChild(zsa); vsa.appendChild(Ata); } return vsa;}function Cta(){ var Bta; if(Jca) { Bta = IMb("div", null, null,"rwToolbarBarNoBorder"); } else { Bta = IMb("div", null, null,"rwToolbarBar"); } var Dta = IMb("div", null,"rwToolbarList", null); $rw_setIconsToLoad(Uca); var Eta = false; for (var i = 0; i < Rea; i++) { Eta = true; Dta.appendChild(vqa(i)); } if((Uca & selectSpeed_icon) == selectSpeed_icon) { Eta = true; Dta.appendChild(Mra()); } if(Eta && fea< 110) { fea = 110; } else if(!Eta) { fea = 0; } Bta.appendChild(Dta); return Bta;}function Gta(Hta, Ita, Jta){ var Fta = {}; if(jca != null && kca != null) { Fta.userName = jca; Fta.userPassword = kca; } else { } Fta.lessonServerLoc = Hta; Fta.speechServerLoc = Ita; Fta.speedValue = pca; if(Tca >= 3) { Fta.useServices ="true"; } else if(Tca == -1) { if(ica == 410 || ica == 1210 || ica == 500 || ica == 1220 || Sda) { Fta.useServices ="false"; } else { Fta.useServices ="false"; } } else { Fta.useServices ="false"; iVb.forceFlash(); } if(aca != null) { Fta.translateServerLoc = aca; } if(bca != null) { Fta.dictionaryServerLoc = bca; } if(tca || uca ) { Fta.cacheMode ="true"; if(Jta != null) { Fta.cacheLiveFallover ="true"; } } if(Jta != null) { Fta.speechServerBackupLoc = Jta; } if(fca != null && gca != null && hca != null) { Fta.custID = fca; Fta.bookID = gca; Fta.pageID = hca; } if(Cda > -1) { Fta.cacheCount = Cda; } if(Dda > -1) { Fta.cacheTimeDelay = Dda; } Fta.locale = oca; Fta.speechName = eca; if(Qda != null && Rda != null) { Fta.searchString = Qda; Fta.replaceString = Rda; } if(Efa == null || Efa =="") { Efa = eqa(false) + Xca +"/"; } else if(Efa.charAt(0) =='.') { if(Efa.charAt(Efa.length -1) !='/') { Efa = Xca +"/"; } } else { if(Efa.charAt(0) !='/') { Efa ="/"+ Efa; } if(Efa.charAt(Efa.length -1) !='/') { Efa = Efa +"/"; } Efa = eqa(false) + Xca + Efa; } if(nda) { Fta.SSLSpeech ="true"; Fta.SSLToolbar ="true"; } else { if(oda) { Fta.SSLSpeech ="true"; } if(pda) { Fta.SSLToolbar ="true"; } } if(pea && (nda||oda)) { Fta.IESSL ="true"; } Vca = Uca; Uca = Uca | Wca; if( (Uca & pronCreate_icon) == pronCreate_icon || (Uca & pronEdit_icon) == pronEdit_icon || Eda) { Fta.cacheBuster ="true"; } var aVb = {}; aVb.allowScriptAccess ="always"; aVb.movie = Efa +'WebToSpeech'+ Sca +'.swf'; aVb.quality="high"; aVb.bgcolor="#ffffff"; SpeechStream.m_flashVars = Fta; if(iVb.doesSupportHtml5()) { iVb.getConnector().initialise(Fta, Hta, Ita, Jta); } else { try { if(tea) { g_strAmp="&amp;"; } swfobject.embedSWF(Efa +'WebToSpeech'+ Sca +'.swf',"WebToSpeech","1","1","9.0.0", false, Fta, aVb); } catch(err) {g_strAmp="&amp;"; swfobject.embedSWF(Efa +'WebToSpeech'+ Sca +'.swf',"WebToSpeech","1","1","9.0.0", false, Fta, aVb); } }}function Nta(){ var Lta = false; var Mta = navigator.userAgent; if(Mta.indexOf("MSIE 6") > -1) { Lta = true; } else if(Mta.indexOf("MSIE 7") > -1) { Lta = true; } else if(Mta.indexOf("MSIE 8") > -1) { Lta = true; } else if(Mta.indexOf("MSIE 9") > -1) { Lta = true; } else if(Mta.indexOf("MSIE 10") > -1) { Lta = true; } else if(Mta.indexOf("Safari") > -1) { Lta = true; var FAb = navigator.appVersion; var GAb = FAb.lastIndexOf("/"); FAb = FAb.substring(GAb + 1); try { var HAb = parseFloat(FAb); if(HAb < 300 ) { cqa("You are using an older version of Safari that is not "+"support by the embedded bar in this page.  "+"The bar may not work at all or work erratically, "+"it is recommended that you upgrade to the latest version of Safari."); } } catch(err) { Epa(err); } } else if(Mta.indexOf("Firefox") > -1) { Lta = true; var qWb = Mta.indexOf("Firefox") + 8; if(qWb < Mta.length) { var Sta = Mta.substr(qWb); var fwa = Sta.substr(0, Sta.indexOf(".")); try { var Uta = parseInt(fwa); if(Uta < 2) { if(Uta == 1) { Sta = Sta.substr(fwa.length + 1); var gwa = Sta.substr(0, Sta.indexOf(".")); Uta = parseInt(gwa); } else { Uta = 0; } if(Uta < 5) { cqa("You are using an older version of Firefox that is not "+"support by the embedded bar in this page.  "+"The bar may not work at all or work erratically, "+"it is recommended that you upgrade to the latest version of Firefox."); } } } catch(err) { Epa(err); } } } else if(Mta.indexOf("ipad") > -1 || Mta.indexOf("ipod") > -1 || Mta.indexOf("iphone") > -1) { Lta = true; } else { var Wta = navigator.platform; if(Wta.indexOf("mac") > -1) { cqa("The browser you are using is not supported by the embedded bar that should be displayed in this page.  "+"To view this page with the bar displayed please use Firefox (version 2.0.0.1 or later)."); } else { cqa("The browser you are using is not supported by the embedded bar that should be displayed in this page.  "+"To view this page with the bar displayed please use either Firefox (version 2.0.0.1 or later) "+"or Internet Explorer (version 7 or later)."); } } return Lta;}function Xta(){ if(typeof(eba_use_container) =="boolean") { Oca = eba_use_container; } if(typeof(eba_allow_alerts_flag) =="boolean") { Pca = eba_allow_alerts_flag; } if(typeof(eba_alerts) =="boolean") { Pca = eba_alerts; } if(typeof(eba_no_title) =="boolean") { Jca = eba_no_title; } if(typeof(eba_noTitleFlag) =="boolean") { Jca = eba_noTitleFlag; } if(typeof(eba_hidden_bar) =="boolean") { rca = eba_hidden_bar; } if(typeof(eba_continuous_reading) =="boolean") { hda = eba_continuous_reading; if(!hda) { sda = false; } } if(typeof(eba_ignore_buttons) =="boolean") { sca = eba_ignore_buttons; } if(typeof(eba_speak_selection_by_sentence) =="boolean") { if(hda) { sda = eba_speak_selection_by_sentence; } else { sda = false; } } if(typeof(eba_page_complete_after_selection) =="boolean") { tda = eba_page_complete_after_selection; } if(typeof(eba_speechCacheGenerateFlag) =="boolean") { tca = eba_speechCacheGenerateFlag; if(tca) { SpeechStream.cacheMode.mode = SpeechStream.cacheMode.CACHE_BUILDING_MODE; } } if(typeof(eba_cache_building_mode) =="boolean") { tca = eba_cache_building_mode; if(tca) { SpeechStream.cacheMode.mode = SpeechStream.cacheMode.CACHE_BUILDING_MODE; } } var Yta = false; if(typeof(eba_speechCacheFlag) =="boolean") { uca = eba_speechCacheFlag; Yta = true; } if(typeof(eba_speech_cache_flag) =="boolean") { uca = eba_speech_cache_flag; Yta = true; } if(typeof(eba_cache_mode) =="boolean") { uca = eba_cache_mode; Yta = true; } if(Yta && uca) { SpeechStream.cacheMode.mode = SpeechStream.cacheMode.CACHE_ONLY; } if(typeof(eba_cache_live_generation) =="boolean") { vca = eba_cache_live_generation; if(vca) { SpeechStream.cacheMode.mode = SpeechStream.cacheMode.CACHE_WITH_LIVE_SERVER; } } if(typeof(eba_split_cache_path) =="boolean") { wca = eba_split_cache_path; } if(typeof(eba_autoCachePage) =="boolean") { xca = eba_autoCachePage; } if(typeof(eba_voice_from_lang_flag) =="boolean") { mca = eba_voice_from_lang_flag; } if(typeof(eba_bubble_mode) =="boolean") { kda = eba_bubble_mode; } if(typeof(eba_bubble_freeze_on_shift_flag) =="boolean") { lda = eba_bubble_freeze_on_shift_flag; } if(typeof(eba_hover_flag) =="boolean") { Fca = !eba_hover_flag; } if(typeof(eba_ssl_flag) =="boolean") { nda = eba_ssl_flag; oda = nda; pda = nda; } if(typeof(eba_ssl_speech) =="boolean") { oda = eba_ssl_speech; } if(typeof(eba_ssl_toolbar) =="boolean") { pda = eba_ssl_toolbar; } if(typeof(eba_clientside_pronunciation) =="boolean") { if(eba_clientside_pronunciation) { if(typeof(eba_check_pronunciation_before_cache) =="boolean") { if(eba_check_pronunciation_before_cache) { SpeechStream.pronunciation.mode = SpeechStream.pronunciation.CLIENT_PRONUNCIATION_FOR_LIVE_SERVER; } else { SpeechStream.pronunciation.mode = SpeechStream.pronunciation.CLIENT_PRONUNCIATION_FOR_OFFLINE_CACHE; } } else { SpeechStream.pronunciation.mode = SpeechStream.pronunciation.CLIENT_PRONUNCIATION_FOR_OFFLINE_CACHE; } } else { SpeechStream.pronunciation.mode = SpeechStream.pronunciation.SERVER_PRONUNCIATION; } } else { if(typeof(eba_check_pronunciation_before_cache) =="boolean") { if(eba_check_pronunciation_before_cache) { SpeechStream.pronunciation.mode = SpeechStream.pronunciation.CLIENT_PRONUNCIATION_FOR_LIVE_SERVER; } else { SpeechStream.pronunciation.mode = SpeechStream.pronunciation.SERVER_PRONUNCIATION; } } } if(typeof(eba_alter_browser_for_consistency) =="boolean") { rda = eba_alter_browser_for_consistency; } if(typeof(eba_cache_selection) =="boolean") { Ada = eba_cache_selection; } if(typeof(eba_cache_user_text) =="boolean") { Bda= eba_cache_user_text; } if(typeof(eba_skip_on_error) =="boolean") { if(eba_skip_on_error) { SpeechStream.actionOnError.action = SpeechStream.actionOnError.SKIP; } } if(typeof(eba_cache_buster) =="boolean") { if(eba_cache_buster) { Eda = true; } } if(typeof(eba_handle_radio_checkbox_click) =="boolean") { if(eba_handle_radio_checkbox_click) { vda = true; } } if(typeof(eba_inline_img) =="boolean") { jda = eba_inline_img; } if(typeof(eba_ignore_hidden) =="boolean") { dfa = eba_ignore_hidden; } if(typeof(eba_limit_cookies) =="boolean") { Xda = eba_limit_cookies; } if(typeof(eba_math) =="boolean") { Lfa = eba_math; } if(typeof(eba_maths) =="boolean") { Lfa = eba_maths; } if(typeof(eba_icons) =="number") { Uca = eba_icons; } if(typeof(eba_no_display_icons) =="number") { Wca = eba_no_display_icons; } if(typeof(eba_language) =="number") { lca = eba_language; if(lca == 3) { lca = 2; } else if(lca > 3 || lca < 0) { lca = 0; } if(mca) { if(eba_language >= 0 && eba_language < faa.length) { eca = faa[eba_language]; } } } if(typeof(eba_speedValue) =="number") { pca = eba_speedValue; } if(typeof(eba_speed_value) =="number") { pca = eba_speed_value; } if(typeof(eba_reading_age) =="number") { $rw_setReadingAge(eba_reading_age); } if(typeof(eba_speed_offset) =="number") { pca += eba_speed_offset; } if(typeof(eba_cache_retry) =="number") { Cda = eba_cache_retry; } if(typeof(eba_cache_retry_timeout) =="number") { Dda = eba_cache_retry_timeout; } if(typeof(eba_mp3_limit) =="number") { if(eba_mp3_limit < 1000) { Vda = Vda * 1024; } else { Vda = eba_mp3_limit; } } if(typeof(eba_max_word_count =="number")) { eCb = eba_max_word_count; } if(typeof(eba_date_filter_mode =="number") || typeof(eba_date_filter_mode) =="string") { Uia.setMode(eba_date_filter_mode); } if(typeof(eba_server_version) =="string") { Rca = eba_server_version; } if(typeof(eba_serverVersion) =="string") { Rca = eba_serverVersion; } if(typeof(eba_client_version) =="string") { if(eba_client_version !="latest") { Sca = eba_client_version; } } if(typeof(eba_clientVersion) =="string") { if(eba_clientVersion !="latest") { Sca = eba_clientVersion; } } if(typeof(eba_server) =="string") { Xca = eba_server; if(Xca.length > 6 && Xca.substring(0, 7) =="http://") { Xca = Xca.substring(7); } else if(Xca.length > 7 && Xca.substring(0, 8) =="https://") { Xca = Xca.substring(8); } } if(typeof(eba_speech_server) =="string") { Yca = eba_speech_server; } if(typeof(eba_speechServer) =="string") { Yca = eba_speechServer; } if(typeof(eba_speech_server_backup) =="string") { Zca = eba_speech_server_backup; } if(typeof(eba_speechServerBackup) =="string") { Zca = eba_speechServerBackup; } if(typeof(eba_translate_server) =="string") { aca = eba_translate_server; } if(typeof(eba_dictionary_server) =="string") { bca = eba_dictionary_server; } var Zta = false; var ata = null; if(Yca != null && Yca =="speechus.texthelp.com") { Zta = true; ata = Yca; } else if(Zca != null && Zca =="speechus.texthelp.com") { Zta = true; ata = Zca; } if(Zta) { if (Rca !=null && Rca !="latest") { if(parseInt(Rca) > 181 && aca == null) { aca = ata; } if(parseInt(Rca) > 181 && bca == null) { bca = ata; } } else if(Rca =="latest") { if(aca == null) { aca = ata; } if( bca == null) { bca = ata; } } } if(typeof(eba_folder) =="string") { cca = eba_folder; } if(typeof(eba_client_folder) =="string") { dca = eba_client_folder; } if(typeof(eba_clientFolder) =="string") { dca = eba_clientFolder; } if(typeof(eba_voice) =="string") { eca = eba_voice; if(iVb != null && iVb.getConnector() != null && iVb.getConnector().setVoiceName) { iVb.getConnector().setVoiceName(eca); } if(eca =="ScanSoft Daniel_Full_22kHz") { faa[ENG_UK] = eca; } else if(eca =="ScanSoft Tom_Full_22kHz") { faa[ENG_US] = eca; } else if(eca =="ScanSoft Jill_Full_22kHz") { faa[ENG_US] = eca; } } if(typeof(eba_custId) =="string") { fca = eba_custId; } if(typeof(eba_cust_id) =="string") { fca = eba_cust_id; } if(typeof(eba_bookId) =="string") { gca = eba_bookId; } if(typeof(eba_book_id) =="string") { gca = eba_book_id; } if(typeof(eba_pageId) =="string") { hca = eba_pageId; } if(typeof(eba_page_id) =="string") { hca = eba_page_id; } if(fca == null || fca.length == 0 || gca == null || gca.length == 0 || hca == null || hca.length == 0) { SpeechStream.pronunciation.mode = SpeechStream.pronunciation.NONE; SpeechStream.cacheMode.mode = SpeechStream.cacheMode.NONE; } if(typeof(eba_loginName) =="string") { jca = eba_loginName; } if(typeof(eba_login_name) =="string") { jca = eba_login_name; } if((typeof(eba_loginPassword) =="string") || (typeof(eba_login_password) =="string")) { if(typeof(eba_loginPassword) =="string") { kca = eba_loginPassword; } if(typeof(eba_login_password) =="string") { kca = eba_login_password; } } else { kca = jca; } if(typeof(eba_locale) =="string") { oca = eba_locale; } if(typeof(eba_speech_range_colors) =="string") { Kca = eba_speech_range_colors; } if(typeof(eba_speech_range_colours) =="string") { Kca = eba_speech_range_colours; } if(typeof(eba_speech_word_colors) =="string") { Lca = eba_speech_word_colors; } if(typeof(eba_speech_word_colours) =="string") { Lca = eba_speech_word_colours; } if(typeof(eba_mp3_id) =="string") { Uda = eba_mp3_id; } if(typeof(eba_search_speech_server) =="string") { Qda = eba_search_speech_server; } if(typeof(eba_replace_speech_server) =="string") { Rda = eba_replace_speech_server; } if(typeof(eba_play_start_point) =="string") { Mca = eba_play_start_point; } if(typeof(eba_speech_stream_server_version) =="string"|| typeof(eba_speech_stream_server_version) =="integer") { if(typeof(eba_speech_stream_server_version) =="integer") { Tca = eba_speech_stream_server_version; } else { try { Tca = parseInt(eba_speech_stream_server_version); } catch(e) { } } } else { if(eba_cust_id =="810") { Tca = 3; } } if(typeof(eba_symbol_text) =="string") { sPb(eba_symbol_text); }}function bta(){ if(gca == null) { cqa("Persistent annotations is enabled but no book id was provided, "+"this feature will not work in this page."); return; } if(hca == null) { cqa("Persistent annotations is enabled but no page id was provided, "+"this feature will not work in this page."); return; } Gda = true; if(typeof(eba_annotate_note_editor_id) =="string") { Hda = eba_annotate_note_editor_id; } if(typeof(eba_annotate_highlight_editor_id) =="string") { Ida = eba_annotate_highlight_editor_id; } if(typeof(eba_annotate_note_reader_id) =="string") { Jda = eba_annotate_note_reader_id; } if(typeof(eba_annotate_highlight_reader_id) =="string") { Kda = eba_annotate_highlight_reader_id; } if(typeof(eba_annotate_persist_notes) =="boolean"&& Hda !="*") { Lda = eba_annotate_persist_notes; } if(typeof(eba_annotate_persist_highlights) =="boolean"&& Ida !="*") { Mda = eba_annotate_persist_highlights; } if(typeof(eba_annotate_storage_url) =="string") { Nda = eba_annotate_storage_url; if(typeof(eba_server) =="undefined") { Xca = Nda; } } else { if(uca) { if(Zca != null) { Nda = Zca; } else { Nda = Xca; } } else { Nda = Yca; } } if(typeof(eba_annotate_confirm_delete_note) =='boolean') { Pda = eba_annotate_confirm_delete_note; } if(Lda) { if((Uca & sticky_icon) != sticky_icon ) { Uca += sticky_icon; } }}function cta(){ Fda = true; Gda = true; if(typeof(pktIsTeacher) =="boolean") { Lda = pktIsTeacher; } if(typeof(pktTitleId) =="string") { gca = pktTitleId; } if(typeof(pktPageId) =="string") { hca = pktPageId; } if(typeof(pktStudentId) =="string") { if(!Lda) { Mda = true; } Ida = pktStudentId; Jda = pktStudentId; } if(typeof(pktTeacherId) =="string") { Hda = pktTeacherId; Kda = pktTeacherId; } if(typeof(pktStorageUrl) =="string") { Nda = pktStorageUrl; if(typeof(eba_server) =="undefined") { Xca = Nda; } } else { Nda = Xca; } if(typeof(pktSpeechServerUrl) =="string") { Yca = pktSpeechServerUrl; } if(typeof(pktVoice) =="string") { eca = pktVoice; } if(typeof(pktCustCode) =='string') { Oda = pktCustCode; } if(typeof(pktConfirmOnDelete) =='boolean') { Pda = pktConfirmOnDelete; } if(Lda) { if((Uca & sticky_icon) != sticky_icon ) { Uca += sticky_icon; } }}function lta(){ if (top.frames.length > 0) { var i = 0; var bhb = top.frames.length; for (i = 0; i < bhb; i++) { var Cua = top.frames[i]; try { var xta = Cua.document; var b = nta(xta.body); if(!b) { return false; } } catch(e) { Epa(e); } } } if(document.body != null) { return nta(document.body); } else { return true; }}function nta(lRb){ if(lRb.firstChild != null) { var wQb = lRb.firstChild; var udb = wQb.ownerDocument.body; try { while(wQb != null && wQb != udb) { wQb = FGb(wQb); } } catch(er) { return false; } } return true;}var ita = 0;var jta = 500;var kta = false;function $rw_versionCheck(){ try { Pea = iVb.doesSupportSpeech(); $rw_setSpeedValue(pca); } catch (err) { Pea = false; } if(!Pea) { ita++; if(ita < jta) { setTimeout("$rw_versionCheck();", 100); } else { if(!kta) { if(tca) { } else { cqa("A necessary flash component failed to load.  This page will not work as intended.\n"+"Could not load file from: "+ Efa +'WebToSpeech'+ Sca +'.swf'); } kta = true; } } }}var pta = -1;function $rw_getFlashVersion(){ if(pta < 0) { try { var flash = iVb.getConnector(); var sVb = flash.getVersion(); pta = parseInt(sVb); } catch(err) { pta = parseInt(Sca); Epa(err); } } return pta;}function sta(tta, vta){ if(tta == null || vta == null) { return false; } if(tta = vta) { return true; } if(tta.frames.length > 0) { var i; for(i=0; i<tta.frames.length; i++) { if(vta == tta.frames[i]) { return true; } else { if(tta.frames[i].length > 0) { if(sta(tta.frames[i], vta)) { return true; } } } } return false; } else { return false; }}function wta(){ Lva(window,'scroll', Sza); Lva(window,'resize', Sza); Lva(window,'scroll', Uza); Lva(window,'resize', Uza); if(!Nea) { Lva(window,'load', rw_onload); } Lva(window,'beforeunload', iwa); Lva(document,'click', ova); Lva(document,'mouseout', Lwa); Lva(document,'mouseup', Jwa); Lva(document,'mousemove', Dwa); Lva(document,'mouseover', rva); Lva(document,'mousedown', kva); Lva(document,'dragstart', lva); Lva(document,'keyup', jva);}function $rw_addEventsToFrame(p_frame){ try { var xta = p_frame.document; Lva(xta,'mouseout', Lwa); Lva(xta,'mouseup', Jwa); Lva(xta,'click', ova); Lva(xta,'mousemove', Dwa); Lva(xta,'mouseover', rva); Lva(xta,'mousedown', kva); Lva(xta,'dragstart', lva); Lva(xta,'keyup', jva); } catch(er) { } if(p_frame.frames.length > 0) { var i = 0; for(i=0;i<p_frame.frames.length; i++) { $rw_addEventsToFrame(p_frame.frames[i]); } }}function $rw_pageSetup(){ $rw_tagSentencesWithFrames(window); if(window.frames.length > 0) { var i = 0; try { var bhb = top.frames.length; for (i = 0; i < bhb; i++) { $rw_addEventsToFrame(window.frames[i]); } } catch(e) { Epa(e); } } vza = document.getElementById('rwDrag').style; vza.display ="inline"; ita = 0; $rw_versionCheck(); rw_initialPronunciationLoad();}function rw_initialPronunciationLoad(){ if(!Pea) { if(ita < jta) { setTimeout("rw_initialPronunciationLoad();", 109); } return; } Jfa = false; var Aua = false; if(Pea && typeof(DTb) =="function") { if(SpeechStream.pronunciation.fetchData()) { Aua = true; } } if(Aua) { if(fca != null && fca.length > 0 && gca != null && gca.length > 0 && hca != null && hca.length > 0) { Kfa = true; ASb.deleteAll(); DTb(); } }}function $rw_tagSentencesWithFrames(p_frame){ if(typeof(p_frame) =="undefined") { p_frame = window; } if(p_frame.document && p_frame.document.body) { $rw_tagSentences(p_frame.document.body); } if (p_frame.frames.length > 0) { var i = 0; var bhb = p_frame.frames.length; for (i = 0; i < bhb; i++) { try { var Cua = p_frame.frames[i]; if(Cua.frames.length > 0) { $rw_tagSentencesWithFrames(Cua.frames); } else { if(Cua.document && Cua.document.body) { $rw_tagSentences(Cua.document.body); } } } catch(err) { } } }}var Dua ="[\\x21\\x2E\\x3F\\x3A]";var Eua = /[\n\r\t ]{2,}/g;function $rw_tagSentences(lRb){ if(typeof(lRb) =='undefinded'|| lRb == null) { lRb = document.body; } try { Eca = true; var Fua = false; var Gua = false; if(ica >= 200 && ica < 300) { Gua = true; } eda = Gua; var TKb = lRb; while(TKb != null) { if(TKb.nodeType == 3) { var XKb = TKb.parentNode.tagName.toLowerCase(); if(XKb =="textarea") { TKb = KFb(TKb, false, null); continue; } var edb = TKb.nodeValue; var Kua = edb.trimSpaceTH(); var nua = Kua.length > 0; if(Tda && XKb =="a") { nua = false; } if(!nua) { if(Gda || uca && (eda || Fda || rda) ) { if(Fua) { if(!Tda) { TKb.nodeValue =" "; } Fua = false; TKb = KFb(TKb, false, null); } else { var LSb = TKb; TKb = KFb(TKb, false, null); if(!Tda) { LSb.parentNode.removeChild(LSb); } } } else { TKb = KFb(TKb, false, null); } } else { if(!Tda) { if(Gda || uca && (eda || Fda || rda) ) { if(Kua.length < edb.length) { var zXb = false; Kua = edb.trimSpaceStartTH(); if((edb.length - Kua.length) > 0) { if(Fua) { edb =" "+ Kua; } else { edb = Kua; } zXb = true; } Kua = edb.trimSpaceEndTH(); if((edb.length - Kua.length) > 1) { edb = Kua +" "; Fua = false; zXb = true; } Kua = edb.replace(Eua," "); if(Kua.length < edb.length) { edb = Kua; zXb = true; } if(zXb) { TKb.nodeValue = edb; } } } } var fhb; fhb = edb.search(Dua); var Pua = (TKb.parentNode.getAttribute("texthelpSkip") != null); var Qua = TKb; if(fhb > -1 && fhb < (edb.length - 1)) { var Rua = true; while(true) { var jBb = wua(edb, fhb, TKb); if(jBb) { break; } else { var Tua = edb.substring(fhb + 1); var qWb = Tua.search(Dua); if(qWb > -1) { fhb = fhb + 1 + qWb; } else { Rua =false; break; } } } if(Rua) { var igb = edb.substring(0, fhb + 1); var MJb = edb.substring(fhb + 1); var span = document.createElement("span"); span.setAttribute(eaa,"1"); var PJb = document.createTextNode(igb); var QJb = document.createTextNode(MJb); var gua = TKb.parentNode; gua.insertBefore(QJb, TKb); gua.insertBefore(span, QJb); span.appendChild(PJb); gua.removeChild(TKb); TKb = QJb; Qua = PJb; } else { if(TKb.previousSibling != null || TKb.nextSibling != null || Pua) { var span = document.createElement("span"); span.setAttribute(eaa,"1"); var PJb = document.createTextNode(edb); var gua = TKb.parentNode; gua.insertBefore(span, TKb); span.appendChild(PJb); gua.removeChild(TKb); TKb = PJb; } Qua = TKb; TKb = KFb(TKb, false, null); } } else { if(TKb.previousSibling != null || TKb.nextSibling != null || Pua) { var span = document.createElement("span"); span.setAttribute(eaa,"1"); var PJb = document.createTextNode(edb); var gua = TKb.parentNode; gua.insertBefore(span, TKb); span.appendChild(PJb); gua.removeChild(TKb); TKb = PJb; } Qua = TKb; TKb = KFb(TKb, false, null); } if(Gda || uca && (eda || Fda || rda) ) { var hua = Qua.nodeValue; var iua = Qua.nodeValue.length; if(iua > 0 && hua.charCodeAt(iua - 1) == 32) { Fua = false; } else { Fua = true; } } } } else if(TKb.nodeType == 1) { if(Gda) { if(!TJb(TKb)) { if(gJb(TKb)) { Fua = false; } } else if(TKb.tagName.toLowerCase() =="img") { Fua = true; } } if(Gua) { if(TKb.tagName.toLowerCase() =="img") { var wJb = TKb.getAttribute("title"); TKb.setAttribute("msg", wJb); } } else if(jda) { if(TKb.tagName.toLowerCase() =="img") { var wJb = TKb.getAttribute("msg"); if(!(wJb != null && wJb.length > 0)) { wJb = TKb.getAttribute("title"); if(wJb != null && wJb.length > 0) { TKb.setAttribute("msg", wJb); } else { wJb = TKb.getAttribute("alt"); TKb.setAttribute("msg", wJb); } } } } var rua = TKb.getAttribute(caa); var sua = TKb.getAttribute(baa); if(TKb.tagName.toLowerCase() =="pre"|| (rua != null && rua.length > 0) || (sua != null && sua.length > 0)) { TKb = lFb(TKb, false, null); } else { TKb = KFb(TKb, false, null); } } else { TKb = KFb(TKb, false, null); } } if(Gda) { TKb = lRb; while(TKb != null) { if(TKb.nodeType==3) { var nua = TKb.nodeValue.trimTH().length > 0; if(nua) { var oua = TKb.parentNode; var pua = oua.getAttribute("id"); if(pua == null || pua.length == 0) { oua.id ="rwTHnoteMarker"+ Hfa; ++Hfa; } } TKb = KFb(TKb, false, null); } else if(TKb.nodeType == 1) { if(pdb(TKb)) { var qua = TKb.getAttribute("id"); if(qua == null || qua.length == 0) { TKb.id ="rwTHnoteMarker"+ Hfa; ++Hfa; } } var rua = TKb.getAttribute(caa); var sua = TKb.getAttribute(baa); if( TKb.tagName.toLowerCase() =="pre"|| (rua != null && rua.length > 0) || (sua != null && sua.length > 0)) { TKb = lFb(TKb, false, null); } else { TKb = KFb(TKb, false, null); } } else { TKb = KFb(TKb, false, null); } } } } catch(exception) { Dpa("Error in $rw_tagSentences: "+ exception); } Eca = false; dda = true;}function wua(Nhb, Ohb, qdb){ var Jhb = true; var bhb = Nhb.length; if(bhb > Ohb + 1) { var Lhb = Nhb.charCodeAt(Ohb + 1); if(Ypa(Lhb)) { Jhb = false; } if(Lfa && Lhb == 61) { if(FQb("!=")) { if(qdb.nodeValue.charAt(Ohb) =='!') { Jhb = false; } } } } if(Jhb) { if(qdb.nodeValue.charAt(Ohb) !='.') { return true; } } if(Jhb) { if(Ohb > 1) { var Qhb = Nhb.substring(Ohb - 2, Ohb); if( (Qhb.charAt(0) ==' '|| Qhb.charAt(0) =='\n'|| Qhb.charAt(0) =='\r'|| Qhb.charAt(0) =='\t') && Qhb.charCodeAt(1) > 63 && Qhb.charCodeAt(1) < 91) { Jhb = false; } else if(Qhb.charAt(0) =='.'&& Ypa(Qhb.charCodeAt(1))) { Jhb = false; } else { if(Qhb =="Dr"|| Qhb =="Mr"|| Qhb =="Ms"|| Qhb =="Av"|| Qhb =="St"|| Qhb =="eg") { Jhb = false; } else if(Ohb > 2) { var Rhb = Nhb.substring(Ohb - 3, Ohb); if(Rhb =="Mrs"|| Rhb =="etc"|| Rhb =="i.e"|| Rhb =="P.O"|| Rhb =="PhD") { Jhb = false; } else if(Ohb > 3) { var Shb = Nhb.substring(Ohb - 4, Ohb); if(Shb =="Ph.D") { Jhb = false; } } } } } else { try { if(qdb != null && Ohb == 0) { if(Wda) { var VDb = null; if(qdb.previousSibling != null && qdb.previousSibling.nodeType == 1) { VDb = qdb.previousSibling; } else if(qdb.parentNode.previousSibling != null && qdb.parentNode.previousSibling.nodeType == 1) { VDb = qdb.parentNode.previousSibling; } else { var TKb = qdb.parentNode; while(TKb != null && TKb.parentNode.tagName.toLowerCase() =="span") { if(TKb.parentNode.previousSibling != null && TKb.parentNode.previousSibling.nodeType == 1) { VDb = TKb.parentNode.previousSibling; break; } TKb = TKb.parentNode; } } if(VDb != null) { if(VDb.nodeType == 1 && VDb.tagName.toLowerCase() =="span") { wJb = VDb.getAttribute(("class")); RDb = VDb.getAttribute(("className")); var TDb = false; TDb = (wJb != null && (wJb.toLowerCase() =="x2"|| wJb.toLowerCase() =="x3")) || (RDb != null && (RDb.toLowerCase() =="x2"|| RDb.toLowerCase() =="x3")); if(TDb) { if(VDb.lastChild.nodeType == 1) { while(VDb != null && VDb.lastChild != null && VDb.lastChild.nodeType != 3) { VDb = VDb.lastChild; } } if(VDb != null && VDb.lastChild.nodeType == 3) { return wua(VDb.lastChild.nodeValue + Nhb, VDb.lastChild.nodeValue.length, null); } else { } } } } } else { var Qbb = mGb(qdb, true, null); if(Qbb != null && Qbb.nodeType ==3) { if(!wua(Qbb.nodeValue + Nhb, Qbb.nodeValue.length, null)) { return false; } } } } } catch(err) { } } } if(Jhb && eba_abbr_array != null && typeof(eba_abbr_array) =="object"&& typeof(eba_abbr_array.length) =="number") { var Thb = eba_abbr_array.length; var i; var Uhb; for(i=0; i< Thb; i++) { Uhb = eba_abbr_array[i]; if(typeof(Uhb) =="string") { if(Ohb - Uhb.length > -1) { if(Nhb.substring(Ohb - Uhb.length, Ohb) == Uhb) { Jhb = false; break; } } } } } return Jhb;}var Jva = null;function Kva(event){ Jva = event.currentTarget;}function Lva(EOb, eventType, func){ if (EOb.addEventListener) { EOb.addEventListener(eventType, func, false); return true; } else if (EOb.attachEvent) { return EOb.attachEvent("on"+ eventType, func); } else { return false; }}function Mva(ev){ if (ev.pageX) { if(nea) { return {x:(ev.pageX - document.documentElement.scrollLeft), y:(ev.pageY - document.documentElement.scrollTop)}; } else if(oea) { return {x:(ev.pageX - document.body.parentNode.scrollLeft), y:(ev.pageY - document.body.parentNode.scrollTop)}; } else { return {x:(ev.pageX - document.body.scrollLeft), y:(ev.pageY - document.body.scrollTop)}; } } else { return {x:ev.clientX, y:ev.clientY}; }}function Ova(xWb){ var left = 0; var top = 0; if(xWb.nodeType == 3) { xWb = xWb.parentNode; } while (xWb.offsetParent) { left += xWb.offsetLeft + (xWb.currentStyle ? (parseInt(xWb.currentStyle.borderLeftWidth)).NaN0():0); top += xWb.offsetTop + (xWb.currentStyle ? (parseInt(xWb.currentStyle.borderTopWidth)).NaN0():0); xWb = xWb.offsetParent; } left += xWb.offsetLeft + (xWb.currentStyle ? (parseInt(xWb.currentStyle.borderLeftWidth)).NaN0():0); top += xWb.offsetTop + (xWb.currentStyle ? (parseInt(xWb.currentStyle.borderTopWidth)).NaN0():0); left -= rw_getScreenOffsetLeft(); top -= rw_getScreenOffsetTop(); return {x:left, y:top};}var Qva = false; var Rva = false; var Sva = false; function $rw_isSpeaking(){ return Qva;}var Tva ="funplay play cyan magenta yellow green clear collect trans ffinder dictionary picturedictionary";var Uva ="cyan magenta yellow green clear collect";var Vva ="spell homophone pred";function Xva(cva){ if($g_bMouseSpeech) { cva = true; } if(Rva == cva) { return; } try { with(SpeechStream.gqa) { for (var i = 0; i < Rea; i++) { var rdb = g_icons[i][ICON_NAME]; if (Tva.indexOf(rdb) > -1) { if (cva) { Wra(g_icons[i][ICON_NAME],"mask", g_icons[i][ICON_OFFSET], false); } else { Wra(g_icons[i][ICON_NAME],"flat", g_icons[i][ICON_OFFSET], false); } } } Rva = cva; } } catch(err) { Epa(err); }}function Zva(cva){ if(wda != null) { if(Sva == cva) { return; } try { if (cva) { Sra("speaker"+wda,"on"); } else { Sra("speaker"+wda,"off"); wda = null; } Sva = cva; } catch(err) { Epa(err); } }}function bva(cva){ Qva = cva;}function fva(){ try { var rfb = SpeechStream.gqa; for (var i = 0; i < Rea; i++) { var rdb = g_icons[i][rfb.ICON_NAME]; if (Uva.indexOf(rdb) > -1) { Wra(g_icons[i][rfb.ICON_NAME],"flat", g_icons[i][rfb.ICON_OFFSET], false); } } for (var i = 0; i < Sea; i++) { var rdb = Qea[i][rfb.ICON_NAME]; if (Vva.indexOf(rdb) > -1) { Wra(g_icons[i][rfb.ICON_NAME],"mask", g_icons[i][rfb.ICON_OFFSET], true); } } } catch(err) { Epa(err); }}function hva(PMb){ return document.getElementById(PMb);}function $speechFinishedInFlash(){ Xva(false); Zva(false); bva(false);}Number.prototype.NaN0 = function(){ return isNaN(this)?0:this;};function jva(event){}function kva(event){ if(!Dca) { return; } var target = event.target || event.srcElement; if(target.id =='rwDragMe'|| target.id =='rwDragMeDisplay'|| target.id =='rwDragMeTrans'|| target.id =='rwDragMeFF'|| target.id =='rwDragMeDict'|| target.id =='rwDragMeCollect'|| target.id =='rwDragMeStickyNoteTop'|| target.id =='rwDragMeStickyNoteBot'|| target.id =='rwDragMePronCreate'|| target.id =='rwDragMePronEdit'|| target.id =='rwDragMeCal'|| target.id =='rwDragMePictureDictionary') { Wea = target; Xea = true; if (Wea.setCapture) {Wea.setCapture(true); } Vea = Ova(Wea); if(target.id =='rwDragMeStickyNoteBot') { Vea.y -= target.offsetTop; } Uea = Mva(event); return false; }}function lva(event){ if(!Dca) { return; } var target = event.target || event.srcElement; if (target.tagName =="IMG"&& target.className =="rwIcon") { Mwa(event); return false; }}var mva = 0;function ova(event){ if(!Dca) { return; } var Bza = (new Date).getTime(); if((Bza - mva) < ifa ) { return; } mva = Bza; if (event != null) { if (!Xea) { if($g_bMouseSpeech && Fca) { MAb(event); } if(Ifa) { Qdb(event); } } }}function rva(event){ if(!Dca) { return; } if (event != null) { if (!Xea) { if(zea) { if($g_bMouseSpeech && !Fca) { MAb(event); } else if(kda) { QWb(event); } else if(((Uca & calculator_icon) == calculator_icon) && gXb()) { if(Hwa(event)) { MAb(event, true); } } } } }}var pva = -1;var qva = -1;function Dwa(event){ if(!Dca) { return; } if (event == null) { return true; } if(pea) { var sva = event.clientX; var tva = event.clientY; if(pva == sva && qva == tva) { return; } pva = sva; qva = tva; } if(Wea == null) { if($g_bMouseSpeech && (Afa || pea) && !Fca) { MAb(event); } else if(kda) { QWb(event); } else if(((Uca & calculator_icon) == calculator_icon) && gXb() && (Afa || pea)) { if(Hwa(event)) { MAb(event, true); } } Xea = false; return true; } var sQb = Mva(event); if (sQb.x < 0 || sQb.y < 0 || sQb.x > rw_getDocumentDisplayWidth() || sQb.y > rw_getDocumentDisplayHeight()) { Mwa(event); return false; } var vva; var wva; var xva = false; var yva = 1.0; if(pea && !nea && uea) { var a1 = document.body.offsetWidth; var a2 = document.documentElement.offsetWidth; yva = (a1 / a2); if(yva > 1.05 || yva < 99.5) { xva = true; } } if(xva) { var Bwa = (yva * Uea.x) - (Vea.x); var Cwa = (yva * Uea.y) - (Vea.y); vva = (((yva * sQb.x) - Bwa)) / yva; wva = (((yva * sQb.y) - Cwa)) / yva; } else { var Bwa = Uea.x - (Vea.x); var Cwa = Uea.y - (Vea.y); vva = (sQb.x - Bwa); wva = (sQb.y - Cwa); } if(Wea == null) { return; } if(Wea.id =='rwDragMe') { cza(vva, wva); if ((vva + fea + Yea) > rw_getDocumentDisplayWidthAdjusted()) { vva = rw_getDocumentDisplayWidthAdjusted() - fea - Yea; cea = 1.0; } if (vva < Yea) { vva = Yea; cea = 0.0; } if ((wva + gea + Yea) > rw_getDocumentDisplayHeightAdjusted()) { wva = rw_getDisplayHeightAdjusted() - gea - Yea; dea = 1.0; } if (wva < Yea) { wva = Yea; dea = 0.0; } Sza(); Mwa(event); } else if(Wea.id =='rwDragMeTrans'|| Wea.id =='rwDragMeFF'|| Wea.id =='rwDragMeDict'|| Wea.id =='rwDragMeDisplay'|| Wea.id =='rwDragMeCollect'|| Wea.id =='rwDragMeStickyNoteTop'|| Wea.id =='rwDragMeStickyNoteBot'|| Wea.id =='rwDragMePronCreate'|| Wea.id =='rwDragMePronEdit'|| Wea.id =='rwDragMeCal'|| Wea.id =='rwDragMeGencache'|| Wea.id =='rwDragMeCheckcache'|| Wea.id =='rwDragMePictureDictionary') { var Ewa; if(Wea.id =='rwDragMeDisplay') { Ewa = Kba; } else if(Wea.id =='rwDragMeTrans') { Ewa = Lba; } else if(Wea.id =='rwDragMeFF') { Ewa = Mba; } else if(Wea.id =='rwDragMeDict') { Ewa = Nba; } else if(Wea.id =='rwDragMeStickyNoteTop') { Ewa = Pba; } else if(Wea.id =='rwDragMeStickyNoteBot') { Ewa = Pba; } else if(Wea.id =='rwDragMePronCreate') { Ewa = Qba; } else if(Wea.id =='rwDragMePronEdit') { Ewa = Rba; } else if(Wea.id =='rwDragMeCal') { Ewa = Sba; } else if(Wea.id =='rwDragMeGencache') { Ewa = Tba; } else if(Wea.id =='rwDragMeCache') { Ewa = Uba; } else if(Wea.id =='rwDragMePictureDictionary') { Ewa = Vba; } else { Ewa = Oba; } eza(Ewa, vva, wva); if ((vva + jea[Ewa] + Yea) > rw_getDocumentDisplayWidthAdjusted()) { vva = rw_getDocumentDisplayWidthAdjusted() - jea[Ewa] - Yea; hea[Ewa] = 1.0; } if (vva < Yea) { vva = Yea; hea[Ewa] = 0.0; } if ((wva + kea[Ewa] + Yea) > rw_getDocumentDisplayHeightAdjusted()) { wva = rw_getDocumentDisplayHeightAdjusted() - kea[Ewa] - Yea; iea[Ewa] = 1.0; } if (wva < Yea) { wva = Yea; iea[Ewa] = 0.0; } Yza(Ewa); Mwa(event); } return false;}function Hwa(event){ var target; if(Afa) { target = event.explicitOriginalTarget; } else if(pea) { target = event.srcElement; } else { target = event.target; } if(target != null && target.nodeType == 1) { var Fwa = target.ownerDocument.body; if(target != Fwa) { var RWb = target.parentNode; if(typeof(RWb.tagName)=="string") { while(RWb != null && RWb != Fwa) { var XKb = RWb.tagName.toLowerCase(); if(XKb =="form") { if(RWb.id =="rw_calForm") { return true; } } RWb = RWb.parentNode; } } } } return false;}function Jwa(event){ if(!Dca) { return; } if (!Xea) { return true; } if (Wea.releaseCapture) {Wea.releaseCapture(); } Wea = null; Xea = false; Mwa(event); return false;}function Lwa(event){ if(!Dca) { return; } if (Xea) { if (Afa) { var sQb = Mva(event); if (sQb.x < 5 || sQb.y < 5 || sQb.x > (rw_getDocumentDisplayWidth() - 5) || sQb.y > (rw_getDocumentDisplayHeight() - 5)) { Jwa(event); Mwa(event); return; } } Dwa(event); Mwa(event); } else { if(!Fca) { yza = null; } }}function Mwa(event){ if (event == null) { return; } if (event.cancelBubble) { event.cancelBubble = true; } else if (event.stopPropagation) { event.stopPropagation(); } if (event.returnValue) { event.returnValue = false; } else if (event.preventDefault) { event.preventDefault(true); }}function Nwa(PMb, Xwa, Ywa){ if(aea > 0) { --aea; return; } if (Xea) { return; } if($rw_blockClick(PMb)) { return; } Wra(g_icons[Xwa][SpeechStream.gqa.ICON_NAME],"hover", g_icons[Xwa][SpeechStream.gqa.ICON_OFFSET], Ywa);}function Rwa(PMb, Xwa, Ywa){ if(aea > 0) { --aea; return; } if(Xea) { return; } if($rw_blockClick(PMb)) { return; } Wra( g_icons[Xwa][SpeechStream.gqa.ICON_NAME],"flat", g_icons[Xwa][SpeechStream.gqa.ICON_OFFSET], Ywa);}function Vwa(PMb, Xwa, Ywa){ if(aea > 0) { --aea; return; } if (Xea) { return; } if($rw_blockClick(PMb)) { return; } Wra( g_icons[Xwa][SpeechStream.gqa.ICON_NAME],"toggle", g_icons[Xwa][SpeechStream.gqa.ICON_OFFSET], Ywa);}function $rw_blockClick(PMb){ if (Rva && Tva.indexOf(PMb) > -1) { return true; } if(Vva.indexOf(PMb) > -1) { return true; } return false;}var Zwa ="rw_speechenablingdata";function rw_onload(){ if(Gda) { if(!Qfa || !Pfa) { setTimeout("rw_onload();", 50); return; } } if(eea && !(Xda && (qea || rea)) ) { var bwa = Vma("rwebooks-x"); var cwa = Vma("rwebooks-y"); if ((bwa != null) && (cwa != null)) { cea = parseFloat(bwa); dea = parseFloat(cwa); } } var dwa = false; var bhb = hea.length; var fwa; var gwa; if(eea && !(Xda && (qea || rea)) ) { for(var i=0; i<bhb; i++) { fwa = Vma("rwebooks-div"+ i +"x"); if(fwa != null) { hea[i] = parseFloat(fwa); } gwa = Vma("rwebooks-div"+ i +"y"); if(gwa != null) { iea[i] = parseFloat(gwa); } if(i == Pba) { if(fwa == null && gwa == null) { dwa = true; } } } } else { dwa= true; } if(dwa) { hea[Pba] = 0.45; iea[Pba] = 0.35; } Sza(); Uza(); $rw_pageSetup(); if(Gda) { if(Ida !="*"&& typeof(Ccb) !="undefined") { Ccb(); } else { if(Hda !="*"&& typeof(Mfb) !="undefined") { Mfb(); } } } if(pea) { var hwa = document.createTextNode(" "); document.body.appendChild(hwa); } if(tca && xca) { $rw_cachePage(null, null); } if(kda) { if(Sda) { EWb(); } if(mda) { kda = false; } } if(Gea) { setTimeout ('$rw_event_generate_cache()',1000); } if(Hea) { setTimeout ('$rw_event_check_cache()',1000); } Dca = true; if(typeof($rw_toolbarLoadedCallback) =="function") { $rw_toolbarLoadedCallback(); }}function iwa(){ window.onunload=null; if(typeof(heb) !='undefined'&& Gda && typeof(Ndb) !='undefined'&& Ndb > -1) { Eeb(Ndb); } if(eea && !(Xda && (qea || rea)) ) { bma("rwebooks-x", cea, 20,"/", window.location.host); bma("rwebooks-y", dea, 20,"/", window.location.host); var bhb = hea.length; for(var i=0; i<bhb; i++) { bma("rwebooks-div"+ i +"x", hea[i], 20,"/", window.location.host); bma("rwebooks-div"+ i +"y", iea[i], 20,"/", window.location.host); } }}function $rw_setSpeechRangeColours(p_strCols){ Kca = p_strCols;}function $rw_setSpeechWordColours(p_strCols){ Lca = p_strCols;}function $rw_getSpeechRangeColours(){ return Kca;}function $rw_getSpeechWordColours(){ return Lca;}var kwa = false;function rw_setHighlight(mBb, axa, rOb, bxa, hab){ var lwa = mBb; var mwa = rOb; try { var result = null; if (rOb == mBb) { result = rw_setNodeBackground(mBb, axa, bxa,"ss", hab); lwa = result.node; mwa = result.node; } else { if (axa > 0) { result = rw_setNodeBackground(mBb, axa, mBb.nodeValue.length,"ss", hab); } else { result = rw_setNodeBackground(mBb, -1, -1,"ss", hab); } lwa = result.node; var Qbb = dHb(result.node, false, rOb, true); while (Qbb != null) { if (Qbb == rOb) { result = rw_setNodeBackground(Qbb, 0, bxa,"ss", hab); Qbb = result.node; mwa = Qbb; break; } else { result = rw_setNodeBackground(Qbb, -1, -1,"ss", hab); Qbb = result.node; } mwa = Qbb; Qbb = dHb(Qbb, false, rOb, true); } } } catch(err){Dpa("rw_setHighlight error:"+ err.message); } return {start: lwa, end: mwa};}function Cxa(Ixa){ try { if (Ixa == null || !(Ixa instanceof Array) || Ixa.length == 0) { return; } for (var i = 0; i < Ixa.length; i++) { var LSb = Ixa[i]; if (Fxa(LSb)) { var Qya = LSb.parentNode; if(LSb.nextSibling != null || LSb.previousSibling != null) { var edb = zma(Qya); var Eya = Qya.ownerDocument; LSb = Eya.createTextNode(edb); } var Oxa = Qya.parentNode; Oxa.replaceChild(LSb, Qya); LSb = Loa(LSb); Ixa[i] = LSb; } } if(!Qva ) { rw_removeSpeechHighlight(Ixa, false); } } catch(err){Dpa("Error in rw_setHighlight: "+ err.message);}}function Fxa(qdb){ if (qdb.nodeType != 3 || qdb.parentNode == null || qdb.parentNode.parentNode == null) { return false; } var parent = qdb.parentNode; var EPb = parent.getAttribute("rwstate"); if (parent.tagName.toLowerCase() !="font"|| EPb == null || EPb !="ss") { return false; } return true;}function rw_removeSpeechHighlight(Ixa, Sxa){ try { if(typeof(Sxa) =="undefined") { Sxa=false; } if (Ixa == null || !(Ixa instanceof Array) || Ixa.length == 0) { return; } for (var i = 0; i < Ixa.length; i++) { var LSb = Ixa[i]; if (Qxa(LSb, Sxa)) { var Qya = LSb.parentNode; if(LSb.nextSibling != null || LSb.previousSibling != null) { var edb = zma(Qya); var Eya = Qya.ownerDocument; LSb = Eya.createTextNode(edb); } var Oxa = Qya.parentNode; Oxa.replaceChild(LSb, Qya); LSb = Loa(LSb); Ixa[i] = LSb; if(Qxa(LSb, Sxa)) { --i; } } else { var tagName =""; if(LSb.nodeType == 1) { tagName = LSb.tagName.toLowerCase(); } if(tagName=="math") { Rya(LSb, null, null, false); } } } } catch(err) { Dpa("rw_removeSpeechHighlight failed error:"+ err.message); }}function Qxa(qdb, Sxa){ if (qdb.nodeType != 3 || qdb.parentNode == null || qdb.parentNode.parentNode == null) { return false; } var parent = qdb.parentNode; var EPb = parent.getAttribute("rwstate"); if (parent.tagName.toLowerCase() =="font"&& EPb != null) { if((!Sxa && EPb =="sp") || EPb =="csp") { return true; } } return false;}function rw_setSpeechRangeImpl(mBb, axa, rOb, bxa, cxa){ var result = null; try { if (rOb == mBb) { result = rw_setNodeBackground(mBb, axa, bxa, cxa,""); return result; } if (axa > 0) { result = rw_setNodeBackground(mBb, axa, mBb.nodeValue.length, cxa,""); } else { result = rw_setNodeBackground(mBb, -1, -1, cxa,""); } var Qbb = dHb(result.node, false, rOb, true); while (Qbb != null) { if (Qbb == rOb) { result = rw_setNodeBackground(Qbb, 0, bxa, cxa,""); Qbb = result.node; break; } else { result = rw_setNodeBackground(Qbb, -1, -1, cxa,""); Qbb = result.node; } Qbb = dHb(Qbb, false, rOb, true); } } catch(err) { Dpa("rw_setSpeechRangeImpl error:"+ err.message); } return result;}function exa(){ this.node = null; this.offset = 0;}function rw_setNodeBackground(wxa, Ghb, Hhb, zxa, Aya){ var Pya = new exa(); Pya.node = wxa; Pya.offset = Ghb; if (wxa.nodeType != 3) { if(wxa.nodeType == 1 && VCb(wxa)) { if(wxa.tagName.toLowerCase() =="math") { var Qya = wxa.parentNode; Pya = uxa(Qya, wxa, Ghb, Hhb, zxa,""); } else { var nxa = rFb(wxa, false); var oxa = vFb(wxa, false); if(nxa != null && nxa.nodeType == 3 && oxa != null && oxa.nodeType == 3) { rw_setSpeechRangeImpl(nxa, 0, oxa, oxa.nodeValue.length, zxa); Pya.node = nxa; Pya.offset = 0; } else { } } return Pya; } else { return Pya; } } if(wxa.nodeType == 3) { var edb = wxa.nodeValue; edb = edb.trimTH(); if(edb.length == 0) { var web = wxa.parentNode; if(web != null) { var OPb = web.tagName.trimTH().toLowerCase(); if(OPb =="tr"|| OPb =="table") { return Pya; } } } } var Qya = wxa.parentNode; var txa = null; if (Qya.tagName.toLowerCase() =="font") { txa = Qya.getAttribute("rwstate"); } if (zxa =="ss") { if(txa == null || txa =="") { Pya = uxa(Qya, wxa, Ghb, Hhb, zxa, Aya); } else if (txa =="ss") { return Pya; } else { return Pya; } } else if (zxa =="sp") { if (txa =="csp") { Dpa("fail in rw_setNodeBackground setting sp to csp"); return Pya; } if (txa =="sp") { Dpa("fail in rw_setNodeBackground setting sp to sp"); return Pya; } Pya = uxa(Qya, wxa, Ghb, Hhb, zxa,""); } else if (zxa =="csp") { if (txa =="csp") { Dpa("fail parent is csp for csp"); return Pya; } if (txa =="sp") { Pya = uxa(Qya, wxa, Ghb, Hhb, zxa,""); } else { } } else { } return Pya;}function uxa(vxa, wxa, Ghb, Hhb, zxa, Aya){var tagName =""; if(wxa.nodeType == 1) { tagName = wxa.tagName.toLowerCase(); } if((wxa.nodeType == 3 && (Hhb == -1 || Hhb > Ghb)) || tagName =="math") { var Bya; if (zxa =="ss") { Bya ="background:"+ Aya; } else if (zxa =="sp") { Bya = Kca; } else if (zxa =="csp") { Bya = Lca; } else { Bya ="color:#ff000; background:#00ff00"; } if(tagName =="math") { if(zxa !="ss") { Rya(wxa, zxa, Bya, true); } } else { var bhb = wxa.nodeValue.length; if( (bhb == 1 && (wxa.nodeValue =="\n"|| wxa.nodeValue =="\r") ) || (bhb == 2 && wxa.nodeValue =="\r\n") ) { var Pya = new exa(); Pya.node = wxa; if (Ghb < 0) { Pya.offset = 0; } else { Pya.offset = Ghb; } return Pya; } var Eya = vxa.ownerDocument; var Vgb = false; if (Ghb == -1 && Hhb == -1) { Vgb = true; } else if (Hhb == -1) { Hhb = bhb; } if (Ghb == 0 && Hhb >= bhb) { Vgb = true; } if (Vgb) { var Yya = Eya.createElement("font"); if(wea) { Yya.style.setAttribute("cssText", Bya, 0); } else { Yya.setAttribute("style", Bya); } Yya.setAttribute("rwstate", zxa); if(zxa !="ss") { Yya.setAttribute("started","1"); } vxa.replaceChild(Yya, wxa); Yya.appendChild(wxa); } else { var edb = wxa.nodeValue; var Iya; var Jya; var Kya; if (vxa.tagName.toLowerCase() =="span"&& vxa.getAttribute("pron") != null) { Iya =""; Jya = edb; Kya =""; } else { Iya = edb.substring(0, Ghb); Jya = edb.substring(Ghb, Hhb); Kya = edb.substring(Hhb); } var Yya = Eya.createElement("font"); if(wea) { Yya.style.setAttribute("cssText", Bya, 0); } else { Yya.setAttribute("style", Bya); } Yya.setAttribute("rwstate", zxa); if(zxa !="ss") { Yya.setAttribute("started","1"); } var Mya = null; var lfb = null; var Oya = null; if (Iya.length > 0) { Mya = Eya.createTextNode(Iya); } lfb = Eya.createTextNode(Jya); if (Kya.length > 0) { Oya = Eya.createTextNode(Kya); } Yya.appendChild(lfb); vxa.replaceChild(Yya, wxa); if (Mya != null) { vxa.insertBefore(Mya, Yya); } if (Oya != null) { if (Yya.nextSibling == null) { vxa.insertBefore(Oya, null); } else { vxa.insertBefore(Oya, Yya.nextSibling); } } wxa = lfb; } } } var Pya = new exa(); Pya.node = wxa; if (Ghb < 0) { Pya.offset = 0; } else { Pya.offset = Ghb; } return Pya;}function Rya(Sya, Tya, Uya, Vya){ if(Sya == null) { return; } if(pea) { var Qya = Sya.parentNode; if(Qya == null) { return; } if(Qya.tagName.toLowerCase() =="font"&& Qya.getAttribute("started") != null) { if(Vya) { Qya.style.setAttribute("cssText", Uya, 0); Qya.setAttribute("rwstate", Tya); } else { var Wya = Qya.parentNode; if(Wya == null) { return; } Wya.replaceChild(Sya, Qya); } } else { if(Vya) { var Xya = document.createElement("font"); Xya.style.setAttribute("cssText", Uya, 0); Xya.setAttribute("started","1"); Xya.setAttribute("rwstate", Tya); Qya.replaceChild(Xya, Sya); Xya.appendChild(Sya); } } } else { var Yya = Sya.firstChild; while(Yya != null) { if(Yya.nodeType == 1) { if(Vya) { if(Yya.getAttribute("started") != null) { Yya.setAttribute("style", Uya); Yya.setAttribute("rwstate", Tya); } else { if(Yya.getAttribute("style") == null) { Yya.setAttribute("style", Uya); Yya.setAttribute("rwstate", Tya); Yya.setAttribute("started","1"); } } } else { if(Yya.getAttribute("started") != null) { Yya.removeAttribute("style"); Yya.removeAttribute("started"); Yya.removeAttribute("rwstate"); } } } Yya = Yya.nextSibling; } }}function bya(cya, dya){ if (cya == dya) { return 0; } var Zya = soa(cya.ownerDocument.body); Zya.setStart(cya, 0); Zya.setEnd(cya, 0); var aya = soa(cya.ownerDocument.body); aya.setStart(dya, 0); aya.setEnd(dya, 0); return (Zya.compareBoundaryPoints("START_TO_START", aya));}function eya(){ this.edb =""; this.PBb =""; this.voice = null; this.vbb = null; };function fya(qdb){ return uya(lya(qdb));}function hya(qdb){ if(qdb != null && qdb.nodeType == 1) { return uya(qdb.getAttribute("lang")); } return null;}function lya(qdb){ var TKb = qdb; while(TKb != null) { if(TKb.nodeType == 1) { var kya = TKb.getAttribute("lang"); if(kya != null && kya.length > 0) { return kya; } } TKb = TKb.parentNode; } return null;}function qya(NPb, RKb, rya){ var TKb = NPb; TKb = XFb(TKb, false, RKb); while(TKb != null) { var oya = fya(TKb); if(oya != rya) { var JDb = vGb(TKb, false, NPb); if(JDb.nodeType == 3) { return new THCaret(JDb, JDb.nodeValue.length, false); } else { return new THCaret(JDb, 0, true); } } TKb = KFb(TKb, false, RKb); } return null;}function uya(vya){ if(vya != null) { var NZb = vya.toLowerCase(); var tya; if(NZb =="en"|| NZb=="en-gb") { tya = ENGLISH; } else if(NZb =="en-us") { tya = ENGLISH_US; } else if(NZb =="es-us") { tya = SPANISH; } else if(NZb =="es"|| NZb=="es-es") { tya = ESPANOL; } else if(NZb =="fr"|| NZb =="fr-fr") { tya = FRENCH; } else if(NZb =="fr-ca") { tya = FRENCH_CN; } else if(NZb =="de") { tya = GERMAN; } else if(NZb =="it") { tya = ITALIAN; } else if(NZb =="nl") { tya = DUTCH; } else if(NZb =="sv") { tya = SWEDISH; } else if(NZb =="en-au") { tya = AUSTRALIAN; } else if(NZb =="pt-br") { tya = PORTUGUESE; } else if(NZb =="pt"|| NZb =="pt-pt") { tya = PORTUGUES; } else { return null; } return faa[tya]; } else { return null; }}function zya(Aza){ if(Aza != null) { if(Aza != nca) { nca = Aza; var flash = iVb.getConnector(); if(flash != null) { flash.setVoiceName(nca); } } } else { if(nca != null) { nca = null; var flash = iVb.getConnector(); if(flash != null) { flash.setVoiceName(eca); } } }}var yya="ReadHeader1 ReadSection";function ReadHeader1(){ var Bza = (new Date).getTime(); if((Bza - Wfa) < ifa ) { return; } Ica = Bza; var Igb = document.getElementsByTagName("H1")[0]; var lfb = XFb(Igb, true, Igb); if(lfb == null) { return; } if(lfb.nodeType != 3) { lfb = NHb(lfb, true, Igb); } if(lfb == null) { return; } var MBb = new THCaret(lfb, 0, true); var target = iAb(MBb); if(target != null) { var aWb = target.getCaretRange(); if(Xqa(aWb)) { var start = aWb.Obb.node; if(target.isRange()) { var end = aWb.Pbb.node; start = uIb(start); end = zIb(end); var Gbb = FPb(start, 0); var Hbb; if(end.nodeType == 1) { Hbb = FPb(end, 0); } else { Hbb = FPb(end, end.nodeValue.length); } target.range = new THRange(document.body, Gbb, Hbb); } var Lza = hda; $rw_stopSpeech(); hda = false; rw_speakHoverTarget(target); hda = Lza; } }}function $rw_getHashCodes() { var Mza =""; var Nza = sHb(document.body); while(Nza != null) { var GEb = ICb(Nza , new Array()); Mza = Mza + ZEb() +"/"; var SEb; if(SpeechStream.cacheMode.mode == SpeechStream.cacheMode.CACHE_ONLY || SpeechStream.pronunciation.mode == SpeechStream.pronunciation.CLIENT_PRONUNCIATION_FOR_LIVE_SERVER) { SEb = zMb(GEb.edb); } else { SEb= zMb(GEb.PBb); } Mza = Mza + SEb +"~"; Nza = QIb(Nza); } return Mza;}function $rw_getSoundFileLength(ZLb){ var flash = iVb.getConnector(); if(flash == null) { alert("Connection not available to the server."); } else { flash.getSoundFileLength(ZLb); }}function $rw_soundFileLengthCallback(p_strLength){ alert(p_strLength);}/*Code designed and developed by Stuart McWilliams.*/function Sza(){ var vza; vza = document.getElementById('rwDrag').style; if (vza == null) { return; } if(!Oca) { var x; var y; if(typeof(eba_override_x) !='undefined'&& typeof(eba_override_y) !='undefined') { x = eba_override_x; y = eba_override_y; } else { var wd = rw_getDisplayWidth(); var ht = rw_getDisplayHeight(); if(Jca) { cea = 1; dea = 0; Yea = 0; } x = wd * cea; y = ht * dea; if ((x + fea + Yea) > rw_getDisplayWidthAdjusted()) { x = rw_getDisplayWidthAdjusted() - fea - Yea; } if (x < Yea) { x = Yea; } if ((y + gea + Yea) > rw_getDisplayHeightAdjusted()) { y = rw_getDisplayHeightAdjusted() - gea - Yea; } if (y < Yea) { y = Yea; } x = rw_getScreenOffsetLeft() + x; y = rw_getScreenOffsetTop() + y; if(Jca) { y = 0; } } vza.left = x +'px'; vza.top = y +'px'; } if(rca) { return; } vza.visibility ='visible'; vza.display ="inline"; var LSb = document.getElementById("rwMainOutline"); if(LSb != null) { LSb.style.visibility ='visible'; LSb.style.display ="block"; } LSb = document.getElementById("rwMainNoOutline"); if(LSb != null) { LSb.style.visibility ='visible'; LSb.style.display ="block"; }}function Uza(){ Yza(0); Yza(1); Yza(2); Yza(3); Yza(4); Yza(5); Yza(6); Yza(7); Yza(8); Yza(9); Yza(10); Yza(11);}function Yza(qza){ var Vza; var vza; var rdb; switch(qza) { case 0: rdb ="rwDisplay"; break; case 1: rdb ="rwTrans"; break; case 2: rdb ="rwFF"; break; case 3: rdb ="rwDict"; break; case 4: rdb ="rwCollect"; break; case 5: rdb ="rwSticky"; break; case 6: rdb ="rwPronCreate"; break; case 7: rdb ="rwPronEdit"; break; case 8: rdb ="rwCal"; break; case 9: rdb ="rwGenerateCache"; break; case 10: rdb ="rwCheckCache"; break; case 11: rdb ="rwPictureDictionary"; break; default: rdb ="rwDisplay"; } Vza = document.getElementById(rdb); if(typeof(Vza) =='undefined'|| Vza == null) { return; } vza = Vza.style; if (vza == null) { return; } if(lea[qza]) { vza.display ="block"; if(vza.visibility =='visible') { var uza = hva(rdb); if(uza != null) { var bza = parseInt(uza.offsetHeight); if(!isNaN(bza)) { kea[qza] = bza - 4; } } } var width = rw_getDocumentDisplayWidth(); var height = rw_getDocumentDisplayHeight(); var x = width * hea[qza]; var y = height * iea[qza]; if ((x + jea[qza] + Yea) > rw_getDocumentDisplayWidthAdjusted()) { x = rw_getDocumentDisplayWidthAdjusted() - jea[qza] - Yea; } if (x < Yea) { x = Yea; } if ((y + kea[qza] + Yea) > rw_getDocumentDisplayHeightAdjusted()) { y = rw_getDocumentDisplayHeightAdjusted() - kea[qza] - Yea; } if (y < Yea) { y = Yea; } x = rw_getScreenOffsetLeft() + x; y = rw_getScreenOffsetTop() + y; vza.left = x +'px'; vza.top = y +'px'; vza.visibility ='visible'; } else { if(Afa) { vza.display ="none"; } vza.visibility ='hidden'; }}function cza(x, y){ cea = x / rw_getDocumentDisplayWidth(); dea = y / rw_getDocumentDisplayHeight();}function eza(qza, x, y){ hea[qza] = x / rw_getDocumentDisplayWidth(); iea[qza] = y / rw_getDocumentDisplayHeight();}function $rw_divOver(qza){ var rdb; switch(qza) { case Kba: rdb ="displayImg"; break; case Lba: rdb ="transImg"; break; case Mba: rdb ="FFImg"; break; case Nba: rdb ="dictImg"; break; case Oba: rdb ="collectImg"; break; case Qba: rdb ="pronCreateImg"; break; case Rba: rdb ="pronEditImg"; break; case Sba: rdb ="calImg"; break; case Tba: rdb ="generateCacheImg"; break; case Uba: rdb ="checkCacheImg"; break; case Vba: rdb ="pictureDictionaryImg"; break; default: rdb ="displayImg"; } if (document.images[rdb] != null) { document.images[rdb].src = $g_strFileLoc +"rwimgs/thepressedx.bmp"; }}function $rw_divOut(qza){ var rdb; switch(qza) { case Kba: rdb ="displayImg"; break; case Lba: rdb ="transImg"; break; case Mba: rdb ="FFImg"; break; case Nba: rdb ="dictImg"; break; case Oba: rdb ="collectImg"; break; case Qba: rdb ="pronCreateImg"; break; case Rba: rdb ="pronEditImg"; break; case Sba: rdb ="calImg"; break; case Tba: rdb ="generateCacheImg"; break; case Uba: rdb ="checkCacheImg"; break; case Vba: rdb ="pictureDictionaryImg"; break; default: rdb ="displayImg"; } if (document.images[rdb] != null) { document.images[rdb].src = $g_strFileLoc +"rwimgs/thex.bmp"; }}function $rw_divPress(qza){ $rw_event_stop(); oza(false, qza);}function jza(qza, ehb){ var vza; var rdb; switch(qza) { case Kba: rdb ="rwpopupdisplay"; break; case Lba: rdb ="rwpopuptrans"; break; case Mba: rdb ="rwpopupff"; break; case Nba: rdb ="rwpopupdict"; break; case Oba: rdb ="rwpopupcollect"; break; case Qba: rdb ="rwpopupproncreate"; break; case Rba: rdb ="rwpopuppronedit"; break; case Sba: rdb ="rwpopupcal"; break; case Tba: rdb ="rwpopupgeneratecache"; break; case Uba: rdb ="rwpopupcheckcache"; break; case Vba: rdb ="rwpopuppicturedictionary"; break; default: rdb ="rwpopupdisplay"; } vza = document.getElementById(rdb); if (vza == null) { return; } vza.innerHTML = ehb;}function oza(pza, qza){ var vza; lea[qza] = pza; var rdb; switch(qza) { case Kba: rdb ="rwDisplay"; break; case Lba: rdb ="rwTrans"; break; case Mba: rdb ="rwFF"; break; case Nba: rdb ="rwDict"; break; case Oba: rdb ="rwCollect"; break; case Pba: rdb ="rwSticky"; break; case Qba: rdb ="rwPronCreate"; break; case Rba: rdb ="rwPronEdit"; break; case Sba: rdb ="rwCal"; break; case Tba: rdb ="rwGenerateCache"; break; case Uba: rdb ="rwCache"; break; case Vba: rdb ="rwPictureDictionary"; break; default: rdb ="rwDisplay"; } var uza = hva(rdb); if(uza != null) { vza = uza.style; if (vza == null) { return; } if(pza) { tza(); vza.visibility ='visible'; vza.display ='block'; vza.zIndex = 501; } else { vza.visibility ='hidden'; if(Afa) { vza.display ="none"; } jza(qza,""); } } Uza();}function tza(){ var rdb; rdb ="rwDisplay"; var uza = hva(rdb); var vza; if(uza != null && uza.style) { vza = uza.style; vza.zIndex = 500; } rdb ="rwTrans"; uza = hva(rdb); if(uza != null && uza.style) { vza = uza.style; vza.zIndex = 500; } rdb ="rwFF"; uza = hva(rdb); if(uza != null && uza.style) { vza = uza.style; vza.zIndex = 500; } rdb ="rwDict"; uza = hva(rdb); if(uza != null && uza.style) { vza = uza.style; vza.zIndex = 500; } rdb ="rwCollect"; uza = hva(rdb); if(uza != null && uza.style) { vza = uza.style; vza.zIndex = 500; } rdb ="rwSticky"; uza = hva(rdb); if(uza != null && uza.style) { vza = uza.style; vza.zIndex = 500; } rdb ="rwCal"; uza = hva(rdb); if(uza != null && uza.style) { vza = uza.style; vza.zIndex = 500; } rdb ="rwGenerateCache"; uza = hva(rdb); if(uza != null && uza.style) { vza = uza.style; vza.zIndex = 500; } rdb ="rwCheckCache"; uza = hva(rdb); if(uza != null && uza.style) { vza = uza.style; vza.zIndex = 500; } rdb ="rwPictureDictionary"; uza = hva(rdb); if(uza != null && uza.style) { vza = uza.style; vza.zIndex = 500; }}function $setToolbarX(p_fBarX){ if(p_fBarX<0) { cea = 0; } else if(p_fBarX > 1) { cea = 1; } else { cea = p_fBarX; } Sza();}function $setToolbarY(p_fBarY){ if(p_fBarY<0) { dea = 0; } else if(p_fBarY > 1) { dea = 1; } else { dea = p_fBarY; } Sza();}function $getToolbarX(){ return cea;}function $getToolbarY(){ return dea;}var wza ='<bookmark mark="';var xza ='"/>';var yza = null; var zza = null; var AAb = 0;var BAb = 0;var CAb = false;var DAb = false;var EAb = false;if(zea){ var FAb = navigator.appVersion; var GAb = FAb.lastIndexOf("/"); FAb = FAb.substring(GAb + 1); try { var HAb = parseFloat(FAb); if(HAb < 300 || (HAb > 400 && HAb < 416)) { CAb = true; } else if(HAb > 500) { EAb = true; } else { DAb = true; } } catch(err) { EAb = true; }}var IAb = 0;var JAb = 0;function MAb(evt, sAb){ try { if(Fca) { var d = new Date(); var cgb = d.getTime(); if(cgb < (JAb + 800) || !Dca) { return; } } var NWb = SAb(evt, Fca); if(NWb != null) { if(vda) { if(NWb.node.nodeType == 1 && NWb.node.tagName.toLowerCase() =="input") { var feb = NWb.node.getAttribute("type"); if(feb != null) { feb = feb.toLowerCase(); if((feb =="radio"|| feb =="checkbox")) { NWb.node = WHb(NWb.node, true, null); NWb.offset = 0; } } } } var VWb = iAb(NWb); if(VWb != null) { try { if(VWb.equals(yza)) { return; } if(VWb.equals(zza)) { if((cgb - IAb) < 1000) { return; } IAb = cgb; } if(typeof(sAb) =="boolean"&& sAb) { VWb.useHighlighting = false; qAb(VWb, true); } else { qAb(VWb, false); } }catch(err){Epa(err);} } else { yza = null; } } } catch(err) { Dpa("mousehover error: "+ err); }};function SAb(TAb, oQb){ var lKb = null; var RAb = 0; if(pea) { lKb = TAb.srcElement; if(lKb.nodeType == 1 && lKb.tagName.toLowerCase() =="textarea") { } else { var Xfb = rw_getTargetNodeAsCaretIE(TAb, oQb); if(Xfb != null) { lKb = Xfb.node; RAb = Xfb.offset; } else { var WAb = false; if(lKb.tagName.toLowerCase() =="li"|| lKb.tagName.toLowerCase() =="a") { WAb = true; } else if(lKb.parentNode != null && lKb.parentNode.tagName != null && lKb.parentNode.tagName.toLowerCase() =="li") { WAb =true; } if(WAb) { var Qbb = lKb.firstChild; if(Qbb == null) { return null; } if(Qbb.nodeType != 3) { Qbb = WHb(Qbb, false, lKb); if(Qbb == null) { return null; } } lKb = Qbb; RAb = 0; } } } } else if(zea) { lKb = TAb.target; if(lKb != null) { if(EAb) { if(lKb.firstChild != null && lKb.firstChild.nodeType == 3 && lKb.tagName.toLowerCase() !="textarea") { var rQb = lKb.firstChild.nodeValue; if(rQb.trimTH().length > 0) { lKb = lKb.firstChild; } } } else if(DAb) { if(TAb.fromElement != null) { if(lKb.nodeType == 1 && lKb.tagName.toLowerCase() !="textarea") { if(TAb.fromElement.nodeType == 3) { lKb = TAb.fromElement; } } } else { if(lKb.firstChild != null && lKb.firstChild.nodeType == 3 && lKb.tagName.toLowerCase() !="textarea") { var rQb = lKb.firstChild.nodeValue; if(rQb.trimTH().length > 0) { lKb = lKb.firstChild; } } } } } } else { if(TAb.explicitOriginalTarget.nodeValue != null) { if(TAb.target.tagName.toLowerCase() =="textarea") { lKb = TAb.target; } else { lKb = TAb.explicitOriginalTarget; } } else { lKb = TAb.target; } } if(lKb == null) { return null; } return new THCaret(lKb, RAb, true);}function iAb(jAb){ var aAb = false; var lKb = jAb.node; var VWb = null; if(WPb(lKb)) { if(Zca == null) { return VWb; } else { aAb = true; } } if(lKb != null && lKb.parentNode != null && lKb.parentNode.getAttribute) { var XKb; var eAb; var fAb; var gAb; var hAb; if(lKb.nodeType == 1) { XKb = lKb.tagName; if(sca && XKb.toUpperCase() =="INPUT") { var feb = lKb.getAttribute("type"); var lAb = lKb.className; if(feb != null && feb =="button"&& lAb !="rwcalbutton"&& lAb !="rwcalEqbutton") { return VWb; } } eAb = lKb.getAttribute("started"); fAb = lKb.getAttribute("ignore"); gAb = lKb.getAttribute("sp"); hAb = lKb.getAttribute("csp"); if(hAb != null || fAb != null || gAb != null || eAb != null) { return VWb; } } var yWb = lKb.parentNode; eAb = yWb.getAttribute("started"); fAb = yWb.getAttribute("ignore"); gAb = yWb.getAttribute("sp"); hAb = yWb.getAttribute("csp"); if(hAb != null || fAb != null || gAb != null || eAb != null) { VWb = null; } else { var Obb; var Pbb; if(lKb.nodeType == 3) { var Xfb = jAb; try { if(!pea && Xfb.node.nodeValue.length > 0) { Xfb.offset = 0; Obb = JGb(Xfb); Xfb.offset = Xfb.node.nodeValue.length - 1; Pbb = XGb(Xfb); } else { Obb = JGb(Xfb); Pbb = XGb(Xfb); } if(Obb != null && Pbb != null) { var range = new THRange(zoa(yWb), FPb(Obb.node, Obb.offset), FPb(Pbb.node, Pbb.offset)); VWb = new THHoverTarget(null, null, range); VWb.blockCache = aAb; } } catch(err){Epa(err);} } else if(lKb.nodeType == 1) { if(lKb.tagName.toLowerCase() =="img"&& lKb.getAttribute("msg") != null) { Obb = JGb(jAb); Pbb = XGb(jAb); if(Obb != null && Pbb != null) { var range = new THRange(zoa(yWb), FPb(Obb.node, Obb.offset), FPb(Pbb.node, Pbb.offset)); VWb = new THHoverTarget(null, null, range); } else { VWb = new THHoverTarget(zoa(lKb), rKb(lKb), null); } VWb.blockCache = aAb; } else { VWb = new THHoverTarget(zoa(lKb), rKb(lKb), null); VWb.blockCache = aAb; VWb.allowContinuous = false; } } else { VWb = null; } } } return VWb;}function qAb(hWb, sAb){ if(AAb > 0) { clearTimeout(AAb); AAb = 0; } if(BAb > 0) { clearTimeout(BAb); BAb = 0; } if(Fca && !sAb) { yza = hWb; $rw_event_stop_limited(); AAb = setTimeout("rw_doHoverStep2()", 500); } else { yza = hWb; AAb = setTimeout("rw_doHoverStep1()", 500); }};function rw_doHoverStep1(){ if(yza == null) { return; } if($g_bMouseSpeech || ((Uca & calculator_icon) == calculator_icon)) { AAb = 0; if (yza != null) { var edb; if(yza instanceof String) { edb = yza.toString(); } else { if(yza.isRange()) { if(Xqa(yza.getCaretRange())) { edb =" "; } else { edb = null; } } else { edb = yza.getTextPreparedForSpeech(); } } if(edb == null || edb.length == 0) { return; } } if(AAb > 0) { clearTimeout(AAb); AAb = 0; } if(BAb > 0) { clearTimeout(BAb); BAb = 0; } $rw_event_stop_limited(); BAb = setTimeout("rw_doHoverStep2()", 500); }};var vAb = false;function rw_doHoverStep2(){ try { vAb = true; AAb = 0; if (yza != null) { if(zza!= null) { if(BAb > 0) { clearTimeout(BAb); BAb = 0; } $rw_event_stop_limited(); BAb = setTimeout("rw_doHoverStep2()", 500); } else { var d = new Date(); JAb = d.getTime(); if(yza.range != null) { cfa = yza; } rw_speakHoverTarget(yza); yza = null; } } } catch(ignore) { Epa(ignore); } vAb = false;};var yAb = new Array();var zAb = (new Date).getTime();var ABb = 0;var BBb = 500;function CBb(){ if((new Date).getTime() - zAb < BBb) { return true; } return false;}function rw_targetQueueTimer(){ if(CBb()) { ABb = setTimeout("rw_targetQueueTimer();", 100); } else { ABb = 0; if(yAb.length > 1) { var aPb = yAb[yAb.length - 2]; var target = yAb[yAb.length - 1]; yAb.length = 0; if(aPb =="rw_speakHoverTarget") { rw_speakHoverTarget(target); } else if(aPb =="rw_speechHighlightOnly") { rw_speechHighlightOnly(target); } else { bBb(target, aPb); } } }}function rw_speakHoverTarget(hBb){ try { if(hBb == null) { return; } if(CBb()) { yAb.push("rw_speakHoverTarget"); yAb.push(hBb); if(ABb == 0) { ABb = setTimeout("rw_targetQueueTimer();", 100); } return; } zAb = (new Date).getTime(); if(zza != null) { zza.unhighlightRange(); } if(hBb instanceof String) { zza = null; var HBb = hBb.toString(); var OCb = new SpeechStream.SpeechRequest(); OCb.setString(HBb, SpeechStream.SpeechRequestBookmarks.NONE); var lgb = OCb.getText(); var KBb = OCb.getFinalText(); if(!hBb.useHighlighting) { var flash = iVb.getConnector(); if(flash != null) { flash.simpleSpeech(lgb, !Jfa); } } else { jka(KBb, false, lgb); } } else { if(hBb.range && hBb.range instanceof THRange) { var MBb = wEb(hBb.range); if(MBb != null && WPb(MBb.Obb.node)) { if(Zca == null) { return; } else { hBb.blockCache = true; } } } zza = hBb; hBb.prepareTextForSpeech(); var edb = hBb.textToSpeak; if(edb != null && edb.length > 0) { $rw_setSentenceFromSelection(); if(!hBb.useHighlighting) { var flash = iVb.getConnector(); if(flash != null) { flash.simpleSpeech(edb, !Jfa); } } else { hBb.highlightRange(); var PBb = hBb.textToSpeakNoChanges; jka(edb, hBb.blockCache, PBb); } if(hda && hBb.allowContinuous) { if(hBb.equals(uda)) { uda = null; if(tda) { mla.push("rw_pageCompleteCallBack()"); } } else { UBb(hBb, hBb.blockCache); } } } } } catch(err) { Dpa("rw_speakHoverTarget error:"+err.message); }}function UBb(hBb){ var qXb = hBb.range; var vbb; var udb; if(qXb != null) { udb = qXb.body; vbb = oLb(udb, qXb.Gbb.path, qXb.Gbb.offset, qXb.Hbb.path, qXb.Hbb.offset); } else if(hBb.body != null && hBb.path != null) { udb = hBb.body; var TBb = new THCaret(CLb(udb, hBb.path), 0, true); vbb = new vha(TBb, TBb); } else { mla.push("rw_pageCompleteCallBack()"); return; } var XBb = QIb(vbb); if(XBb == null) { Nca = true; mla.push("rw_pageCompleteCallBack()"); return; } while(!Xqa(XBb)) { XBb = QIb(XBb); if(XBb == null) { Nca = true; mla.push("rw_pageCompleteCallBack()"); return; } } if(lBb(vbb.Obb.node, XBb.Pbb.node)) { Nca = true; mla.push("rw_pageCompleteCallBack()"); return; } Nca = false; if(kda) { var LSb = uIb(XBb.Obb.node); XBb.Obb.node = LSb; XBb.Pbb.node = zIb(XBb.Pbb.node); XBb.Obb.offset = 0; if(XBb.Pbb.node.nodeType == 1) { XBb.Pbb.offset = 0; } else { XBb.Pbb.offset = XBb.Pbb.node.length; } } var ZBb = new THRange(udb, FPb(XBb.Obb.node, XBb.Obb.offset), FPb(XBb.Pbb.node, XBb.Pbb.offset)); ida= new THHoverTarget(null, null, ZBb); var edb = ida.getTextPreparedForSpeech(); if(edb == null || edb.length == 0) { Nca = true; mla.push("rw_pageCompleteCallBack()"); return; } mla.push("setTimeout(\"$rw_readNextTarget();\", 50);");}function bBb(hBb, dBb){ if(hBb == null || dBb == null) { return; } if(CBb()) { yAb.push(dBb); yAb.push(hBb); if(ABb == 0) { ABb = setTimeout("rw_targetQueueTimer();", 100); } return; } zAb = (new Date).getTime(); if(zza != null) { zza.unhighlightRange(); } if(hBb instanceof String) { zza = null; try { var flash = iVb.getConnector(); if(flash != null) { Xva(true); flash.startSpeechFromFile(hBb, dBb); wma(); } } catch(err) { Epa(err); } } else { zza = hBb; var edb = hBb.getTextPreparedForSpeech(); if(edb != null && edb.length > 0) { hBb.highlightRange(); Jla(edb, dBb); } }}function rw_speechHighlightOnly(hBb){ if(hBb == null) { return; } if(CBb()) { yAb.push("rw_speechHighlightOnly"); yAb.push(hBb); if(ABb == 0) { ABb = setTimeout("rw_targetQueueTimer();", 100); } return; } zAb = (new Date).getTime(); if(zza != null) { zza.unhighlightRange(); } if(hBb instanceof String) { zza = null; } else { zza = hBb; var edb = hBb.getTextPreparedForSpeech(); if(edb != null && edb.length > 0) { hBb.highlightRange(); Ola(edb); } }}function $rw_readNextTarget(){ if(ida != null) { yza = ida; cfa = ida; ida = null; rw_doHoverStep2(); }}function lBb(mBb, rOb){ if(mBb == null || rOb == null || mBb == rOb) { return false; } var jBb; var RKb=mBb; while(RKb != null && RKb != rOb) { if(RKb.nodeType == 1) { if(RKb.getAttribute("texthelpStopContinuous") != null) { return true; } } jBb = !XJb(RKb); if (RKb.firstChild != null && jBb) { RKb = RKb.firstChild; } else if(RKb.nextSibling != null) { RKb = RKb.nextSibling; } else { while (RKb != null && RKb.nextSibling == null) { RKb = RKb.parentNode; if(RKb != null && RKb.nodeType == 1) { if(RKb.getAttribute("texthelpStopContinuous") != null) { return true; } } if(rOb == RKb) { return false; } } if (RKb != null && rOb != RKb) { RKb = RKb.nextSibling; } } } return false;}function pBb(XYb, lCb){ this.range = XYb; this.word = lCb; };function vBb(lRb, zJb, AKb, zCb){ try { if(zJb == null || AKb == null) { return new eya(); } var vbb = oLb(lRb, zJb.path, zJb.offset, AKb.path, AKb.offset); return ICb(vbb, zCb); } catch(err) { Dpa("err rw_getTextOverRangeToSpeak:"+"|"+ err.message); return new eya(); }};function ICb(NKb, zCb){ var ACb = new eya(); try { if(NKb == null) { return ACb; } var Obb = NKb.Obb; var Pbb = NKb.Pbb; if(Obb == null) { return ACb; } if(Pbb == null) { return ACb; } if(Obb.node != null) { var web = cCb(Obb.node); if(web != null) { Obb.node = web; Obb.offset = 0; } } if(Pbb.node != null && Pbb.node.nodeType == 3) { var web = cCb(Pbb.node); if(web != null) { if(Pbb.node.nodeType == 3) { Pbb.offset = Pbb.node.nodeValue.length; } Pbb.node = web; } } var FCb = false; if(!mca) { var Qbb = Obb.node; var xeb; while(Qbb != null) { if(Qbb.nodeType == 1) { xeb = Qbb.getAttribute("id"); if(xeb != null && xeb.length > 0) { if(xeb =="rwpopuptrans") { FCb = true; break; } else { if(xeb.indexOf("rwMeaning")!=0 && xeb.indexOf("rwHeadWord")!= 0) { break; } } } } Qbb = Qbb.parentNode; } } if(mca || FCb) { var KCb = fya(Obb.node); if(KCb != null) { ACb.voice = KCb; } var LCb = qya(Obb.node, Pbb.node, KCb); if(LCb != null) { ACb.vbb = new vha(NKb.Obb, LCb); Pbb = LCb; } } rw_getTextOverRangeToSpeakImpl(Obb, Pbb, zCb); var i; var bhb = zCb.length; var rSb = new Array(); for(i=0; i<bhb; i++) { rSb.push(zCb[i].word); } var OCb = new SpeechStream.SpeechRequest(); OCb.setWordList(rSb, SpeechStream.SpeechRequestBookmarks.ALL); ACb.PBb = OCb.getText(); ACb.edb = OCb.getFinalText(); return ACb; } catch(err) { Dpa("err rw_getTextOverRangeToSpeak:"+"|"+ err.message); return ACb; }};function PCb(qdb){ if(qdb == null) { return false; } if(qdb.nodeType == 1) { var tagName = qdb.tagName.toLowerCase(); if(tagName =="span") { var EPb = qdb.getAttribute("pron"); if(EPb != null) { return true; } EPb = qdb.getAttribute("chunk"); if(EPb != null) { return true; } } else if(tagName =="acronym"|| tagName =="abbr") { var EPb = qdb.getAttribute("title"); if(EPb != null) { return true; } } else if(tagName =="chunk") { return true; } else if(tagName =="img") { var EPb = qdb.getAttribute("msg"); if(EPb != null) { return true; } } else if(tagName =="math") { var jPb = uMb(qdb); if(jPb.length > 0) { return true; } } if(qdb.getAttribute("ignore") != null) { return true; } } return false;};function VCb(qdb){ if(qdb.nodeType == 1) { var tagName = qdb.tagName.toLowerCase(); if(tagName =="span") { var EPb = qdb.getAttribute("pron"); if(EPb != null) { return true; } EPb = qdb.getAttribute("chunk"); if(EPb != null && EPb =="1") { return true; } } else if(tagName =="acronym"|| tagName =="abbr") { var EPb = qdb.getAttribute("title"); if(EPb != null) { return true; } } else if(tagName =="math") { var jPb = uMb(qdb); if(jPb.length > 0) { return true; } } } return false;};function cCb(qdb){ if(qdb != null) { var udb = zoa(qdb); var Qbb = qdb; while(Qbb != null && Qbb != udb) { if(PCb(Qbb)) { return Qbb; } Qbb = Qbb.parentNode; } if(Qbb == udb) { if(Qbb.getAttribute("ignore") != null) { return Qbb; } } } return null;};var eCb = 500;function gCb(hCb){ var CDb = hCb.length; if(CDb > 1 && hCb.substr(CDb - 2, 2) ==". ") { return hCb; } else if(CDb > 0 && hCb.substr(CDb - 1, 1) ==".") { return hCb +" "; } else { var edb = hCb.trimEndTH(); var c = edb.charCodeAt(edb.length - 1); if(Upa(c) || c > 127) { return hCb +". "; } else { return hCb; } }}function kCb(lCb){ var Ggb =""; if(lCb.indexOf("<math") > -1) { return lCb; } else { var mCb = (lCb.length > 20); var Xab = 0; var bhb = lCb.length; var i = 0; var ILb; for(i = 0; i < bhb; i++) { ILb = lCb.charCodeAt(i); if(ILb > 127) { Ggb += lCb.charAt(i); } else { switch(ILb) { case 35: case 40: case 41: case 91: case 93: case 95: case 123: case 124: case 125: Ggb +=" "; break; case 96: Ggb +="'"; break; case 38: Ggb +="&amp;"; break; case 34: Ggb +="&quot;"; break; case 60: Ggb +="&lt"; break; case 62: Ggb +="&gt"; break; default: Ggb += lCb.charAt(i); } if(mCb) { if((ILb >=48 && ILb <=57) || ILb == 44) { ++Xab; if(Xab > 20) { Ggb +=' '; Xab = 0; } } else { Xab = 0; } } } } return Ggb; }}function rw_getTextOverRangeToSpeakImpl(PIb, yCb, zCb){ try { var NPb = PIb.node; var RKb = yCb.node; var udb = zoa(NPb); var RGb = PIb.offset; var bGb = yCb.offset; var vCb =""; var TKb = NPb; var BDb = null; var CDb = 0; var IKb = true; var Xab = 0; var PRb = FPb(TKb, RGb); var QRb = null; while(TKb != null) { if(Xab > eCb && eCb > 0) { if(tca) { throw"Full selection will not be spoken due to its length."; } else { cqa("Full selection will not be spoken due to its length."); } return; } if(PCb(TKb)) { if(vCb.length > 0) { if(Nqa(vCb)) { zCb[Xab++] = new pBb(new THRange(udb, PRb, QRb), vCb); } vCb =""; } var MDb = rJb(TKb); if(MDb.length > 0 && Nqa(MDb)) { if(VCb(TKb)) { var IDb = rFb(TKb, false); var JDb = vFb(TKb, false); var KDb =""; var LDb =""; if(IDb.nodeType == 1) { KDb = IDb.tagName.toLowerCase(); } if(JDb.nodeType == 1) { LDb = JDb.tagName.toLowerCase(); } if(IDb != null && IDb.nodeType == 3 && JDb != null && JDb.nodeType ==3) { PRb = FPb(IDb, 0); QRb = FPb(JDb, JDb.nodeValue.length); } if(IDb != null && IDb.nodeType == 1 && KDb =="math"&& JDb != null && JDb.nodeType ==1 && LDb =="math") { PRb = FPb(IDb, 0); QRb = FPb(JDb, MDb.length); } zCb[Xab++] = new pBb(new THRange(udb, PRb, QRb), MDb); } else { PRb = FPb(TKb, -1); zCb[Xab++] = new pBb(new THRange(udb, PRb, PRb), MDb); } vCb =""; } PRb = null; QRb = null; TKb = lFb(TKb, false, RKb); } else if(TKb.nodeType == 1) { if(IKb) { BDb = XFb(TKb, true, RKb); } else { BDb = KFb(TKb, true, RKb); } if(BDb == null) { if(vCb.length > 0) { if(Nqa(vCb)) { zCb[Xab++] = new pBb(new THRange(udb, PRb, QRb), gCb(vCb)); } vCb =""; PRb = null; QRb = null; } if(IKb) { TKb = XFb(TKb, false, RKb); } else { TKb = KFb(TKb, false, RKb); } } else { TKb = BDb; } } else if(TKb.nodeType == 3) { var MDb = rJb(TKb); if(MDb == null) { MDb =""; } var Wfb = 0; if(RKb == TKb && bGb > -1) { MDb = MDb.substring(0, bGb); } if(NPb == TKb && RGb > 0) { MDb = MDb.substring(RGb); Wfb = RGb; } if(MDb.length == 0 && vCb.length == 0) { PRb = null; } else { if(PRb == null || vCb.length == 0) { PRb = FPb(TKb, Wfb); } var fhb = bDb(MDb); while(fhb > -1) { if(fhb == 0) { if(vCb.length > 0) { if(Nqa(vCb)) { if(QRb == null) { QRb = FPb(TKb, Wfb); } var qXb = new THRange(udb, PRb, QRb); if(!Wda) { vCb = vCb + MDb.substr(0, 1); } else { var wJb = null; var RDb = null; var VDb = TKb.parentNode; if(VDb != null && VDb.nodeType == 1) { wJb = VDb.getAttribute("class"); RDb = VDb.getAttribute("className"); } var TDb = false; TDb = (wJb != null && (wJb.toLowerCase() =="x2"|| wJb.toLowerCase() =="x3")) || (RDb != null && (RDb.toLowerCase() =="x2"|| RDb.toLowerCase() =="x3")); var UDb = false; while(TDb) { if(VDb.previousSibling != null && VDb.previousSibling.nodeType == 1) { wJb = VDb.previousSibling.getAttribute("class"); RDb = VDb.previousSibling.getAttribute("className"); if(wJb != null && wJb.length > 3) { wJb = wJb.substr(wJb.length - 4).toLowerCase(); if(wJb =="text") { UDb = true; break; } } if(RDb != null && RDb.length > 3) { RDb = RDb.substr(RDb.length - 4).toLowerCase(); if(RDb =="text") { UDb = true; break; } } break; } VDb = VDb.parentNode; if(VDb != null && VDb.nodeType == 1 && VDb.tagName.toLowerCase() =="span") { } else { break; } } if(TDb) { if(!UDb) { vCb = vCb + MDb.substr(0, 1); } } else { if(TKb.previousSibling != null) { wJb = TKb.previousSibling.getAttribute("class"); RDb = TKb.previousSibling.getAttribute("className"); if( (wJb != null && (wJb.toLowerCase() =="x2"|| wJb.toLowerCase() =="x3")) || (RDb != null && (RDb.toLowerCase() =="x2"|| RDb.toLowerCase() =="x3")) ) { vCb = vCb + MDb.substr(0, 1); } } else { var VDb = TKb; var AQb = false; while(VDb.previousSibling == null && VDb.parentNode.tagName.toLowerCase() =="span") { VDb = VDb.parentNode; if(VDb.previousSibling != null) { AQb = true; } } if(AQb && VDb.previousSibling != null) { wJb = VDb.previousSibling.getAttribute("class"); RDb = VDb.previousSibling.getAttribute("className"); if( (wJb != null && (wJb.toLowerCase() =="x2"|| wJb.toLowerCase() =="x3")) || (RDb != null && (RDb.toLowerCase() =="x2"|| RDb.toLowerCase() =="x3")) ) { vCb = vCb + MDb.substr(0, 1); } } } } } zCb[Xab++] = new pBb(qXb, vCb); } vCb =""; ++Wfb; MDb = MDb.substr(1); } else { MDb = MDb.substr(1); ++Wfb; } } else { var XDb = vCb + MDb.substring(0, fhb + 1); if(XDb.trimTH() =="*") { if(! (Lfa && FQb("*")) ) { XDb =""; } } if(Nqa(XDb)) { QRb = FPb(TKb, fhb + Wfb); var qXb = new THRange(udb, PRb, QRb); zCb[Xab++] = new pBb(qXb, XDb); if(Xab > eCb && eCb > 0) { if(tca) { throw"Full selection will not be spoken due to its length."; } else { cqa("Full selection will not be spoken due to its length."); } return ; } } vCb =""; Wfb += fhb + 1; MDb= MDb.substring(fhb + 1); } PRb = FPb(TKb, Wfb); QRb = null; fhb = bDb(MDb); } if(MDb.length > 0) { vCb += MDb; QRb = FPb(TKb, MDb.length + Wfb); if(QRb == null) { vCb =""; } } if(TKb == RKb) { if(vCb.length > 0) { var qXb = new THRange(udb, PRb, QRb); if(Nqa(vCb)) { zCb[Xab++] = new pBb(qXb, vCb); } } return ; } } BDb = KFb(TKb, true, RKb); if(BDb == null) { if(vCb.length > 0) { if(Nqa(vCb)) { zCb[Xab++] = new pBb(new THRange(udb, PRb, QRb), gCb(vCb)); } vCb =""; PRb = null; QRb = null; } TKb = KFb(TKb, false, RKb); } else { TKb = BDb; } } else { BDb = KFb(TKb, true, RKb); if(BDb == null) { if(vCb.length > 0) { if(Nqa(vCb)) { zCb[Xab++] = new pBb(new THRange(udb, PRb, QRb), gCb(vCb)); } vCb =""; PRb = null; QRb = null; } TKb = KFb(TKb, false, RKb); } else { TKb = BDb; } } IKb = false; } } catch(err) { Dpa("err rw_getTextOverRangeToSpeakImpl:"+ err.message); }};function bDb(Nhb){ if(Nhb == null || Nhb.length == 0) { return -1; } var fhb = Nhb.search("\\s"); return fhb;};/* The following code is derived from MD5 hash functions (c) Paul Johnston, http://pajhome.org.uk/crypt/md5/. */var dDb = 0; var eDb =""; var fDb = 8;function gDb(s){ return zDb(hDb(xDb(s), s.length * fDb));}function hDb(x, Xma){x[Xma >> 5] |= 0x80 << ((Xma) % 32); x[(((Xma + 64) >>> 9) << 4) + 14] = Xma; var a = 1732584193; var b = -271733879; var c = -1732584194; var d = 271733878; for(var i = 0; i < x.length; i += 16) { var iDb = a; var jDb = b; var kDb = c; var lDb = d; a = nDb(a, b, c, d, x[i+ 0], 7 , -680876936); d = nDb(d, a, b, c, x[i+ 1], 12, -389564586); c = nDb(c, d, a, b, x[i+ 2], 17, 606105819); b = nDb(b, c, d, a, x[i+ 3], 22, -1044525330); a = nDb(a, b, c, d, x[i+ 4], 7 , -176418897); d = nDb(d, a, b, c, x[i+ 5], 12, 1200080426); c = nDb(c, d, a, b, x[i+ 6], 17, -1473231341); b = nDb(b, c, d, a, x[i+ 7], 22, -45705983); a = nDb(a, b, c, d, x[i+ 8], 7 , 1770035416); d = nDb(d, a, b, c, x[i+ 9], 12, -1958414417); c = nDb(c, d, a, b, x[i+10], 17, -42063); b = nDb(b, c, d, a, x[i+11], 22, -1990404162); a = nDb(a, b, c, d, x[i+12], 7 , 1804603682); d = nDb(d, a, b, c, x[i+13], 12, -40341101); c = nDb(c, d, a, b, x[i+14], 17, -1502002290); b = nDb(b, c, d, a, x[i+15], 22, 1236535329); a = oDb(a, b, c, d, x[i+ 1], 5 , -165796510); d = oDb(d, a, b, c, x[i+ 6], 9 , -1069501632); c = oDb(c, d, a, b, x[i+11], 14, 643717713); b = oDb(b, c, d, a, x[i+ 0], 20, -373897302); a = oDb(a, b, c, d, x[i+ 5], 5 , -701558691); d = oDb(d, a, b, c, x[i+10], 9 , 38016083); c = oDb(c, d, a, b, x[i+15], 14, -660478335); b = oDb(b, c, d, a, x[i+ 4], 20, -405537848); a = oDb(a, b, c, d, x[i+ 9], 5 , 568446438); d = oDb(d, a, b, c, x[i+14], 9 , -1019803690); c = oDb(c, d, a, b, x[i+ 3], 14, -187363961); b = oDb(b, c, d, a, x[i+ 8], 20, 1163531501); a = oDb(a, b, c, d, x[i+13], 5 , -1444681467); d = oDb(d, a, b, c, x[i+ 2], 9 , -51403784); c = oDb(c, d, a, b, x[i+ 7], 14, 1735328473); b = oDb(b, c, d, a, x[i+12], 20, -1926607734); a = pDb(a, b, c, d, x[i+ 5], 4 , -378558); d = pDb(d, a, b, c, x[i+ 8], 11, -2022574463); c = pDb(c, d, a, b, x[i+11], 16, 1839030562); b = pDb(b, c, d, a, x[i+14], 23, -35309556); a = pDb(a, b, c, d, x[i+ 1], 4 , -1530992060); d = pDb(d, a, b, c, x[i+ 4], 11, 1272893353); c = pDb(c, d, a, b, x[i+ 7], 16, -155497632); b = pDb(b, c, d, a, x[i+10], 23, -1094730640); a = pDb(a, b, c, d, x[i+13], 4 , 681279174); d = pDb(d, a, b, c, x[i+ 0], 11, -358537222); c = pDb(c, d, a, b, x[i+ 3], 16, -722521979); b = pDb(b, c, d, a, x[i+ 6], 23, 76029189); a = pDb(a, b, c, d, x[i+ 9], 4 , -640364487); d = pDb(d, a, b, c, x[i+12], 11, -421815835); c = pDb(c, d, a, b, x[i+15], 16, 530742520); b = pDb(b, c, d, a, x[i+ 2], 23, -995338651); a = qDb(a, b, c, d, x[i+ 0], 6 , -198630844); d = qDb(d, a, b, c, x[i+ 7], 10, 1126891415); c = qDb(c, d, a, b, x[i+14], 15, -1416354905); b = qDb(b, c, d, a, x[i+ 5], 21, -57434055); a = qDb(a, b, c, d, x[i+12], 6 , 1700485571); d = qDb(d, a, b, c, x[i+ 3], 10, -1894986606); c = qDb(c, d, a, b, x[i+10], 15, -1051523); b = qDb(b, c, d, a, x[i+ 1], 21, -2054922799); a = qDb(a, b, c, d, x[i+ 8], 6 , 1873313359); d = qDb(d, a, b, c, x[i+15], 10, -30611744); c = qDb(c, d, a, b, x[i+ 6], 15, -1560198380); b = qDb(b, c, d, a, x[i+13], 21, 1309151649); a = qDb(a, b, c, d, x[i+ 4], 6 , -145523070); d = qDb(d, a, b, c, x[i+11], 10, -1120210379); c = qDb(c, d, a, b, x[i+ 2], 15, 718787259); b = qDb(b, c, d, a, x[i+ 9], 21, -343485551); a = tDb(a, iDb); b = tDb(b, jDb); c = tDb(c, kDb); d = tDb(d, lDb); } return Array(a, b, c, d);}function mDb(q, a, b, x, s, t){ return tDb(uDb(tDb(tDb(a, q), tDb(x, t)), s),b);}function nDb(a, b, c, d, x, s, t){ return mDb((b & c) | ((~b) & d), a, b, x, s, t);}function oDb(a, b, c, d, x, s, t){ return mDb((b & d) | (c & (~d)), a, b, x, s, t);}function pDb(a, b, c, d, x, s, t){ return mDb(b ^ c ^ d, a, b, x, s, t);}function qDb(a, b, c, d, x, s, t){ return mDb(c ^ (b | (~d)), a, b, x, s, t);}function tDb(x, y){ var rDb = (x & 0xFFFF) + (y & 0xFFFF); var sDb = (x >> 16) + (y >> 16) + (rDb >> 16); return (sDb << 16) | (rDb & 0xFFFF);}function uDb(num, cnt){ return (num << cnt) | (num >>> (32 - cnt));}function xDb(NZb){ var vDb = Array(); var mask = (1 << fDb) - 1; for(var i = 0; i < NZb.length * fDb; i += fDb) { vDb[i>>5] |= (NZb.charCodeAt(i / fDb) & mask) << (i%32); } return vDb;}function zDb(binarray){ var yDb = dDb ?"0123456789ABCDEF":"0123456789abcdef"; var NZb =""; for(var i = 0; i < binarray.length * 4; i++) { NZb += yDb.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) + yDb.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF); } return NZb;}function $rw_hash(Eab){ return gDb(Eab);}function $rw_cachePage(Aza, p_strSpeed, p_strBookName) { var EEb = 0; try { if(gda) { eba_cacheResult ="failure: The embedded speech toolbar cannot be added due to invalid html tag markup in this page."; window.external.completed(eba_cacheResult); return eba_cacheResult; } if(ica == 300) { if(typeof(p_strBookName) =="string"&& p_strBookName != null && p_strBookName.length > 0) { gca = p_strBookName; } else { gca ="1"; } hca ="1"; } if(tca) { if(p_strSpeed != null) { $rw_setSpeedValue(parseInt(p_strSpeed)); } if(Aza != null) { $rw_setVoice(Aza); } var CEb = sHb(document.body); $rw_doSelection(-2); EEb = JEb(CEb, EEb); } else { eba_cacheResult ="failure: The generate cache flag was set to false, no processing done for this page."; window.external.completed(eba_cacheResult); return eba_cacheResult; } } catch(err) { if(err.message != null) { eba_cacheResult ="failure:"+ err.message; } else { eba_cacheResult ="failure:"+ err; } window.external.completed(eba_cacheResult); return eba_cacheResult; } eba_cacheResult ="success"; if(EEb > 0) { eba_cacheResult = eba_cacheResult +":Warning, encountered "+ EEb +" zero length speech files."; } window.external.completed(eba_cacheResult); return"success";}function JEb(KEb, LEb){ var DEb = KEb; var EEb = LEb; var FEb = 0; while(DEb != null) { var GEb = ICb(DEb, new Array()); var edb = GEb.edb; if(edb == null || edb.trimTH().length == 0) { if(DEb != null) { var IEb = QIb(DEb); if(IEb != null) { DEb = IEb; } else { if(FEb > 1) { throw"Speech engine generating empty files."; } QEb(); return EEb; } } else { if(FEb > 1) { throw"Speech engine generating empty files."; } QEb(); return EEb; } } var MEb = zMb(edb); var NEb = XEb(); var zgb = window.external.Generate(edb, NEb, MEb); if(zgb == 1) { FEb = 0; } else { if(zgb == 2) { throw"Got a Failure response from the speech engine."; } else if(zgb == 3) { ++EEb; ++FEb; if(FEb > 4) { throw"Speech engine generating empty files."; } } } DEb = QIb(DEb); } if(FEb > 1) { throw"Speech engine generating empty files."; } QEb(); return EEb;}function QEb(){ var Pgb = document.getElementById("pageComplete"); if(Pgb != null) { Pgb.click(); }}function UEb(ehb){ if(wca) { var REb = ZEb(); var SEb = zMb(ehb); var TEb = aEb(SEb); return REb +"/"+ TEb +"/"+SEb; } else { return ZEb() +"/"+ zMb(ehb); }}function XEb(){ var NZb = YQb(eca," ","_"); if(eda) { return cEb(fca +"\\"+ gca +"\\"+ $rw_scholasticHash(hca) +"\\"+ hca +"\\"+ NZb + (pca)); } else { return cEb(fca +"\\"+ gca +"\\"+ hca +"\\"+ NZb + pca); }}function ZEb(){ var NZb = YQb(eca," ","_"); if(eda) { return cEb(fca +"/"+ gca +"/"+ $rw_scholasticHash(hca) +"/"+ hca +"/"+ NZb + pca); } else { return cEb(fca +"/"+ gca +"/"+ hca +"/"+ NZb + pca); }}function aEb(PMb){ if(PMb == null || PMb.length < 2) { return"1/1"; } return PMb.substr(0, 1) +"/"+ PMb.substr(1, 1);}function cEb(Eab){ return Eab.replace(/[\x26\x3a\x2a\x3f\x22<>\x7c]/g,""); }var WUb ="";function $rw_speechCacheGenErrorHandler(hha){ WUb = hha; var Pgb = document.getElementById("pageFailed"); if(Pgb != null) { Pgb.click(); }}function $rw_getLastError(){ return WUb;}function kEb(qIb){ if(qIb == null || qIb.Obb == null || qIb.Pbb == null) { return null; } return new THRange(qIb.Obb.node.ownerDocument.body, FPb(qIb.Obb.node, qIb.Obb.offset), FPb(qIb.Pbb.node, qIb.Pbb.offset));}function qEb(vEb){ if(vEb == null || vEb.Gbb == null || vEb.Hbb == null) { return null; } else { return new THRange(vEb.body, vEb.Gbb, vEb.Hbb); }}function uEb(vEb){ if(vEb == null || vEb.Gbb == null || vEb.Hbb == null) { return null; } else { var Obb = ULb( vEb.body, vEb.Gbb.path, vEb.Gbb.offset, true); var Pbb = ULb( vEb.body, vEb.Hbb.path, vEb.Hbb.offset, false); if(Obb != null && Pbb != null) { return new vha(vEb.body, Obb, Pbb); } else { return null; } }}function wEb(XYb){ if(XYb == null || XYb.Gbb == null || XYb.Hbb == null) { return null; } else { var Obb = ULb( XYb.body, XYb.Gbb.path, XYb.Gbb.offset, true); var Pbb = ULb( XYb.body, XYb.Hbb.path, XYb.Hbb.offset, false); if(Obb != null && Pbb != null) { return new vha(Obb, Pbb); } else { return null; } }}function AFb(qdb){ if(qdb == null) { return false; } var udb = qdb.ownerDocument.body; var Qbb = qdb; while(Qbb != null && Qbb != udb) { if(XJb(Qbb)) { return true; } Qbb = Qbb.parentNode; } return false;}function DFb(qdb, kHb, rOb){ if(qdb == null || qdb == rOb) { return null; } var NPb = qdb; if (NPb.previousSibling != null) { NPb = NPb.previousSibling; if(kHb) { if(!TJb(NPb)) { return null; } } if(NPb != null && XJb(NPb)) { if(rOb == NPb) { return null; } NPb = DFb(NPb, kHb, rOb); } else { while(NPb != null && NPb.lastChild != null) { if(NPb.nodeType == 1 && NPb.tagName.toLowerCase() =="math") { break; } NPb = NPb.lastChild; if(kHb) { if(!TJb(NPb)) { NPb = null; } } if(NPb != null && XJb(NPb)) { if(rOb == NPb) { return null; } NPb = DFb(NPb, kHb, rOb); break; } } } } else { NPb = NPb.parentNode; if(kHb) { if(!TJb(NPb)) { NPb = null; } } } return NPb;};function KFb(qdb, kHb, rOb){ if(qdb == null || qdb == rOb) { return null; } var AGb = XJb(qdb); if(qdb.nodeType == 1) { if(qdb.tagName.toLowerCase() =="math") { AGb = true; } } var RKb = qdb; if (RKb.firstChild != null && !AGb) { RKb = RKb.firstChild; } else if(RKb.nextSibling != null) { RKb = RKb.nextSibling; } else { while (RKb != null && RKb.nextSibling == null) { RKb = RKb.parentNode; if(kHb) { if(!TJb(RKb)) { RKb = null; } } if(rOb == RKb) { break; } } if (RKb != null && rOb != RKb) { RKb = RKb.nextSibling; } } if(RKb != null) { if(kHb) { if(!TJb(RKb)) { RKb = null; } } } if(RKb != null && XJb(RKb)) { if(RKb != rOb) { RKb = KFb(RKb, kHb, rOb); } else { RKb = null; } } return RKb;};function RFb(qdb, PMb, UFb){ if(qdb == null || PMb == null) { return null; } var node = qdb; if(UFb < 0) { UFb = 0; } var PFb = 0; var AQb = false; while(!AQb) { if (node.firstChild != null) { node = node.firstChild; } else if(node.nextSibling != null) { node = node.nextSibling; } else { while (node != null && node.nextSibling == null) { node = node.parentNode; } if(node != null) { node = node.nextSibling; } else { return null; } } if(node.nodeType == 1 && node.tagName.toLowerCase() == PMb.toLowerCase()) { if(PFb == UFb) { AQb = true; } else { ++PFb; } } } return node;};function XFb(qdb, kHb, rOb){ if(qdb == null) { return null; } var AGb = XJb(qdb); var RKb = qdb; if (RKb.firstChild != null && !AGb) { RKb = RKb.firstChild; } else if(RKb.nextSibling != null) { if(qdb == rOb) { RKb = null; } else { RKb = RKb.nextSibling; } } else { if(qdb == rOb) { RKb = null; } else { while (RKb != null && RKb.nextSibling == null) { RKb = RKb.parentNode; if(kHb) { if(TJb(RKb) == false) { RKb = null; } } if(rOb == RKb) { break; } } if (RKb != null && rOb != RKb) { RKb = RKb.nextSibling; } } } if(RKb != null) { if(kHb) { if(TJb(RKb) == false) { RKb = null; } } } if(RKb != null && XJb(RKb)) { if(RKb != rOb) { RKb = KFb(RKb, kHb, rOb); } else { RKb = null; } } return RKb;};function eFb(qdb, kHb, rOb){ if(qdb == null || qdb == rOb) { return null; } var NPb = qdb; if (NPb.previousSibling != null) { NPb = NPb.previousSibling; if(kHb) { if(!TJb(NPb)) { NPb = null; } } if(NPb != null && XJb(NPb)) { if(rOb == NPb) { NPb = null; } else { NPb = eFb(NPb, kHb, rOb); } } } else { NPb = NPb.parentNode; if(kHb) { if(!TJb(NPb)) { NPb = null; } } } return NPb;};function lFb(qdb, kHb, rOb){ if(qdb == null || qdb == rOb) { return null; } var RKb = qdb; if(RKb.nextSibling != null) { RKb = RKb.nextSibling; } else { while (RKb != null && RKb.nextSibling == null) { RKb = RKb.parentNode; if(kHb) { if(TJb(RKb) == false) { RKb = null; } } if(rOb == RKb) { break; } } if (RKb != null && RKb != rOb) { RKb = RKb.nextSibling; } } if(RKb != null) { if(kHb) { if(TJb(RKb) == false) { RKb = null; } } } if(RKb != null && XJb(RKb)) { if(RKb == rOb) { RKb = null; } else { RKb = lFb(RKb, kHb, rOb); } } return RKb;};function rFb(qdb, xFb){ if(qdb == null) { return null; } if(qdb.firstChild == null || XJb(qdb)) { return qdb; } if(qdb.nodeType == 1 && qdb.tagName.toLowerCase() =="textarea") { return qdb; } if(qdb.nodeType == 1 && qdb.tagName.toLowerCase() =="math") { return qdb; } var Qbb = qdb.firstChild; if(Qbb.nodeType == 3) { return Qbb; } else if(Qbb.nodeType == 1 && xFb && Qbb.tagName.toLowerCase() =="img"&& Qbb.getAttribute("msg") != null && Qbb.getAttribute("msg").length > 0) { return Qbb; } else { if(xFb) { return NHb(Qbb, false, qdb); } else { return dHb(Qbb, false, qdb, true); } }}function vFb(qdb, xFb){ if(qdb == null) { return null; } if(qdb.lastChild == null || XJb(qdb)) { return qdb; } if(qdb.nodeType == 1 && qdb.tagName.toLowerCase() =="textarea") { return qdb; } if(qdb.nodeType == 1 && qdb.tagName.toLowerCase() =="math") { return qdb; } var Qbb = qdb.lastChild; while(Qbb != null) { if(Qbb.nodeType == 3) { return Qbb; } else if(Qbb.nodeType == 1 && xFb && Qbb.tagName.toLowerCase() =="img"&& Qbb.getAttribute("msg") != null && Qbb.getAttribute("msg").length > 0) { return Qbb; } else if(XJb(Qbb) || Qbb.lastChild == null) { var odb; if(xFb) { odb = mGb(Qbb, false, qdb); } else { odb = CHb(Qbb, false, qdb, true); } return odb; } else { Qbb = Qbb.lastChild; } } return qdb;}function FGb(wQb){ var AGb = XJb(wQb); var RKb = wQb; if (RKb.firstChild != null && !AGb) { RKb = RKb.firstChild; } else if(RKb.nextSibling != null) { var TKb = RKb; RKb = RKb.nextSibling; var Qbb = RKb; var udb = Qbb.ownerDocument.body; while(Qbb != null && Qbb != udb) { if(Qbb == TKb) { throw"DOM Error"; } Qbb = Qbb.parentNode; } } else { while (RKb != null && RKb.nextSibling == null) { RKb = RKb.parentNode; } if (RKb != null) { var TKb = RKb; RKb = RKb.nextSibling; var Qbb = RKb; var udb = Qbb.ownerDocument.body; while(Qbb != null && Qbb != udb) { if(Qbb == TKb) { throw"DOM Error"; } Qbb = Qbb.parentNode; } } } if(RKb != null && XJb(RKb)) { RKb = FGb(RKb); } return RKb;};function JGb(Tdb, rOb){ if(typeof(rOb) =="undefined") { rOb = null; } if(Tdb == null || Tdb.node == null) { return null; } var node = Tdb.node; var Wfb = Tdb.offset; if(Tdb.node.nodeType == 1 && Tdb.node.tagName.toLowerCase() =="math") { return Tdb; } if(Tdb.forwardBias) { if(node.nodeType == 3 && Wfb == node.nodeValue.length) { node = NHb(node, true, rOb); Wfb = 0; if(node == null) { node = Tdb.node; Wfb = Tdb.offset; } } } else { if(Wfb > 0) { --Wfb; } else { node = mGb(node, true, rOb); if(node == null) { return Tdb; } if(node.nodeType == 3) { Wfb = node.nodeValue.length - 1; } else { Wfb = 0; if(node.tagName.toLowerCase() =="math") { return Tdb; } } } } if(node.nodeType == 3) { var NGb = node.nodeValue.charAt(Wfb); if(NGb =='.'|| NGb =='!'|| NGb =='?'|| NGb ==':') { if(Wfb > 0) { --Wfb; } else { node = mGb(node, true, rOb); if(node == null) { return Tdb; } if(node.nodeType == 3) { Wfb = node.nodeValue.length - 1; } else { Wfb = 0; if(node.tagName.toLowerCase() =="math") { return Tdb; } } } } } var cGb = node; var dGb = Wfb; var NPb = node; var RGb = Wfb; var lQb = false; var fGb =' '; while(!lQb) { if(NPb.nodeType == 3) { var edb = NPb.nodeValue; if(edb.length > 0) { if(RGb == -1) { RGb = edb.length; } edb = edb.replace(/[\x21\x3f\x3a]/g,"."); var fhb = edb.lastIndexOf(".", RGb); while(fhb > -1) { if(wua(edb, fhb, NPb)) { if(fhb < edb.length - 1) { cGb = NPb; dGb = fhb + 1; lQb = true; break; } else { if(!Ypa(fGb)) { lQb = true; break; } } } if(fhb == 0) { fhb = -1; } else { fhb = edb.lastIndexOf(".", fhb - 1); } } if(lQb) { break; } if(edb.trimTH().length > 0) { cGb = NPb; dGb = 0; } fGb = edb.charAt(0); } } else { if(PCb(NPb) && NPb.getAttribute("ignore") == null) { if(NPb.tagName.toLowerCase() =="math") { lQb = true; break; } cGb = NPb; dGb = 0; } } NPb = DFb(NPb, true, rOb); RGb = -1; if(NPb == null) { lQb = true; break; } if(NPb.nodeType == 3 && cCb(NPb) != null) { NPb = cCb(NPb); NPb = DFb(NPb, true, rOb); } } if(cGb.nodeType == 3) { var edb = cGb.nodeValue; if(dGb < edb.length) { while(dGb < edb.length) { if(Aqa(edb.charAt(dGb))) { ++dGb; } else { break; } } } } return new THCaret(cGb, dGb, true);}function XGb(Tdb, rOb){ if(typeof(rOb) =="undefined") { rOb = null; } if(Tdb == null || Tdb.node == null) { return null; } var RKb = Tdb.node; var bGb = Tdb.offset; var cGb = RKb; var dGb = bGb; var lQb = false; var fGb =' '; while(!lQb) { if(RKb.nodeType == 3) { var edb = RKb.nodeValue; if(edb.length > 0) { if(fGb =='.') { var hGb = edb.charAt(bGb); if(!Ypa(hGb)) { lQb = true; break; } } edb = edb.replace(/[\x21\x3f\x3a]/g,"."); var fhb = edb.indexOf(".", bGb); while(fhb > -1) { if(wua(edb, fhb, RKb)) { if(fhb < edb.length - 1) { cGb = RKb; dGb = fhb + 1; lQb = true; } break; } bGb = fhb + 1; fhb = edb.indexOf(".", bGb); } if(lQb) { break; } if(edb.trimTH().length > 0) { cGb = RKb; dGb = edb.length; } fGb = edb.charAt(edb.length -1); if(fGb =='.') { if(!wua(edb, edb.length -1, RKb)) { fGb =' '; } } } RKb = KFb(RKb, true, rOb); } else { if(PCb(RKb) && RKb.getAttribute("ignore") == null) { if(RKb.tagName.toLowerCase() =="math") { lQb = true; break; } cGb = RKb; dGb = 0; RKb = lFb(RKb, true, rOb); } else { RKb = KFb(RKb, true, rOb); } } bGb = 0; if(RKb == null) { lQb = true; break; } } if(cGb.nodeType == 3) { var edb = cGb.nodeValue; if(dGb > 0 && dGb <= edb.length) { while(dGb > 0) { if(Aqa(edb.charAt(dGb - 1))) { --dGb; } else { break; } } } } return new THCaret(cGb, dGb, false);}function mGb(qdb, kHb, rOb){ var NPb = qdb; var AQb = false; while (NPb != null && NPb != rOb) { NPb = DFb(NPb, kHb, rOb); if(NPb != null) { if (NPb.nodeType == 3 && NPb.parentNode.tagName.toLowerCase() !="textarea") { AQb = true; } if (NPb.nodeType == 1 && NPb.tagName.toLowerCase() =="math") { AQb = true; } else if(NPb.nodeType == 1 && NPb.tagName.toLowerCase() =="img") { var wJb = NPb.getAttribute("msg"); if (wJb != null && wJb.length > 0) { AQb = true; } } if(AQb) { return NPb; } } } return null;}function vGb(qdb, kHb, rOb){ var NPb = qdb; while(NPb != null && NPb != rOb) { NPb = mGb(NPb, kHb, rOb); if(NPb != null) { var VHb = (NPb.nodeType == 3)? NPb.nodeValue.trimTH() : NPb.getAttribute("msg").trimTH(); if(Nqa(VHb)) { return NPb; } } } return null;}function CHb(qdb, kHb, rOb, hHb){ var NPb = (hHb)? mGb(qdb, kHb, rOb) : vGb(qdb, kHb, rOb); while(NPb != null && NPb.nodeType != 3 && NPb != rOb) { if(NPb.tagName.toLowerCase() =="math") { break; } NPb = (hHb)? mGb(NPb, kHb, rOb) : vGb(NPb, kHb, rOb); } return NPb;}function NHb(qdb, kHb, rOb){ var RKb = qdb; var AQb = false; while (RKb != null && RKb != rOb) { RKb = KFb(RKb, kHb, rOb); if(RKb != null) { if (RKb.nodeType == 3 && RKb.parentNode.tagName.toLowerCase() !="textarea") { AQb = true; } if (RKb.nodeType == 1 && RKb.tagName.toLowerCase() =="math") { AQb = true; } else if(RKb.nodeType == 1 && RKb.tagName.toLowerCase() =="img") { var wJb = RKb.getAttribute("msg"); if (wJb != null && wJb.length > 0) { AQb = true; } } if(AQb) { return RKb; } } } return null;}function WHb(qdb, kHb, rOb){ var RKb = qdb; while(RKb != null && RKb != rOb) { RKb = NHb(RKb, kHb, rOb); if(RKb != null) { var VHb; if(RKb.nodeType == 3) { VHb = RKb.nodeValue.trimTH(); } else { if(RKb.tagName.toLowerCase() =="img") { VHb = RKb.getAttribute("msg").trimTH(); } else if(RKb.tagName.toLowerCase() =="math") { VHb = uMb(RKb); } } if(Nqa(VHb)) { return RKb; } } } return null;}function dHb(qdb, kHb, rOb, hHb){ var RKb = (hHb)? NHb(qdb, kHb, rOb) : WHb(qdb, kHb, rOb); while(RKb != null && RKb.nodeType != 3 && RKb != rOb) { if(RKb.tagName.toLowerCase() =="math") { break; } RKb = (hHb)? NHb(RKb, kHb, rOb) : WHb(RKb, kHb, rOb); } return RKb;}function sHb(lRb){ var YIb = rFb(lRb, true); var Obb = new THCaret(YIb, 0, true); var Pbb = XGb(Obb, lRb); Obb = JGb(Pbb, lRb); if(Obb == null || Pbb == null) { return null; } var aWb = new vha(Obb, Pbb); var BIb = false; while(!BIb) { BIb = Xqa(aWb) && pIb(aWb); if(!BIb) { var CIb = QIb(aWb, lRb); if(CIb == null || (Pbb.node == CIb.Pbb.node && Pbb.offset == CIb.Pbb.offset) || (Obb.node == CIb.Obb.node && Obb.offset == CIb.Obb.offset)) { break; } else { aWb = CIb; } } } return aWb;}function DIb(lRb){ var YIb = vFb(lRb, true); var Pbb; if(YIb.nodeType == 3) { Pbb = new THCaret(YIb, YIb.nodeValue.length, false); } else { Pbb = new THCaret(YIb, -1, false); } var Obb = JGb(Pbb, lRb); Pbb = XGb(Obb, lRb); if(Obb == null || Pbb == null) { return null; } var aWb = new vha(Obb, Pbb); var BIb = false; while(!BIb) { BIb = Xqa(aWb) && pIb(aWb); if(!BIb) { var CIb = cIb(aWb, lRb); if(CIb == null || (Pbb.node == CIb.Pbb.node && Pbb.offset == CIb.Pbb.offset) || (Obb.node == CIb.Obb.node && Obb.offset == CIb.Obb.offset)) { break; } else { aWb = CIb; } } } return aWb;}function KIb(Tdb){ var Pbb = XGb(Tdb); var Obb = JGb(Pbb); if(Obb == null || Pbb == null) { return null; } return new vha(Obb, Pbb);}function OIb(PIb,yCb){ var Obb = JGb(PIb, null); var Pbb = XGb(yCb, null); if(Obb == null || Pbb == null) { return null; } return new vha(Obb, Pbb);}function QIb(qIb, rOb){ if(qIb == null) { return null; } if(typeof(rOb) =="undefined") { rOb = null; } var TKb = qIb.Pbb.node; var gIb = qIb.Pbb.offset; if(gIb == lha) { TKb = lFb(TKb, false, rOb); gIb = 0; } var Pbb; var Obb; while(TKb != null) { if(TKb.nodeType == 3 && gIb < TKb.nodeValue.length) { Pbb = XGb( new THCaret(TKb, gIb, false), rOb); if(Pbb == null) { return null; } if(Pbb.node == TKb && Pbb.offset == gIb) { var YIb = WHb(TKb, false, rOb); if(YIb == null) { return null; } Pbb = XGb(new THCaret(YIb, 0, false), rOb); } } else { var YIb = WHb(TKb, false, rOb); if(YIb == null) { return null; } Pbb = XGb(new THCaret(YIb, 0, false), rOb); } Obb = JGb(Pbb, null); if(Obb == null) { return null; } if(qIb.Obb.node != Obb.node || qIb.Obb.offset != Obb.offset) { var aWb = new vha(Obb, Pbb); if(pIb(aWb) && Xqa(aWb)) { return aWb ; } } TKb = Pbb.node; if(TKb.nodeType == 3) { var OPb = TKb.nodeValue.replace(/[\x21\x3f\x3a]/g,"."); var kIb = OPb.indexOf(".", Pbb.offset + 1); if(kIb == -1) { gIb = OPb.length; } else { gIb = kIb; } } } return null;}function cIb(qIb, rOb){ if(typeof(rOb) =="undefined") { rOb = null; } var TKb = qIb.Obb.node; var gIb = qIb.Obb.offset; var Obb; var Pbb; while(TKb != null) { if(TKb.nodeType == 3) { var OPb = TKb.nodeValue.replace(/[\x21\x3f\x3a]/g,"."); var kIb; if(gIb > 0) { kIb = OPb.lastIndexOf(".", gIb); } else if(gIb == 0) { kIb = -1; } else { kIb = OPb.lastIndexOf("."); } while(kIb > -1) { gIb = kIb; Pbb = XGb(new THCaret(TKb, gIb, true), rOb); if(Pbb == null) { return null; } if(Pbb.node != qIb.Pbb.node || Pbb.offset != qIb.Pbb.offset) { Obb = JGb(Pbb, rOb); if(Obb == null) { return null; } var aWb = new vha(Obb, Pbb); if(pIb(aWb) && Xqa(aWb)) { return aWb ; } } if(kIb == 0) { kIb = -1; } else { kIb = OPb.lastIndexOf(".", kIb - 1); } } } gIb = -1; Qbb = CHb(TKb, true, rOb, false); if(Qbb != null) { TKb = Qbb; } else { TKb = vGb(TKb, false, rOb); if(TKb != null) { if(TKb.nodeType == 3) { Pbb = XGb(new THCaret(TKb, TKb.nodeValue.length, false), rOb); } else { Pbb = XGb(new THCaret(TKb, 0, false), rOb); } if(Pbb == null) { return null; } if(Pbb.node != qIb.Pbb.node || Pbb.offset != qIb.Pbb.offset) { Obb = JGb(Pbb, rOb); if(Obb == null) { return null; } return new vha(Obb, Pbb); } } } } return null;}function pIb(qIb){ var Jbb = qIb.Obb.node; var udb = Jbb.ownerDocument.body; while(Jbb != null && Jbb != udb) { if(Jbb.nodeType == 1 && Jbb.getAttribute(caa) != null) { return false; } Jbb = Jbb.parentNode; } var Kbb = qIb.Pbb.node; if(Kbb != Jbb) { while(Kbb != null && Kbb != udb) { if(Kbb.nodeType == 1 && Kbb.getAttribute(caa) != null) { return false; } Kbb = Kbb.parentNode; } } return true;}function uIb(qdb){ var wIb; var xIb = qdb; var odb = DFb(qdb, true, null); while(odb != null) { wIb = false; if(odb.nodeType == 1) { if(PCb(odb)) { if(odb.getAttribute("ignore") != null) { wIb = true; } } else { wIb = true; } } else if(odb.nodeType == 3) { if(odb.nodeValue.trimTH().length == 0) { wIb = true; } } if(!wIb) { xIb = odb; } odb = DFb(odb, true, null); } return xIb;}function zIb(qdb){ var wIb; var xIb = qdb; var yQb = KFb(qdb, true, null); while(yQb != null) { wIb = false; if(yQb.nodeType == 1) { if(PCb(yQb)) { if(yQb.getAttribute("ignore") != null) { wIb = true; } } else { wIb = true; } } else if(yQb.nodeType == 3) { if(yQb.nodeValue.trimTH().length == 0) { wIb = true; } } if(!wIb) { xIb = yQb; } yQb = KFb(yQb, true, null); } return xIb;}function EJb(qdb, Ohb){ if(qdb == null || qdb.nodeType != 3 || qdb.parentNode == null) { return qdb; } var BJb = 0; var Zeb = qdb.parentNode; var DJb = Zeb.parentNode; if(DJb != null && Zeb.tagName.toLowerCase() =="span"&& DJb.tagName.toLowerCase() =="span"&& Zeb.getAttribute(daa) != null && (DJb.getAttribute(daa) != null || DJb.getAttribute(eaa) != null)) { BJb = 2; } else if(Zeb.tagName.toLowerCase() =="span"&& (Zeb.getAttribute(daa) != null || Zeb.getAttribute(eaa) != null)) { BJb = 1; } if(qdb.nodeValue.length == 0 || Ohb <= 0 || Ohb >= qdb.nodeValue.length) { if(BJb == 0) { var span = document.createElement("span"); span.setAttribute(daa,"1"); var NJb = document.createElement("span"); NJb.setAttribute(daa,"1"); Zeb.insertBefore(span, qdb); span.appendChild(NJb); NJb.appendChild(qdb); } else if(BJb == 1) { var span = document.createElement("span"); span.setAttribute(daa,"1"); Zeb.insertBefore(span, qdb); span.appendChild(qdb); } return qdb; } var edb = qdb.nodeValue; var igb = edb.substring(0, Ohb); var MJb = edb.substring(Ohb); var NJb = document.createElement("span"); var OJb = document.createElement("span"); var PJb = document.createTextNode(igb); var QJb = document.createTextNode(MJb); NJb.appendChild(PJb); OJb.appendChild(QJb); NJb.setAttribute(daa,"1"); OJb.setAttribute(daa,"1"); if(BJb == 2) { DJb.insertBefore(OJb, Zeb); DJb.insertBefore(NJb, OJb); DJb.removeChild(Zeb); } else if(BJb == 1) { Zeb.insertBefore(NJb, qdb); Zeb.insertBefore(OJb, qdb); Zeb.removeChild(qdb); } else { var span = document.createElement("span"); span.setAttribute(daa,"1"); span.appendChild(NJb); span.appendChild(OJb); Zeb.insertBefore(span, qdb); Zeb.removeChild(qdb); } return QJb;}function TJb(qdb){ if(qdb.nodeType != 1) { return qdb.nodeType == 3; } var rdb = qdb.tagName.toLowerCase().trimTH(); if(rdb =="font") { var feb = qdb.getAttribute("started"); if(feb != null && feb =="1") { return false; } } if(rdb =="span"&& qdb.getAttribute("texthelpSkip") != null) { return false; } if(rdb =="em"|| rdb =="strong"|| rdb =="b"|| rdb =="i"|| rdb =="u"|| rdb =="tt"|| rdb =="font"|| rdb =="kbd"|| rdb =="dfn"|| rdb =="cite"|| rdb =="sup"|| rdb =="sub"|| rdb =="a"|| rdb =="embed"|| rdb =="span"|| rdb =="small"|| rdb =="nobr"|| rdb =="wbr"|| rdb =="acronym"|| rdb =="abbr"|| rdb =="code"|| rdb =="s"|| rdb =="chunk"|| rdb =="th:pron"|| rdb =="img"|| rdb =="/th:pron"|| rdb =="w"|| rdb =="/w"|| rdb =="lic"|| rdb =="/lic") { return true; } return false;}function XJb(qdb){ if(qdb == null) { return true; } if(qdb.nodeType != 1) { return qdb.nodeType != 3; } var EPb; EPb = qdb.getAttribute("ignore"); if(EPb != null) { return true; } EPb = qdb.getAttribute(Yba); if(EPb != null && !Eca) { return true; } if(dfa) { var ZJb = cMb(qdb); if(ZJb != null) { if(ZJb.visibility =="hidden"|| ZJb.display =="none") { return true; } } } var rdb = qdb.tagName.toLowerCase(); return rdb =="link"|| rdb =="area"|| rdb =="script"|| rdb =="noscript"|| rdb =="annotation"|| rdb =="style"|| rdb =="!--"|| rdb =="title"|| rdb =="html:script"; }function dJb(qdb){ if(qdb != null && qdb.nodeType == 3) { qdb = qdb.parentNode; } if(qdb == null) { return true; } var udb = qdb.ownerDocument.body; var Qbb = qdb; while(Qbb != null && Qbb.nodeType == 1) { if(Qbb.getAttribute("ignore") != null) { return true; } if(Qbb==udb) { break; } Qbb = Qbb.parentNode; } return false;}function gJb(wQb){ if(wQb.nodeType != 1) { return false; } var rdb = wQb.tagName.toLowerCase().trimTH(); return rdb =="p"|| rdb =="br"|| rdb =="head"|| rdb =="body"|| rdb =="hr"|| rdb =="div"|| rdb =="h1"|| rdb =="h2"|| rdb =="h3"|| rdb =="h4"|| rdb =="h5"|| rdb =="h6"|| rdb =="blockquote"|| rdb =="table"|| rdb =="tbody"|| rdb =="tr"|| rdb =="td"|| rdb =="th";};function iJb(qdb){ var edb =""; if(qdb.nodeType == 3) { if(XJb(qdb.parentNode) == false && qdb.parentNode.tagName.toLowerCase() !="textarea") { edb = qdb.nodeValue; } } else if(qdb.nodeType == 1) { if(qdb.getAttribute("ignore") != null) { edb =""; lQb = true; } else { var XKb = qdb.tagName.toLowerCase(); var lQb = false; if(XKb =="img") { var wJb = qdb.getAttribute("msg"); if(wJb != null && wJb.trimTH().length > 0) { edb =" "+ wJb.trimTH() +" "; } lQb = true; } else if(XKb =="span") { var wJb = qdb.getAttribute("pron"); if(wJb != null && wJb.trimTH().length > 0) { edb = wJb.trimTH(); lQb = true; } } else if(XKb =="acronym"|| XKb =="abbr") { var wJb = qdb.getAttribute("pron"); if(wJb != null && wJb.trimTH().length > 0) { edb = wJb.trimTH(); } else { wJb = qdb.getAttribute("title"); if(wJb != null && wJb.trimTH().length > 0) { edb = wJb.trimTH(); lQb = true; } } } else if(XKb =="math") { edb = uMb(qdb); } } if(!lQb) { var pJb = qdb.firstChild; while(pJb != null) { edb += iJb(pJb); pJb = pJb.nextSibling; } } } return edb;}function rJb(qdb){ var edb =""; if(qdb.nodeType == 3) { if(!XJb(qdb.parentNode) && qdb.parentNode.tagName.toLowerCase() !="textarea") { edb = qdb.nodeValue; } } else if(qdb.nodeType == 1) { if(qdb.getAttribute("ignore") != null) { edb =""; } else { var XKb = qdb.tagName.toLowerCase(); if(XKb =="img") { var wJb = qdb.getAttribute("msg"); if(wJb != null && wJb.trimTH().length > 0) { edb =" "+ wJb.trimTH() +" "; } } else if(XKb =="span") { var wJb = qdb.getAttribute("pron"); if(wJb != null && wJb.trimTH().length > 0) { edb = wJb.trimTH(); } wJb = qdb.getAttribute("chunk"); if(wJb != null && wJb =="1") { edb = qdb.innerHTML; } } else if(XKb =="acronym"|| XKb =="abbr") { var wJb = qdb.getAttribute("pron"); if(wJb != null && wJb.trimTH().length > 0) { edb = wJb.trimTH(); } else { wJb = qdb.getAttribute("title"); if(wJb != null && wJb.trimTH().length > 0) { edb = wJb.trimTH(); } } } else if(XKb =="math") { edb = uMb(qdb); } } } return edb;}function rw_getTextOverRange(lRb, zJb, AKb){ try { if(zJb == null || AKb == null) { return""; } var vbb = oLb(lRb, zJb.path, zJb.offset, AKb.path, AKb.offset); return rw_getTextOverCaretRange(vbb); } catch(err) { Dpa("Error rw_getTextOverRange: "+ err.message); return""; }}function rw_getTextOverCaretRange(NKb){ try { if(NKb == null || NKb.Obb == null || NKb.Pbb == null) { return""; } var Obb = NKb.Obb; var Pbb = NKb.Pbb; var NPb = Obb.node; var RKb = Pbb.node; var IKb = true; var TKb = NPb; var edb =""; while(TKb != null) { var LSb = rJb(TKb); if(LSb != null && LSb !="") { if(TKb == RKb && Pbb.offset > -1) { LSb = LSb.substring(0, Pbb.offset); } if(TKb == NPb && Obb.offset > -1) { LSb = LSb.substring(Obb.offset); } edb += LSb; } if(IKb) { TKb = XFb(TKb, false, RKb); } else { TKb = NHb(TKb, false, RKb); } IKb = false; } return edb.trimTH(); } catch(err) { Dpa("Error rw_getTextOverCaretRange: "+ err.message); return""; }}function MKb(NKb){ try { if(NKb == null || NKb.Obb == null || NKb.Pbb == null) { return""; } var Obb = NKb.Obb; var Pbb = NKb.Pbb; var NPb = Obb.node; var RKb = Pbb.node; var SKb = false; var TKb = NPb; var edb =""; while(TKb != null) { SKb = PCb(TKb); if(SKb || TKb.nodeType == 3) { var LSb = rJb(TKb); if(LSb != null && LSb !="") { if(TKb == RKb && Pbb.offset > -1) { LSb = LSb.substring(0, Pbb.offset); } if(TKb == NPb && Obb.offset > -1) { LSb = LSb.substring(Obb.offset); } edb += LSb; } } if(SKb) { TKb = lFb(TKb, false, RKb); } else { TKb = KFb(TKb, false, RKb); } } return edb.trimTH(); } catch(err) { Dpa("Error rw_getTextOverCaretRange: "+ err.message); return""; }}function ZKb(wQb){ var bTb = null; var XKb = wQb.tagName.toLowerCase(); var qeb = rKb(wQb); if(XKb =="input") { var aPb = wQb.getAttribute("type"); if(aPb != null) { aPb = aPb.toLowerCase(); } var YTb =""; if(aPb == null || aPb.equalsTH("") || aPb.equalsTH("text")) { YTb = wQb.value; } else if(aPb.equalsTH("password")) { YTb ="Masked password field"; } else if(aPb.equalsTH("image")) { YTb =""; } else if(aPb.equalsTH("button") || aPb.equalsTH("submit") || aPb.equalsTH("reset")) { YTb = wQb.getAttribute("value"); } if(YTb.equalsTH("") == false) { bTb ="form:"+ qeb +";"+ YTb; } } else if(XKb =="select") { var YTb =""; var cPb = wQb.selectedIndex; var dPb =""; for(var Xab = 0; Xab < wQb.options.length; Xab++) { dPb += wQb.options[Xab].text +" "; } if(dPb.equalsTH("") == false) { if(cPb > -1) { YTb = wQb.options[cPb].text; YTb +=" selected from the list "+ dPb; } else { YTb ="No selection from the list "+ dPb; } bTb ="form"+ qeb +";"+ YTb; } } else if(XKb =="textarea") { var YTb = wQb.value; bTb ="form"+ qeb +";"+ YTb; } else if(XKb =="option") { var YTb = wQb.value; bTb ="form"+ qeb +";"+ YTb; } return bTb;}function jKb(evt){ var lKb; if(pea) { lKb = evt.srcElement; } else if(zea) { lKb = evt.target; } else { lKb = evt.target; } return lKb;}function mKb(evt){ var Xfb = null; var lKb; if(pea) { lKb = evt.srcElement; if(lKb.nodeType == 1 && lKb.tagName.toLowerCase() =="textarea") { } else { Xfb = rw_getTargetNodeAsCaretIE(evt, true); if(Xfb != null) { if(Xfb.node == null || Xfb.node.parentNode == null || Xfb.node.parentNode != lKb) { Xfb = null; return null; } } } } else if(zea) { lKb = evt.target; if(lKb != null) { if(EAb) { if(lKb.firstChild != null && lKb.firstChild.nodeType == 3 && lKb.tagName.toLowerCase() !="textarea") { var rQb = lKb.firstChild.nodeValue; if(rQb.trimTH().length > 0) { lKb = lKb.firstChild; } } } else if(DAb) { if(evt.fromElement != null && lKb.nodeType == 1 && lKb.tagName.toLowerCase() !="textarea") { if(evt.fromElement.nodeType == 3) { lKb = evt.fromElement; } } else { if(lKb.nodeType == 1 && lKb.firstChild != null && lKb.firstChild.nodeType == 3 && lKb.tagName.toLowerCase() !="textarea") { var rQb = lKb.firstChild.nodeValue; if(rQb.trimTH().length > 0) { lKb = lKb.firstChild; } } } } } } else { if(evt.explicitOriginalTarget.nodeValue != null) { if(evt.target.tagName.toLowerCase() =="textarea") { lKb = evt.target; } else { lKb = evt.explicitOriginalTarget; var mNb = window.getSelection(); if(mNb.anchorNode == null || mNb.anchorNode != lKb) { return null; } else { Xfb = new THCaret(mNb.anchorNode, mNb.anchorOffset, true); } } } else { lKb = evt.target; } } if(Xfb == null && lKb != null) { Xfb = new THCaret(lKb, 0, true); } return Xfb;}function rKb(sKb){ var qeb =""; var tKb = 0; var uKb =""; if(sKb != null && sKb.ownerDocument != null) { var KLb = false; var JLb = false; var udb = sKb.ownerDocument.body; while(sKb != null && sKb != udb) { if(PCb(sKb)) { qeb =""; } KLb = (sKb.nodeType == 3) || (sKb.nodeType == 1 && sKb.tagName =="FONT"&& sKb.getAttribute("rwstate") != null); var wQb = sKb.previousSibling; while(wQb != null) { JLb = (wQb.nodeType == 3) || (wQb.nodeType == 1 && wQb.tagName =="FONT"&& wQb.getAttribute("rwstate") != null); if(KLb && JLb) { } else { ++tKb; } wQb = wQb.previousSibling; KLb = JLb; } qeb = qeb + tKb +"~"; tKb = 0; sKb = sKb.parentNode; if(sKb != null && sKb.getAttribute != null && sKb.tagName != null) { var zKb = sKb.getAttribute("chunk"); if(sKb.tagName.toLowerCase() =="span"&& zKb =="1") { var ALb = rKb(sKb); uKb ="#^th*"+ ALb +"#^th*"; } } } } return uKb + qeb;};function CLb(pLb, ZLb){ var cdb = pLb; if(ZLb.lastIndexOf("*") > -1) { var fhb = ZLb.lastIndexOf("*"); ZLb = ZLb.substring(fhb + 1); } var GLb = ZLb.split("~"); var bhb = GLb.length; var i; for(i = bhb - 2; i > -1; i--) { cdb = cdb.firstChild; if(cdb == null) { return null; } var ILb; if(GLb[i].length == 0) { ILb = 0; } else { ILb = parseInt(GLb[i]); } var JLb = false; var KLb = (cdb.nodeType == 3) || (cdb.nodeType == 1 && cdb.tagName =="FONT"&& cdb.getAttribute("rwstate") != null); while(ILb > 0) { cdb = cdb.nextSibling; if(cdb == null) { return null; } JLb = (cdb.nodeType == 3) || (cdb.nodeType == 1 && cdb.tagName =="FONT"&& cdb.getAttribute("rwstate") != null); if(JLb && KLb) { } else { --ILb; KLb = JLb; } } } return cdb;}function ULb(pLb, ZLb, Ohb, cbb){ try { if(pLb == null) { return null; } var cdb = CLb(pLb, ZLb); if(PCb(cdb)) { if(VCb(cdb)) { if(cbb) { var Jbb = rFb(cdb, false); if(Jbb != null) { return new THCaret(Jbb, 0, cbb); } else { return new THCaret(cdb, 0, cbb); } } else { var Kbb = vFb(cdb, false); if(Kbb != null) { if(Kbb.nodeType == 3) { return new THCaret(Kbb, Kbb.length, cbb); } else { return new THCaret(Kbb, 0, cbb); } } else { return new THCaret(cdb, 0, cbb); } } } else { return new THCaret(cdb, 0, cbb); } } var Wfb = 0; if(cbb == false) { ++Wfb; } if(Ohb > -1) { if(cdb == null) { return null; } var AQb = false; var Kbb = cdb.parentNode; var RLb = cdb; var OPb; while(AQb == false) { if(cdb.nodeType == 3) { OPb = cdb.nodeValue; if(Ohb < (Wfb + OPb.length)) { AQb = true; break; } RLb = cdb; Wfb += cdb.nodeValue.length; cdb = KFb(cdb, false, Kbb); } else if(cdb.nodeType == 1) { if(PCb(cdb)) { var TLb = Ohb - Wfb; if(TLb > 0) { Wfb += 1; } else { AQb = true; break; } cdb = lFb(cdb, false, Kbb); } else { cdb = KFb(cdb, false, Kbb); } } if(cdb == null || cdb == Kbb) { if(RLb != null) { cdb = RLb; if(cdb.nodeType == 3) { Wfb = Ohb - cdb.nodeValue.length; } else { Wfb = 0; } if(!cbb) { ++Wfb; } break; } else { return null; } } } if(cbb) { return new THCaret(cdb, Ohb - Wfb, cbb); } else { return new THCaret(cdb, Ohb - (Wfb - 1), cbb); } } else { return new THCaret(cdb, Ohb, cbb); } } catch(err) { Dpa("getCaretFromDomPosition error: "+ err); return null; }}function oLb(pLb, tLb, uLb, vLb, wLb){ var Obb = ULb(pLb, tLb, uLb, true); var Pbb; if(tLb == vLb && uLb >= wLb) { Pbb = Obb; } else { Pbb = ULb(pLb, vLb, wLb, false); } return new vha(Obb, Pbb);}function xLb(qdb){ if(qdb == null) { return""; } if(qdb.className) { return qdb.className; } else { return qdb.getAttribute("class"); }}function zLb(PMb, KMb, APb, SMb, EMb){ if(wea) { return IMb("<"+ PMb +" name='"+ EMb +"'>", KMb, APb, SMb); } else { var EOb = IMb(PMb, KMb, APb, SMb); EOb.setAttribute("name",EMb); EOb.name = EMb; return EOb; }}function IMb(PMb, KMb, APb, SMb){ var NMb = document.createElement(PMb); if(APb != null) { NMb.id = APb; } if(SMb != null) { NMb.className = SMb; } if(KMb != null) { var bhb = KMb.length; if(wea) { for(var i = 0; i < bhb; i += 2) { if(KMb[i] =="style") { UMb(NMb, KMb[i + 1]); } else { NMb.setAttribute(KMb[i], KMb[i + 1]); } } } else { for(var i = 0; i < bhb; i += 2) { NMb.setAttribute(KMb[i], KMb[i + 1]); } } } return NMb;}function OMb(PMb, QMb, APb, SMb){ var NMb = document.createElement(PMb); if(APb != null) { NMb.id = APb; } if(SMb != null) { NMb.className = SMb; } if(QMb != null) { if(wea) { for(var i in QMb) { if(i =="style") { UMb(NMb, QMb[i]); } else { NMb.setAttribute(i, QMb[i]); } } } else { for(var i in QMb) { NMb.setAttribute(i, QMb[i]); } } } return NMb;}function UMb(p_theObj, WMb){ var TMb = WMb.indexOf(":"); var XMb = WMb.indexOf(";", TMb); var YMb; var YTb; var bTb = WMb; while(TMb > -1) { YMb = bTb.substring(0, TMb); if(XMb > -1) { YTb = bTb.substring(TMb + 1, XMb); bTb = bTb.substr(XMb + 1); TMb = bTb.indexOf(":"); XMb = bTb.indexOf(";", TMb); } else { YTb = bTb.substr(TMb + 1); TMb = -1; } if(pea) { if(YMb ==" background-position") { YMb =" backgroundPosition"; } } eval("p_theObj.style."+ YMb +"=\""+ YTb +"\";"); }}function cMb(JXb){ if(wea) { return JXb.currentStyle; } else { return window.getComputedStyle(JXb, null); }}function iMb(pMb, qMb){ var element = document.createElement(qMb); element.innerHTML = pMb; document.body.appendChild(element);}function oMb(pMb, qMb, sMb){ var element = document.createElement(qMb); var bhb = sMb.length; for(i = 0; i < bhb; i += 2) { element.setAttribute(sMb[i], sMb[i + 1]); } element.innerHTML = pMb; document.body.appendChild(element);}function uMb(qdb){ if(qdb.previousSibling != null || qdb.nextSibling != null) { var tMb = document.createElement("span"); qdb.parentNode.replaceChild(tMb, qdb); tMb.appendChild(qdb); } if(pea) { var jPb = qdb.outerHTML; if(jPb == null) { return""; } else { if(jPb.indexOf("<?import namespace") > -1) { var n = jPb.indexOf("/>"); if(n > -1) { jPb = jPb.substring(n + 2); jPb = jPb.replace(/m:/gi,""); } } return jPb; } } else { var jPb = qdb.parentNode.innerHTML; if(jPb != null && jPb.length > 0) { return jPb; } else { return""; } }}function yMb(o, p, q){ function r(a) { var b; if(typeof DOMParser !="undefined") { b = (new DOMParser()).parseFromString(a,"application/xml"); } else { var c = ["MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"]; for(var i = 0; i < c.length && !b; i++) { try { b = new ActiveXObject(c[i]); b.loadXML(a); } catch(e) { } } } return b; } function s(a, b, c) { a[b] = function() { return eval(c); }; } function t(b, c, d) { if(typeof d =="undefined") { d = 1; } if(d > 1) { if(c.nodeType == 1) { var e = document.createElement(c.nodeName); var f = {}; for(var a = 0,g = c.attributes.length; a < g; a++) { var h = c.attributes[a].name,k = c.attributes[a].value,l = (h.substr(0, 2) =="on"); if(l) { f[h] = k; } else { switch(h) { case"class":e.className = k;break;case"for":e.htmlFor = k;break;default:e.setAttribute(h, k); } } } b = b.appendChild(e); for(l in f) { s(b, l, f[l]); } } else if(c.nodeType == 3) { var m = (c.nodeValue ? c.nodeValue :""); var n = m.replace(/^\s*|\s*$/g,""); if(n.length < 7 || (n.indexOf("<!--") != 0 && n.indexOf("-->") != (n.length - 3))) { b.appendChild(document.createTextNode(m)); } } } for(var i = 0,j = c.childNodes.length; i < j; i++) { t(b, c.childNodes[i], d + 1); } } p ="<root>"+ p +"</root>"; var u = r(p); if(o && u) { if(q != false) { while(o.lastChild) { o.removeChild(o.lastChild); } } t(o, u.documentElement); }}function $rw_logMe(Eab){ Dpa(Eab);}function $rw_alertMe(Eab){ alert(Eab);}function zMb(Eab){ if(ica == 200) { Eab = Eab.replace(/\s+/g," "); } else { Eab = Eab.replace(/(\x3cbookmark\x20mark\x3d\x22(\d)+\x22\x2f\x3e)/g,""); Eab = Eab.replace(/[\s\xA0]+/g," "); } return gDb(Eab);}function $rw_scholasticHashShort(p_asset){ var edb = p_asset.replace(/^0+|[^0-9]/g,""); return"0001".substring(0, 4-edb.length) + edb.substring(0, 4);}function $rw_scholasticHash(p_asset){ var edb = p_asset.replace(/^0+|[^0-9]/g,""); if(edb.length < 4) { edb ="0001".substring(0, 4-edb.length) + edb; } else { edb = edb.substring(0, 4); } return edb;}function rw_getDisplayWidth(eQb){ if(typeof(eQb) =="undefined") { eQb = window; } var nW = (eQb.innerWidth) ? eQb.innerWidth : eQb.document.body.offsetWidth; return nW;}function rw_getDisplayWidthAdjusted(eQb){ if(typeof(eQb) =="undefined") { eQb = window; } var nW = ((eQb.innerWidth) ? eQb.innerWidth : eQb.document.body.offsetWidth) - rw_getScrollBarWidth(eQb); return nW;}function rw_getDocumentDisplayWidth(eQb){ if(typeof(eQb) =="undefined") { eQb = window; } var nW = (eQb.innerWidth) ? eQb.innerWidth : eQb.document.documentElement.offsetWidth; return nW;}function rw_getDocumentDisplayWidthAdjusted(eQb){ if(typeof(eQb) =="undefined") { eQb = window; } var nW = ((eQb.innerWidth) ? eQb.innerWidth : eQb.document.documentElement.offsetWidth) - rw_getScrollBarWidth(eQb); return nW;}function rw_getDisplayHeight(eQb){ if(typeof(eQb) =="undefined") { eQb = window; } if(nea) { return rw_getDocumentDisplayHeight(eQb); } else { var nH = (eQb.innerHeight) ? eQb.innerHeight : eQb.document.body.offsetHeight; return nH; }}function rw_getDisplayHeightAdjusted(eQb){ if(typeof(eQb) =="undefined") { eQb = window; } if(nea) { return rw_getDocumentDisplayHeightAdjusted(eQb); } else { var nH = ((eQb.innerHeight) ? eQb.innerHeight : eQb.document.body.offsetHeight ) - rw_getScrollBarHeight(eQb); return nH; }}function rw_getDocumentDisplayHeight(eQb){ if(typeof(eQb) =="undefined") { eQb = window; } var nH = (eQb.innerHeight) ? eQb.innerHeight : eQb.document.documentElement.offsetHeight; return nH;}function rw_getDocumentDisplayHeightAdjusted(eQb){ if(typeof(eQb) =="undefined") { eQb = window; } var nH = ((eQb.innerHeight) ? eQb.innerHeight : eQb.document.documentElement.offsetHeight) - rw_getScrollBarHeight(eQb); return nH;}function TNb(eQb){ if(typeof(eQb) =="undefined") { eQb = window; } if(eQb.document.compatMode =="CSS1Compat"&& eQb.document.body.parentNode && eQb.document.body.parentNode.scrollLeft) { return eQb.document.body.parentNode.scrollLeft; } var n = (eQb.pageXOffset) ? eQb.pageXOffset : (eQb.scrollX) ? eQb.scrollX : (eQb.document.body.scrollLeft) ? eQb.document.body.scrollLeft : (eQb.document.documentElement.scrollLeft)? eQb.document.documentElement.scrollLeft:0; return n;}function rw_getScreenOffsetLeft(eQb){ if(typeof(eQb) =="undefined") { eQb = window; } if(eQb.pageXOffset && eQb.pageXOffset > 0) { return eQb.pageXOffset; } else if(eQb.document.body.scrollLeft && eQb.document.body.scrollLeft > 0) { return eQb.document.body.scrollLeft; } else if(eQb.document.documentElement.scrollLeft && eQb.document.documentElement.scrollLeft > 0) { return eQb.document.documentElement.scrollLeft; } return 0;}function rw_getScreenOffsetTop(eQb){ if(typeof(eQb) =="undefined") { eQb = window; } if(eQb.pageYOffset && eQb.pageYOffset > 0) { return eQb.pageYOffset; } else if(eQb.document.body.scrollTop && eQb.document.body.scrollTop > 0) { return eQb.document.body.scrollTop; } else if(eQb.document.documentElement.scrollTop && eQb.document.documentElement.scrollTop > 0) { return eQb.document.documentElement.scrollTop; } return 0;}function ZNb(OXb){ if(OXb.scrollLeft && OXb.scrollLeft > 0) { return OXb.scrollTop; } if(OXb.tagName.toLowerCase() =="body"&& OXb.ownerDocument && OXb.ownerDocument.documentElement && OXb.ownerDocument.documentElement.scrollLeft) { return OXb.ownerDocument.documentElement.scrollLeft; } return 0;}function bNb(OXb){ if(OXb.scrollTop && OXb.scrollTop > 0) { return OXb.scrollTop; } if(OXb.tagName.toLowerCase() =="body"&& OXb.ownerDocument && OXb.ownerDocument.documentElement && OXb.ownerDocument.documentElement.scrollTop) { return OXb.ownerDocument.documentElement.scrollTop; } return 0;}function rw_getScrollBarWidth(eQb){ if(pea) { if(nea) { return 20; } else { if(typeof(eQb) =="undefined") { eQb = window; } if(eQb.document.compatMode.equalsTH("CSS1Compat")) { return (eQb.document.documentElement.offsetWidth - eQb.document.documentElement.clientWidth); } else { return (eQb.document.body.offsetWidth - eQb.document.body.clientWidth); } } } else { if(window.scrollMaxY > 0 || zea) { return 18; } else { return 4; } }}function rw_getScrollBarHeight(eQb){ if(typeof(eQb) =="undefined") { eQb = window; } if(pea) { if(nea) { return 20; } else { if(eQb.document.compatMode.equalsTH("CSS1Compat")) { return (eQb.document.documentElement.offsetHeight - eQb.document.documentElement.clientHeight); } else { return (eQb.document.body.offsetHeight - eQb.document.body.clientHeight); } } } else { if(eQb.scrollMaxX > 0) { return 18; } else { return 4; } }}function jNb(){ var jQb = null; var iNb = null; if (wea) {var range = document.selection.createRange(); if(range == null || range.text == null || range.text.length == 0) { if(top.frames.length>0) { var i=0; var bhb = top.frames.length; for(i = 0; i<bhb; i++) { try { var eZb = top.frames[i]; range = eZb.document.selection.createRange(); if(range != null && range.text != null && range.text.length > 0) { jQb = eZb; iNb = range; break; } } catch(e) { Epa(e); } } } } else { jQb = window; iNb = range; } if(iNb != null && iNb.parentElement() != null && iNb.parentElement().tagName.toLowerCase() =="input") { iNb = new String(iNb.text); } } else {var mNb = window.getSelection(); if(mNb != null && mNb.focusNode && mNb.focusNode.id) { if(mNb.focusNode.id =="flashcontent") { return null; } else { if(mNb.anchorNode == mNb.focusNode && mNb.anchorOffset == mNb.focusOffset) { return null; } } } var nNb = null; if(!mNb.isCollapsed) { jQb = window; nNb = mNb; } else { if(Jva && Jva.selectionStart != Jva.selectionEnd) { return {frame:window, range:new String(wza +"0"+ xza + Jva.value.substring( Jva.selectionStart, Jva.selectionEnd) + wza +"1"+ xza)}; } if(top.frames.length>0) { var i=0; var bhb = top.frames.length; for(i = 0; i<bhb; i++) { try { var HXb = top.frames[i].getSelection(); if(HXb != null && !HXb.isCollapsed) { jQb = top.frames[i]; nNb = HXb; break; } } catch(e) { Epa(e); } } } } if(nNb == null) { return null; } var qNb = null; if(nNb.getRangeAt) { qNb = nNb.getRangeAt(0); } else { var range = soa(); if(range != null) { if( nNb.anchorNode == nNb.focusNode && nNb.anchorOffset == nNb.focusOffset) { range = Qoa(nNb); } else { range.setStart(nNb.anchorNode, nNb.anchorOffset); range.setEnd(nNb.focusNode, nNb.focusOffset); if(range.toString().length == 0) { range.setStart(nNb.focusNode, nNb.focusOffset); range.setEnd(nNb.anchorNode, nNb.anchorOffset); } } qNb = range; } } if(qNb != null) { var rNb = qNb.startContainer; var sNb = qNb.startOffset; var tNb = qNb.endContainer; var uNb = qNb.endOffset; if(rNb.nodeType != 3) { if(rNb.nodeType != 1) { return null; } else { if(sNb > 0) { if(rNb.hasChildNodes() && rNb.childNodes.length > sNb) { rNb = rNb.childNodes[sNb]; if(rNb.nodeType == 3) { sNb = 0; } else { sNb = 0; if(rNb.toString() =="[object HTMLEmbedElement]") { return null; } } } } } } if(tNb.nodeType != 3) { if(tNb.nodeType != 1) { return null; } else { if(tNb.hasChildNodes()) { if(tNb.childNodes.length > uNb) { tNb = tNb.childNodes[uNb]; } else { tNb = tNb.childNodes[uNb - 1]; if(tNb.nodeType != 3) { var Qbb = vFb(tNb, true); if(Qbb != null) { tNb = Qbb; } } } } if(tNb.nodeType != 3) { var wNb = DFb(rNb, true, null); var Qbb = mGb(tNb, true, wNb); if(Qbb != null) { tNb = Qbb; } } if(tNb.nodeType == 3) { uNb = tNb.nodeValue.length; } else { uNb = 0; } } } iNb = new fia(rNb, sNb, tNb, uNb); } else { return null; } } if(jQb != null && iNb != null) { return {frame:jQb, range:iNb}; } else { return null; }}function zNb(){ var BOb = jNb(); if(BOb != null && BOb.range != null && !(BOb.range instanceof String)) { if(wea) { BOb.range = ZRb(BOb.frame.document.body, BOb.range); } else if(BOb.range instanceof fia) { BOb.range = qEb(BOb.range); } } return BOb;}function COb(){ var EOb = jNb(); if(EOb != null) { var BOb = EOb.range; if(BOb instanceof String) { return BOb; } else if(BOb instanceof fia) { return BOb.toString(); } else { return EOb.range.text; } } return"";}function KOb(qdb){ try { var jQb = rw_getWindow(qdb); if(jQb == null || qdb == null || qdb.parentNode == null) { return; } var x = 0; var y = 0; var EOb = qdb; if(EOb.nodeType == 3) { EOb = EOb.parentNode; } var FOb = null; var GOb = EOb; var zWb = EOb.ownerDocument.body; var IOb = false; var AXb = null; while(GOb != null && GOb != zWb) { if(GOb.tagName.toLowerCase() =="div"|| GOb.tagName.toLowerCase() =="form") { if(VOb(GOb)) { IOb = true; FOb = iOb(EOb, GOb, FOb); AXb = GOb; EOb = GOb; } } GOb = GOb.parentNode; } if(AXb != null) { EOb = AXb; } while (EOb != null) { x += EOb.offsetLeft; y += EOb.offsetTop; EOb = EOb.offsetParent; } if(FOb != null) { y += FOb.y; x += FOb.x; } var MOb; var NOb; var OOb; var POb; var QOb = 30; if (qdb.nodeType == 3) { QOb = 10 + 5 * qdb.nodeValue.length; if (QOb > 60) { QOb = 60; } } MOb = rw_getScreenOffsetLeft(jQb); NOb = rw_getScreenOffsetTop(jQb); if(typeof( jQb.innerWidth ) =='number') { OOb = jQb.innerWidth; POb = jQb.innerHeight; } else if(jQb.document.documentElement.clientHeight > 0 && jQb.document.documentElement.clientWidth > 0) { OOb = jQb.document.documentElement.clientWidth; POb = jQb.document.documentElement.clientHeight; } else { OOb = jQb.document.body.clientWidth; POb = jQb.document.body.clientHeight; } OOb = OOb - QOb; POb = POb - 20; var ROb; var SOb; if(IOb) { } ROb = (x < MOb || x > (MOb + OOb)); SOb = (y < NOb || y > (NOb + POb)); if (ROb || SOb && (x != 0 || y != 0)) { if (x > (MOb + OOb)) { x = (x + MOb) / 2; } if (y > (NOb + POb)) { y = (y + NOb) / 2; } var TOb = $g_bMouseSpeech; if($g_bMouseSpeech) { $g_bMouseSpeech = false; } jQb.scrollTo((ROb?x:MOb), (SOb?y:NOb)); if(Cfa) { Sza(); Uza(); } if(TOb) { var UOb = setTimeout("$g_bMouseSpeech = true;", 500); } } } catch(ignore) { Epa(ignore); } g_bDidScroll = false;}function VOb(OXb){var DXb = OXb.clientHeight; var EXb = OXb.clientWidth; var FXb = cMb(OXb); var GXb = false; if(FXb != null && FXb.overflow !="visible"&& FXb.display !="inline") { if(OXb.scrollHeight > DXb && FXb.overflowY !="visible") { GXb = true; } if(OXb.scrollWidth > EXb && FXb.overflowX !="visible") { GXb = true; } } return GXb;}function iOb(qdb, OXb, lOb){ var YWb = 0; var ZWb = 0; var DXb = OXb.clientHeight; var EXb = OXb.clientWidth; var fOb = 0; var gOb = 0; var HXb = qdb; while(HXb != OXb && HXb != null) { fOb += HXb.offsetTop; gOb += HXb.offsetLeft; HXb = pOb(HXb, OXb); } if(HXb == null) { gOb -= OXb.offsetLeft; fOb -= OXb.offsetTop; } if(lOb != null) { fOb += lOb.y; gOb += lOb.x; } if(OXb.scrollTop > fOb || (OXb.scrollTop + DXb) < (fOb + qdb.offsetHeight)) { if(DXb > (qdb.offsetHeight * 6)) { OXb.scrollTop = fOb - qdb.offsetHeight; } else { OXb.scrollTop = fOb; } } if(OXb.scrollLeft > gOb || (OXb.scrollLeft + EXb) < (gOb + qdb.offsetWidth)) { OXb.scrollLeft = gOb; } YWb = gOb - OXb.scrollLeft; ZWb = fOb - OXb.scrollTop; return {x:YWb, y:ZWb};}function pOb(Aeb, rOb){ var nOb = Aeb; var oOb = nOb.offsetParent; if(oOb == null) { return null; } if(rOb == null) { return oOb; } while(nOb != null && nOb != oOb) { if(nOb == rOb) { return null; } nOb = nOb.parentNode; } return oOb;}function tOb(){ var NZb =""+"rw_getDisplayWidth="+ rw_getDisplayWidth() +"  rw_getDisplayWidthAdjusted="+ rw_getDisplayWidthAdjusted() +"  rw_getDocumentDisplayWidth="+ rw_getDocumentDisplayWidth() +"  rw_getDocumentDisplayWidthAdjusted="+ rw_getDocumentDisplayWidthAdjusted() +"  rw_getDisplayHeight="+ rw_getDisplayHeight() +"  rw_getDisplayHeightAdjusted="+ rw_getDisplayHeightAdjusted() +"  rw_getDocumentDisplayHeight="+ rw_getDocumentDisplayHeight() +"  rw_getDocumentDisplayHeightAdjusted="+ rw_getDocumentDisplayHeightAdjusted() +"  rw_getScreenOffsetLeft="+ rw_getScreenOffsetLeft() +"  rw_getScreenOffsetTop="+ rw_getScreenOffsetTop() +"  rw_getScrollBarWidth="+ rw_getScrollBarWidth() +"  rw_getScrollBarHeight="+ rw_getScrollBarHeight(); cqa(NZb);}function xOb(){ var uOb = jNb(); var vOb = zNb(); var wOb = COb();}function zOb(APb){ KOb(document.getElementById(APb));}function FPb(qdb, ygb){ try { if(qdb == null) { return null; } if(qdb.nodeType == 1 || qdb.nodeType == 3) { var web = cCb(qdb); if(web != null) { return new THDomRefPt(rKb(web), ygb); } var Wfb; var Zeb; if(qdb.nodeType == 1) { Wfb = 0; Zeb = qdb; } else { if(qdb.nodeValue.trimTH().length == 0) { ygb = 0; } Wfb = PPb(qdb); Zeb = qdb.parentNode; } var EPb = Zeb.getAttribute("rwstate"); var JPb = Zeb.getAttribute(daa); while(Zeb.tagName.toLowerCase() =="font"|| (EPb != null && EPb.length > 0) || JPb!= null ) { Wfb += PPb(Zeb); Zeb = Zeb.parentNode; EPb = Zeb.getAttribute("rwstate"); JPb = Zeb.getAttribute(daa); } if(ygb == -1) { Wfb = -1; } return new THDomRefPt(rKb(Zeb), Wfb + ygb); } else { return null; } } catch(ignore) { return null; }};function PPb(qdb){if(qdb == null){ return 0;}var Wfb = 0;var NPb = qdb.previousSibling;if(NPb != null){ Wfb = RPb(NPb);}return Wfb;};function RPb(qdb){var Wfb = 0;var NPb = qdb;var OPb;while(NPb != null){ if(NPb.nodeType ==3) { OPb = NPb.nodeValue; Wfb += OPb.length; } else if(NPb.nodeType == 1) { if(!XJb(NPb)) { if(PCb(NPb)) { Wfb += 1; } else if(NPb.tagName.toLowerCase() !="textarea") { Wfb += RPb(NPb.lastChild); } else { Wfb += 1; } } } NPb = NPb.previousSibling;}return Wfb;};function WPb(qdb){ if(uca || tca) { var udb = zoa(qdb); var Qbb = qdb; if(Qbb.nodeType == 3) { Qbb = Qbb.parentNode; } while(Qbb != null && Qbb != udb) { if(Qbb.getAttribute(caa) != null) { return true; } Qbb = Qbb.parentNode; } } return false;}function YPb(qdb){ var edb =""; try { if(qdb.nodeType == 1) { if(qdb.getAttribute("ignore") == null) { var tagName = qdb.tagName.toLowerCase(); if(tagName =="input") { var aPb = qdb.getAttribute("type"); if(aPb != null) { aPb = aPb.toLowerCase(); if(aPb.length == 0 || aPb =="text") { edb = qdb.value; } else if(aPb =="password") { edb =""; } else if(aPb =="image") { var TWb = qdb.getAttribute("alt"); if(TWb != null && TWb.length > 0) { edb = TWb; } else { edb =""; } } else if(aPb =="button"|| aPb =="submit"|| aPb =="reset") { if(qdb.className =="rwcalbutton"|| qdb.className =="rwcalEqbutton") { edb = qdb.getAttribute("name"); } else { edb = qdb.getAttribute("value"); } } } else { edb = qdb.value; } } else if(tagName =="select") { var cPb = qdb.selectedIndex; var dPb =""; var bhb = qdb.options.length; for( var Xab = 0; Xab < bhb; Xab++) { dPb += qdb.options[Xab].text +" "; } if(bhb > 0) { if(cPb > -1) { edb = qdb.options[cPb].text +" selected from the list "+ dPb; } else { edb ="No selection from list "+ dPb; } } } else if(tagName =="textarea"|| tagName =="option") { edb = qdb.value; } else if(tagName =="img") { var SWb = qdb.getAttribute("title"); if(SWb != null && SWb.length > 0) { edb = SWb; } else { var TWb = qdb.getAttribute("alt"); if(TWb != null && TWb.length > 0) { edb = TWb; } else { var UWb = qdb.getAttribute("msg"); if(UWb != null && UWb.length > 0) { edb = UWb; } } } } else if(tagName =="math") { var jPb = uMb(qdb); if(jPb.length > 0) { edb = TWb; } } else { var TWb = qdb.getAttribute("alt"); if(TWb != null && TWb.length > 0) { edb = TWb; } else { var UWb = qdb.getAttribute("msg"); if(UWb != null && UWb.length > 0) { edb = UWb; } } } } } } catch(ignore) { edb =""; } if(edb == null) { edb =""; } return edb;};function sPb(tPb){ var mPb; var Sfb; var hgb; var pbb; var Rgb; var YTb; Sfb = 0; hgb = tPb.indexOf(":"); pbb = tPb.indexOf(";", hgb); while(Sfb > -1 && hgb > -1 && pbb > -1) { Rgb = tPb.substring(Sfb, hgb); YTb = tPb.substring(hgb + 1, pbb); if(YTb.length == 0) { mPb = Mfa.indexOf(Rgb); if(mPb > -1) { Mfa.splice(mPb, 1); delete Nfa[Rgb]; } } else { mPb = Mfa.indexOf(Rgb); if(!(mPb > -1)) { Mfa.push(Rgb); } Nfa[Rgb] = YTb; } Sfb = pbb + 1; hgb = tPb.indexOf(":", Sfb); pbb = tPb.indexOf(";", hgb); }}function yPb(ehb){ var bhb = ehb.length; var lgb = ehb; var wPb = DQb(ehb); if(wPb == null) { return ehb; } var i; var j; var c; for(i=bhb - 1; i>=0; i--) { c = wPb.charCodeAt(i); if(c != 32) { j = i; while(c != 32 && i >= 0) { --i; c = wPb.charCodeAt(i); } var xPb = wPb.substring(i+1, j+1); if(Nfa[xPb] != null) { lgb = lgb.substring(0, i+1) +' '+ Nfa[xPb ] +' '+ lgb.substr(j+1); } } } return lgb;}function DQb(ehb){ var AQb = false; var bhb = ehb.length; var NQb =""; var i; var c; for(i=0; i<bhb; i++) { c = ehb.charCodeAt(i); if(c == 32 || Ypa(c)) { NQb +=' '; } else { NQb += ehb.charAt(i); AQb = true; } } if(AQb) { return NQb; } else { return null; }}function FQb(ehb){ return (Mfa.indexOf(ehb.trimTH()) > -1);}function KQb(LQb){ var Hfb; var zXb = false; var JQb = LQb.split(" "); var bhb = JQb.length; var i; for(i=0; i<bhb; i++) { Hfb = yPb(JQb[i]); if(Hfb != JQb[i]) { JQb[i] = Hfb; zXb = true; } } if(zXb) { var NQb =""; for(i=0; i<bhb - 1; i++) { NQb += JQb[i]; NQb +=" "; } NQb += JQb[bhb - 1]; return NQb; } return LQb;}function TQb(eSb){ var zXb = false; if(Lfa && eSb != null) { var bhb = eSb.length; var i = 0; for(i=0; i<bhb; i++) { var Hfb = yPb(eSb[i]); if(Hfb != eSb[i]) { eSb[i] = Hfb; zXb = true; } } } return zXb;}function YQb(Eab, aQb, cQb){ var n = Eab.indexOf(aQb); while(n > -1) { Eab = Eab.replace(aQb, cQb); n = Eab.indexOf(aQb, n +1); } return Eab;}var RQb = null;function dQb(eQb){ var NZb ="th_tmp$"; var Xab = 1; var ycb; var pab = true; while(pab) { ycb = NZb + Xab; if(eQb.document.getElementById(ycb)) { ++Xab; } else { pab = false; } } return ycb;}function rw_getTargetNodeAsCaretIE(evt, oQb){ try { if((sea||tea) && oQb && !Hwa(evt)) { var iQb = evt.srcElement; var jQb = rw_getWindow(iQb); var kQb = iQb.childNodes.length; var i; var lQb = false; for(i=0; i<kQb; i++) { if(iQb.childNodes[i].nodeType == 3) { lQb = true; break; } } if(lQb) { if(RQb == null) { RQb = dQb(jQb); } var mQb = jQb.document.getElementById(RQb); if(mQb != null) { mQb.parentNode.removeChild(mQb); } var range = jQb.document.selection.createRange(); range.collapse(); range.pasteHTML("<span id='"+ RQb +"'></span>"); var Igb = jQb.document.getElementById(RQb); var qQb = null; if(Igb != null) { if(Igb.previousSibling != null && Igb.previousSibling.nodeType == 3) { Loa(Igb.previousSibling); qQb = new THCaret(Igb.previousSibling, Igb.previousSibling.length, true); } if(Igb.nextSibling != null && Igb.nextSibling.nodeType == 3) { Loa(Igb.nextSibling); if(qQb == null) { qQb = new THCaret(Igb.nextSibling, 0, true); } } if(qQb == null && Igb.nextSibling != null && Igb.nextSibling.nodeType == 1) { qQb = new THCaret(Igb.nextSibling, 0, true); } else if(qQb == null && Igb.previousSibling != null && Igb.previousSibling.nodeType == 1) { qQb = new THCaret(Igb.previousSibling, 0, true); } } if(qQb == null) { qQb = new THCaret(Igb.parentNode, 0, true); } if(Igb != null) { Igb.parentNode.removeChild(Igb); } return qQb; } else { return new THCaret(iQb, 0, true); } } if(xea) { lKb = evt.target; if(lKb != null) { if(lKb.firstChild != null && lKb.firstChild.nodeType == 3 && lKb.tagName.toLowerCase() !="textarea") { var rQb = lKb.firstChild.nodeValue; if(rQb.trimTH().length > 0) { lKb = lKb.firstChild; } } return new THCaret(lKb, 0, true); } } else { var sQb = Mva(evt); var tQb = soa(evt.srcElement.ownerDocument.body); try { tQb.moveToPoint(sQb.x, sQb.y); } catch(skip) { return null; } var ARb = soa(evt.srcElement.ownerDocument.body); var vQb = soa(evt.srcElement.ownerDocument.body); var wQb = evt.srcElement.firstChild; while((wQb != null)) { if(wQb.nodeType == 3 && wQb.nodeValue.trimTH().length > 0) { Loa(wQb); var odb = wQb.previousSibling; while(odb != null && odb.nodeType != 1) { odb = odb.previousSibling; } if(odb != null) { ARb.moveToElementText(odb); ARb.collapse(false); } else { ARb.moveToElementText(wQb.parentNode); } var yQb = wQb.nextSibling; while(yQb != null && yQb.nodeType != 1) { yQb = yQb.nextSibling; } if(yQb != null) { vQb.moveToElementText(yQb); ARb.setEndPoint("EndToStart", vQb); } else { vQb.moveToElementText(wQb.parentNode); ARb.setEndPoint("EndToEnd", vQb); } if(ARb.inRange(tQb)) { var Wfb = IRb(wQb, ARb, tQb); return new THCaret(wQb, Wfb, true); } } wQb = wQb.nextSibling; } } } catch(exc) { Dpa("rw_getTargetNodeAsCaretIE error:"+ exc.message); } return null;}function rw_getTextRangeAsRefPtIE(lRb, bRb){ try { var ARb = soa(lRb); var parentNode = bRb.parentElement(); ARb.moveToElementText(parentNode); var Wfb = IRb(parentNode, ARb, bRb); var Wbb = FPb(parentNode, Wfb); return Wbb; } catch(exc) { Dpa("rw_getTextRangeAsRefPtIE error:"+ exc.message); } return null;}function IRb(JRb, XYb, LRb){ try { var Wfb = 0; var range = XYb.duplicate(); range.collapse(); range.move("character", 1); range.move("character", -1); var MRb = 0; var NRb = 0; while(range.compareEndPoints("EndToEnd", LRb) == -1) { range.moveEnd("character", 1); MRb = range.text.length; if(MRb > NRb) { ++Wfb; NRb = MRb; } } return Wfb; } catch(err) { return 0; }}function ZRb(lRb, bRb){ var pZb = bRb.duplicate(); pZb.collapse(true); var PRb = rw_getTextRangeAsRefPtIE(lRb, pZb); pZb = bRb.duplicate(); pZb.collapse(false); var QRb = rw_getTextRangeAsRefPtIE(lRb, pZb); return new THRange(lRb, PRb, QRb);}function rw_getAsTextRange(lRb, qRb, sRb, rRb, tRb){ var range = soa(lRb); var vbb = oLb(lRb, qRb, -1, rRb, -1); var Obb = vbb.Obb; var Pbb = vbb.Pbb; if(Obb != null && Pbb != null) { var URb = Obb.node; if(URb.nodeType == 3) { var Wfb = PPb(URb); URb = URb.parentNode; sRb += Wfb; } var WRb = Pbb.node; if(WRb.nodeType == 3) { var Wfb = PPb(WRb); WRb = WRb.parentNode; tRb += Wfb; } range.moveToElementText(URb); range.collapse(); xRb(range, sRb); range.collapse(false); range.select(); var YRb = soa(lRb); YRb.moveToElementText(WRb); YRb.collapse(); xRb(YRb, tRb); YRb.collapse(false); range.setEndPoint("EndToEnd", YRb); } else { range = null; Dpa("Error with rw_getAsTextRange."); } return range;}function xRb(XYb, meb){ var bhb; var vRb; var wRb; bhb = XYb.text.length; while(meb > 0) { wRb = XYb.moveEnd("character", meb); if(wRb == 0) { return; } vRb = XYb.text.length; meb -= (vRb - bhb); bhb = vRb; }}var ASb = new SpeechStream.Dictionary();function DSb(Eab){ var lgb; var bhb; var i; var c; if(SpeechStream.pronunciation.encodeData()) { lgb =""; bhb = Eab.length; for(i=0; i<bhb; i++) { c = Eab.charCodeAt(i); if( (c<40 && c!= 33) || c==43 || c== 47 || c==60 || c==62 || c==92 || c==96 || c>126) { var Cfb = aqa(c); switch(Cfb.length) { case 1: Cfb ="0"+ Cfb; case 2: lgb +="/x"+ Cfb; break; case 3: Cfb ="0"+ Cfb; case 4: lgb +="/u"+ Cfb; break; default: } } else { lgb += Eab.charAt(i); } } } else { lgb =""; bhb = Eab.length; for(i=0; i<bhb; i++) { c = Eab.charCodeAt(i); if(c == 34) { lgb +="%22"; } else if(c == 39) { lgb +="%27"; } else { lgb += Eab.charAt(i); } } } return lgb;}function ISb(Eab){ var Hfb = decodeURIComponent(Eab); var lgb =""; var bhb = Hfb.length; var i; var LSb; var MSb; for(i=0; i<bhb; i++) { var c = Hfb.charAt(i); if(c =='/') { if(i< bhb - 1) { var Lhb = Hfb.charAt(i + 1); switch(Lhb) { case'/': lgb +='/'; i++; break; case'x': if(i<bhb - 3) { LSb = Hfb.substr(i + 2, 2); MSb = bqa(LSb); lgb += String.fromCharCode(MSb); i+=3; } break; case'u': if(i<bhb - 5) { LSb = Hfb.substr(i + 2, 4); MSb = bqa(LSb); lgb += String.fromCharCode(MSb); i+=5; } break; default: } } else { } } else if(c =='+') { lgb +=' '; } else if (c == 10 || c == 13) { } else if(c =='%') { if(i<bhb - 2) { LSb = Hfb.substr(i, 3); if(LSb =="%2f") { lgb +='/'; i+=2; } else if(LSb =="%2a") { lgb +=':'; i-=2; } else if(LSb =="%60") { lgb +='`'; i-=2; } else { if(i<bhb - 9) { LSb = Hfb.substr(i, 10); if(LSb =="%26quot%3b") { lgb +='"'; i+=9; } else { if(i<bhb - 6) { LSb = Hfb.substr(i,7); if(LSb =="%26quot") { lgb +='"'; i+=6; } else { lgb += c; } } else { lgb += c; } } } else { lgb += c; } } } else { lgb += c; } } else if(c =='&') { if(i<bhb - 5) { LSb = Hfb.substr(i, 6); if(LSb =="&#x27") { lgb +='\''; } else if(LSb =="&quot;") { lgb +='"'; } lgb += String.fromCharCode(MSb); i+=5; } } else { lgb += Hfb.charAt(i); } } return lgb;}function PSb(Eab){ var lgb =""; var bhb = Eab.length; var i; for(i=0; i<bhb; i++) { var c = Eab.charCodeAt(i); if( (c<40 && c!= 33) || c==43 || c== 47 || c==60 || c==62 || c==92 || c==96 || c>126) { lgb +="&#"+ c +";"; } else { lgb += Eab.charAt(i); } } return lgb;}function TSb(Eab){ var lgb =""; var bhb = Eab.length; var i; for(i=0; i<bhb; i++) { var c = Eab.charCodeAt(i); if( (c<40 && c!= 33) || c==43 || c== 47 || c==60 || c==62 || c==92 || c==96 || c>126) { if(c == 34 || c == 39) { lgb +="\\&#"+ c +";"; } else { lgb +="&#"+ c +";"; } } else { lgb += Eab.charAt(i); } } return lgb;}var WSb ="\\x82\\x91\\x92";var XSb ="\\x93\\x94";var YSb = /^[,.?!;:\x27\x22£$€]+|[,.?!;:\x27\x22£$€]+$/g;function dSb(eSb){ if(!Kfa) { return false; } var zXb = false; var Hfb; var lgb; var bhb = eSb.length; var i; for(i=0; i<bhb; i++) { lgb = eSb[i].trimTH(); if(lgb.indexOf(" ") > -1) { var ycb = pSb(lgb); if(ycb != lgb) { eSb[i] = ycb; zXb = true; } continue; } var value; if(ASb.MultiwordStart$__.indexOf(lgb) > -1) { if(i < bhb - 1) { Hfb = lgb +" "+ eSb[i+1].trimTH(); if( (value = ASb.get$__(Hfb)) != null ) { var kSb = value.split(" "); var lSb = kSb[0] +" "; var Qhb = kSb[1] +" "; eSb[i] = lSb; eSb[i+1] = Qhb; zXb = true; continue; } } if(i < bhb - 2) { Hfb = lgb +" "+ eSb[i+1].trimTH() +" "+ eSb[i+2].trimTH(); if( (value = ASb.get$__(Hfb)) != null ) { var kSb = value.split(" "); var lSb = kSb[0] +" "; var Qhb = kSb[1] +" "; var Rhb = kSb[2] +" "; eSb[i] = lSb; eSb[i+1] = Qhb; eSb[i+2] = Rhb; zXb = true; continue; } } } if( (value = ASb.get$__(lgb)) != null || (value = ASb.get$__(lgb.toLowerCase())) != null) { eSb[i] = value +" "; zXb = true; continue; } else { Hfb = lgb.replace(WSb,'\''); Hfb = Hfb.replace(XSb,'"'); if(lgb != Hfb) { if( (value = ASb.get$__(Hfb)) != null || (value = ASb.get$__(Hfb.toLowerCase())) != null) { eSb[i] = value +" "; zXb = true; continue; } else { lgb = Hfb; Hfb = lgb.replace(YSb,''); if(lgb != Hfb) { if( (value = ASb.get$__(Hfb)) != null || (value = ASb.get$__(Hfb.toLowerCase())) != null ) { eSb[i] = value +" "; zXb = true; continue; } } } } else { Hfb = lgb.replace(YSb,''); if(lgb != Hfb) { if( (value = ASb.get$__(Hfb)) != null || (value = ASb.get$__(Hfb.toLowerCase())) != null ) { eSb[i] = value +" "; zXb = true; continue; } } } } } return zXb;}function pSb(ehb){ if(!Kfa) { return ehb; } var lgb =""; var rSb = ehb.split(" "); if(dSb(rSb)) { var bhb = rSb.length; for(i=0; i<bhb; i++) { lgb += rSb[i]; if(i < bhb - 1) { lgb +=" "; } } return lgb; } else { return ehb; }}function xSb(ehb){ var n1; var n2; var tSb; var Wgb; var Xgb; var wSb = ehb.split("\r\n"); var i; for(i=0; i<wSb.length; i++) { tSb = wSb[i]; var zSb = tSb.indexOf("&p_pageID=*&") > -1; n1 = tSb.indexOf("&sayThis="); n2 = tSb.indexOf("&likeThis="); Wgb = tSb.substring(n1 + 9, n2); Xgb = tSb.substring(n2 + 10); Wgb = ISb(Wgb); Xgb = ISb(Xgb); ASb.add$__(Wgb, Xgb, zSb); } if(typeof(Ogb) =="function") { Ogb(); }}function CTb(){ }function DTb(){ if(fca != null && fca.length > 0 && gca != null && gca.length > 0 && hca != null && hca.length > 0) { var aTb; if(SpeechStream.cacheMode.getLiveServer() == null) { return; } aTb = eqa(true) + SpeechStream.cacheMode.getLiveServer(); var bTb ="&custID="+ fca +"&bookID="+ gca +"&pageID="+ hca +"&combined=Y"; var flash = iVb.getConnector(); if(flash == null) { alert("Connection to the server is not available."); } else { flash.getPronunciationDataAll(aTb, bTb); } }}var FTb = 2;function $rw_loadPronCallback(nbb){ if(nbb == null) { if(FTb > 0) { --FTb; DTb(); } else { cqa("Failed to load pronunciation data, this may affect the text to speech function."); } } else { nbb = nbb.trimTH(); if(nbb =="") { if(SpeechStream.pronunciation.mode != SpeechStream.pronunciation.SERVER_PRONUNCIATION) { Jfa = true; } } else if(nbb =="-1") { if(FTb > 0) { --FTb; DTb(); } else { cqa("Failed to load pronunciation data, this may affect the text to speech function."); } } else { if(SpeechStream.pronunciation.mode != SpeechStream.pronunciation.SERVER_PRONUNCIATION) { Jfa = true; } xSb(nbb); } }}function ITb(dTb, UTb, eTb){ if(fca != null && fca.length > 0 && gca != null && gca.length > 0 && hca != null && hca.length > 0) { var aTb; if(SpeechStream.cacheMode.getLiveServer() == null) { return; } aTb = eqa(true) + SpeechStream.cacheMode.getLiveServer(); var bTb ="&custID="+ fca +"&bookID="+ gca +"&pageID="+ (eTb?"*":hca) +"&sayThis="+ DSb(dTb) +"&likeThis="+ DSb(UTb); var flash = iVb.getConnector(); if(flash == null) { alert("Connection to the server is not available."); } else { flash.addPronunciationData(aTb, bTb); } }}function $rw_addPronCallback(nbb){ if(nbb == null) { document.getElementById("confirmPageMsg").innerHTML ="Failed to insert."; } else if(nbb =="-1") { document.getElementById("confirmPageMsg").innerHTML ="Failed to insert."; } else { var Rgb = document.getElementById('createSayThis').value.trimTH(); var YTb = document.getElementById('createLikeThis').value.trimTH(); var Vgb = document.getElementById('createAllPages').checked; ASb.add$__(Rgb, YTb, Vgb); document.getElementById('createSayThis').value =''; document.getElementById('createLikeThis').value =''; document.getElementById("confirmPageMsg").innerHTML ="Pronunciation inserted."; Ogb(); }}function STb(dTb, UTb, eTb){ if(fca != null && fca.length > 0 && gca != null && gca.length > 0 && hca != null && hca.length > 0) { var aTb; if(SpeechStream.cacheMode.getLiveServer() == null) { return; } aTb = eqa(true) + SpeechStream.cacheMode.getLiveServer(); var bTb ="&custID="+ fca +"&bookID="+ gca +"&pageID="+ (eTb?"*":hca) +"&sayThis="+ DSb(dTb) +"&likeThis="+ DSb(UTb); var flash = iVb.getConnector(); if(flash == null) { alert("Connection to the server is not available."); } else { flash.updatePronunciationData(aTb, bTb); } }}function $rw_updatePronCallback(nbb){ if(nbb == null) { document.getElementById("editPageMsg").innerHTML ="Failed to updated."; } else if(nbb =="-1") { document.getElementById("editPageMsg").innerHTML ="Failed to updated."; } else { var Rgb = document.getElementById('editSayThis').value.trimTH(); var YTb = document.getElementById('editLikeThis').value.trimTH(); var Vgb = document.getElementById('editAllPages').checked; ASb.add$__(Rgb, YTb, Vgb); document.getElementById('editSayThis').value =''; document.getElementById('editLikeThis').value =''; document.getElementById("editPageMsg").innerHTML ="Pronunciation updated."; agb(); Ogb(); }}function cTb(dTb, eTb){ if(fca != null && fca.length > 0 && gca != null && gca.length > 0 && hca != null && hca.length > 0) { var aTb; if(SpeechStream.cacheMode.getLiveServer() == null) { return; } aTb = eqa(true) + SpeechStream.cacheMode.getLiveServer(); var bTb ="&custID="+ fca +"&bookID="+ gca +"&pageID="+ (eTb?"*":hca) +"&sayThis="+ DSb(dTb); var flash = iVb.getConnector(); if(flash == null) { alert("Connection to the server is not available."); } else { flash.removePronunciationData(aTb, bTb, dTb); } }}function $rw_removePronCallback(nbb, p_strKey){ if(nbb == null) { document.getElementById("editPageMsg").innerHTML ="Failed to delete item."; } else if(nbb =="-1") { document.getElementById("editPageMsg").innerHTML ="Failed to delete item."; } else { ASb.remove$__(p_strKey); document.getElementById('editSayThis').value =''; document.getElementById('editLikeThis').value =''; document.getElementById("editPageMsg").innerHTML ="Pronunciation deleted."; Ogb(); }}var gTb = null;function iTb(){ if(gTb != null) { return gTb; } else { var flash = null; try { if(zea) { flash = window.document.WebToSpeech; } else { if (window.document.WebToSpeech) { flash = window.document.WebToSpeech; } else {flash = window.WebToSpeech; } } if(flash != null) { flash.getVersion(); gTb = flash; } } catch(err) { flash = null; gTb = null; } if(flash == null) { var jTb = document.getElementById("WebToSpeech"); if(jTb != null) { flash = jTb; try { flash.getVersion(); gTb = flash; } catch(e) { flash = null; gTb = null; } if(flash == null && !pea) { var bhb = jTb.childNodes.length; var i; for(i=0; i<bhb; i++) { var Qbb = jTb.childNodes[i]; if(Qbb.tagName.toLowerCase() =="embed") { flash = Qbb; try { flash.getVersion(); gTb = flash; } catch(e) { flash = null; gTb = null; } } } } } } if(gTb != null) { if(Ofa) { var Pgb = document.getElementById("rwDrag"); if(Pgb != null) { Pgb.style.position ="relative"; } } } return flash; }}var nTb = 0;SpeechStream.AjaxRequest = function(){ var oTb = null; var pTb = null; var qTb = null; var rTb = false;this.callBack = function() { with(this) { if(readyState < 4) { return; } if(rTb) { if(qTb == null) { pTb(responseXML); } else { pTb[qTb](responseXML); } } else { if(qTb == null) { pTb(responseText); } else { pTb[qTb](responseText); } } } }; this.doPost = function(wra, p_parameters, p_responseObject, p_responseCallback, p_bXml) { with(this) { pTb = p_responseObject; qTb = p_responseCallback; oTb = new XMLHttpRequest(); rTb = p_bXml; oTb.open("POST", wra, true); oTb.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); oTb.onreadystatechange = callBack; oTb.send(p_parameters); } }; this.doGet = function(wra, p_parameters, p_responseObject, p_responseCallback, p_bXml) { with(this) { pTb = p_responseObject; qTb = p_responseCallback; oTb = new XMLHttpRequest(); rTb = p_bXml; oTb.open("GET", wra, true); oTb.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); oTb.onreadystatechange = callBack; oTb.send(p_parameters); } };};SpeechStream.HTML5Controller = function(){ var sTb ="160"; var tTb = false; var uTb = 0; var vTb = false; var wTb = 0; var xTb = null; var yTb; var zTb; var AUb; var BUb; var CUb; var DUb; var EUb = eca; var pVb = new Audio(); pVb.type ="audio/mpeg"; pVb.src =""; var WVb = null; var HUb = 0; var IUb = null; var dVb = true; var KUb = false; var LUb = false; this.initialise = function (p_flashVars, Hta, Ita, Jta) { yTb = Hta; zTb = Ita; AUb = Jta; if(bca != null) { BUb = bca; if(BUb.length < 4 || BUb.substring(0, 4) !="http") { BUb = eqa(false) + BUb; } if(BUb.substr(BUb.length - 1, 1) !="/") { BUb = BUb +"/"; } } else { BUb = eqa(false) +"speechus.texthelp.com/"; } if(aca != null) { CUb = aca; if(CUb.length < 4 || CUb.substring(0, 4) !="http") { CUb = eqa(false) + CUb; } if(CUb.substr(CUb.length - 1, 1) !="/") { CUb = CUb +"/"; } } else { CUb = eqa(false) +"speechus.texthelp.com/"; } if(bca != null) { DUb = bca; if(DUb.length < 4 || DUb.substring(0, 4) !="http") { DUb = eqa(false) + DUb; } if(DUb.substr(DUb.length - 1, 1) !="/") { DUb = DUb +"/"; } } else { DUb = eqa(false) +"speechus.texthelp.com/"; } if(p_flashVars.cacheMode =="true") { KUb = true; } if(p_flashVars.cacheLiveFallover =="true") { LUb = true; } };this.setToClipboard = function(Eab) { };this.setCacheBuster = function(p_bCacheBuster) { tTb = p_bCacheBuster; }; this.setCacheMode = function() { };this.resetCacheTimer = function() { uTb = 0; setTimeout("resetCacheTimer", Dda * 1000 * 60); }; setTimeout("resetCacheTimer", Dda * 1000 * 60); this.isPaused = function() { return vTb; }; this.pause = function() { if(pVb != null) { pVb.pause(); vTb = true; } }; this.resume = function() { if(pVb != null && vTb) { pVb.play(); vTb = false; } }; this.setCustomerId = function() {}; this.setBookId = function() {}; this.setPageId = function() {}; this.setSpeedValue = function() {}; this.setVoiceName = function(Aza) { EUb = Aza; }; this.getVoiceName = function() { return EUb; }; this.checkPath = function(ZLb) { if(Qda != null && Rda != null) { var Hfb; Hfb = ZLb; if(Hfb.indexOf(Qda) > -1) { Hfb = Hfb.substr(0, Hfb.indexOf(Qda)) + Rda + Hfb.substr(Hfb.indexOf(Qda) + Qda.length); } return Hfb; } else { return ZLb; } }; this.getPronunciationDataAll = function(p_strBase, p_strDetails) { var Ybb = p_strBase +"/SpeechNAServer/pronounce.html?type=get&pronounceClient="+ jca + p_strDetails; var caller = new SpeechStream.AjaxRequest(); caller.doGet(Ybb, null, this,"requestPGetAllLoad", false); }; this.requestPGetAllLoad = function(ehb) { if(ehb == null || ehb.length == 0) { $rw_loadPronCallback("-1"); } else if(ehb =="get=false"|| ehb =="") { $rw_loadPronCallback("-1"); } else if(ehb =="empty") { $rw_loadPronCallback(""); } else { $rw_loadPronCallback(ehb); } }; this.addPronunciationData = function(p_strBase, p_strDetails) { var Ybb = p_strBase +"/SpeechNAServer/pronounce.html?type=add&pronounceClient="+ jca + p_strDetails; var caller = new SpeechStream.AjaxRequest(); caller.doGet(Ybb, null, this,"requestPAddLoad", false); }; this.requestPAddLoad = function(ehb) { if(ehb == null || ehb.length == 0) { $rw_addPronCallback("-1"); } else if(ehb =="add=false") { $rw_addPronCallback("-1"); } else if(ehb =="add=true") { $rw_addPronCallback("1"); } else { $rw_addPronCallback("-1"); } }; this.updatePronunciationData = function(p_strBase, p_strDetails) { var Ybb = p_strBase +"/SpeechNAServer/pronounce.html?type=update&pronounceClient="+ jca + p_strDetails; var caller = new SpeechStream.AjaxRequest(); caller.doGet(Ybb, null, this,"requestPUpdateLoad", false); }; this.requestPUpdateLoad = function(ehb) { if(ehb == null || ehb.length == 0) { $rw_updatePronCallback("-1"); } else if(ehb =="update=false") { $rw_updatePronCallback("-1"); } else if(ehb =="update=true") { $rw_updatePronCallback("1"); } else { $rw_updatePronCallback("-1"); } }; this.removePronunciationData = function(p_strBase, p_strDetails, p_strKey) { var Ybb = p_strBase +"/SpeechNAServer/pronounce.html?type=delete&pronounceClient="+ jca + p_strDetails; var caller = new SpeechStream.AjaxRequest(); var VUb = function(ehb) { if(ehb == null || ehb.length == 0) { $rw_removePronCallback("-1"); } else if(ehb =="delete=false") { $rw_removePronCallback("-1"); } else if(ehb =="delete=true") { $rw_removePronCallback("1", p_strKey); } else { $rw_removePronCallback("-1"); } }; caller.doGet(Ybb, null, VUb, null, false); }; var WUb =""; this.getLastError = function() { return WUb; }; this.getVersion = function() { return sTb; }; this.getRevisionNumber = function() { return"0"; };function YUb() { var vUb = (++wTb); if(xTb != null) { cUb(0); delete xTb; xTb = null; } vTb = false; if(dVb) { pVb.pause(); pVb.autoplay = true; pVb.play(); dVb = false; } return vUb; } this.checkRequestStillValid = function(ZUb) { return ZUb == wTb; }; this.setAudio = function(p_strMp3Url) { pVb.src = p_strMp3Url; }; this.setTimer = function(p_timerArray) { WVb = p_timerArray; }; this.requestCompleteStartPlayback = function() { audioPlaybackTimer(); pVb.autoplay = true; pVb.play(); };this.stopSpeech = function() { if(pVb != null) { pVb.pause(); pVb.currentTime = 0; pVb.src =''; this.onSpeechStop(-1); } xTb = null; ++wTb; };this.stopSpeechAlt = function() { if(pVb != null) { pVb.pause(); try { pVb.currentTime = 0; } catch(err) { } pVb.src =''; this.onSpeechStop(-2); } xTb = null; ++wTb; };this.onSpeechStop = function(Yhb) { cUb(Yhb); }; function cUb(Yhb) { if(Yhb < 0) { $rw_doSelection(Yhb); } WVb = null; HUb = 0; IUb = null; }; this.startSpeech = function(ehb, jUb) { var vUb = YUb(); xTb = new SpeechStream.Html5Speech(); xTb.setParameters(this, vUb, ehb, jUb); if(uTb <= Cda || AUb == null) { xTb.makeSpeechRequest(zTb, false); } else { xTb.makeSpeechRequest(AUb, true); } }; this.startSpeechFromBackup = function(ehb, jUb) { var vUb = YUb(); xTb = new SpeechStream.Html5Speech(); xTb.setParameters(this, vUb, ehb, jUb); xTb.makeSpeechRequest(AUb, true); };this.startSpeechBackup = function(p_params) { if(AUb == null) { this.onSpeechStop(-3); return false; } else { var vUb = YUb(); xTb = new SpeechStream.Html5Speech(); xTb.copyParamaeters(this, vUb, p_params); xTb.makeSpeechRequest(AUb, true); return true; } };this.startSpeechFromCacheWithGen = function(p_strFilePath, LQb, p_destFolder, p_destFilename, p_bPron) { var vUb = YUb(); if(uTb <= Cda || !LUb || AUb == null) { var qUb; var rUb; if(tTb) { qUb = zTb +"SpeechCache/"+ p_strFilePath +".xml"+"?cachebuster="+ new Date().getTime() + Math.random(); rUb = zTb +"SpeechCache/"+ p_strFilePath +".mp3"+"?cachebuster="+ new Date().getTime() + Math.random(); } else { qUb = zTb +"SpeechCache/"+ p_strFilePath +".xml"; rUb = zTb +"SpeechCache/"+ p_strFilePath +".mp3"; } xTb = new SpeechStream.Html5Speech(); xTb.setParameters(this, vUb, LQb, p_bPron); xTb.setStaticParameters(p_destFolder, p_destFilename); xTb.loadFiles(qUb, rUb); } else { xTb = new SpeechStream.Html5Speech(); xTb.setParameters(this, vUb, LQb, p_bPron); xTb.setStaticParameters(p_destFolder, p_destFilename); xTb.makeSpeechRequest(AUb, true); } };this.startSpeechGenerateCache = function(p_strFilePath, LQb, p_destFolder, p_destFilename, p_bPron, p_strServerName) { var vUb = YUb(); xTb = new SpeechStream.Html5Speech(); xTb.setParameters(this, vUb, LQb, p_bPron); xTb.setStaticParameters(p_destFolder, p_destFilename); xTb.makeSpeechRequest(p_strServerName, true); };this.startSpeechFromCache = function(p_strFilePath, LQb, p_bPron) { var vUb = YUb(); if(uTb <= Cda || !LUb || AUb == null) { var qUb; var rUb; if(tTb) { qUb = zTb +"SpeechCache/"+ p_strFilePath +".xml"+"?cachebuster="+ new Date().getTime() + Math.random(); rUb = zTb +"SpeechCache/"+ p_strFilePath +".mp3"+"?cachebuster="+ new Date().getTime() + Math.random(); } else { qUb = zTb + p_strFilePath +".xml"; rUb = zTb + p_strFilePath +".mp3"; } xTb = new SpeechStream.Html5Speech(); xTb.setParameters(this, vUb, LQb, p_bPron); xTb.loadFiles(qUb, rUb); } else { xTb = new SpeechStream.Html5Speech(); xTb.setParameters(this, vUb, LQb, p_bPron); xTb.makeSpeechRequest(AUb, true); } }; this.startSpeechFromCacheGenerator = function(p_strFilePath) { }; this.startSpeechFromFile = function(ehb, wra){ }; this.startHighlighting = function(ehb){}; this.simpleSpeech = function(ehb, jUb){ var vUb = YUb(); xTb = new SpeechStream.Html5Speech(); xTb.setParameters(this, vUb, ehb, jUb); xTb.setHighlightable(false); if(uTb <= Cda || AUb == null) { xTb.makeSpeechRequest(zTb, false); } else { xTb.makeSpeechRequest(AUb, true); }};this.simpleSpeechFromBackup = function(ehb, jUb){ var vUb = YUb(); xTb = new SpeechStream.Html5Speech(); xTb.setParameters(this, vUb, ehb, jUb); xTb.setHighlightable(false); xTb.makeSpeechRequest(AUb, true);};this.simpleSpeechBackup = function(p_params){ var vUb = YUb(); xTb = new SpeechStream.Html5Speech(); xTb.copyParamaeters(this, vUb, p_params); xTb.setHighlightable(false); xTb.makeSpeechRequest(AUb, true);}; this.autogenSpeechFiles = function(LQb, p_destFolder, p_destFilename, p_bPron, p_strServerName){ var vUb = YUb(); this.onSpeechStop(-2); xTb = new SpeechStream.Html5Speech(); xTb.setParameters(this, vUb, LQb, p_bPron); xTb.setStaticParameters(p_destFolder, p_destFilename); xTb.makeSpeechRequest(p_strServerName, true); };this.checkAutogenCachedFiles = function(p_strFilePath){ };this.checkAutogenStaticFiles = function(p_strFilePath){ };this.autoGenComplete = function(p_strServerName){ }; this.getMP3File = function(Nhb){ }; this.getPictureDictionaryPage = function(ehb){ var wUb ="&userName="+ jca +"&swf="+ sTb; var GVb = DUb +"ImageServices/imagedict.html?word="+ ehb + wUb; if(fca != null) { GVb +="&custID="+ fca; } var caller = new SpeechStream.AjaxRequest(); caller.doPost(GVb, null, this,"imagedictionaryLoad", false);};this.imagedictionaryLoad = function(ehb){ if (ehb == null || ehb.length == 0) { $rw_picturedictionaryReply("No Image."); } else { $rw_picturedictionaryReply(ehb); }};this.getCustomDictionaryPage = function(LQb, wra){ var caller = new SpeechStream.AjaxRequest(); caller.doPost(wra + LQb, null, this,"dictionaryLoad", false);};this.getDictionaryPage = function(ehb){ var GVb = BUb +"rwserver/?query=dictionaryHtml"+"&text="+ ehb +"&locale="+ oca +"&userName="+ jca +"&swf="+ sTb; if(fca != null) { GVb +="&custID="+ fca; } var caller = new SpeechStream.AjaxRequest(); caller.doPost(GVb, null, this,"dictionaryLoad", false);};this.dictionaryLoad = function(ehb){ if(ehb == null || ehb.length == 0) { $rw_dictionaryReply("Error loading content."); } else { $rw_dictionaryReply(ehb); }};this.getDictionaryPageFl = function(ehb){ var GVb = BUb +"rwserver/?query=dictionary&type=result&wordType=15&"+"&text="+ ehb +"&locale="+ oca +"&userName="+ jca +"&swf="+ sTb +"&dictionaryType=SIMPLE"; if(fca != null) { GVb +="&custID="+ fca; } var caller = new SpeechStream.AjaxRequest(); caller.doPost(GVb, null, this,"dictionaryFlLoad", false);}; this.getDictionaryPageFlHTML = function(ehb){ var GVb = BUb +"rwserver/?query=dictionaryHtml"+"&text="+ ehb +"&locale="+ oca +"&userName="+ jca +"&swf="+ sTb +"&dictionaryType=SIMPLE"; if(fca != null) { GVb +="&custID="+ fca; } var caller = new SpeechStream.AjaxRequest(); caller.doPost(GVb, null, this,"dictionaryFlLoad", false);};this.dictionaryFlLoad = function(ehb){ if(ehb == null || ehb.length == 0) { $rw_dictionaryFlReply("Error loading content."); } else { $rw_dictionaryFlReply(ehb); }};this.getTranslationPage = function(ehb){ this.getTranslationGenericPage(ehb,"English","Spanish");};this.getTranslationGenericPage = function(ehb, JVb, KVb){ HVb(ehb, JVb, KVb, false, this);};this.getTranslationFlGenericPage = function(ehb, JVb, KVb){ HVb(ehb, JVb, KVb, true, this);};function HVb(ehb, JVb, KVb, LVb, MVb){ var GVb = CUb +"rwtranslateserver/onlinetranslator?type=ultrahtml5&mode=content"+"&value="+ encodeURIComponent(ehb) +"&value2="+ ehb +"&caller="+ location.protocol +"//"+ location.host + location.pathname +"&key="+ gDb(ehb + jca) +"&username="+ jca +"&source="+ JVb +"&dest="+ KVb; if(fca != null) { GVb +="&custID="+ fca; } var caller = new SpeechStream.AjaxRequest(); if(LVb) { caller.doPost(GVb, null, MVb,"translationFlLoad", false); } else { caller.doPost(GVb, null, MVb,"translationLoad", false); }} this.translationLoad = function(ehb) { if(ehb == null || ehb.length == 0) { $rw_transReply("Error loading content."); } else { ehb ="<style type=\"text/css\">div.rwTranWordHeader{font-weight: bold;padding-bottom: 3px;"+"border-bottom:1px solid #666666;margin-bottom: 10px;}"+"span.rwMeaningNum{pading-left: 10px;padding-right: 10px;font-weight:bold;}"+"span.rwMeaning{padding-right:1-px;}</style>"+ ehb; $rw_transReply(ehb); } }; this.translationFlLoad = function(ehb) { if(ehb == null || ehb.length == 0) { $rw_transFlReply("Error loading content."); } else { ehb ="<style type=\"text/css\">div.rwTranWordHeader{font-weight: bold;padding-bottom: 3px;"+"border-bottom:1px solid #666666;margin-bottom: 10px;}"+"span.rwMeaningNum{pading-left: 10px;padding-right: 10px;font-weight:bold;}"+"span.rwMeaning{padding-right:1-px;}</style>"+ ehb; $rw_transFlReply(ehb); } }; this.getSoundFileLength = function(Ybb) { }; audioPlaybackTimer = function() { if(WVb == null) { return; } if(pVb.ended) { $rw_speechCompleteCallback(); cUb(-1); pVb.pause(); pVb.currentTime = 0; pVb.src =''; return; } if(WVb.length > 0) { if(WVb[HUb] < pVb.currentTime) { $rw_doSelection(HUb); HUb++; } } IUb = setTimeout("audioPlaybackTimer()", 10); };};SpeechStream.Html5Speech = function(){ this.m_nRequestNumber = -1; this.m_params = null; this.m_bBackup = false; this.m_bHighlightable = true; this.m_controller = null;this.makeSpeechRequest = function(p_strSpeechServer, p_bBackup) { var server = p_strSpeechServer +"SpeechServices/index.html"; this.m_bBackup = p_bBackup; var PVb = new SpeechStream.AjaxRequest(); PVb.doPost(server, this.m_params, this,"onSpeechRequestResponse", false); };this.onSpeechRequestResponse = function(p_strResponse) { if(!this.m_controller.checkRequestStillValid(this.m_nRequestNumber)) { return; } var QVb = p_strResponse.indexOf("xml="); var RVb = p_strResponse.indexOf("&mp3"); var SVb = p_strResponse.substring(QVb + 4, RVb); var TVb = p_strResponse.substring(RVb + 5, p_strResponse.length); if(SVb =="error"|| TVb =="error") { if(!this.m_bBackup) { if(!this.m_controller.startSpeechBackup(this.m_params)) { WUb ="Error response from server"; return; } } else { this.m_controller.onSpeechStop(-3); WUb ="Error response from server"; return; } } if(SVb =="busy"|| TVb =="busy") { if(!this.m_bBackup) { if(!this.m_controller.startSpeechBackup(this.m_params)) { WUb ="Busy response from server"; return; } } else { this.m_controller.onSpeechStop(-3); WUb ="Busy response from server"; return; } } this.loadFiles(SVb, TVb); }; this.loadFiles = function(p_strXmlUrl, p_strMp3Url) { p_strXmlUrl = this.m_controller.checkPath(p_strXmlUrl); p_strMp3Url = this.m_controller.checkPath(p_strMp3Url); this.m_controller.setAudio(p_strMp3Url); if(this.m_bHighlightable) { var UVb = new SpeechStream.AjaxRequest; UVb.doGet(p_strXmlUrl, null, this,"onTimingFileResponse", true); } else { var WVb = new Array(); this.m_controller.setTimer(WVb); this.m_controller.requestCompleteStartPlayback(); } }; this.onTimingFileResponse = function(p_xmlResponse) { if(!this.m_controller.checkRequestStillValid(this.m_nRequestNumber)) { return; } var WVb = new Array(); if(p_xmlResponse && p_xmlResponse.documentElement && p_xmlResponse.documentElement.childNodes) { var XVb = p_xmlResponse.documentElement.childNodes; var YVb = 0; for(i = 0; i < XVb.length; i++) { if(XVb[i].nodeType == 1) { WVb[YVb] = parseFloat(XVb[i].getAttribute("time") / 1000); if(YVb > 0 && WVb[YVb] <= WVb[YVb - 1]) { WVb[YVb] = WVb[YVb - 1] + 0.010; } YVb = YVb + 1; } } this.m_controller.setTimer(WVb); this.m_controller.requestCompleteStartPlayback(); } else { if(!this.m_bBackup) { if(!this.m_controller.startSpeechBackup(this.m_params)) { WUb ="Failed to get timing response from server"; } } else { this.m_controller.onSpeechStop(-3); WUb ="Failed to get timing response from server"; } } };};SpeechStream.Html5Speech.prototype.setParameters = function (p_controller, ZUb, ehb, jUb){ if(ehb == null) { ehb =""; } this.m_controller = p_controller; this.m_nRequestNumber = ZUb; var aVb ="text="+ encodeURIComponent(ehb) +"&userName="+ encodeURIComponent(jca) +"&voiceName="+ encodeURIComponent(p_controller.getVoiceName())+"&speedValue="+ encodeURIComponent(pca); if(fca != null) { aVb +="&custID="+ encodeURIComponent(fca); } if(gca != null) { aVb +="&bookID="+ encodeURIComponent(gca); } if(hca != null) { aVb +="&pageID="+ encodeURIComponent(hca); } if(jUb) { aVb +="&usePron=Y"; } this.m_params = aVb;};SpeechStream.Html5Speech.prototype.copyParamaeters = function(p_controller, ZUb, p_params){ this.m_controller = p_controller; this.m_nRequestNumber = ZUb; this.m_params = p_params;};SpeechStream.Html5Speech.prototype.setStaticParameters = function (p_strDestFolder, p_strDestFilename){ var aVb ="&destFolder="+ p_strDestFolder +"&destFilename="+ p_strDestFilename; this.m_params = this.m_params + aVb;};SpeechStream.Html5Speech.prototype.setHighlightable = function(p_bHighlightable){ this.m_bHighlightable = p_bHighlightable;};SpeechStream.Html5Speech.prototype.getHighlightable = function(){ return this.m_bHighlightable;};SpeechStream.TouchScreenManager = function(){ var bVb = false; var cVb = false; var dVb = true; var eVb = null;this.initialise = function() { Lva(document,"touchstart", onTouchStart); Lva(document,"touchmove", onTouchMove); Lva(document,"touchend", onTouchEnd); }; this.initialiseToFrame = function(eQb) { if(eQb.document) { Lva(eQb.document,"touchstart", onTouchStart); Lva(eQb.document,"touchmove", onTouchMove); Lva(eQb.document,"touchend", onTouchEnd); } };this.clickAndSpeak = function(enable) { bVb = enable; }; var fVb ="onTouchStart onTouchMove onTouchEnd changedTouches";onTouchStart = function(event) { if(!Cfa) { Cfa = true; } cVb = false; if(bVb) { if(dVb) { var changedTouches = event.changedTouches ; if(changedTouches != null && changedTouches.length > 0) { var NWb = SAb(changedTouches[0], true); eVb = iAb(NWb); } } } };onTouchMove = function() { if(!Cfa) { Cfa = true; } cVb = true; };onTouchEnd = function(event) { if(bVb) { if(cVb) { eVb = null; return; } if(dVb) { if(eVb == null) { return; } var target = new THHoverTarget(null, null, eVb.range); if(target == null) { return; } dVb = false; rw_speakHoverTarget(target); } else { ova(event); } } };};var iVb = ( function(){ var jVb = {FLASH:1, HTML5:2}; var kVb = jVb.HTML5; var lVb = null; var mVb = false; var nVb = false; var oVb = new SpeechStream.TouchScreenManager(); oVb.initialise(); var pVb; try { if(pea || Rca =="hmh") { pVb = null; mVb = false; } else { pVb = new Audio(); pVb.type ="audio/mpeg"; pVb.src =""; if(pVb.canPlayType) { mVb = ("no"!= pVb.canPlayType("audio/mpeg")) && (""!= pVb.canPlayType("audio/mpeg")); } } } catch(err) { pVb = null; mVb = false; } var qVb = { enableTouchEvents: function(enable) { oVb.clickAndSpeak(enable); },getConnector: function() { if(lVb != null) { return lVb; } switch(kVb) { case jVb.HTML5: if(mVb) { lVb = new SpeechStream.HTML5Controller(); } else if(nVb) { lVb = iTb(); } break; default: if(nVb) { lVb = iTb(); } else if(mVb) { lVb = new SpeechStream.HTML5Controller(); } break; } return lVb; },hasFlashSupport: function() { if(typeof(eba_no_flash) =="boolean"&& eba_no_flash == true) { nVb = true; } else { var flash = iTb(); if(flash != null) { var sVb = flash.getVersion(); var tVb = parseFloat(sVb); if(tVb < 1.05 || tVb == NaN) { nVb = false; } else { nVb = true; } } } return nVb; },doesSupportSpeech: function() { if(mVb) { return true; } else { return qVb.hasFlashSupport(); } },doesSupportHtml5: function() { return mVb; }, forceFlash: function() { mVb = false; kVb = jVb.FLASH; lVb = null; } }; return(qVb);})();var uVb = iVb.getConnector();var vVb ="startbubble";var wVb ="stopbubble";var eba_bubble_adjust_x; var eba_bubble_adjust_y;var xVb = null;var yVb;var zVb;var AWb;var BWb;var CWb = null;function EWb(){ var DWb = document.createElement("\x64iv"); DWb.id = vVb; DWb.style.zIndex ="998"; DWb.style.position ="\x61\x62solute"; DWb.style.display ="n\x6fn\x65"; if(wea) { DWb.style.cursor ="hand"; } else { DWb.style.cursor ="pointer"; } Lva(DWb,'click', jWb); var FWb = document.createElement("img"); FWb.setAttribute("src", $g_strFileLoc +"rwimgs/start_speak_popup.gif"); DWb.appendChild(FWb); Mea.appendChild(DWb); var GWb = document.createElement("\x64\x69v"); GWb.id = wVb; GWb.style.zIndex ="999"; GWb.style.position ="\x61bsolut\x65"; GWb.style.display ="n\x6fne"; if(wea) { GWb.style.cursor ="hand"; } else { GWb.style.cursor ="pointer"; } Lva(GWb,'click', kWb); var HWb = document.createElement("img"); HWb.setAttribute("src", $g_strFileLoc +"rwimgs/stop_speak_popup.gif"); GWb.appendChild(HWb); Mea.appendChild(GWb);}function LWb(){ var Igb = document.getElementById(vVb); if(Igb != null) { var JWb = Igb.style.visibility; var KWb = Igb.style.display; Igb.style.visibility ="hidden"; Igb.style.display ="inline"; CWb = Igb.offsetParent; if(CWb == document.body) { CWb = null; } Igb.style.visibility = JWb; Igb.style.display = KWb; AWb = 0; BWb = 0; if(typeof(eba_bubble_adjust_x) =="number") { AWb -= eba_bubble_adjust_x; } if(typeof(eba_bubble_adjust_y) =="number") { BWb -= eba_bubble_adjust_y; } }}function QWb(evt){ if(lda && evt.shiftKey || !Dca) { return; } var MWb = false; var NWb = SAb(evt, false); if(NWb != null && NWb.node != document.body) { if(NWb.node.nodeType == 1) { var cdb = NWb.node; var rdb = cdb.tagName.toLowerCase(); if(rdb =="img") { var RWb = cdb.parentNode; if(RWb.tagName.toLowerCase() =="div") { if(cdb.id == vVb || cdb.id == wVb) { return; } } var SWb = cdb.getAttribute("title"); if(SWb == null || SWb.length == 0) { var TWb = cdb.getAttribute("alt"); if(TWb == null || TWb.length == 0) { var UWb = cdb.getAttribute("msg"); if(UWb == null || UWb.length == 0) { return; } } } MWb = true; } else { return; } } var VWb = iAb(NWb); if(VWb != null) { if(typeof(AWb) =="undefined") { LWb(); } if(CWb != null) { if(!vWb(CWb, NWb.node)) { return; } } if(MWb) { var fWb = Ova(NWb.node); var XWb = BXb(NWb.node); var YWb = 0; var ZWb = 0; while(XWb != null) { if(XWb != CWb) { YWb += XWb.scrollLeft; ZWb += XWb.scrollTop; XWb = BXb(XWb); } else { XWb = null; } } fWb.x -= YWb; fWb.y -= ZWb; gWb(fWb.x - AWb, fWb.y - BWb, VWb); } else { var aWb = VWb.getCaretRange(); if(Xqa(aWb)) { var start = aWb.Obb.node; if(VWb.isRange()) { var end = aWb.Pbb.node; start = uIb(start); end = zIb(end); var Gbb = FPb(start, 0); var Hbb; if(end.nodeType == 1) { Hbb = FPb(end, 0); } else { Hbb = FPb(end, end.nodeValue.length); } VWb.range = new THRange(document.body, Gbb, Hbb); } var fWb = rWb(start); gWb(fWb.x - AWb, fWb.y - BWb, VWb); } else { } } } }}function gWb(x, y, hWb){ if(kda && Dca) { x = x - 32; if(x<0) { x = 0; } y = y - 18; if(y<0) { y = 0; } var scrollLeft; var scrollTop; if(CWb != null) { scrollLeft = 0; scrollTop = 0; } else { scrollLeft = rw_getScreenOffsetLeft(); scrollTop = rw_getScreenOffsetTop(); } yVb = x + scrollLeft; zVb = y + scrollTop; document.getElementById(vVb).style.display="inline"; document.getElementById(vVb).style.left = yVb +'px'; document.getElementById(vVb).style.top = zVb +'px'; xVb = hWb; }}function jWb(){ if(xVb != null) { $rw_event_stop(); lWb(yVb, zVb); if(!xVb.isRange()) { var iWb = hda; hda = false; rw_speakHoverTarget(xVb); hda = iWb; } else { rw_speakHoverTarget(xVb); } }}function kWb(){ $rw_event_stop();}function lWb(x, y){ if(kda && Dca) { document.getElementById(wVb).style.display="inline"; document.getElementById(wVb).style.left = x +'px'; document.getElementById(wVb).style.top = y +'px'; }}function mWb(){ if(document.getElementById(vVb)) { document.getElementById(vVb).style.display="none"; }}function nWb(){ if(document.getElementById(wVb)) { try { document.getElementById(wVb).style.display="none"; } catch(e) { Epa(e); } }}function rWb(qdb){ var x = 0; var y = 0; var oWb = BXb(qdb); if(CWb != null && !vWb(CWb, oWb)) { oWb = CWb; } var Qbb = qdb; var qWb; while(oWb != null) { qWb = MXb(IXb(Qbb, oWb), oWb); x += qWb.x; y += qWb.y; Qbb = oWb; if(oWb == CWb) { break; } oWb = BXb(oWb); if(CWb != null && !vWb(CWb, oWb)) { oWb = CWb; } } if(CWb == null) { qWb = MXb(IXb(Qbb, Qbb.ownerDocument.body), Qbb.ownerDocument.body); x += qWb.x; y += qWb.y; } else { x += ZNb(CWb); y += bNb(CWb); } return {x:x, y:y};}function vWb(wWb, xWb){ if(wWb == null || xWb == null) { return false; } var udb = xWb.ownerDocument.body; var Pgb = xWb; while(Pgb != null && Pgb != udb) { if(wWb == Pgb) { return true; } Pgb = Pgb.parentNode; } return false;}function BXb(qdb){ var yWb = qdb.parentNode; var zWb = qdb.ownerDocument.body; var AXb = null; while(yWb != null && yWb != zWb) { if(yWb.tagName.toLowerCase() =="div"|| yWb.tagName.toLowerCase() =="form") { var DXb = yWb.clientHeight; var EXb = yWb.clientWidth; var FXb = cMb(yWb); var GXb = false; if(FXb != null && FXb.overflow !="visible") { if(yWb.scrollHeight > DXb && FXb.overflowY !="visible") { GXb = true; } if(yWb.scrollWidth > EXb && FXb.overflowX !="visible") { GXb = true; } } if(GXb) { AXb = yWb; break; } } yWb = yWb.parentNode; } return AXb;}function IXb(JXb, OXb){ if(JXb.nodeType == 3) { JXb = JXb.parentNode; } var x = 0; var y = 0; var HXb = JXb; while(HXb != OXb && HXb != null) { x += HXb.offsetLeft; y += HXb.offsetTop; HXb = pOb(HXb, OXb); } return {x:x, y:y};}function MXb(NXb, OXb){ NXb.x -= ZNb(OXb); NXb.y -= bNb(OXb); if(cMb(OXb).position =="static") { NXb.x -= OXb.offsetLeft; NXb.y -= OXb.offsetTop; } if(NXb.x < 0) { NXb.x = 0; } if(NXb.y < 0) { NXb.y = 0; } if(NXb.x > OXb.clientWidth) { NXb.x = OXb.clientWidth; } if(NXb.y > OXb.clientHeight) { NXb.y = OXb.clientHeight; } return {x:NXb.x, y:NXb.y};}function $rw_barCacheInit(){ if(pea) { yMb(Mea,"<link href=\""+ $g_strFileLoc +"rwcache.css\" type=\"text/css\" rel=\"stylesheet\" />", false); } else { yMb(Mea,"<link href=\""+ $g_strFileLoc +"rwcacheSFF.css\" type=\"text/css\" rel=\"stylesheet\" />", false); } var vfb =""; vfb +='<div id="rwGenerateCache" rwTHcomp="1" texthelpStopContinuous="1">'; vfb +='<div class="rwGenerateCachePopupOutline">'; vfb +='<div id="rwDragMeGenerateCache" class="rwToolbarCaptionGenerateCache" ignore="1">'; vfb +='Loading, please wait...'; vfb +='<img name="displayImg" align="right" src="'+ $g_strFileLoc +'rwimgs/thex.bmp" onMouseOver="$rw_divOver(9)" onMouseOut="$rw_divOut(9)" '+'onMouseUp="$rw_divPress(9)" />'; vfb +='</div>'; vfb +='<div class="rwGenerateCachePopupContent">'; vfb +='<span id="rwGenerateCachedisplay" ignore="1">'; vfb +=''; vfb +='</span>'; vfb +='</div>'; vfb +='</div>'; vfb +='</div>'; yMb(Mea, vfb, false);}function $rw_barCalInit(){ if(pea) { yMb(Mea,"<link href=\""+ $g_strFileLoc +"rwcalculator.css\" type=\"text/css\" rel=\"stylesheet\" />", false); } else { yMb(Mea,"<link href=\""+ $g_strFileLoc +"rwcalculatorSFF.css\" type=\"text/css\" rel=\"stylesheet\" />", false); } var vfb =""; vfb +='<div id="rwCal" rwTHcomp="1" style="visibility:hidden" texthelpStopContinuous="1">'; vfb +=' <div class="rwCalPopupOutline">'; if(lca == ENG_UK || lca == ENG_US) { vfb +='  <div id="rwDragMeCal" class="rwToolbarCaptionCal" >'; } else { vfb +='  <div id="rwDragMeCal" class="rwToolbarSpanCaptionCal" >'; } vfb +='    <img name="calImg" align="right" src="'+ $g_strFileLoc +'rwimgs/thex.bmp" onmouseover="$rw_divOver(8);" onmouseout="$rw_divOut(8);" '+'onmouseup="$rw_divPress(8);" /></div>'; vfb +='<div class="rwCalPopupContent">'; vfb +='<form name="rw_calForm" class="rw_calForm" id="rw_calForm">'; vfb +='<table class="rw_calTable">'; vfb +="<tbody>"; vfb +='<tr>'; vfb +='<td colSpan="2">'; vfb +='<input type="text" class="rwcaldisplay" id="rw_calDis" maxlength="40" name="rw_calDis" readonly="readonly" />'; vfb +='</td>'; vfb +='</tr>'; vfb +='<tr>'; vfb +='<td colSpan="2" class="rwcalspeechbutton">'; if(Cfa) { vfb +='<br/>'; } else { vfb +='<input type="checkbox" id="rw_calspeechbutton" name="rw_calspeechbutton" /><span>Speech on</span>'; } vfb +='</td>'; vfb +='</tr>'; vfb +='<tr>'; vfb +='<td> '; vfb +='<table>'; vfb +="<tbody>"; vfb +='<tr>'; vfb +='<td><input type="button" class="rwcalbutton" value="7" name="seven" onclick="rw_calAddDigit(\'7\')"/></td>'; vfb +='<td><input type="button" class="rwcalbutton" value="8" name="eight" onclick="rw_calAddDigit(\'8\')"/></td>'; vfb +='<td><input type="button" class="rwcalbutton" value="9" name="nine" onclick="rw_calAddDigit(\'9\')"/></td>'; vfb +='</tr>'; vfb +='<tr>'; vfb +='<td><input type="button" class="rwcalbutton" value="4" name="four" onclick="rw_calAddDigit(\'4\')"/></td>'; vfb +='<td><input type="button" class="rwcalbutton" value="5" name="five" onclick="rw_calAddDigit(\'5\')"/></td>'; vfb +='<td><input type="button" class="rwcalbutton" value="6" name="six" onclick="rw_calAddDigit(\'6\')"/></td>'; vfb +='</tr>'; vfb +='<tr>'; vfb +='<td><input type="button" class="rwcalbutton" value="1" name="one" onclick="rw_calAddDigit(\'1\')"/></td>'; vfb +='<td><input type="button" class="rwcalbutton" value="2" name="two" onclick="rw_calAddDigit(\'2\')"/></td>'; vfb +='<td><input type="button" class="rwcalbutton" value="3" name="three" onclick="rw_calAddDigit(\'3\')"/></td>'; vfb +='</tr>'; vfb +='<tr>'; vfb +='<td><input type="button" class="rwcalbutton" value="+/-" name="toggle the sign of the number" onclick="rw_calPlusMinus()"/></td>'; vfb +='<td><input type="button" class="rwcalbutton" value="0" name="zero" onclick="rw_calAddDigit(\'0\')"/></td>'; vfb +='<td><input type="button" class="rwcalbutton" value="." name="decimal point" onclick="rw_calDec()"/></td>'; vfb +='</tr>'; vfb +="</tbody>"; vfb +='</table>'; vfb +='</td>'; vfb +='<td>'; vfb +='<table>'; vfb +="<tbody>"; vfb +='<tr>'; vfb +='<td><input type="button" class="rwcalbutton" value="C" name="clear" onclick="rw_calClearNum()" /></td>'; vfb +='<td><input type="button" class="rwcalbutton" value="AC" name="clear memory" onclick="rw_calClearMem()" /></td>'; vfb +='</tr>'; vfb +='<tr>'; vfb +='<td><input type="button" class="rwcalbutton" value="*" name="multiply" onclick="rw_calFunc(\'*\')" /></td>'; vfb +='<td><input type="button" class="rwcalbutton" value="/" name="divide" onclick="rw_calFunc(\'/\')" /></td>'; vfb +='</tr>'; vfb +='<tr>'; vfb +='<td><input type="button" class="rwcalbutton" value="+" name="plus" onclick="rw_calFunc(\'+\')" /></td>'; vfb +='<td><input type="button" class="rwcalbutton" value="-" name="minus" onclick="rw_calFunc(\'-\')" /></td>'; vfb +='</tr>'; vfb +='<tr>'; vfb +='<td colSpan="2"><input type="button" class="rwcalEqbutton" value="=" name="equals" onclick="rw_calEquals()" /></td>'; vfb +='</tr>'; vfb +="</tbody>"; vfb +='</table>'; vfb +='</td>'; vfb +='</tr>'; vfb +="</tbody>"; vfb +='</table>'; vfb +='</form>'; vfb +='</div></div></div>'; yMb(Mea, vfb, false);}var RXb = 0; var SXb = 16; var TXb = 0; var UXb ="0"; var VXb = 0;function rw_calFunc(XXb){ if(RXb != 0) { rw_calEquals(); } if(XXb.indexOf("*") > -1) { RXb = 1; } if(XXb.indexOf("/") > -1) { RXb = 2; } if(XXb.indexOf("+") > -1) { RXb = 3; } if(XXb.indexOf("-") > -1) { RXb = 4; } TXb = VXb; UXb =""; }function rw_calDec(){ if(UXb.length == 0) { UXb ="0."; } else { if(( UXb.indexOf(".") == -1) && ( UXb.indexOf("e") == -1) ) { UXb = UXb +"."; } } VXb = parseFloat(UXb); iXb(UXb); }function rw_calPlusMinus(){ if(UXb.indexOf("!") == -1) { VXb = VXb * -1; UXb =""+ VXb; } else { UXb ="Press 'AC'!"; } iXb(UXb); }function rw_calEquals(){ if(UXb !="") { if((UXb.indexOf("!") == -1)) { if(RXb == 1) { VXb = TXb * VXb; } if(RXb == 2) { if(VXb != 0) { VXb = TXb / VXb; } else { UXb ="Cannot divide by zero!"; } } if(RXb == 3) { VXb = TXb + VXb; } if(RXb == 4) { VXb = TXb - VXb; } if(RXb == 2 && VXb == 0) { } else { UXb = VXb +""; } RXb = 0; TXb = 0; if(UXb.indexOf("Infinity") != -1) { UXb ="Value too long!"; } if(UXb.indexOf("NaN") != -1) { UXb ="N/A!"; } } else { UXb ="Press 'AC'!"; } iXb(UXb); if(gXb()) { $rw_speakText(UXb); } UXb ="0"; }}function rw_calAddDigit(cXb){ if(UXb.length < SXb) { if(UXb.indexOf("!") == -1) { if((parseFloat(UXb) == 0) && (UXb.indexOf(".") == -1)) { UXb = cXb; } else { UXb = UXb + cXb; } VXb = parseFloat(UXb); } else { UXb ="Press 'AC'!"; } } iXb(UXb); }function rw_calClearNum(){ VXb = 0; UXb =""+ VXb; iXb(UXb); }function rw_calClearMem(){ VXb = 0; RXb = 0; TXb = 0; UXb =""+ VXb; iXb(UXb); }function gXb(){ var Igb = document.getElementById("rw_calspeechbutton"); if(Igb != null) { return Igb.checked; } else { return false; }}function hXb(){ return document.getElementById("rw_calForm");}function iXb(jXb){ document.getElementById("rw_calDis").value = jXb;}if(typeof($rw_userParameters) =="function"){ Nea = true; $rw_userParameters(); $rw_barInit(); rw_onload();}

