var WPWarn="Copyright 2006-2008 ClickTale Ltd., Patent Pending",WPO,WPP,WPQ="../data/",WPR,WPS=document,WPT,WPU,WPj,WPt,WPV,WPW=0,WPX=0,WPAD,WPY,WPZ,WPa,WPy,WPAC,WPz=0,WP0=0,WPu=1,WPv=1,WPK,WPL,WPAE={},WPA=0,WPB=0,WPC=0,WPD=0,WPAY=0,WPAZ=0,WPb,WPAJ,WP1,WP2,WPAH,WPAV=true,WPAW,WPAX,WPM,WPc;var WPAN=true;if(OFFLINE_PLAYER){WPQ="offline_assets/";var XMLFrame;};function WebPlayer(PID,UID,SID){WPb=WRGetAgent();if(WPb=="IE6")WPAV=false;if(WPb||confirm("You are using an unsupported browser. Only MSIE 6.0/7.0 and FF 1.5/2.0 are officially supported for playback at the moment. Try anyway?"))WPd(PID,UID,SID);};function WPd(PID,UID,SID){if(OFFLINE_PLAYER){WPR="offline_assets/";}else{WPR="../data/"+PID+"/";};WP2=PHGetMiscContainer();WPAE={};WPAB();PHInitLoading();if(WPAN){window.onclick=WPAO;};WPAW=location.href.replace(/^(.*)\/\w+\..*$/,"$1/img/").replace("'","%27");if(OFFLINE_PLAYER){var url=WPQ+SID+".xml";}else{var url=WPQ+PID+"/"+UID+"/"+SID+".xml";};WPe(url);};function WPe(url){if(OFFLINE_PLAYER&&location.protocol=="file:"){if(WPb.substr(0,2)=="IE"){var xml=document.createElement("xml");xml.src=url;document.body.appendChild(xml);WPP=xml.XMLDocument;document.body.removeChild(xml);WPg();}else{if(!XMLFrame){XMLFrame=$("recordings");WRAddEvent(XMLFrame,'load',XMLFrameLoad);};XMLFrame.src=url;};return;};if(window.XMLHttpRequest){try{WPO=new XMLHttpRequest();}catch(e){WPO=false;};}else if(window.ActiveXObject){try{WPO=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{WPO=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){WPO=false;};};};if(WPO){WPO.onreadystatechange=WPf;WPO.open("GET",url,true);WPO.send("");}else{alert("Can\'t create XMLHTTP object");};};function XMLFrameLoad(){WPP=XMLFrame.contentDocument;WPg();};function WPf(){if(WPO.readyState==4){if(WPO.status==200){WPP=WPO.responseXML;WPg();}else{alert("Can\'t load XML:\n"+WPO.statusText);};};};function WPg(){var xinit,xload,xunload;xinit=WPP.documentElement;xload=WPP.documentElement.getElementsByTagName("load");xload=xload.length?xload.item(0):null;xunload=WPP.documentElement.getElementsByTagName("unload");xunload=xunload.length?xunload.item(0):null;if(!xinit){alert("Recording data is missing required information.");return;};if(!xinit.getAttribute("webPageHash")){alert("Page content of the recording was not retrieved successfully.\nPossible causes may include; a \"member-only\" page, or a communication error.\nPlease note that recording of pages that depend on session state or pages on an internal network is not supported by the default mode of recording.\nFor the default mode to function, pages should be accessible for an anonymous fetch from our servers.\nSee the forum for details on alternative modes of recording.");return;};WP1=parseInt(xinit.getAttribute("version"));var bInstallFrame;if(!WPT){WPT=WPS.createElement("iframe");if(WPb.substr(0,2)=="IE")WPT.scrolling="yes";WRAddEvent(WPT,'load',WPh);bInstallFrame=true;}else{WP4();};if(WPAN)window.onbeforeunload=WPAP;WPT.className="PageDisplay";WPT.width=xinit.getAttribute("w");WPT.height=xinit.getAttribute("h");WPT.src=WPR+xinit.getAttribute("webPageHash")+".html";WPAC={w:xinit.getAttribute("scrw"),h:xinit.getAttribute("scrh")};if(bInstallFrame){PHInstallFrame(WPT,WPAC,WPAV);};var xtags=WPP.documentElement.getElementsByTagName("tag"),atags=[],htags={};for(var i=0;i<xtags.length;i++){var n=WP7(xtags.item(i));if(!htags[n]){htags[n]=1;atags.push(n);};};PHFieldsLoaded({navigator:xinit.getAttribute("navigator"),userAgent:xinit.getAttribute("userAgent"),itime:xinit.getAttribute("itime"),rtime:xinit.getAttribute("rtime")?xinit.getAttribute("rtime"):xinit.getAttribute("itime"),location:xinit.getAttribute("location"),referrer:xinit.getAttribute("referrer"),platform:xinit.getAttribute("platform"),scrw:WPAC.w,scrh:WPAC.h,scrDepth:xinit.getAttribute("scrDepth"),ip:xinit.getAttribute("ip"),errorCount:xinit.getAttribute("errorCount"),country:xinit.getAttribute("country"),countryCode:xinit.getAttribute("countryCode"),timeZone:xinit.getAttribute("timeZone"),languageCode:xinit.getAttribute("languageCode")?xinit.getAttribute("languageCode"):xinit.getAttribute("language"),length:xinit.getAttribute("length"),activeTime:xinit.getAttribute("activeTime"),loadTime:(xload?xload.getAttribute("t"):false),tags:atags});};function WP3(){return"For playback to work correctly you must stay on the cached copy of the page.";};function WPAP(){return"It seems that the recorded page is trying to redirect the playback page to a different location. You can modify your pages to stop doing that during ClickTale playback.\nThe most common reason for this is trying to break out of an iframe. Search \"Break-Out-Of-Frames\" in the forum.";};function WPAO(){if(window.onbeforeunload==WPAP){window.onbeforeunload=null;};};function WP4(){if(WPT.contentWindow)WPT.contentWindow.onbeforeunload=null;if(WPj)WPj.onbeforeunload=null;};function WPh(){WPU=WPT.contentWindow.document;WPj=WPU.body;WPAJ=(WPU.compatMode=='BackCompat');WPt=(WPAJ?WPj:WPU.documentElement);WPT.contentWindow.onbeforeunload=WP3;WPj.onbeforeunload=WP3;window.onbeforeunload=WP4;WRAddEvent(WPT.contentWindow,'scroll',WPAK);WPAH=WPU.createElement("div");WPAH.style.position="absolute";WPAH.style.top="0px";WPAH.style.left="0px";WPAH.style.backgroundImage="url('"+WPAW+"blank.gif')";WPAH.style.backgroundColor="transparent";WPAH.style.zIndex=900000;WPAH.style.display='none';WPAH.style.cursor='not-allowed';WPj.appendChild(WPAH);var r=WPP.documentElement;var c="";var m={};m.cwl=WPt.clientWidth;m.cwr=r.getAttribute("cw");m.chl=WPt.clientHeight;m.chr=r.getAttribute("ch");m.swl=WPt.scrollWidth;m.swr=r.getAttribute("sw");m.shl=WPt.scrollHeight;m.shr=r.getAttribute("sh");if(r.getAttribute("navigator")&&WPb!=r.getAttribute("navigator"))c=c+"Browser mismatch: "+WPb+"l/"+r.getAttribute("navigator");if(r.getAttribute("platform")&&navigator.platform!=r.getAttribute("platform"))c=c+(c==""?"":", ")+"Platform mismatch: "+navigator.platform+"l/"+r.getAttribute("platform");WP8(m.cwr,m.chr);if(m.cwr&&m.cwl!=m.cwr){c=c+(c==""?"":", ")+"clientWidth mismatch: "+m.cwl+"l/"+m.cwr;};if(m.chr&&m.chl!=m.chr){c=c+(c==""?"":", ")+"clientHeight is different: "+m.chl+"l/"+m.chr;};if(m.swr&&WPw()!=m.swr){c=c+(c==""?"":", ")+"scrollWidth is different: "+WPw()+"l/"+m.swr;if(m.swr!=m.cwr)WPu=(WPw()-m.cwl)/(m.swr-m.cwr);};if(m.shr&&WPx()!=r.getAttribute("sh")){c=c+(c==""?"":", ")+"scrollHeight is different: "+WPx()+"l/"+m.shr;if(m.shr!=m.chr)WPv=(WPx()-m.chl)/(m.shr-m.chr);};if(WPAV){var s="width:"+60+"px; height:"+60+"px; background-repeat: no-repeat; background-image: url('"+WPAW+"cursor/",hi="background-position: 0 -"+60+"px;";var hf=DomBuilder.apply(WPU);WPAX={click:{},key:{},w:60,h:60};WPAX.key[2]=hf.DIV({style:s+"shift.png');"+hi},hf.DIV({style:s+"cursor.gif');"}));WPAX.key[1]=hf.DIV({style:s+"ctrl.png');"+hi},WPAX.key[2]);WPAX.key[0]=hf.DIV({style:s+"alt.png');"+hi},WPAX.key[1]);WPAX.click[2]=hf.DIV({style:s+"click_4.png');"+hi},WPAX.key[0]);WPAX.click[1]=hf.DIV({style:s+"click_2.png');"+hi},WPAX.click[2]);WPAX.click[0]=hf.DIV({style:s+"click_1.png');"+hi},WPAX.click[1]);WPAX.nan=hf.DIV({style:s+"nan.png');"+hi},WPAX.click[0]);WPAX.hi=hf.DIV({style:s+"highlight_large.png');"},WPAX.nan);WPc=hf.DIV({style:"position: absolute; width:"+60+"px; height:"+60+"px; z-index: 1000000; overflow: hidden;"},WPAX.hi);}else{WPc=WPU.createElement("div");WPc.style.position="absolute";WPc.style.width=14+"px";WPc.style.height=14+"px";WPc.style.fontSize="1px";WPc.style.zIndex=1000000;WPc.style.borderStyle="solid";};WPk(-1,-1);WPAL(0,0);WPj.appendChild(WPc);WPM=WPU.createElement("div");WPj.appendChild(WPM);setTimeout('var r=WPP.documentElement;WPt.scrollTop=r.getAttribute("sy")||0; WPt.scrollLeft=r.getAttribute("sx")||0;',10);WPW=0;WPX=0;WPV=WPP.documentElement.childNodes;WPl();if(WPV.length>0){PHNextActionButDisable(false);PHPlayButDisable(false);PHStopButDisable(false);};PHFrameLoaded({warnings:c,title:WPU.title,actionsCount:WPV.length});};function WPN(x,y,bm){var b=WPt,d=WPU.createElement("div");if(WPAV){var h=60/2;if(x-h>=b.clientWidth||y-h>=b.clientHeight)return;bm=[0,1,2,1,4,1,2,1][bm];var s="width: "+60+"px; height: "+60+"px; position: absolute; z-index: 800000; background-image: url('"+WPAW+"cursor/behind_"+bm+".png');";if(isIE)d.style.cssText=s;else d.setAttribute("style",s);if(x+h>=b.clientWidth)d.style.width=(b.clientWidth+h-x)+"px";else d.style.width=60+"px";if(y+h>=b.clientHeight)d.style.height=(b.clientHeight+h-y)+"px";else d.style.height=60+"px";d.style.left=(b.scrollLeft+x-h)+"px";d.style.top=(b.scrollTop+y-h)+"px";}else{d.style.position="absolute";d.style.width="4px";d.style.height="4px";d.style.fontSize="1px";d.style.left=(b.scrollLeft+Math.min(x-1,b.clientWidth))+"px";d.style.top=(b.scrollTop+Math.min(y-1,b.clientHeight))+"px";d.style.zIndex=800000;d.style.backgroundColor=WPn(bm);};WPM.appendChild(d);};function WPl(){if(WPW>WPV.length)alert('WPl error');var t=-1;if(WPW!=WPV.length)t=WPV.item(WPW).getAttribute("t")-WPX;PHUpdatePlaybackStatuses({timeToNext:t,curAction:WPW,totalActions:WPV.length,curTime:WPX,skipping:WPAD});};function WPAa(pm,b,up){if(pm<0)return up?0:b;return up?pm&(~b):(pm|b);};function WPk(b,k){if(WPAV){var lastButMask=WPAY,eb=b,ek=k;if(WPAY==-1&&b>=0){lastButMask=0;WPAX.hi.style.backgroundPosition="0px";WPAX.nan.style.backgroundPosition="-"+60+"px";}else if(b==-1&&WPAY>=0){eb=0;WPAX.nan.style.backgroundPosition="0px";WPAX.hi.style.backgroundPosition="-"+60+"px";};for(var i=0;i<3;i++){if(((lastButMask^eb)&(1<<i)))WPAX.click[i].style.backgroundPosition="0 "+((eb&(1<<i))?"0px":"-"+60+"px");};if(ek==-1)ek=0;for(var i=0;i<3;i++){if(((WPAZ^ek)&(1<<i)))WPAX.key[i].style.backgroundPosition="0 "+((ek&(1<<i))?"0px":"-"+60+"px");};}else{WPc.style.borderColor=WPm(k);WPc.style.backgroundColor=WPn(b);};WPAY=b;WPAZ=k;};function WPAL(x,y){var bo=WPt;if(WPAV){var h=60/2,m={w:bo.clientWidth,h:bo.clientHeight};if(x-h>=m.w||y-h>=m.h)return;var a,b;if(x+h>=m.w)a=m.w+h-x;else a=60;if(y+h>=m.h)b=m.h+h-y;else b=60;if(a!=WPAX.w)WPc.style.width=a+"px";if(b!=WPAX.h)WPc.style.height=b+"px";WPAX.w=a;WPAX.h=b;x-=h;y-=h;}else{var bs=3;if(x<bo.clientWidth-14-bs){if(WPc.style.borderRightWidth!="0px"){WPc.style.borderLeftWidth=bs+"px";WPc.style.borderRightWidth="0px";};}else if(x<bo.clientWidth){if(WPc.style.borderLeftWidth!="0px"){WPc.style.borderLeftWidth="0px";WPc.style.borderRightWidth=bs+"px";};x-=14+bs;}else return;if(y<bo.clientHeight-14-bs){if(WPc.style.borderBottomWidth!="0px"){WPc.style.borderTopWidth=bs+"px";WPc.style.borderBottomWidth="0px";};}else if(y<bo.clientHeight){if(WPc.style.borderTopWidth!="0px"){WPc.style.borderTopWidth="0px";WPc.style.borderBottomWidth=bs+"px";};y-=14+bs;}else return;};WPc.style.left=(bo.scrollLeft+Math.min(x,bo.clientWidth))+"px";WPc.style.top=(bo.scrollTop+Math.min(y,bo.clientHeight))+"px";};function WPSpeedChange(){if(WPY){WPo();WPp();};};function WPp(){var nt=WPV.item(WPW).getAttribute("t")-WPX,s=PHGetSpeed();while(nt/s<10){WPs();if(WPW>=WPV.length)break;nt=WPV.item(WPW).getAttribute("t")-WPX,s=PHGetSpeed();};var as=PHGetAutoSkip();if(as!=-1&&nt>as){nt=as;WPAD=true;}else WPAD=false;WPa=setTimeout('WPq()',nt/s);if(nt>100)WPZ=setInterval('WPr()',100/s);};function WPo(){if(WPa){clearTimeout(WPa);WPa=false;};if(WPZ){clearInterval(WPZ);WPZ=false;};};function WPPlay(){PHPlayButDisable(true);PHPauseButDisable(false);WPY=true;if(WPL)WPL.focus();WPp();};function WPPause(){PHPlayButDisable(false);PHPauseButDisable(true);WPY=false;WPo();};function WPNextAction(){WPo();if(!WPY)WPAD=false;if(WPL)WPL.focus();WPs();if(WPY)WPp();};function WPAB(){WPY=false;PHNextActionButDisable(true);PHStopButDisable(true);PHPlayButDisable(true);PHPauseButDisable(true);WPo();WPi(WP2,"");if(PHInputPanel)PHInputPanel.reset();};function WPStop(){WPk(-1,-1);WPAL(0,0);var r=WPP.documentElement;WPB=WPt.scrollTop=WPD=r.getAttribute("sy")||0;WPA=WPt.scrollLeft=WPC=r.getAttribute("sx")||0;WP5(r.getAttribute("w"),r.getAttribute("h"),r.getAttribute("cw"),r.getAttribute("ch"));WPY=false;PHPlayButDisable(false);PHPauseButDisable(true);WPo();WPX=0;WPW=0;PHNextActionButDisable(WPW>=WPV.length);WPl();WPi(WP2,"");if(PHInputPanel)PHInputPanel.reset();var tcts=["TEXTAREA","INPUT"];for(var k=0;k<tcts.length;k++){var tcs=WPU.getElementsByTagName(tcts[k]);for(var i=0;i<tcs.length;i++){var e=tcs[i];if(WRIsElemTextCtrl(e)){if(e.OrigValue)e.value=e.OrigValue[0];if(e.Caret)e.Caret={s:0,e:0,l:0};};};};while(WPM.firstChild)WPM.removeChild(WPM.firstChild);};function WPq(){WPo();WPs();if(WPW<WPV.length&&WPY)WPp();};function WPAK(){if(WPt.scrollTop!=WPD)WPt.scrollTop=WPD;};function WPs(){if(WPW>=WPV.length)return;var n=WPV.item(WPW);statText=n.nodeName;switch(n.nodeName){case"scrollx":WPAQ(n);break;case"scrolly":n=WPAR(n);break;case"resize":WP5(n.getAttribute("w"),n.getAttribute("h"),n.getAttribute("cw"),n.getAttribute("ch"));break;case"mousemove":case"mouseup":case"mousedown":WPAS(n);break;case"mouseenter":WPk(0,0);break;case"mouseleave":case"mouseout":WPk(-1,-1);break;case"keypress":var kc=n.getAttribute("kc")||n.getAttribute("cc"),k=n.getAttribute("k");if(PHInputPanel){PHInputPanel.addCharCode(kc);if(WPL)WPE(PHInputPanel.renderCharCode(kc),k);};break;case"keydown":var kc=n.getAttribute("kc"),k=n.getAttribute("k");if(PHInputPanel)PHInputPanel.addKeyCode(kc,k);if(WPL)WPF(kc,k);break;case"tag":case"note":WPAM(WP2,n.nodeName+":'"+WP7(n)+"'; ");break;case"field":WPAM(WP2,n.nodeName+":'"+n.getAttribute("name")+"'='"+WP7(n)+"'; ");break;case"error":WPAM(WP2,n.nodeName+":'"+n.getAttribute("msg")+"','"+n.getAttribute("url")+"','"+n.getAttribute("line")+"'; ");break;case"exec":WPT.contentWindow.eval(WP7(n));break;case"mouseover":case"elmPos":WPAU(n);break;case"focus":case"blur":WPG(n);break;case"ctrlchange":WPH(n);break;case"caret":WPI(n);break;case"submit":case"reset":default:};PHUpdateStatus(statText);WPX=parseInt(n.getAttribute("t"));WPW++;WPl();if(WPW>=WPV.length){PHNextActionButDisable(true);PHPlayButDisable(true);PHPauseButDisable(true);WPY=false;};};function WPI(n){if(WPL&&WPL.Caret){var s=n.getAttribute("s"),e=n.getAttribute("e"),l=n.getAttribute("l");if(WPL.value.length!=l)WPJ(WPL,l,WRGetCaretPosition(WPL));WRSetCaretPosition(WPL,s,e);WPL.Caret={s:s,e:e,l:l};};};function WPJ(elm,l,c){if(!c)c={s:0,e:0,l:0};var v=elm.value,l2=v.length-(c.e-c.s);if(l2<=l){var st="";for(var j=l2;j<l;j++)st+="?";elm.value=v.substr(0,c.s)+st+v.substr(c.e);}else{elm.value=v.substr(0,c.s)+v.substr(c.e,l-c.s);};};function WPE(cc,k){if(WPL&&WPL.Caret&&cc){var p=WPL.Caret;var v=WPL.value;WPL.value=v.substr(0,p.s)+cc+v.substr(p.e);p.l+=p.e-p.s+1;p.s++;p.e=p.s;WPL.Caret=p;WRSetCaretPosition(WPL,p.s,p.e);};};function WPF(kc,k){if(WPL&&WPL.Caret){var p=WPL.Caret;if(kc==8&&p.s>0){var v=WPL.value;WPL.value=v.substr(0,p.s-1)+v.substr(p.e);p.s--;p.e--;p.l--;}else if(kc==46&&p.e<p.l){var v=WPL.value;WPL.value=v.substr(0,p.s)+v.substr(p.e+1);p.l--;}else if(kc==37&&p.s>0){p.s--;if(!(k&4))p.e--;}else if(kc==39&&p.e<p.l){p.e++;if(!(k&4))p.s++;}else if(kc==36){p.e=0;if(!(k&4))p.s=0;}else if(kc==35){p.s=p.l;if(!(k&4))p.e=p.l;}else if(kc==13&&!(k&(2|1))&&/textarea/i.test(WPL.tagName)){WPE('\n',0);};WPL.Caret=p;WRSetCaretPosition(WPL,p.s,p.e);};};function WPG(n){if(n.nodeName=="blur"){if(WPL)WPL.blur();WPL=null;}else{var id=n.getAttribute("id");var elm=WPAE[id];WPL=elm;elm.focus();if(!elm.Caret&&WRIsElemTextCtrl(elm)){elm.Caret={s:0,e:0,l:0};elm.OrigValue=[elm.value];};};};function WPH(n){var id=n.getAttribute("id"),val=parseInt(n.getAttribute("v")),elm=WPAE[id];if(/select/i.test(elm.tagName))elm.selectedIndex=parseInt(val);else if(/input/i.test(elm.tagName)){if(/checkbox|radio/i.test(elm.type))elm.checked=val==1?true:false;else if(/text|password/i.test(elm.type))WPJ(elm,val);}else if(/textarea/i.test(elm.tagName))WPJ(elm,val);};function WPAQ(n){var x=parseInt(n.getAttribute("x"));WPA=x;WPc.style.left=(parseInt(WPc.style.left)+Math.floor(x*WPu)-Math.floor(WPC))+"px";WPC=Math.floor(x*WPu);if(WPt.scrollLeft!=WPC)WPt.scrollLeft=WPC;};function WPAR(n){var t=parseInt(n.getAttribute("t"));while(WPW+1<WPV.length&&WPV.item(WPW+1).nodeName=="scrolly"&&parseInt(WPV.item(WPW+1).getAttribute("t"))<t+20)WPW++;n=WPV.item(WPW);var y=parseInt(n.getAttribute("y"));WPB=y;WPc.style.top=(parseInt(WPc.style.top)+Math.floor(y*WPv)-Math.floor(WPD))+"px";WPD=Math.floor(y*WPv);if(WPt.scrollTop!=WPD)WPt.scrollTop=WPD;return n;};function WPAS(n){var x=parseInt(n.getAttribute("x"));var y=parseInt(n.getAttribute("y"));x+=WPA;y+=WPB;if(WPK){var x2=false,y2=false,e=WPK;do{if(e.CGrid&&e.RGrid)x2=WPAF(x,e.RGrid.x,e.CGrid.x);e=e.parentNode;}while(e&&x2===false);if(x2!==false)x=x2;e=WPK;do{if(e.CGrid&&e.RGrid)y2=WPAF(y,e.RGrid.y,e.CGrid.y);e=e.parentNode;}while(e&&y2===false);if(y2!==false)y=y2;};x-=WPC;y-=WPD;var mb=0,mk=0;if(n.getAttribute("b"))mb=parseInt(n.getAttribute("b"));if(n.getAttribute("k"))mk=parseInt(n.getAttribute("k"));if(n.nodeName=="mouseup")WPN(x,y,mb);WPAL(x,y);if(n.nodeName!="mousemove"){WPk(WPAa(WPAY,mb,n.nodeName=="mouseup"),mk);if(PHInputPanel)PHInputPanel.addMouseChange(WPAY,mk,n.nodeName=="mouseup");}else if(WPAY==-1)WPk(0,0);};function WPAU(n){var a=WPj,lx,ix,lh,ih,tc,i,j,c,idx,blks=new Array(),id=n.getAttribute("id"),he;he=n.getElementsByTagName("path");he=he.length?he.item(0):null;if(he){lx=he.childNodes;for(i=0;i<lx.length;i++){ix=lx.item(i);tc=ix.getAttribute("tagCode");idx=ix.getAttribute("index");lh=a.childNodes;c=0;for(j=0;j<lh.length;j++)if(lh[j].tagName&&WRCalcTagCode(lh[j].tagName)==tc&&c++==idx)break;if(c<=idx)break;a=lh[j];};if(i<lx.length){WPK=false;return;};WPAE[id]=a;}else{a=WPAE[id];};if(!a){WPK=false;return;};he=n.getElementsByTagName("children");he=he.length?he.item(0):null;if(he){lx=he.childNodes;for(i=0;i<lx.length;i++){ix=lx.item(i);blks.push({x:parseInt(ix.getAttribute("x")),y:parseInt(ix.getAttribute("y")),w:parseInt(ix.getAttribute("w")),h:parseInt(ix.getAttribute("h")),c:ix.getAttribute("tagCode")});};var cr,rr={x:parseInt(n.getAttribute("x")),y:parseInt(n.getAttribute("y")),w:parseInt(n.getAttribute("w")),h:parseInt(n.getAttribute("h"))};if(a!=WPj)cr=WRGetElemRect(a);else cr={x:0,y:0,w:WPw(),h:WPx()};var cg={x:new Array(cr.x,cr.x+cr.w),y:new Array(cr.y,cr.y+cr.h)};var rg={x:new Array(rr.x,rr.x+rr.w),y:new Array(rr.y,rr.y+rr.h)};var cblks=new Array();WRGetBlockChildren(a,cr.x,cr.y,cblks);if(WPAG(cblks,blks)){for(i=0;i<cblks.length;i++){var cb=cblks[i],rb=blks[i];cg.x.push(cr.x+cb.x,cr.x+cb.x+cb.w);cg.y.push(cr.y+cb.y,cr.y+cb.y+cb.h);rg.x.push(rr.x+rb.x,rr.x+rb.x+rb.w);rg.y.push(rr.y+rb.y,rr.y+rb.y+rb.h);};cg.x.sort(WPAA);cg.y.sort(WPAA);rg.x.sort(WPAA);rg.y.sort(WPAA);};a.CGrid=cg;a.RGrid=rg;};WPK=a;};function WPAF(x,rec,cur){for(var i=0,j=rec.length;i<j&&x>=rec[i];i++);if(i==0||i>=j){return false;};x=(x-rec[i-1])/(rec[i]-rec[i-1]);return Math.round(x*(cur[i]-cur[i-1])+cur[i-1]);};function WPAG(cbs,rbs){var diff=false;for(var i=0;i<Math.min(cbs.length,rbs.length);){var cb=cbs[i],rb=rbs[i];if(cb.c!=rb.c){if(cbs.length>rbs.length)cbs.splice(i,1);else rbs.splice(i,1);continue;};if(cb.x!=rb.x||cb.y!=rb.y||cb.w!=rb.w||cb.h!=rb.h)diff=true;i++;};cbs.splice(i,cbs.length-i);rbs.splice(i,rbs.length-i);return diff;};function WPr(){if(WPZ){WPX+=100;WPl();};};function WPm(k){if(k==0)return"#000";if(k==-1)return"#f6ba0f";return"#"+(k&4?"d":"0")+(k&2?"d":"0")+(k&1?"d":"0");};function WPn(b){if(b==0)return"#f6ba0f";if(b==-1)return"#fbdd86";return WPm(b);};function WPAA(a,b){return a-b;};function WPi(e,t){if(WPb.substr(0,2)=="IE")e.innerText=t;else e.firstChild.nodeValue=t;};function WPAM(e,t){if(WPb.substr(0,2)=="IE")e.innerText+=t;else e.firstChild.nodeValue+=t;};function WP6(e){if(WPb.substr(0,2)=="IE")return e.innerText;else return e.firstChild.nodeValue;};function WP7(e){return e.firstChild.nodeValue;};function WPw(){return Math.max(WPt.clientWidth,WPt.scrollWidth);};function WPx(){return Math.max(WPt.clientHeight,WPt.scrollHeight);};function WP5(w,h,cw,ch){WPT.width=parseInt(w)+WPz;WPT.height=parseInt(h)+WP0;if(WPAH)WPAH.style.display='none';if(WPy){clearTimeout(WPy);WPy=false;};WPy=setTimeout("WP8("+cw+","+ch+");",100);};function WP8(cw,ch){WPy=false;var chg;if(WPt.clientWidth!=cw){WPz=parseInt(cw)-WPt.clientWidth;WPT.width=parseInt(WPT.width)+WPz;chg=true;};if(WPt.clientHeight!=ch){WP0=parseInt(ch)-WPt.clientHeight;WPT.height=parseInt(WPT.height)+WP0;chg=true;};if(chg)setTimeout("WPAI();",100);else WPAI();};function WPAI(){if(WPAH){WPAH.style.width=WPt.scrollWidth+"px";WPAH.style.height=WPt.scrollHeight+"px";WPAH.style.display="block";};};function WRGetAgent(){var ua=navigator.userAgent;if(ua.indexOf("Opera ")!=-1)return;if(ua.indexOf("MSIE 6.0")!=-1)return"IE6";if(ua.indexOf("MSIE 7.0")!=-1)return"IE7";if(ua.indexOf("Firefox/1.5")!=-1)return"FF15";if(ua.indexOf("Firefox/2.0")!=-1)return"FF20";};function WRAddEvent(e,t,fn){if(e.addEventListener)e.addEventListener(t,fn,false);else if(e.attachEvent)e.attachEvent('on'+t,fn);};function WRRemoveEvent(e,t,fn){if(e.removeEventListener)e.removeEventListener(t,fn,false);else if(e.detachEvent)e.detachEvent('on'+t,fn);};function WRGetBlockChildren(elm,x,y,blks){var list=elm.childNodes;for(j in list){var i=list[j];if(!i.tagName||i.tagName=="!")continue;if(WRIsElemShalow(i))WRGetBlockChildren(i,x,y,blks);else if(WRIsElemBlock(i)){if(i.offsetWidth!=0&&i.offsetHeight!=0){var r=WRGetElemRect(i);blks.push({x:r.x-x,y:r.y-y,w:r.w,h:r.h,c:WRCalcTagCode(i.tagName)});};};};};function WRGetStyle(e,p){if(e.currentStyle)return e.currentStyle[p];else if(window.getComputedStyle)return document.defaultView.getComputedStyle(e,null).getPropertyValue(p);};function WRIsElemShalow(e){var n=e.tagName;return n=="TBODY"||n=="TR";};function WRIsElemBlock(e){var n=WRGetStyle(e,"display");if(n!="block"&&n!="list-item"&&n!="table-cell"&&n!="table")return false;n=WRGetStyle(e,"position");return n=="static";};function WRCalcTagCode(t){return((t.charCodeAt(0)-64)&31)+(((t.charCodeAt(1)-64)&28)<<3)+(((t.charCodeAt(2)-64)&30)<<7);};function WRGetElemRect(o){var v={x:0,y:0,w:o.offsetWidth,h:o.offsetHeight};while(o.offsetParent){v.x+=o.offsetLeft;v.y+=o.offsetTop;o=o.offsetParent;};v.x+=o.offsetLeft;v.y+=o.offsetTop;return v;};function WRSetCaretPosition(i,s,e){if(i.setSelectionRange)i.setSelectionRange(s,e);else if(document.selection&&document.selection.createRange){var r=i.createTextRange();r.collapse(true);r.moveStart("character",s);r.moveEnd("character",e-s);r.select();};};function WRGetCaretPosition(e){var r={s:0,e:0,l:e.value.length};if(e.setSelectionRange){r.s=e.selectionStart;r.e=e.selectionEnd;}else if(document.selection&&document.selection.createRange){var range=document.selection.createRange();var r2=range.duplicate();r.s=-r2.moveStart('character',-100000);r.e=r.s+range.text.length-(range.text.split('\r').length-1);if(!e.CTCBase){WRSetCaretPosition(e,0,0);range=document.selection.createRange();r2=range.duplicate();e.CTCBase=[-r2.moveStart('character',-100000)];r.s-=e.CTCBase[0];r.e-=e.CTCBase[0];WRSetCaretPosition(e,r.s,r.e);}else{r.s-=e.CTCBase[0];r.e-=e.CTCBase[0];};};return r;};function WRIsElemTextCtrl(elm){return/textarea|input/i.test(elm.tagName)&&(!elm.type||/password|text/i.test(elm.type))&&typeof elm.value=="string";};

