function IBrowser(_1){ var _2="1.3.11"; var _3=this; var _4=null; var _5=new Array(); var _6=null; var _7=new Array(); var _8=""; var _9=0; var _a=1; var _b=0,curY=0; var _c=-1; var _d=-1; var _e=true; var _f,zoomOldLevel,zoomOldRatio,zoomTargetRatio,zoomCenterX,zoomCenterY,zoomOldX,zoomOldY,zoomTimer=0,zoomTimer2=0; var _10=false; var _11={enabled:false,left:0,top:0,right:1,bottom:1}; var _12={enabled:false,pagewidth:0,pageheight:0,mainLevel:0,pagesPerRow:1,currentPage:0,totalPages:0,bookmarks:false,reverse:false}; var _13=null; var _14=[5,10,20,25,30,40,45,50,60,65,70,75,80,85,85,90,90,115,188,197,161,139,105,80,60,40,30,20,10]; var _15=null; var _16=new Array(); var _17=null; var _18=new Array(); var _19=null; var _1a=-1; do{ _17="ib"+Math.floor(Math.random()*1000000); }while(window[_17]!=undefined); window[_17]=this; var _1=_1; _1.onselectstart=function(){ return false; }; var _1b=document.createElement("div"); _1b.id="viewport"; _1b.style.width=_1b.style.height="100%"; _1b.style.left=0; _1b.style.top=0; _1b.style.position="absolute"; _1b.style.overflow="hidden"; var _1c=document.createElement("div"); _1c.id="basemap"; _1c.style.position="absolute"; _1c.style.left=0; _1c.style.top=0; _1c.style.width="100%"; _1c.style.height="100%"; _1c.style.backgroundColor="white"; var _1d=document.createElement("div"); _1d.id="screen"; _1d.style.position="absolute"; _1d.style.left=_1d.style.top=0; var _1e=null; var _1f=1; _1.appendChild(_1b); _1b.appendChild(_1c); _1b.appendChild(_1d); var _20=new ComponentMinimap(_1,_3,_1d); _20.setVisible(true); var _21=new Array(); var _22=new Array(); var _23=new Array(); var _24=new Array(); var _25=null; var _26={x:0,y:0}; function parseXML(xml){ var _28=null; if(document.implementation&&document.implementation.createDocument){ var _29=new DOMParser(); _28=_29.parseFromString(xml,"text/xml"); }else{ if(window.ActiveXObject){ _28=new ActiveXObject("Microsoft.XMLDOM"); _28.async=false; _28.loadXML(xml); } } return _28; } function getMousePos(_2a,e){ if(!document.body){ return {x:e.x,y:e.y}; } if((!window.opera)&&(e.x!=null)&&(e.y!=null)){ return {x:e.x,y:e.y}; } var lx=0,ly=0; do{ lx+=_2a.offsetLeft; ly+=_2a.offsetTop; }while((_2a=_2a.offsetParent)!=document.body); var pos={x:(e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft-lx),y:(e.clientY+document.body.scrollTop+document.documentElement.scrollTop-ly)}; return pos; } function isRightClick(e){ return ((e.which)&&(e.which==2))||((e.button)&&(e.button==2))||(e.ctrlKey)||(e.shiftKey); } function getTransition(_2f,end,_31){ return (end-_2f)*_31+_2f; } var _32=function(val){ var str="00000"+val; return str.substr(str.length-5); }; var _35=0; var _36=function(_37,row,_39,_3a){ if(_21[_37]!=null){ var id="br"+_32(row)+_32(_39)+_32(_37); var _3c=_22[id]; if(_3c==undefined){ if(_3a){ return; } _3c=document.createElement("div"); _3c.id=id; _3c.setAttribute("row",row); _3c.setAttribute("col",_39); _3c.style.position="absolute"; _3c.cached=false; if(_3c.cached==true){ _3c.innerHTML="<img src='"+_8+id+"' width='100%' height='100%' border='0' style='display:none;' onload=\"this.style.display = '';\" galleryImg='no' unselectable='on' />"; }else{ _3c.innerHTML="<img src='"+_8+id+"' width='100%' height='100%' border='0' style='display:none;' onload=\"this.style.display = '';if (this.parentNode) this.parentNode.cached = true;\" galleryImg='no' unselectable='on' />"; } _22[id]=_3c; } if((_3a)&&(_3c.cached==false)){ _3c.innerHTML=""; return; } if(_3c.innerHTML==""){ if(_3c.cached==true){ _3c.innerHTML="<img src='"+_8+id+"' width='100%' height='100%' border='0' style='display:none;' onload=\"this.style.display = '';\" galleryImg='no' unselectable='on' />"; }else{ _3c.innerHTML="<img src='"+_8+id+"' width='100%' height='100%' border='0' style='display:none;' onload=\"this.style.display = '';if (this.parentNode) this.parentNode.cached = true;\" galleryImg='no' unselectable='on' />"; } } var low,high,tsize; var r=_a/_4.levels[_37].ratio; tsize=_4.levels[_37].tilewidth*r; low=Math.round(tsize*_39); high=Math.round(tsize*(_39+1)); _3c.style.left=low-_b; _3c.style.width=high-low; tsize=_4.levels[_37].tileheight*r; low=Math.round(tsize*row); high=Math.round(tsize*(row+1)); _3c.style.top=low-curY; _3c.style.height=high-low; if(_3c.parentNode!=_21[_37]){ _21[_37].appendChild(_3c); } } }; var _3f=function(_40,x1,y1,x2,y2,_45){ var _46=_4.levels[_40]; var xl=Math.floor(x1/_46.tilewidth); var xh=Math.floor((x2-1)/_46.tilewidth); var yl=Math.floor(y1/_46.tileheight); var yh=Math.floor((y2-1)/_46.tileheight); if(xl<0){ xl=0; } if(xh>=_46.cols){ xh=_46.cols-1; } if(yl<0){ yl=0; } if(yh>=_46.rows){ yh=_46.rows-1; } if(_12.enabled){ xl=Math.max(xl,(_12.currentPage*2)*Math.pow(2,_40)); xh=Math.min(xh,(_12.currentPage*2+2)*Math.pow(2,_40)-1); } var lt=_21[_40].childNodes; for(var i=lt.length-1;i>=0;--i){ var t=lt[i]; var r,c; r=t.getAttribute("row"); c=t.getAttribute("col"); if((c<xl)||(c>xh)||(r<yl)||(r>yh)){ t.innerHTML=""; _21[_40].removeChild(t); } } for(i=yl;i<=yh;++i){ for(j=xl;j<=xh;++j){ _36(_40,i,j,_45); } } }; var _4f=function(ev,_51,_52){ for(var i in _18){ if(_18[i].onBrowserEvent(ev,_51,_52)){ return; } } if(typeof (_3.onbrowserevent)=="function"){ _3.onbrowserevent(ev,_51,_52); } }; var _54=function(){ if(_4==null){ return; } if(zoomTimer==0&&zoomTimer2==0){ midLevel=Math.floor(_9/2); for(var l=1;l<_4.level;++l){ if(_9!=l&&midLevel!=l){ var lev=_21[l]; var lt=lev.childNodes; for(var i=lt.length-1;i>=0;--i){ lt[i].innerHTML=""; lev.removeChild(lt[i]); } } } var _59=_b,cright=_b+_1.offsetWidth; var _5a=curY,cbottom=curY+_1.offsetHeight; var r=_4.levels[0].ratio/_a; _3f(0,_b*r,curY*r,cright*r,cbottom*r,false); if(midLevel>0){ r=_4.levels[midLevel].ratio/_a; _3f(midLevel,_b*r,curY*r,cright*r,cbottom*r,false); } r=_4.levels[_9].ratio/_a; _3f(_9,_b*r,curY*r,cright*r,cbottom*r,false); }else{ for(var l=_9+1;l<_4.level;++l){ var lev=_21[l]; var lt=lev.childNodes; for(var i=lt.length-1;i>=0;--i){ lt[i].innerHTML=""; lev.removeChild(lt[i]); } } var _59=_b,cright=_b+_1.offsetWidth; var _5a=curY,cbottom=curY+_1.offsetHeight; var r=_4.levels[0].ratio/_a; _3f(0,_b*r,curY*r,cright*r,cbottom*r,true); for(var l=Math.min(_9,zoomOldLevel);l>=1;l--){ r=_4.levels[l].ratio/_a; _3f(l,_b*r,curY*r,cright*r,cbottom*r,true); } } }; var _5c=function(x){ if(!_4){ return x; } var _5e=0,bRight=_4.width*_a; if(_11.enabled){ _5e=Math.round(bRight*_11.left); bRight=Math.round(bRight*_11.right); _11.leftPixel=_5e; _11.rightPixel=bRight; }else{ bRight=Math.round(bRight); } if((zoomTimer!=0)&&(zoomTimer2!=0)){ return x; }else{ bRight-=_1.offsetWidth; if(bRight<=_5e){ return (bRight+_5e)/2; }else{ if(x<_5e){ return _5e; }else{ if(x>bRight){ return bRight; } } } return x; } }; var _5f=function(y){ if(!_4){ return y; } var _61=0,bBottom=_4.height*_a; if(_11.enabled){ _61=Math.round(bBottom*_11.top); bBottom=Math.round(bBottom*_11.bottom); _11.topPixel=_61; _11.bottomPixel=bBottom; }else{ bBottom=Math.round(bBottom); } if((zoomTimer!=0)&&(zoomTimer2!=0)){ return y; }else{ bBottom-=_1.offsetHeight; if(bBottom<=_61){ return (bBottom+_61)/2; }else{ if(y<_61){ return _61; }else{ if(y>bBottom){ return bBottom; } } } return y; } }; var _62=function(){ var _63=_c; var _64=_b,cright=_b+_1.offsetWidth; var _65=curY,cbottom=curY+_1.offsetHeight; var r=_4.levels[_9].ratio/_a; _3f(_9,_b*r,curY*r,cright*r,cbottom*r,false); if(_12.enabled){ _c=Math.floor(Math.max(_b,_11.enabled?_11.leftPixel:0)/((_12.pagewidth/2)*_a))+Math.floor(Math.max(curY,_11.enabled?_11.topPixel:0)/(_12.pageheight*_a))*_12.pagesPerRow*2; _12.currentPage=Math.floor(_c/2); }else{ _c=Math.floor(Math.max(_b,_11.enabled?_11.leftPixel:0)/((_12.pagewidth)*_a))+Math.floor(Math.max(curY,_11.enabled?_11.topPixel:0)/(_12.pageheight*_a))*_12.pagesPerRow; _12.currentPage=Math.floor(_c); } if(_e||(zoomTimer==0&&zoomTimer2==0)){ for(var i in _23){ if(_23[i]){ _23[i].setViewport(_9,_a,_b,curY,_11); } } } if(_c!=_63){ var _68=(_12.enabled)?_12.totalPages*2:_12.totalPages; if(_12.reverse){ if(parseInt(_3.GetBrowserProperty("itemperpage"))>0){ _4f("pagechanged",_12.pagesPerRow*(2*Math.ceil((_c+1)/_12.pagesPerRow)-1)-_c,_63+1); }else{ if(_3.GetBrowserProperty("onepageflip").toLowerCase()=="yes"){ _4f("pagechanged",_68-_c-1,_68-_63-1); }else{ _4f("pagechanged",_68-_c,_68-_63); } } }else{ _4f("pagechanged",_c+1,_63+1); } } if(_13){ if(_9==_12.mainLevel){ _13.style.display=""; }else{ _13.style.display="none"; } } }; var _69=function(x,y){ var _6c=_b; var _6d=_c; _b=_5c(Math.round(x)); curY=_5f(Math.round(y)); if(zoomTimer==0&&zoomTimer2==0){ if(_12.enabled){ _c=Math.floor(Math.max(_b,_11.enabled?_11.leftPixel:0)/((_12.pagewidth/2)*_a))+Math.floor(Math.max(curY,_11.enabled?_11.topPixel:0)/(_12.pageheight*_a))*_12.pagesPerRow*2; _12.currentPage=Math.floor(_c/2); }else{ _c=Math.floor(Math.max(_b,_11.enabled?_11.leftPixel:0)/((_12.pagewidth)*_a))+Math.floor(Math.max(curY,_11.enabled?_11.topPixel:0)/(_12.pageheight*_a))*_12.pagesPerRow; _12.currentPage=Math.floor(_c); } if(Math.abs(_c-_6d)>=2){ for(tile in _22){ _22[tile].innerHTML=""; } } }else{ if(_13){ _13.style.display="none"; } } if(_b>=_6c){ _54(); } if(!_4){ return; } if(_11.enabled){ var lw=_11.rightPixel-_11.leftPixel,lh=_11.bottomPixel-_11.topPixel; var cl=(_b-_11.leftPixel)/lw,ct=(curY-_11.topPixel)/lh; var cr=cl+_1.offsetWidth/lw,cb=ct+_1.offsetHeight/lh; _20.setCurrent(cl,ct,cr,cb); _1c.style.clip="rect("+(_11.topPixel-curY)+" "+(_11.rightPixel-_b)+" "+(_11.bottomPixel-curY)+" "+(_11.leftPixel-_b)+")"; _1c.style.padding="1px"; }else{ if((_b<0)||(curY<0)){ var mw=0,mh=0; if(_b<0){ mw=-_b; } if(curY<0){ mh=-curY; } _1c.style.clip="rect("+mh+" "+(_1.offsetWidth-mw)+" "+(_1.offsetHeight-mh)+" "+mw+")"; _1c.style.padding="1px"; }else{ try{ _1c.style.clip="inherit"; } catch(e){ _1c.style.clip="rect(auto auto auto auto)"; } } var lw=_4.width*_a,lh=_4.height*_a; var cl=_b/lw,ct=curY/lh; var cr=cl+_1.offsetWidth/lw,cb=ct+_1.offsetHeight/lh; _20.setCurrent(cl,ct,cr,cb); } if(_b<_6c){ _54(); } if(_e||(zoomTimer==0&&zoomTimer2==0)){ for(var i in _23){ if(_23[i]){ _23[i].setViewport(_9,_a,_b,curY,_11); } } } if(zoomTimer==0&&zoomTimer2==0){ if(_c!=_6d){ var _73=(_12.enabled)?_12.totalPages*2:_12.totalPages; if(_12.reverse){ if(parseInt(_3.GetBrowserProperty("itemperpage"))>0){ _4f("pagechanged",_12.pagesPerRow*(2*Math.ceil((_c+1)/_12.pagesPerRow)-1)-_c,_6d+1); }else{ if(_3.GetBrowserProperty("onepageflip").toLowerCase()=="yes"){ _4f("pagechanged",_73-_c-1,_73-_6d-1); }else{ _4f("pagechanged",_73-_c,_73-_6d); } } }else{ _4f("pagechanged",_c+1,_6d+1); } } if(_13){ if(_9==_12.mainLevel){ _13.style.display=""; }else{ _13.style.display="none"; } } } }; var _74=function(){ var _75=((new Date()).getTime()-_f)/500; if(_75>=1){ _75=1; _a=zoomTargetRatio; var _76=_4.level-1; for(var l=0;l<_4.level;++l){ if(_4.levels[l].ratio>=_a){ _76=l; break; } } _9=_76; }else{ _a=getTransition(zoomOldRatio,zoomTargetRatio,_75); } var r=_75/(_a/zoomTargetRatio); if(!_4){ return; } if(_75<=1){ _69(_4.width*_a*getTransition(zoomOldX,zoomCenterX,r)-_1.offsetWidth/2,_4.height*_a*getTransition(zoomOldY,zoomCenterY,r)-_1.offsetHeight/2,false); } if(_75>=1){ _10=false; clearInterval(zoomTimer); zoomTimer=0; if(zoomTimer==0&&zoomTimer2==0){ if((_16!=null)&&(_16.length>0)){ var _79=_16.shift(); if(_79!=null){ _3.Execute(_79.action,_79.param); } } } if(_e){ if(navigator.appName=="Microsoft Internet Explorer"){ for(var i in _23){ if(_23[i]&&(_23[i].type>=2)){ var _7b=document.getElementById(_23[i].id+"_img"); if(_7b){ _7b.style.display=""; } } } } }else{ _1e.style.display=""; _20.setVisible(_3.GetBrowserProperty("showthumbnail")!="no"); } setTimeout(_62,100); _4f("levelchanged",1+zoomOldLevel,1+_9); } }; var _7c=function(){ var _7d=((new Date()).getTime()-_f)/500; if(_7d>=1){ _7d=1; _a=zoomTargetRatio; var _7e=_4.level-1; for(var l=0;l<_4.level;++l){ if(_4.levels[l].ratio>=_a){ _7e=l; break; } } _9=_7e; }else{ _a=getTransition(zoomOldRatio,zoomTargetRatio,_7d); } var r=_7d/(_a/zoomTargetRatio); if(!_4){ return; } if(_7d<=1){ _69(_4.width*_a*getTransition(zoomOldX,zoomCenterX,r)-_1.offsetWidth/2,_4.height*_a*getTransition(zoomOldY,zoomCenterY,r)-_1.offsetHeight/2,false); } if(_7d>=1){ _10=false; clearInterval(zoomTimer2); zoomTimer2=0; if(zoomTimer==0&&zoomTimer2==0){ if((_16!=null)&&(_16.length>0)){ var _81=_16.shift(); if(_81!=null){ _3.Execute(_81.action,_81.param); } } } if(_e){ if(navigator.appName=="Microsoft Internet Explorer"){ for(var i in _23){ if(_23[i]&&(_23[i].type>=2)){ var _83=document.getElementById(_23[i].id+"_img"); if(_83){ _83.style.display=""; } } } } }else{ _1e.style.display=""; _20.setVisible(_3.GetBrowserProperty("showthumbnail")!="no"); } } }; var _84=function(_85,cx,cy){ if(!_4){ return; } if((_85<0)||(_85>=_4.level)){ return false; } if((_12.enabled)&&(_85<_12.mainLevel)){ return false; } if(_85<_d){ return false; } _4f("levelchanging",1+_9,1+_85); if(_10){ return; } _10=true; zoomOldLevel=_9; _9=Math.min(_85,_9); _f=(new Date()).getTime(); zoomOldRatio=_a; zoomTargetRatio=_4.levels[_85].ratio; zoomOldX=(_b+_1.offsetWidth/2)/_4.width/_a; zoomOldY=(curY+_1.offsetHeight/2)/_4.height/_a; if(cx==null){ cx=zoomOldX; } var vw=_1.offsetWidth/(_4.width*zoomTargetRatio)/2; var l=0,h=1; if(_11.enabled){ l=_11.left; h=_11.right; } if(vw>=(h-l)/2){ zoomCenterX=l+(h-l)/2; }else{ if(cx<=l+vw){ zoomCenterX=l+vw; }else{ if(cx>=(h-vw)){ zoomCenterX=h-vw; }else{ zoomCenterX=cx; } } } if(cy==null){ cy=zoomOldY; } var vh=_1.offsetHeight/(_4.height*zoomTargetRatio)/2; var l=0,h=1; if(_11.enabled){ l=_11.top; h=_11.bottom; } if(vh>=(h-l)/2){ zoomCenterY=(h-l)/2; }else{ if(cy<=l+vh){ zoomCenterY=l+vh; }else{ if(cy>=(h-vh)){ zoomCenterY=h-vh; }else{ zoomCenterY=cy; } } } if(_e){ if(navigator.appName=="Microsoft Internet Explorer"){ for(var i in _23){ if(_23[i]&&(_23[i].type>=2)){ var _8c=document.getElementById(_23[i].id+"_img"); if(_8c){ _8c.style.display="none"; } } } } }else{ _1e.style.display="none"; _20.setVisible(false); } if(_13){ _13.style.display="none"; } if(zoomTimer!=0){ clearInterval(zoomTimer); } if(zoomTimer2!=0){ clearInterval(zoomTimer2); } if(_e&&navigator.appName!="Microsoft Internet Explorer"){ zoomTimer=setInterval(_74,25); zoomTimer2=setInterval(_7c,25); }else{ zoomTimer=setInterval(_74,10); zoomTimer2=setInterval(_7c,10); } _54(); }; var _8d=function(cx,cy,_90,_91){ if((_b==cx)&&(curY==cy)){ return; } var _92=_b,oldY=curY; cx=_5c(cx); cy=_5f(cy); if(_90==undefined){ _90=_9; } if(_91==undefined){ _91=500; } if(_90!=_9){ _4f("levelchanging",1+_9,1+_90); } if(_13){ _13.style.visibility="hidden"; } if(_10){ return; } _10=true; var _93=_4.levels[_90].ratio; var _94=_a; var _95=(new Date()).getTime(); var _96=setInterval(function(){ var p=Math.min(1,((new Date()).getTime()-_95)/_91); if(p>=1){ if(_13){ _13.style.visibility=""; } var _98=_9; _9=_90; _a=_93; _69(cx,cy); _10=false; clearInterval(_96); if(_98!=_9){ _4f("levelchanging",1+_98,1+_9); } }else{ _a=getTransition(_a,_93,p); _69(getTransition(_92,cx,p),getTransition(oldY,cy,p)); } },10); }; var _99=function(id){ var _9b=null; for(var i=0;i<_24.length;i++){ if(_24[i].id==id){ _9b=_24[i]; break; } } if(_9b==null||_9b.menu==null){ return; } if(_9b.menu.isShow){ _9b.menu.show(false,true); }else{ if(_9b.menu.isCreated){ _9b.menu.show(true,false); }else{ _9b.menu.update(); } } _9b.menu.changePosition(_26.x,_26.y); }; var _9d=function(){ for(var i=0;i<_24.length;i++){ var _9f=_24[i]; if(_9f!=null){ _9f.menu.show(false,true); } } }; var _a0=function(url){ if(_15){ try{ _15.Stop(); } catch(e){ try{ _15.DoStop(); } catch(e){ } } var old=_15.src; _15.parentNode.removeChild(_15); _15=null; if(old==url){ return; } } if(url==null){ return; } _15=document.createElement("embed"); _15.src=url; _15.style.width=_15.style.height=0; document.body.appendChild(_15); }; var _a3=function(bx,by,_a6,_a7){ var pw=parseInt(_3.GetBrowserProperty("printpagewidth")),ph=parseInt(_3.GetBrowserProperty("printpageheight")); if(isNaN(pw)||pw<0){ pw=570; } if(isNaN(ph)||ph<0){ ph=817; } var lev=_4.level-1; while((lev>0)&&(_a6*_4.levels[lev-1].ratio>=pw)&&(_a7*_4.levels[lev-1].ratio>=ph)){ --lev; } var _aa=_4.levels[lev]; var x1=bx*_aa.ratio; var y1=by*_aa.ratio; var x2=(bx+_a6)*_aa.ratio; var y2=(by+_a7)*_aa.ratio; var iw=x2-x1; var ih=y2-y1; var xl=Math.floor(x1/_aa.tilewidth); var xh=Math.floor((x2-1)/_aa.tilewidth); var yl=Math.floor(y1/_aa.tileheight); var yh=Math.floor((y2-1)/_aa.tileheight); if(xl<0){ xl=0; } if(xh>=_aa.cols){ xh=_aa.cols-1; } if(yl<0){ yl=0; } if(yh>=_aa.rows){ yh=_aa.rows-1; } var r=Math.min(pw/iw,ph/ih); var tw=_aa.tilewidth*r,th=_aa.tileheight*r; var tl=-(x1%_aa.tilewidth)*r,tt=-(y1%_aa.tileheight)*r; var no=(xh-xl+1)*(yh-yl+1); var ix=Math.round((pw-iw*r)/2),iy=Math.round((ph-ih*r)/2); var _ba="<html><head><title></title></head>"; _ba+="<script> var loaded = 0, total = "+no+"; "; _ba+="function load(elm) { ++loaded; document.getElementById(\"prg\").style.width = loaded / total * 300; "; _ba+="if (loaded >= total) { document.getElementById(\"p\").style.display = \"none\";"; _ba+="document.getElementById(\"c\").style.display = \"\"; window.print(); window.close(); } }"; _ba+="function err(elm) { elm.style.display=\"none\"; load(elm); }</script>"; _ba+="<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">"; _ba+="<div style=\"position:absolute; left: 0; top: 0; width: 300; height: 100;\" id=\"p\">"; _ba+="<div style=\"position:absolute; left: 10; top: 10;\">Downloading data to print...</div>"; _ba+="<div style=\"position:absolute; left: 10; top: 50; width: 300; height: 30; border: 1px solid black;\">"; _ba+="<div id=\"prg\" style=\"background-color: #000066; border: 1px while solid; height: 100%; width: 0;\"></div>"; _ba+="</div>"; _ba+="</div>"; _ba+="<div style=\"position:absolute; left:"+ix+" ; top:"+iy+" ; clip: rect(0 "+Math.round(iw)+" "+Math.round(ih)+" 0); display: none;\" id=\"c\">"; for(column=xl;column<=xh;++column){ var y=tt; for(row=yl;row<=yh;++row){ var id="br"+_32(row)+_32(column)+_32(lev); _ba+="<img src=\""+_8+id+"\" style=\"position: absolute; left: "; _ba+=Math.round(tl)+"; top: "+Math.round(y); _ba+="; width: "+(Math.round(tl+tw)-Math.round(tl))+"; height: "; _ba+=Math.round(y+th)-Math.round(y)+";\" onerror=\"err(this);\" onload=\"load(this);\">"; y+=th; } tl+=tw; } _ba+="</div></body></html>"; var _bd=window.open("","","scrollbars=no, menubar=no, toolbar=no, resizable=no, width=320, height=100"); _bd.document.open(); _bd.document.writeln(_ba); _bd.document.close(); }; var _be=function(x1,y1,x2,y2,_c3,_c4){ var _c5=_1c.cloneNode(false); _c5.style.visibility=""; var _c6=_4.levels[_c4]; x1=x1*_c6.ratio; x2=x2*_c6.ratio; y1=y1*_c6.ratio; y2=y2*_c6.ratio; var xl=Math.floor(x1/_c6.tilewidth); var xh=Math.floor((x2-1)/_c6.tilewidth); var yl=Math.floor(y1/_c6.tileheight); var yh=Math.floor((y2-1)/_c6.tileheight); if(xl<0){ xl=0; } if(xh>=_c6.cols){ xh=_c6.cols-1; } if(yl<0){ yl=0; } if(yh>=_c6.rows){ yh=_c6.rows-1; } var r=_c3/_c6.ratio; var tw=_c6.tilewidth*r,th=_c6.tileheight*r; var tl=-(x1%_c6.tilewidth)*r,tt=-(y1%_c6.tileheight)*r; _c5.leftmost=tl; _c5.tilewidth=tw; _c5.totaltiles=0; _c5.currenttiles=0; for(column=xl;column<=xh;++column){ var y=tt; for(row=yl;row<=yh;++row){ _c5.totaltiles++; var id="br"+_32(row)+_32(column)+_32(_c4); var _d0; _d0=document.createElement("div"); _d0.checked=false; _d0.onload=function(){ this.style.display=""; if(!this.checked){ _c5.currenttiles++; this.checked=true; } }; _d0.onerror=function(){ this.style.display="none"; if(!this.checked){ _c5.currenttiles++; this.checked=true; } }; _d0.style.position="absolute"; _d0.innerHTML="<img src='"+_8+id+"' width='100%' height='100%' border='0' onload=\"if (this.parentNode) this.parentNode.onload();\" onerror=\"if (this.parentNode) this.parentNode.onerror();\" />"; _d0.oleft=tl; _d0.style.left=Math.round(tl); _d0.style.top=Math.round(y); _d0.style.width=Math.round(tl+tw)-Math.round(tl); _d0.style.height=Math.round(y+th)-Math.round(y); _d0.style.display=""; _c5.appendChild(_d0); y+=th; } tl+=tw; } var _d1=(x2-x1)*r,clipheight=(y2-y1)*r; _c5.style.clip="rect(0 "+Math.round(_d1)+" "+Math.round(clipheight)+" 0)"; _c5.style.position="absolute"; _c5.setWidth=function(_d2){ var _d3=_c5.childNodes; var tw=parseFloat(_c5.tilewidth); var t,l; for(var i=0;i<_d3.length;++i){ t=_d3[i]; l=Math.round(parseFloat(t.oleft)*_d2); t.style.left=l; t.style.width=Math.round(l+tw*_d2)-l; } _c5.style.clip="rect(0 "+Math.round(_d1*_d2)+" "+Math.round(clipheight)+" 0)"; }; return _c5; }; var _d7=function(_d8){ if(_d8.childNodes){ children=_d8.childNodes; for(var i=0;i<children.length;i++){ children[i].innerHTML=""; } } }; var _da=function(_db){ if(!_4){ return; } if(_1a!=_db){ var _dc=_12.pagewidth*(_db%_12.pagesPerRow); var _dd=_12.pageheight*Math.floor(_db/_12.pagesPerRow); _11.enabled=true; _11.left=_dc/_4.width; _11.top=_dd/_4.height; _11.right=(_dc+_12.pagewidth)/_4.width; _11.bottom=(_dd+_12.pageheight)/_4.height; _69(_dc*_a,_dd*_a); var _de=_20.getThumbSize(); if(_19!=null){ _d7(_19); } _19=_be(_dc,_dd,_dc+_12.pagewidth,_dd+_12.pageheight,Math.min(_de.width/_12.pagewidth,_de.height/_12.pageheight),0); _20.setThumbnail(_19); _1a=_12.reverse?_12.totalPages-_db:_db; } }; var _df=function(_e0,_e1){ if((_e0<0)||(_e0==_12.currentPage)||(_e0>=_12.totalPages)){ return; } if(_10){ return; } if(_12.enabled){ if(_9!=_12.mainLevel){ _16.push({action:"gotopage",param:_e0+1}); _84(_12.mainLevel); return; } var _e2=(_3.GetBrowserProperty("onepageflip").toLowerCase()=="yes"); var _e3=_e0<_12.currentPage; switch(_3.GetBrowserProperty("DragDirection").toLowerCase()){ case "forward": _e3=false; break; case "backward": _e3=true; break; } var _e4=parseInt(_3.GetBrowserProperty("transitionduration")); if(isNaN(_e4)){ _e4=300; } var cx=_12.pagewidth*(_12.currentPage%_12.pagesPerRow); var cy=_12.pageheight*Math.floor(_12.currentPage/_12.pagesPerRow); var nx=_12.pagewidth*(_e0%_12.pagesPerRow); var ny=_12.pageheight*Math.floor(_e0/_12.pagesPerRow); var p1,p2,np; var _ea=cx*_a-_b,top=cy*_a-curY,pw=_12.pagewidth*_a/2; if(_e2){ p1=_be(cx,cy,cx+_12.pagewidth,cy+_12.pageheight,_a,0); p2=_be(nx,ny,nx+_12.pagewidth,ny+_12.pageheight,_a,0); p1.style.top=p2.style.top=top; p1.style.left=p2.style.left=_ea; p1.style.display=p2.style.display="none"; if(_e3){ p2.setWidth(0); _1b.appendChild(p1); _1b.appendChild(p2); }else{ _1b.appendChild(p2); _1b.appendChild(p1); } }else{ p1=_be(cx,cy,cx+_12.pagewidth/2,cy+_12.pageheight,_a,0); p2=_be(cx+_12.pagewidth/2,cy,cx+_12.pagewidth,cy+_12.pageheight,_a,0); if(_e3){ np=_be(nx+_12.pagewidth/2,ny,nx+_12.pagewidth,ny+_12.pageheight,_a,0); }else{ np=_be(nx,ny,nx+_12.pagewidth/2,ny+_12.pageheight,_a,0); } np.style.top=p1.style.top=p2.style.top=top; p1.style.left=_ea; p2.style.left=_ea+pw; np.style.left=_e3?(_ea+pw):_ea; np.setWidth(0); p1.style.display=p2.style.display="none"; if(np){ np.style.display="none"; } _1b.appendChild(p1); _1b.appendChild(p2); _1b.appendChild(np); } _10=true; var _eb=(new Date()).getTime(); var _ec=true; var _ed=setInterval(function(){ if(_ec){ if(((p1.currenttiles>=p1.totaltiles)&&(p2.currenttiles>=p2.totaltiles)&&((np==null)||(np.currenttiles>=np.totaltiles)))){ _4f("pageflipping",_e0,null); _ec=false; p1.style.display=p2.style.display=""; if(np){ np.style.display=""; } _1d.style.display="none"; _1e.style.display="none"; _da(_e0); _eb=(new Date()).getTime(); }else{ if(((new Date()).getTime()-_eb)>1500){ _4f("pageflipping",_e0,null); _ec=false; _da(_e0); }else{ return; } } } var _ee=Math.min(1,((new Date()).getTime()-_eb)/_e4); if(_e2){ if(_e3){ p2.setWidth(_ee); }else{ p1.setWidth(1-_ee); } }else{ if(_e3){ var rr=1-_ee*2; p1.setWidth(Math.max(0,rr)); p1.style.left=_ea+Math.round(pw*(1-rr)); np.setWidth(Math.max(0,_ee*2-1)); }else{ p2.setWidth(Math.max(0,1-_ee*2)); var rr=Math.max(0,_ee*2-1); np.setWidth(rr); np.style.left=_ea+Math.round(pw*(1-rr)); } } if(_ee>=1){ clearInterval(_ed); _10=false; _d7(p2); _d7(p1); _1b.removeChild(p2); _1b.removeChild(p1); if(np){ _d7(np); _1b.removeChild(np); } if((_16!=null)&&(_16.length>0)){ var _f0=_16.shift(); if(_f0!=null){ _3.Execute(_f0.action,_f0.param); } } _1e.style.display=""; _1d.style.display=""; } },10); }else{ var nx,ny; nx=_5c(_12.pagewidth*(_e0%_12.pagesPerRow)*_a); ny=_5f(_12.pageheight*Math.floor(_e0/_12.pagesPerRow)*_a); while((_e1)&&(nx==_b)&&(ny==curY)){ if(++_e0>=_12.totalPages){ return; } nx=_5c(_12.pagewidth*(_e0%_12.pagesPerRow)*_a); ny=_5f(_12.pageheight*Math.floor(_e0/_12.pagesPerRow)*_a); } _8d(nx,ny); } }; var _f1=0,dragX,dragY,oldX,oldY,dragInterval; var _f2=0; var _f3=function(){ _f2=0; if(_4==null){ return; } var _f4=null; if(_25!=null){ _f4=_25.getProperty("href"); } if(_25!=null){ if(_25.type>=2){ if((_f4!=null)&&(_f4.length>0)&&(_f4.toLowerCase()!="null")){ _3.FollowLink(_f4,_25.no); } return; } } if((_f4!=null)&&(_f4.length>0)&&(_f4.toLowerCase()!="null")){ _3.FollowLink(_f4,_25.no); }else{ var pos=_26; _84(_9+1,(pos.x+_b)/_4.width/_a,(pos.y+curY)/_4.height/_a); } }; var _f6=function(e){ if(_4==null){ return; } if((_12.enabled)&&(_12.mainLevel==_9)){ if((_1.offsetWidth/2)>(window.opera?(e.clientX-_1.offsetLeft):(e.x?e.x:e.clientX-_1.offsetLeft))){ _3.Execute("snapleft",""); }else{ _3.Execute("snapright",""); } }else{ var pos=getMousePos(_1,e); _84(_9-1,(pos.x+_b)/_4.width/_a,(pos.y+curY)/_4.height/_a); } }; var _f9=function(e){ _9d(); if(!e){ var e=window.event; } if(typeof (_3.onmouseevent)=="function"){ var pos=getMousePos(_1,e); var _fc=0; if(e.ctrlKey){ _fc+=8; } if(e.shiftKey){ _fc+=4; } if(((e.which)&&(e.which==2))||((e.button)&&(e.button==2))){ _fc+=2; }else{ _fc+=1; } _3.onmouseevent((_fc&1>0)?"ldown":"rdown",pos.x,pos.y,_fc); } if((zoomTimer!=0)||(zoomTimer2!=0)){ return; } if(!isRightClick(e)){ if(typeof e.preventDefault!="undefined"){ e.preventDefault(); } if(_f2!=0){ clearInterval(_f2); _f2=0; _f1=4; }else{ _f1=1; dragX=e.clientX; dragY=e.clientY; oldX=_b; oldY=curY; } }else{ _f1=3; } return false; }; var _fd=function(e){ if(!e){ var e=window.event; } if(typeof (_3.onmouseevent)=="function"){ var pos=getMousePos(_1,e); var flag=0; if(e.ctrlKey){ flag+=8; } if(e.shiftKey){ flag+=4; } if(((e.which)&&(e.which==2))||((e.button)&&(e.button==2))){ flag+=2; }else{ flag+=1; } _3.onmouseevent((flag&1>0)?"lup":"rup",pos.x,pos.y,flag); } var str=""; var _102=isRightClick(e); if((_f2!=0)||(_f1==4)){ clearInterval(_f2); _f2=0; _f6(e); }else{ if((_f1==1)||(_f1==3)||(e.type=="contextmenu")){ if(_102){ _f6(e); }else{ if(document.all){ _f3(e); }else{ _f2=setTimeout(_f3,200,e); } } } } }; var _103=function(e){ if(!e){ var e=window.event; } if((_f1!=0)&&(!isRightClick(e))){ _f1=0; } }; var _105=function(e){ if(!e){ var e=window.event; } _26=getMousePos(_1,e); if(typeof (_3.onmouseevent)=="function"){ var flag=0; if(e.ctrlKey){ flag+=8; } if(e.shiftKey){ flag+=4; } if(((e.which)&&(e.which==2))||((e.button)&&(e.button==2))){ flag+=2; }else{ flag+=1; } _3.onmouseevent("move",_26.x,_26.y,flag); } switch(_f1){ case 1: if((Math.abs(e.clientX-dragX)>4)||(Math.abs(e.clientY-dragY)>4)){ _f1=2; } break; case 2: _69(oldX-e.clientX+dragX,oldY-e.clientY+dragY,true); break; } }; var _108=function(e){ if(!e){ var e=window.event; } var _10a=(e.detail)?e.detail*40:-e.wheelDelta; switch(_7["wheelaction"]){ case "pan": if((_12.enabled)&&(_12.mainLevel==_9)){ _3.Execute((_10a<0)?"prevpage":"nextpage",0); }else{ _69(_b,curY+_10a/2); } break; case "zoom": if((_10a>0)&&(_12.enabled)&&(_12.mainLevel==_9)){ _3.Execute("nextpage",0); }else{ _3.Execute((_10a<0)?"zoomin":"zoomout",0); } break; case "news": default: if((_12.enabled)&&(_12.mainLevel<_9)){ _69(_b,curY+_10a/2); }else{ _3.Execute((_10a<0)?"prevpage":"nextpage",0); } break; } }; var _10b=function(e){ if(!e){ var e=window.event; } var code=(e.keyCode)?e.keyCode:e.which; var flag=0; if(e.ctrlKey){ flag+=8; } if(e.shiftKey){ flag+=4; } _3.ProcessEvent("key",code,flag,0,0); }; var _10f=function(e){ _3.viewportWidth=_1.offsetWidth; _3.viewportHeight=_1.offsetHeight; if(_12.enabled){ var _111=_12.mainLevel; _12.mainLevel=0; for(var i=_4.level-1;i>=0;--i){ if((_4.levels[i].ratio*_12.pagewidth<=_1.offsetWidth)&&(_4.levels[i].ratio*_12.pageheight<=_1.offsetHeight)){ _12.mainLevel=i; break; } } if(_9<_12.mainLevel){ _9=_12.mainLevel; _a=_4.levels[_9].ratio; }else{ if(_9==_111){ _9=_12.mainLevel; _a=_4.levels[_9].ratio; } } _d=_12.mainLevel; } _69(_b,curY); if(_13){ _13.style.left=Math.floor((_1.offsetWidth/2)-18); _13.style.top=_11.topPixel-curY; _13.style.height=(_11.bottomPixel-_11.topPixel); } _20.setSize(150); _4f("resize",null,null); }; var _113=function(){ _1b.onmousemove=_105; _1b.onmousedown=_f9; _1b.onmouseup=_fd; document.onkeydown=_10b; if(document.addEventListener){ document.addEventListener("mouseup",_103,false); if(window.opera){ _1b.onmousewheel=_108; }else{ _1b.addEventListener("DOMMouseScroll",_108,false); } }else{ document.attachEvent("onmouseup",_103); _1b.onmousewheel=_108; } if(_1.getAttribute("url")){ _3.SetContent(_1.getAttribute("url")); } _10f(); setInterval(function(){ if((_3.viewportWidth!=_1.offsetWidth)||(_3.viewportHeight!=_1.offsetHeight)){ _10f(); } },100); }; this.SetContent=function(url){ if(_1e!=null){ for(var i in _23){ if(_23[i]){ var _116=document.getElementById(_23[i].id+"_img"); if(_116&&_116.sendEvent){ _116.sendEvent("stop"); } if(_23[i].type==3&&_116&&_116.controls){ _116.controls.stop(); } } } _1c.removeChild(_1e); _1e=null; } for(level in _21){ _1c.removeChild(_21[level]); } if(_13!=null){ _13.parentNode.removeChild(_13); _13=null; } _c=-1; _9=0; _a=1; _b=0,curY=0; _d=-1; _4=null; _1c.style.visibility="hidden"; _1c.innerHTML=""; for(tile in _22){ _22[tile].innerHTML=""; } _21=new Array(); _22=new Array(); _7=new Array(); _7["version"]=_2; _7["httpport"]="8080"; _7["id"]=_1.id; var _117=["BackgroundColor","ShowThumbnail","HTTPPort","WheelAction","ImageUrl"]; for(var i=0;i<_117.length;++i){ var _118=_1.getAttribute(_117[i]); if((_118!=null)&&(_118.length>0)){ _3.SetBrowserProperty(_117[i],_118); } } for(var i in _18){ _18[i].onUnload(); } var urlc=url.split(",",5); if(urlc.length>=4){ url=urlc[0]; urlc[1]=parseInt(urlc[1]); urlc[2]=parseInt(urlc[2]); urlc[3]=parseInt(urlc[3]); _3.initpos=urlc; }else{ _3.initpos=null; } _23=new Array(); _1f=1; _1.setAttribute("url",url); if((url=="")||(url=="#")){ return; } if(url.substr(0,6).toLowerCase()=="ipq://"){ var p=url.indexOf("/",6); if(p>=0){ var temp=url.substring(6,p); if(temp.indexOf(":")<0){ temp=temp.concat(":").concat(_7["httpport"]); } url="http://"+temp+url.substring(p); if(url.charAt(url.length-1)!="/"){ url=url.concat("/"); } } } _8=url; var _11c=document.createElement("script"); _11c.id="rs"; _11c.setAttribute("type","text/javascript"); _11c.setAttribute("src",url+"x0"+_17); _1.appendChild(_11c); _5.push(_11c); }; this.onHeaderLoaded=function(_11d){ _9=0; _a=1; _b=0; curY=0; _4=_11d; for(var i=0;i<_5.length;++i){ if(_5[i].parentNode){ _5[i].parentNode.removeChild(_5[i]); } } if(_4.xmml==null){ _4.xmml="<xmml></xmml>"; } _6=parseXML(_4.xmml); var _11f; _4.width=_4.levels[_4.level-1].width; _4.height=_4.levels[_4.level-1].height; for(var i=0;i<_4.level;++i){ _11f=document.createElement("div"); _11f.id="l"+i; _1c.appendChild(_11f); _21[i]=_11f; _4.levels[i].ratio=_4.levels[i].width/_4.width; } _1e=document.createElement("div"); _1e.id="object"; _1e.browser=_3; _1c.appendChild(_1e); _9=0; var _120=_6.getElementsByTagName("param"); for(var i=0;i<_120.length;++i){ _7[_120[i].getAttribute("name").toLowerCase()]=_120[i].getAttribute("value"); } _12.enabled=(_7["type"])&&(_7["type"].toLowerCase()=="news"); _12.pagewidth=parseInt(_7["pagewidth"]); _12.pageheight=parseInt(_7["pageheight"]); if(isNaN(_12.pagewidth)||(_12.pagewidth<=0)){ _12.pagewidth=_4.width; } if(isNaN(_12.pageheight)||(_12.pageheight<=0)){ _12.pageheight=_4.height; } _12.pagesPerRow=Math.ceil(_4.width/_12.pagewidth); _12.totalPages=_12.pagesPerRow*Math.floor(_4.height/_12.pageheight+0.5); _3.SetBrowserProperty("pagecount",_12.totalPages); if(_7["reversepage"]){ _12.reverse=(_7["reversepage"].toLowerCase()=="yes"); }else{ _12.reverse=false; } _12.currentPage=_12.reverse?_12.totalPages-1:0; _3.viewportWidth=_1.offsetWidth; _3.viewportHeight=_1.offsetHeight; if(_12.enabled){ _12.mainLevel=0; for(var i=_4.level-1;i>=0;--i){ if((_4.levels[i].ratio*_12.pagewidth<=_1.offsetWidth)&&(_4.levels[i].ratio*_12.pageheight<=_1.offsetHeight)){ _12.mainLevel=i; break; } } _9=_12.mainLevel; _11.enabled=true; _11.left=_11.top=0; _11.right=_12.pagewidth/_4.width; _11.bottom=_12.pageheight/_4.height; _20.setMinimap(_12.pagewidth,_12.pageheight,null); _da(_12.currentPage); if((_7["allowshadow"]!="no")&&(_7["onepageflip"]!="yes")){ _13=document.createElement("div"); _13.id="shadows"; _1c.appendChild(_13); _13.style.position="absolute"; _13.style.width=_14.length; var html=""; for(var i=0;i<_14.length;++i){ html+="<div style=\"float: left; background-color: #606060; overflow: hidden; width: 1px; height: 100%; opacity: "+(_14[i]/255)+"; filter: alpha(opacity="+Math.floor(_14[i]/255*100)+");\"></div>"; } _13.innerHTML=html; } }else{ _11.enabled=false; _20.setMinimap(_4.width,_4.height,_8+"dr"); } var maps=_6.getElementsByTagName("map"); for(var i=0;i<maps.length;++i){ var _123=maps[i].childNodes; for(var j=0;j<_123.length;++j){ var attr=_123[j].attributes; var _126=new Array(); for(var t=0;t<attr.length;++t){ _126[attr[t].name]=attr[t].value; } _3.AddObject(_123[j].tagName,_126); } } var _128=_6.getElementsByTagName("menu"); var _129=new MenuCreator(_1,_3); for(var j=0;j<_128.length;j++){ if(_128[j].nodeName=="menu"){ var _12a=_129.createMenu(_128[j]); if(_12a!=null){ _24.push(_12a); } } } _a=_4.levels[_9].ratio; _69(_b,curY,true); if(_13){ _13.style.left=Math.floor((_1.offsetWidth/2)-18); _13.style.top=_11.topPixel-curY; _13.style.height=(_11.bottomPixel-_11.topPixel); } if(window.opera){ _10f(); } _1c.style.visibility=""; if(_3.initpos!=null){ _3.MoveTo(_3.initpos[1],_3.initpos[2],_3.initpos[3]); } for(var i in _18){ _18[i].onLoad(); } if(_3.created!=true){ _4f("created",_2,null); _3.created=true; } _4f("loaded",_3.GetBrowserProperty("itemperpage"),null); }; this.GetPageOffset=function(page){ var ret=new Object(); ret.offsetX=(_12.pagewidth/2)*(page%(_12.pagesPerRow*2)); ret.offsetY=_12.pageheight*Math.floor(page/(_12.pagesPerRow*2)); return ret; }; this.AddObject=function(type,_12e){ var comp=null; switch(type.toLowerCase()){ case "rect": case "img": case "rectangle": if((_1e)&&(_1e.browser)){ comp=new IBrowserComponent(1,_1f++,_1e,_1d); } break; case "flash": if((_1e)&&(_1e.browser)){ comp=new IBrowserComponent(2,_1f++,_1e,_1d); } break; case "movie": case "video": if((_1e)&&(_1e.browser)){ comp=new IBrowserComponent(3,_1f++,_1e,_1d); } break; } if(comp==null){ return -1; } comp.setViewport(_9,_a,_b,curY,_11); if(typeof (_12e)=="object"){ for(var k in _12e){ if(k.toLowerCase()=="name"){ comp.setProperty(k,_12e[k]); } } for(var k in _12e){ if(k.toLowerCase()!="src"&&k.toLowerCase()!="name"){ comp.setProperty(k,_12e[k]); } } for(var k in _12e){ if(k.toLowerCase()=="src"){ comp.setProperty(k,_12e[k]); } } }else{ comp.setAttributeString(_12e); } comp.setViewport(_9,_a,_b,curY,_11); _23[comp.no]=comp; return comp.no; }; var _131=function(_132){ var str=""; for(var i=0;i<_132.length;++i){ var attr=_132[i].attributes; var _136=new Array(); for(var t=0;t<attr.length;++t){ _136[attr[t].name]=attr[t].value; } str=str+_3.AddObject(_132[i].tagName,_136)+" "; } return str; }; this.AddXML=this.AddXMML=function(_138){ var res=""; try{ var _13a=parseXML(_138); var _13b=_13a.getElementsByTagName("rect"); res=_131(_13b); var imgs=_13a.getElementsByTagName("img"); res=res+_131(imgs); } catch(e){ } return res; }; this.SetObjectProperty=function(id,prop,_13f){ var obj=_23[id]; if(obj!=null){ obj.setProperty(prop,_13f); } }; this.GetObjectProperty=function(id,prop){ var obj=_23[id]; if(obj!=null){ return obj.getProperty(prop); } return null; }; this.RemoveObject=function(id){ var obj=_23[id]; if(obj!=null){ obj.release(); _23[id]=null; } }; this.CommitObjectProperty=function(id){ var obj=_23[id]; if(obj!=null){ obj.setViewport(_9,_a,_b,curY,_11); } }; this.GetObjectIDList=function(){ var list=new Array(); for(var id in _23){ list[list.length]=id; } return list.join(" "); }; this.GetObjectIDByName=function(name){ for(var id in _23){ if(_23[id]&&_23[id].getProperty("name")==name){ return id; } } return -1; }; this.GetSelectedObjectID=function(){ return -1; }; this.QueryObject=function(x1,y1,x2,y2,_150){ return ""; }; this.Repaint=function(){ }; this.PlayVideo=function(id){ this.Execute("objectexec","id='"+id+"' action='play'"); }; this.PlayPauseVideo=function(id){ this.Execute("objectexec","id='"+id+"' action='playpause'"); }; this.StopVideo=function(id){ this.Execute("objectexec","id='"+id+"' action='stop'"); }; this.PauseVideo=function(id){ this.Execute("objectexec","id='"+id+"' action='pause'"); }; this.VolumeChangeVideo=function(id,vol){ this.Execute("objectexec","id='"+id+"' action='volume' par='"+vol+"'"); }; this.GetArrayId=function(){ return arrayId; }; this.Execute=function(_157,_158){ _9d(); if(_4==null){ return; } _157=_157.toLowerCase(); for(var i in _18){ if(_18[i].Execute(_157,_158)){ return; } } switch(_157){ case "nextpage": if(_12.reverse){ _df(_12.currentPage-1); }else{ _df(_12.currentPage+1,true); } break; case "prevpage": if(_12.reverse){ _df(_12.currentPage+1,true); }else{ _df(_12.currentPage-1); } break; case "snapleft": _df(_12.currentPage-1); break; case "snapright": _df(_12.currentPage+1,true); break; case "uppage": _df(_12.currentPage-_12.pagesPerRow); break; case "downpage": _df(_12.currentPage+_12.pagesPerRow); break; case "gotopage": if(_12.reverse){ _df(_12.pagesPerRow*(2*Math.ceil(parseInt(_158)/_12.pagesPerRow)-1)-parseInt(_158)); }else{ _df(parseInt(_158)-1); } break; case "gotohpage": if(_12.reverse){ _df(_12.totalPages-parseInt((parseInt(_158)-1)/2)-1); }else{ _df(parseInt((parseInt(_158)-1)/2)); } break; case "zoomto": _84(parseInt(_158)); break; case "zoomin": _84(_9+1); break; case "zoomout": _84(_9-1); break; case "zoomintocursor": var pos=_26; _84(_9+1,(pos.x+_b)/_4.width/_a,(pos.y+curY)/_4.height/_a); break; case "zoomouttocursor": var pos=_26; _84(_9-1,(pos.x+_b)/_4.width/_a,(pos.y+curY)/_4.height/_a); break; case "zoomtocursor": var pos=_26; _84(parseInt(_158),(pos.x+_b)/_4.width/_a,(pos.y+curY)/_4.height/_a); break; case "zoomleftpage": if(_12.enabled&&_12.mainLevel==_9){ _84(_9+1,_b/_a/_4.width,curY/_a/_4.height); } break; case "zoomrightpage": if(_12.enabled&&_12.mainLevel==_9){ _84(_9+1,(_b/_a+_12.pagewidth)/_4.width,curY/_a/_4.height); } break; case "panto": var p=_158.split(","); if(p.length==2){ _8d(p[0],p[1]); }else{ if(p.length>2){ _8d(p[0],p[1],Math.max(1,parseInt(p[2])-1)); } } break; case "menu": _99(_158); break; case "pantoratio": var p=_158.split(","); if(p.length>=2){ var nx=(_11.enabled)?(_11.leftPixel+(_11.rightPixel-_11.leftPixel)*p[0]):(_4.width*_a*p[0]); var ny=(_11.enabled)?(_11.topPixel+(_11.bottomPixel-_11.topPixel)*p[1]):(_4.height*_a*p[1]); _69(nx,ny); } break; case "goto": var p=_158.split(","); if(p.length>=3){ _3.MoveTo(parseInt(p[0]),parseInt(p[1]),parseInt(p[2])); } case "keyboard": _3.ProcessEvent("key",parseInt(_158),0,0,0); break; case "printarea": var p=_158.split(","); if(p.length>=4){ _a3(parseInt(p[0]),parseInt(p[1]),parseInt(p[2]),parseInt(p[3])); } break; case "printpage": if(_12.reverse){ _3.PrintPage((_12.totalPages*2)-parseInt(_158)+1); }else{ _3.PrintPage(parseInt(_158)); } break; case "objectexec": var _15e=/id='([^\']+)'/i.exec(_158); var name=/name='([^\']+)'/i.exec(_158); var _157=/action='([^\']+)'/i.exec(_158); var par=/par='([^\']+)'/i.exec(_158); if(_15e!=null){ _15e=_15e[1]; } if(name!=null){ name=name[1]; } if(_157!=null){ _157=_157[1]; } if(par!=null){ par=par[1]; } if(name&&_157){ for(var id in _23){ if(_23[id]&&_23[id].getProperty("name")==name){ _23[id].Execute(_157,par); } } } if(_15e&&_157){ for(var id in _23){ if(_23[id]&&_23[id].id==_15e){ _23[id].Execute(_157,par); } } } break; case "jsexec": if(_158){ if(_158.charAt(_158.length-1)!=";"){ _158+=";"; } eval(_158); }else{ alert("No parameter."); } break; case "refreshsize": _10f(); case "stopaudio": _a0(null); default: return false; } return true; }; this.SetBrowserProperty=function(name,_163){ name=name.toLowerCase(); switch(name){ case "backgroundcolor": _1c.style.backgroundColor=_163; break; case "showthumbnail": _20.setVisible(_163.toLowerCase()!="no"); break; case "version": return; case "minlevel": _d=parseInt(_163)-1; if(isNaN(_d)){ _d=-1; } if(_9<_d){ _84(_d); } break; case "objectsmoothzoom": _e=(_163.toLowerCase()!="no"); break; case "imageurl": if(_163[_163.length-1]!="/"){ _163=_163+"/"; } break; } _7[name]=_163; }; this.GetBrowserProperty=function(name){ name=name.toLowerCase(); switch(name){ case "topobjectid": if(_25==null){ return ""; }else{ return _25.no; } break; case "minlevel": return _d+1; break; case "mainlevel": return _12.mainLevel+1; break; case "currentpage": return _12.currentPage+1; break; default: var ret=_7[name]; if(ret==null){ ret=""; } return ret; } }; this.SetTopObject=function(obj,over){ if(over){ _25=obj; }else{ if(_25==obj){ _25=null; } } }; this.FollowLink=function(link,id){ var p; var _16b=null; if(link.charAt(0)=="("){ p=link.indexOf(")"); if(p>0){ _16b=link.substring(1,p); link=link.substr(p+1); } } p=link.indexOf(":"); var cmd="",param=link; var ext=link.substring(link.length-3).toLowerCase(); if(p>0){ cmd=link.substr(0,p).toLowerCase(); param=link.substr(p+1); } if((ext=="mp3")||(ext=="wma")||(ext=="wmv")||(ext=="asf")||(ext=="mid")||(ext=="wav")){ _a0(link); }else{ if((_16b!=null)||(cmd=="http")||(cmd=="javascript")||(cmd=="mailto")){ _4f("FollowLink",link,null); if(_16b==null){ window.open(link,"_blank"); }else{ window.open(link,_16b); } }else{ if(cmd=="exec"){ p=param.indexOf(","); var _16e=param,ap=""; if(p>0){ _16e=param.substr(0,p); ap=param.substr(p+1); } _3.Execute(_16e,ap); }else{ if(cmd.substr(0,3)=="ext"){ _4f("FollowLink",link,id); }else{ if(!(_3.Execute(cmd,param))){ var _16f; var _170=_1.getAttribute("url"); if(link.charAt(0)=="/"){ p=_170.indexOf("://")+3; _16f=_170.substr(0,_170.indexOf("/",p))+link; }else{ if(link.substr(0,7).toLowerCase()=="ipq://"){ _16f=link; }else{ _16f=_170.substr(0,_170.lastIndexOf("/")+1)+attributes.href; } } _4f("FollowLink",_16f,null); _3.SetContent(_16f); } } } } } }; this.GetImageUrl=function(url){ if(url.substr(0,7).toLowerCase()=="http://"){ return url; } var ext=url.substring(url.length-4).toLowerCase(); var _173=((ext==".tif")||(ext==".ipq"))?"dr.jpg":"cr"; if(url.substr(0,6).toLowerCase()=="ipq://"){ var p=url.indexOf("/",6); if(p>=0){ var temp=url.substring(6,p); if(temp.indexOf(":")<0){ temp=temp.concat(":").concat(_7["httpport"]); } url="http://"+temp+url.substring(p); if(url.charAt(url.length-1)!="/"){ url=url.concat("/"); } return url+_173; } }else{ if(url.indexOf("://")>0){ return url; } } var _176=_8.substr(0,_8.length-1); if(url.charAt(0)=="/"){ while((url.length>2)&&(url.substring(0,2)=="//")){ url=url.substring(1); } var p=_176.indexOf("://")+3; return _176.substr(0,_176.indexOf("/",p))+url+"/"+_173; }else{ return _176.substr(0,_176.lastIndexOf("/")+1)+url+"/"+_173; } }; this.GetXMML=function(){ return _6; }; this.ProcessEvent=function(evt,_178,_179,_17a,_17b){ if(evt.toLowerCase()=="key"){ _3.SetBrowserProperty("Process_Event","yes"); _4f("key",_178,_179); if(_3.GetBrowserProperty("Process_Event")!="yes"){ return false; } switch(_178){ case 37: if((_12.enabled)&&(_12.mainLevel==_9)){ _3.Execute("snapleft",0); }else{ if((!_12.enabled)&&(_12.totalPages>1)&&(_12.pagewidth*_a<_1.offsetWidth*2)){ _3.Execute("snapleft",0); }else{ _8d(_b-(_1.offsetWidth/2),curY); } } break; case 38: if((!_12.enabled)&&(_12.totalPages>1)&&(_12.pagewidth*_a<_1.offsetWidth*2)){ _3.Execute("uppage",0); }else{ _8d(_b,curY-(_1.offsetHeight/2)); } break; case 39: if((_12.enabled)&&(_12.mainLevel==_9)){ _3.Execute("snapright",0); }else{ if((!_12.enabled)&&(_12.totalPages>1)&&(_12.pagewidth*_a<_1.offsetWidth*2)){ _3.Execute("snapright",0); }else{ _8d(_b+(_1.offsetWidth/2),curY); } } break; case 40: if((!_12.enabled)&&(_12.totalPages>1)&&(_12.pagewidth*_a<_1.offsetWidth*2)){ _3.Execute("downpage",0); }else{ _8d(_b,curY+(_1.offsetHeight/2)); } break; case 107: case 187: _3.Execute("zoomin",0); break; case 109: case 189: _3.Execute("zoomout",0); break; case 33: _3.Execute("prevpage",0); break; case 34: _3.Execute("nextpage",0); break; case 36: _3.Execute("gotopage",1); break; case 35: _3.Execute("gotopage",_12.totalPages); break; case 72: if(_179==12){ alert("== Innotive iJax Browser "+_3.GetBrowserProperty("version")+" ==\n\n"+"http://www.innotive.com"); } break; default: return false; } return true; }else{ if(evt.toLowerCase()=="event"){ _4f(_178,_179,_17a); } } }; this.GetCurrentPage=function(){ return _c; }; this.GetCurrentPageOffset=function(){ return Math.floor(_c/2); }; this.GetCurrentLevel=function(){ return _9+1; }; this.GetLevelCount=function(){ return _4.level; }; this.GetMapWidth=function(_17c){ try{ return _4.levels[_17c-1].width; } catch(e){ return -1; } }; this.GetMapHeight=function(_17d){ try{ return _4.levels[_17d-1].height; } catch(e){ return -1; } }; this.GetLayer=function(){ return _1; }; this.GetCallbackID=function(){ return _17; }; this.GetBasemapLeft=function(){ if(_11.enabled){ return _11.leftPixel-_b; }else{ if(_b<0){ return -_b; }else{ return 0; } } }; this.GetBasemapTop=function(){ if(_11.enabled){ return _11.topPixel-curY; }else{ if(curY<0){ return -curY; }else{ return 0; } } }; this.GetBasemapRight=function(){ if(_11.enabled){ return _11.rightPixel-_b; }else{ if(_b<0){ mw=-_b; }else{ mw=0; } return _1.offsetWidth-mw; } }; this.GetBasemapBottom=function(){ if(_11.enabled){ return _11.bottomPixel-curY; }else{ if(curY<0){ mh=-curY; }else{ mh=0; } return _1.offsetHeight-mh; } }; this.GetViewportWidth=function(){ return _3.viewportWidth; }; this.GetViewportHeight=function(){ return _3.viewportHeight; }; this.GetViewportX=function(){ return _b; }; this.GetViewportY=function(){ return curY; }; this.MoveTo=function(x,y,_180){ if((_180>=1)&&(_180<=_4.level)){ _9=_180-1; _a=_4.levels[_9].ratio; if(_12.enabled){ var np=Math.floor(x/(_12.pagewidth*_a))+Math.floor(y/(_12.pageheight*_a))*_12.pagesPerRow; _da(np); } _69(x,y); } }; this.MoveTo2=function(x,y,_184){ if((_184>=1)&&(_184<=_4.level)){ var _185=_4.levels[_184-1].ratio; _3.MoveTo(x*_185,y*_185,_184); } }; this.AddExtension=function(ext){ _18.push(ext); ext.initialize(_3); if(_4!=null){ ext.onLoad(); } }; this.GetMousePointerPos=function(e){ var mPos={x:0,y:0}; mPos.x=_26.x+_b; mPos.y=_26.y+curY; return mPos; }; this.PrintPage=function(page){ if(!(isFinite(page))){ return; } if(page<=0){ return; } page--; if(((_12.enabled)&&(Math.floor(page/2)!=Math.floor(_c/2)))||(_10)){ if(_10==false){ _df(Math.floor(page/2)); } setTimeout(_17+".PrintPage("+(page+1)+")",800); return; } if(_9!=_12.mainLevel){ if(_10==false){ _84(_12.mainLevel); } setTimeout(_17+".PrintPage("+(page+1)+")",800); return; } var bl,br,bt,bb; var bx,by,width,height; bl=this.GetBasemapLeft(); br=this.GetBasemapRight(); bt=this.GetBasemapTop(); bb=this.GetBasemapBottom(); if(_12.enabled){ if(page==_c){ bx=bl; by=bt; width=(br-bl)/2; height=bb-bt; }else{ bx=bl+(br-bl)/2; by=bt; width=(br-bl)/2; height=bb-bt; } }else{ bx=bl; by=bt; width=br-bl; height=bb-bt; } var _18c=this.GetMapWidth(this.GetLevelCount())/this.GetMapWidth(this.GetCurrentLevel()); bx=(bx+this.GetViewportX())*_18c; by=(by+this.GetViewportY())*_18c; width*=_18c; height*=_18c; _a3(bx,by,width,height); }; _113(); return this; } IBrowserComponent=function(type,id,_18f,_190){ var _191="_aibrowser"; this.no=id; this.id=_191+id; this.parent=_18f; this.screenParent=_190; this.browser=_18f.browser; var _192=document.createElement("div"); _192.id=this.id; _192.style.position="absolute"; _192.style.overflow="hidden"; if((document.all)&&(!window.opera)){ var _193=new Image(); _193.style.width=_193.style.height="100%"; _193.style.position="absolute"; _193.style.left=_193.style.top=0; _193.onload=function(){ _192.appendChild(_193); _193.onload=null; }; _193.src=_18f.browser.GetBrowserProperty("imageurl")+"space.gif"; } this.compLayer=_192; this.parent.appendChild(_192); _192.style.zIndex=2; _192.mappingComp=this; _192.onmouseover=function(e){ this.mappingComp.OnMouseoverEvent(e); }; _192.onmouseout=function(e){ this.mappingComp.OnMouseoutEvent(e); }; this.div=_192; this.div_draw=_192; this.type=type; this.src=null; this.curLevel=0; this.curRatio=1; this.curX=0; this.curY=0; this.minLevel=-1; this.maxLevel=-1; this.offsetX=0; this.offsetY=0; this.left=0; this.top=0; this.width=0; this.height=0; this.isScreen=false; this.inLevel=false; this.compProperty=new Array(); this.mouseAction=new Array(false,false,false,false,false); this.soundonmouse=false; this.setProperty("width",10); this.setProperty("height",10); this.setProperty("x",0); this.setProperty("y",0); this.setProperty("fillcolor","transparent"); }; IBrowserComponent.prototype={Execute:function(name,_197){ if(this.type==3){ var _198=null; switch(name.toLowerCase()){ case "flvplay": _198=document.getElementById(this.id+"_img"); this.viewpage=this.browser.GetCurrentPageOffset(); if((this.playingFlag)&&(this.playingFlag==true)){ if((_198)&&(_198.sendEvent)){ _198.sendEvent("play"); } } break; case "flvstopplay": _198=document.getElementById(this.id+"_img"); this.viewpage=this.browser.GetCurrentPageOffset(); if((this.playingFlag)&&(this.playingFlag==true)){ if((_198)&&(_198.sendEvent)){ _198.sendEvent("playitem",0); } } break; case "play": _198=document.getElementById(this.id+"_img"); if((_198)&&(_198.controls)){ _198.controls.play(); } if((_198)&&(_198.sendEvent)){ _198.sendEvent("play"); } break; case "playpause": _198=document.getElementById(this.id+"_img"); if((this.playpauseFlag)&&(this.playpauseFlag==true)){ this.playpauseFlag=false; if((_198)&&(_198.controls)){ _198.controls.pause(); } if((_198)&&(_198.sendEvent)){ _198.sendEvent("pause"); } }else{ this.playpauseFlag=true; if((_198)&&(_198.controls)){ _198.controls.play(); } if((_198)&&(_198.sendEvent)){ _198.sendEvent("play"); } } break; case "stop": _198=document.getElementById(this.id+"_img"); if((_198)&&(_198.controls)){ _198.controls.stop(); } if((_198)&&(_198.sendEvent)){ _198.sendEvent("stop"); } break; case "pause": _198=document.getElementById(this.id+"_img"); if((_198)&&(_198.controls)){ _198.controls.pause(); } if((_198)&&(_198.sendEvent)){ _198.sendEvent("pause"); } break; case "volume": _198=document.getElementById(this.id+"_img"); if((_198)&&(parseInt(_197)!=NaN)&&(this.volume)&&(_198.sendEvent)){ this.volume=Math.max(Math.min(parseInt(_197),100),1); _198.sendEvent("volume",this.volume); } break; case "volumeup": _198=document.getElementById(this.id+"_img"); if((_198)&&(this.volume)&&(_198.sendEvent)){ this.volume=Math.min(this.volume+10,100); _198.sendEvent("volume",this.volume); } break; case "volumedown": _198=document.getElementById(this.id+"_img"); if((_198)&&(this.volume)&&(_198.sendEvent)){ this.volume=Math.max(this.volume-10,1); _198.sendEvent("volume",this.volume); } break; } } },setViewport:function(_199,_19a,x,y,_19d){ if(!this.browser){ return; } if(_199!=undefined){ if(this.curLevel!=_199){ this.curLevel=_199; this.checkInLevel(); } } if(_19a!=undefined){ this.curRatio=_19a; } if(x!=undefined){ this.curX=x; } if(y!=undefined){ this.curY=y; } if(!(this.isScreen)){ var left=((this.offsetX+this.left)*this.curRatio-this.curX); var top=((this.offsetY+this.top)*this.curRatio-this.curY); var _1a0=(this.width*this.curRatio); var _1a1=(this.height*this.curRatio); var _1a2; var bl,br,bt,bb; bl=this.browser.GetBasemapLeft(); br=this.browser.GetBasemapRight(); bt=this.browser.GetBasemapTop(); bb=this.browser.GetBasemapBottom(); if(this.visible==undefined){ this.checkInLevel(); } if((!this.inLevel)||(!this.visible)){ _1a2=false; }else{ if(!((br>left)&&(bl<left+_1a0)&&(bb>top)&&(bt<top+_1a1))){ _1a2=false; }else{ if((_19d.enabled)&&(_19d.leftPixel)){ var curX=this.browser.GetViewportX(),curY=this.browser.GetViewportY(); _1a2=((left<Math.min(this.browser.GetViewportWidth(),_19d.rightPixel-curX))&&(top<Math.min(this.browser.GetViewportHeight(),_19d.bottomPixel-curY))&&(left+_1a0>=Math.max(0,_19d.leftPixel-curX))&&(top+_1a1>=Math.max(0,_19d.topPixel-curY))); }else{ _1a2=((left<this.browser.GetViewportWidth())&&(top<this.browser.GetViewportHeight())&&(left+_1a0>=0)&&(top+_1a1>=0)); } } } if(_1a2){ if(this.type==3){ var _1a5=document.getElementById("_aibrowser"+this.id+"_event"); if(_1a5){ _1a5.style.height=_1a1-20; } } if(!this.inScreen){ if(this.type==3){ if((this.getProperty("soundonmouse"))&&(this.getProperty("soundonmouse")=="yes")){ var _1a6=document.getElementById(this.id+"_img"); if((_1a6)){ this.playingFlag=true; if(!((this.getProperty("autostart"))&&(this.getProperty("autostart")=="no"))){ if((this.browser.GetBrowserProperty("type"))&&(this.browser.GetBrowserProperty("type").toLowerCase()=="news")){ if(this.viewpage==this.browser.GetCurrentPageOffset()){ setTimeout("if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".Execute(\"objectexec\",\"id='"+this.id+"' action='flvplay'\");",900); }else{ setTimeout("if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".Execute(\"objectexec\",\"id='"+this.id+"' action='flvstopplay'\");",900); } }else{ setTimeout("if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".Execute(\"objectexec\",\"id='"+this.id+"' action='flvplay'\");",900); } } setTimeout("if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".Execute(\"objectexec\",\"id='"+this.id+"' action='volume' par='1'\");",900); }else{ this.inScreen="no screen"; } }else{ if((this.getProperty("playonmouse"))&&(this.getProperty("playonmouse")=="yes")){ if(!((this.getProperty("autostart"))&&(this.getProperty("autostart")=="no"))){ setTimeout("if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".Execute(\"objectexec\",\"id='"+this.id+"' action='volume' par='60'\");",900); } }else{ if((this.getProperty("playonclick"))&&(this.getProperty("playonclick")=="yes")){ if(!((this.getProperty("autostart"))&&(this.getProperty("autostart")=="no"))){ setTimeout("if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".Execute(\"objectexec\",\"id='"+this.id+"' action='volume' par='60'\");",900); } }else{ var _1a6=document.getElementById(this.id+"_img"); if((_1a6)){ this.playingFlag=true; if(!((this.getProperty("autostart"))&&(this.getProperty("autostart")=="no"))){ if((this.browser.GetBrowserProperty("type"))&&(this.browser.GetBrowserProperty("type").toLowerCase()=="news")){ if((this.viewpage==this.browser.GetCurrentPageOffset())){ setTimeout("if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".Execute(\"objectexec\",\"id='"+this.id+"' action='flvplay'\");",900); }else{ setTimeout("if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".Execute(\"objectexec\",\"id='"+this.id+"' action='flvstopplay'\");",900); } }else{ setTimeout("if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".Execute(\"objectexec\",\"id='"+this.id+"' action='flvplay'\");",900); } } setTimeout("if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".Execute(\"objectexec\",\"id='"+this.id+"' action='volume' par='60'\");",900); }else{ this.inScreen="no screen"; } } } } } if(this.type==3){ if(!((this.getProperty("autostart"))&&(this.getProperty("autostart")=="no"))){ var _1a7=document.getElementById(this.id+"_img"); if((_1a7)&&(_1a7.controls)){ _1a7.controls.play(); } } } } if(this.inScreen!="no screen"){ this.inScreen=true; }else{ this.inScreen=false; } var _1a5=this.getEventElement(); var _1a6=document.getElementById(this.id+"_img"); if(_1a5!=null){ _1a5.style.left=left; _1a5.style.top=top; _1a5.style.width=_1a0; _1a5.style.height=_1a1; _1a5.style.display="block"; } if((this.thickness!=null)&&(this.thickness>0)){ this.div.style.borderWidth=Math.max(1,Math.round(this.curRatio*this.thickness))+"px"; } }else{ if((this.type==3)&&(this.inScreen==true)){ var _1a6=document.getElementById(this.id+"_img"); if((_1a6)&&(_1a6.sendEvent)){ this.playingFlag=false; _1a6.sendEvent("pause"); } } if((this.type==3)&&(this.inScreen==true)){ var _1a7=document.getElementById(this.id+"_img"); if((_1a7)&&(_1a7.controls)){ if(_1a7.playState!=9){ _1a7.controls.pause(); }else{ _1a7.controls.stop(); } } } this.inScreen=false; var _1a5=this.getEventElement(); if(_1a5!=null){ _1a5.style.left=this.browser.GetViewportWidth()*100; } } } },checkInLevel:function(){ var min=this.minLevel; var max=this.maxLevel; if(min<0){ min=0; } if(max<0){ max=32767; } this.inLevel=((this.curLevel>=min)&&(this.curLevel<=max)); if(this.inLevel){ if(!this.visible){ this.absoluteShow(); } }else{ if(this.visible){ this.absoluteHide(); } } },setProperty:function(key,_1ab){ key=key.toLowerCase(); if(key=="name"){ this.name=_1ab; } var run=""; try{ this["set_"+key](_1ab); } catch(ex){ } this.compProperty[key]=_1ab; if(key=="co-ordinate"){ this.isScreen=(_1ab.toLowerCase()=="screen"); if(this.isScreen){ var _1ad=this.getEventElement(); if(_1ad!=null){ this.screenParent.appendChild(_1ad); _1ad.style.left=this.left; _1ad.style.top=this.top; _1ad.style.width=this.width; _1ad.style.height=this.height; } }else{ this.parent.appendChild(_1ad); this.setViewport(); } } },getProperty:function(key){ var _1af=null; try{ _1af=this.compProperty[key.toLowerCase()]; if(undefined==_1af){ throw ""; } } catch(ex){ _1af=null; } return _1af; },toString:function(){ return "id : "+this.id; },release:function(){ if(this.id!=null){ var _1b0=this.div; if(_1b0&&_1b0.parentNode){ _1b0.parentNode.removeChild(_1b0); } } },clear:function(){ this.compProperty=new Array(); this.mouseAction=new Array(false,false,false,false,false); var _1b1=this.div_draw; var _1b2=this.div; var _1b3=document.getElementById(this.id+"_img"); var _1b4=document.getElementById(this.id+"_img_over"); if(this.type==3&&_1b3&&_1b3.controls){ _1b3.controls.stop(); } if(_1b4){ _1b4.parentNode.removeChild(_1b4); } if(_1b3){ _1b3.parentNode.removeChild(_1b3); } },getParseAttrData:function(_1b5){ var _1b6=new Array(); var reg=/([A-Za-z][A-Za-z0-9_-]*)="(.*?)"/; var temp=_1b5; while(temp!=null&&temp.length!=0){ var _1b9=temp.match(reg); if(_1b9==null||_1b9.length==0){ break; } _1b6.push({name:_1b9[1],value:_1b9[2]}); temp=temp.substring(temp.search(reg)+_1b9[0].length-1,temp.length); } return _1b6; },setAttributeString:function(str){ this.clear(); var data=this.getParseAttrData(str); for(var i=0;i<data.length;i++){ this.setProperty(data[i].name,data[i].value); } },setXmlNode:function(node){ this.compProperty=new Array(); for(var i=0;node.getAttributes.length;i++){ this.setProperty(node.getAttributes(i).name,node.getAttributes(i).value); } },getEventElement:function(){ return this.div; },OnMouseoverEvent:function(e){ if((this.type==3)&&(this.soundonmouse)){ var _1c0=document.getElementById(this.id+"_img"); if((_1c0)&&(_1c0.settings)){ _1c0.settings.volume=60; } } if(this.mouseAction[0]){ var _1c1=document.getElementById(this.id+"_img"); var _1c2=document.getElementById(this.id+"_img_over"); if(_1c1!=null){ _1c1.style.display="none"; } if(_1c2!=null){ _1c2.style.display="block"; } } if(this.mouseAction[1]){ this.drawComponentBorder(true); } if(this.mouseAction[4]){ this.browser.SetTopObject(this,true); } if(this.mouseAction[2]){ if(this.div_draw!=null){ this.div_draw.style.backgroundColor=(this.mouseoverfillcolor==null)?this.fillcolor:this.mouseoverfillcolor; } } var _1c3=this.getProperty("onmouseenter"); if((_1c3!=null)&&(_1c3.length>0)){ this.browser.FollowLink(_1c3,this.no); } },OnMouseoutEvent:function(e){ if((this.type==3)&&(this.soundonmouse)){ var _1c5=document.getElementById(this.id+"_img"); if((_1c5)&&(_1c5.settings)){ _1c5.settings.volume=0; } } if(this.mouseAction[0]){ var _1c6=document.getElementById(this.id+"_img"); var _1c7=document.getElementById(this.id+"_img_over"); if(_1c6!=null){ var src=this.getProperty("src"); if(src!=null&&src!=""){ _1c6.style.display="block"; }else{ _1c6.style.display="none"; } } if(_1c7!=null){ _1c7.style.display="none"; } } if(this.mouseAction[1]){ this.drawComponentBorder(false); } if(this.mouseAction[4]){ this.browser.SetTopObject(this,false); } if(this.mouseAction[2]){ var _1c6=document.getElementById(this.id+"_img"); if(_1c6!=null){ var src=this.getProperty("src"); if(src!=null&&src!=""){ _1c6.style.display="block"; }else{ _1c6.style.display="none"; } } if(this.div_draw!=null&&this.fillcolor!=null&&this.mouseoverfillcolor!=null){ this.div_draw.style.backgroundColor=this.fillcolor; } } var _1c9=this.getProperty("onmouseexit"); if((_1c9!=null)&&(_1c9.length>0)){ this.browser.FollowLink(_1c9,this.no); } },absoluteHide:function(){ this.div.style.display="none"; this.visible=false; },absoluteShow:function(){ this.div.style.display="block"; this.visible=true; },set_minlevel:function(_1ca){ this.minLevel=parseInt(_1ca)-1; if(isNaN(this.minLevel)){ this.minLevel=-1; } this.checkInLevel(); },set_maxlevel:function(_1cb){ this.maxLevel=parseInt(_1cb)-1; if(isNaN(this.maxLevel)){ this.maxLevel=-1; } this.checkInLevel(); },set_visible:function(_1cc){ if(_1cc.toLowerCase()=="no"){ this.div.style.display="none"; }else{ this.div.style.display=""; } },set_layer:function(_1cd){ this.div.style.zIndex=_1cd; },set_x:function(x){ this.left=parseFloat(x); var _1cf=this.getEventElement(); if(_1cf!=null){ _1cf.style.left=(this.isScreen?this.left:((this.offsetX+this.left)*this.curRatio-this.curX))+"px"; } if(this.compProperty["bx"]!=null){ this.setProperty("width",parseFloat(this.compProperty["bx"])-parseFloat(x)); } },set_y:function(y){ this.top=parseFloat(y); var _1d1=this.getEventElement(); if(_1d1!=null){ _1d1.style.top=(this.isScreen?this.top:((this.offsetY+this.top)*this.curRatio-this.curY))+"px"; } if(this.compProperty["by"]!=null){ this.setProperty("height",parseFloat(this.compProperty["by"])-parseFloat(y)); } },set_bx:function(bx){ this.setProperty("width",parseFloat(bx)-parseFloat(this.compProperty["x"])); },set_by:function(by){ this.setProperty("height",parseFloat(by)-parseFloat(this.compProperty["y"])); },set_cx:function(cx){ },set_cy:function(cy){ },set_width:function(_1d6){ this.width=parseFloat(_1d6); var _1d7=this.getEventElement(); if(_1d7!=null){ _1d7.style.width=(this.isScreen?this.width:(this.width*this.curRatio))+"px"; } },set_height:function(_1d8){ this.height=parseFloat(_1d8); var _1d9=this.getEventElement(); if(_1d9!=null){ _1d9.style.height=(this.isScreen?this.height:(this.height*this.curRatio))+"px"; } },set_tooltip:function(text){ var _1db=this.getEventElement(); if(_1db!=null){ _1db.title=text; } var _1dc=this.div_draw; if(_1dc!=null){ _1dc.title=text; } var _1dd=document.getElementById(this.id+"_img"); if(_1dd!=null){ _1dd.title=text; } var _1de=document.getElementById(this.id+"_img_over"); if(_1de!=null){ _1de.title=text; } },set_soundonmouse:function(_1df){ if((_1df!=null)&&(_1df.toLowerCase()=="no")){ this.soundonmouse=false; if(this.type==3){ var _1e0=document.getElementById(this.id+"_img"); if((_1e0)&&(_1e0.settings)){ _1e0.settings.volume=60; } } }else{ this.soundonmouse=true; if(this.type==3){ var _1e0=document.getElementById(this.id+"_img"); if((_1e0)&&(_1e0.settings)){ _1e0.settings.volume=0; } } } },set_src:function(src){ var _1e2=this.div_draw; if(_1e2!=null){ var _1e3=document.getElementById(this.id+"_img"); if(src!=null&&src!=""&&src!="null"){ this.src=src; if(this.type==1){ if(_1e3==null){ _1e2.innerHTML+="<img id=\""+this.id+"_img"+"\" src=\""+this.browser.GetImageUrl(src)+"\" width=\"100%\" height=\"100%\" style=\"filter: alpha(opacity=100)\"/>"; }else{ _1e3.src=this.browser.GetImageUrl(src); _1e3.style.display="block"; } }else{ if(this.type==2){ if((_1e3!=null)&&(_1e3.parentNode)){ _1e3.parentNode.removeChild(_1e3); } _1e2.innerHTML+="<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" "+"codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\" "+"width=\"100%\" height=\"100%\" style=\"z-index:3\" id=\""+this.id+"_img\"><PARAM NAME=movie VALUE=\""+this.browser.GetImageUrl(src)+"\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\">"+"<embed id=\""+this.id+"_img\" src=\""+this.browser.GetImageUrl(src)+"\" name=\""+this.id+"\" quality=\"high\" width=\"100%\" height=\"100%\" type=\"application/x-shockwave-flash\" "+"pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"transparent\"></embed>"+"</object>"; var _1e4=this.getProperty("InteractionEnabled"); if((_1e4!=null)&&(_1e4=="yes")){ this.mouseAction[4]=true; } }else{ if(this.type==3){ if((_1e3!=null)&&(_1e3.parentNode)){ _1e3.parentNode.removeChild(_1e3); } var url=(src.indexOf("://")>0)?src:this.browser.GetImageUrl(src); var vol=this.soundonmouse?"0":"60"; var _1e7=this.browser.GetBrowserProperty("id"); var _1e8=this.getProperty("usewincontrols"); var _1e9=this.getProperty("contextmenu"); var _1e4=this.getProperty("InteractionEnabled"); if(src.indexOf(".flv")>0){ var swf=this.browser.GetBrowserProperty("imageurl")+"flvplayer_without_controller.swf"; if((_1e8!=null)&&(_1e8=="yes")){ this.mouseAction[4]=true; swf=this.browser.GetBrowserProperty("imageurl")+"flvplayer.swf"; }else{ if((_1e4!=null)&&(_1e4=="yes")){ this.mouseAction[4]=true; } } this.volume=80; if(this.getProperty("basepage")&&(parseInt(this.getProperty("basepage"))!=NaN)){ this.page=parseInt(this.getProperty("basepage")); } if((this.getProperty("playonclick"))&&(this.getProperty("playonclick")=="yes")){ if(this.mouseAction[4]==false){ _1e2.innerHTML+="<img src=\""+this.browser.GetBrowserProperty("imageurl")+"space.gif"+"\" style=\"position:absolute;left:0px;top:0px;height:100%;width:100%;z-index:5;\"  onclick=\"if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".PlayPauseVideo('"+this.id+"')\" />"; }else{ _1e2.innerHTML+="<img id=\"_aibrowser"+this.id+"_event\" src=\""+this.browser.GetBrowserProperty("imageurl")+"space.gif"+"\" style=\"position:absolute;left:0px;top:0px;height:"+(parseInt(_1e2.style.height)-20)+";width:100%;z-index:5;\"  onclick=\"if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".PlayPauseVideo('"+this.id+"')\" />"; } } if((this.getProperty("playonmouse"))&&(this.getProperty("playonmouse")=="yes")){ if(this.mouseAction[4]==false){ _1e2.innerHTML+="<img src=\""+this.browser.GetBrowserProperty("imageurl")+"space.gif"+"\" style=\"position:absolute;left:0px;top:0px;height:100%;width:100%;z-index:5;\"  onmouseover=\"if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".PlayVideo('"+this.id+"')\" onmouseout=\"if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".PauseVideo('"+this.id+"');\" />"; }else{ _1e2.innerHTML+="<img id=\"_aibrowser"+this.id+"_event\" src=\""+this.browser.GetBrowserProperty("imageurl")+"space.gif"+"\" style=\"position:absolute;left:0px;top:0px;height:"+(parseInt(_1e2.style.height)-20)+";width:100%;z-index:5;\"  onmouseover=\"if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".PlayVideo('"+this.id+"')\" onmouseout=\"if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".PauseVideo('"+this.id+"');\" />"; } } if((this.getProperty("soundonmouse"))&&(this.getProperty("soundonmouse")=="yes")){ if(this.mouseAction[4]==false){ _1e2.innerHTML+="<img src=\""+this.browser.GetBrowserProperty("imageurl")+"space.gif"+"\" style=\"position:absolute;left:0px;top:0px;height:100%;width:100%;z-index:5;\"  onmouseover=\"if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".VolumeChangeVideo('"+this.id+"', 100)\" onmouseout=\"if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".VolumeChangeVideo('"+this.id+"', 1);\" />"; }else{ _1e2.innerHTML+="<img id=\"_aibrowser"+this.id+"_event\" src=\""+this.browser.GetBrowserProperty("imageurl")+"space.gif"+"\" style=\"position:absolute;left:0px;top:0px;height:"+(parseInt(_1e2.style.height)-20)+";width:100%;z-index:5;\"  onmouseover=\"if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".VolumeChangeVideo('"+this.id+"', 100)\" onmouseout=\"if ("+this.browser.GetCallbackID()+") "+this.browser.GetCallbackID()+".VolumeChangeVideo('"+this.id+"', 1);\" />"; } } _1e2.innerHTML+="<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" "+"codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\" "+"style=\"z-index:4;position:absolute;left:0px;top:0px;height:100%;width:100%;\"  id=\""+this.id+"_img\"><PARAM NAME=movie VALUE=\""+swf+"?src="+this.browser.GetImageUrl(src)+"\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\">"+"<embed id=\""+this.id+"_img\" src=\""+swf+"?src="+this.browser.GetImageUrl(src)+"\" name=\""+this.id+"_img\" quality=\"high\" width=\"100%\" height=\"100%\" type=\"application/x-shockwave-flash\" "+"pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"transparent\"></embed>"+"</object>"; }else{ if((_1e8!=null)&&(_1e8=="yes")){ this.mouseAction[4]=true; }else{ if((_1e4!=null)&&(_1e4=="yes")){ this.mouseAction[4]=true; } } if((_1e8!=null)&&(_1e8=="yes")){ _1e8="mini"; }else{ _1e8="none"; } if((_1e9!=null)&&(_1e9=="yes")){ _1e9="True"; }else{ _1e9="False"; } _1e2.innerHTML+="<OBJECT id=\""+this.id+"_img\" width=\"100%\" height=\"100%\" CLASSID=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" "+"type=\"application/x-oleobject\"><PARAM NAME=\"URL\" VALUE=\""+url+"\"><PARAM NAME=\"StretchToFit\" VALUE=\"True\">"+"<PARAM NAME=\"Volume\" VALUE=\""+vol+"\"><PARAM NAME=\"AutoStart\" VALUE=\"false\">"+"<PARAM NAME=\"enableContextMenu\" VALUE=\""+_1e9+"\"><PARAM name=\"uiMode\" value=\""+_1e8+"\"><PARAM name=\"PlayCount\" value=\"500000\">"+"</OBJECT>"; } if(this.inScreen){ _1e3=document.getElementById(this.id+"_img"); if((_1e3)&&(_1e3.controls)){ _1e3.controls.play(); } } } } } }else{ this.src=null; if(_1e3!=null){ _1e3.style.display="none"; } } var text=this.getProperty("tooltip"); if(text!=null){ this.set_tooltip(text); } } },set_onmouseover:function(url){ if(this.type==1){ var _1ed=this.div_draw; var ex=null; ex=document.getElementById(this.id+"_img_over"); if(ex!=null){ _1ed.removeChild(ex); } if((url==null)||(url.length==0)){ this.mouseAction[0]=false; }else{ _1ed.innerHTML+="<img id=\""+this.id+"_img_over"+"\" src=\""+this.browser.GetImageUrl(url)+"\" width=\"100%\" height=\"100%\"  style=\"filter: alpha(opacity=100); display:none\" onerror=\"this.style.visibility='hidden'\"/>"; this.mouseAction[0]=true; ex=document.getElementById(this.id+"_img_over"); var text=this.getProperty("tooltip"); if(text!=null){ ex.title=text; } } } },set_basepage:function(page){ var _1f1=this.browser.GetPageOffset(page); this.offsetX=_1f1.offsetX; this.offsetY=_1f1.offsetY; setViewport(); },set_outline:function(_1f2){ this.outline=(_1f2.length>0)?_1f2:null; this.drawComponentBorder(false); },set_thickness:function(_1f3){ this.thickness=(parseInt(_1f3)>0)?parseInt(_1f3):0; this.drawComponentBorder(false); },set_color:function(_1f4){ this.color=(_1f4.length>0)?_1f4:null; this.drawComponentBorder(false); },set_style:function(_1f5){ this.style=(_1f5.length>0)?_1f5:null; this.drawComponentBorder(false); },drawComponentBorder:function(_1f6){ var _1f7=this.div; if(_1f7!=null){ if((this.outline==null)||(this.outline.toLowerCase()=="yes")){ var _1f8=(this.style==null)?"solid":this.style.toLowerCase(); if(_1f8.substr(0,4)=="dash"){ _1f8="dashed"; }else{ if(_1f8.substr(0,3)=="dot"){ _1f8="dotted"; } } var _1f9=(this.thickness==null)?0:this.thickness; var _1fa=(this.color==null)?"#0000ff":this.color; if((_1f6)&&(this.mouseovercolor!=null)){ _1fa=this.mouseovercolor; } _1f7.style.borderColor=_1fa; _1f7.style.borderStyle=_1f8; if(_1f9==0){ _1f7.style.borderWidth="1px"; }else{ if(this.isScreen){ _1f7.style.borderWidth=_1f9+"px"; }else{ _1f7.style.borderWidth=Math.max(1,Math.round(this.curRatio*_1f9))+"px"; } } }else{ _1f7.style.borderStyle="none"; } } },set_mouseovercolor:function(_1fb){ this.mouseovercolor=(_1fb.length>0)?_1fb:null; this.mouseAction[1]=true; this.drawComponentBorder(false); },set_onmouseenter:function(_1fc){ },set_onmouseexit:function(_1fd){ },set_href:function(link){ this.div.style.cursor=((link==null)||(link=="")||(link.toLowerCase()=="null"))?"auto":"pointer"; this.mouseAction[4]=true; },set_transparency:function(_1ff){ var _200=this.div_draw; if(_200!=null){ var data=parseInt(_1ff); if(isNaN(data)){ return; } if(data<1){ data=parseFloat(_1ff); } data=Math.round(data/255*100); if(data<100){ _200.style.filter="alpha(opacity="+data+");"; _200.style.opacity=data/100; } } },set_fillcolor:function(_202){ this.fillcolor=((_202!=null)&&(_202.length>0))?_202:"transparent"; var _203=this.div_draw; if(_203!=null){ _203.style.backgroundColor=this.fillcolor; } },set_mouseoverfillcolor:function(_204){ this.mouseoverfillcolor=_204; this.mouseAction[2]=true; }}; function ComponentMinimap(_205,_206){ var self=this; var _208=8; self.browser=_206; self.screenParent=screen; var _209=function(){ var t=document.createElement("table"); t.cellPadding=0; t.cellSpacing=0; t.style.border="3px solid white"; var b=document.createElement("tbody"); var r=document.createElement("tr"); var cell=document.createElement("td"); cell.style.border="1px solid #999999"; cell.align="left"; cell.vAlign="top"; cell.style.fontSize="1px"; cell.style.lineHeight="2px"; t.appendChild(b); b.appendChild(r); r.appendChild(cell); return t; }; var _20e=false,isFull=true; var _20f,height,cleft=0,ctop=0,cright=1,cbottom=1,ratio=1; var _210=_209(); var _211=document.createElement("div"); var _212=document.createElement("div"); _210.style.position="absolute"; _210.style.display="none"; _212.style.position="absolute"; _210.style.cursor="move"; _212.style.cursor="pointer"; _211.style.position="absolute"; _205.appendChild(_210); var c=_210.rows[0].cells[0]; c.style.backgroundColor="#f0f0f0"; c.style.opacity="0.8"; c.style.filter="alpha(opacity=80)"; c.appendChild(_211); c.appendChild(document.createTextNode("\xa0")); _212.innerHTML="<div style='width: 100%; height: 100%; background-color: red; opacity: 0.15; filter: alpha(opacity=15)'></div>"; _212.style.border="1px solid #CC6666"; var _214=document.createElement("img"); _214.style.position="absolute"; _214.style.display="none"; _214.onload=function(){ var w=this.width,h=this.height; var tw=_20f-_208,th=height-_208; if(tw/th<w/h){ h=Math.round(tw*h/w); if(isFinite(h)){ this.style.width=tw; this.style.height=h; this.style.left=0; this.style.top=th-h; } }else{ w=Math.round(th*w/h); if(isFinite(w)){ this.style.width=w; this.style.height=th; this.style.left=tw-w; this.style.top=0; } } this.style.display=""; }; _214.onerror=function(){ this.style.display="none"; }; var _217=null; _211.appendChild(_214); _211.appendChild(_212); this.getThumbSize=function(){ return {width:_20f-_208,height:height-_208}; }; this.setThumbnail=function(ly){ if(_217!=null){ _211.removeChild(_217); } _217=ly; _211.insertBefore(_217,_212); }; this.setVisible=function(_219){ _20e=_219; _210.style.display=(_219&&!isFull)?"":"none"; }; this.setCurrent=function(x1,y1,x2,y2){ cleft=Math.max(Math.min(Math.min(x1,x2),1),0); ctop=Math.max(Math.min(Math.min(y1,y2),1),0); cright=Math.max(Math.min(Math.max(x1,x2),1),0); cbottom=Math.max(Math.min(Math.max(y1,y2),1),0); var x=Math.round(cleft*(_20f-_208)),y=Math.round(ctop*(height-_208)); _212.style.left=x; _212.style.top=y; _212.style.width=Math.round((cright-cleft)*(_20f-_208)); _212.style.height=Math.round((cbottom-ctop)*(height-_208)); isFull=(cleft==0)&&(cright==1)&&(ctop==0)&&(cbottom==1); this.setVisible(_20e); }; this.setPosition=function(x,y){ _210.style.left=x; _210.style.top=y; }; this.setSize=function(size){ if(ratio>=1){ _20f=size; height=Math.round((size-_208)/ratio)+_208; }else{ height=size; _20f=Math.round((size-_208)*ratio)+_208; } _210.style.width=_20f; _210.style.height=height; self.setCurrent(cleft,ctop,cright,cbottom); self.setPosition(_205.offsetWidth-_20f-10,_205.offsetHeight-height-10); }; this.setMinimap=function(w,h,url){ ratio=w/h; this.setSize(Math.max(_20f,height)); _214.style.display="none"; if((url!=null)&&(url.length>0)){ _214.src=url; }else{ _214.src=""; } }; var _225=false; var _226=false; var _227=-1; var _228=-1; var _229=function(e){ if(!e){ var e=window.event; } if(_225){ var l=_211; var lx=0,ly=0; do{ lx+=l.offsetLeft; ly+=l.offsetTop; }while((l=l.offsetParent)!=document.body); var pos={x:(e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft-lx),y:(e.clientY+document.body.scrollTop+document.documentElement.scrollTop-ly)}; if(pos.x<0){ pos.x=0; } if(pos.y<0){ pos.y=0; } self.browser.Execute("pantoratio",((pos.x-_212.offsetWidth/2)/(_20f-_208))+","+((pos.y-_212.offsetHeight/2)/(height-_208))); }else{ if(_226){ if(_227==-1&&_228==-1){ _227=e.clientX; _228=e.clientY; } var pos={x:(_210.offsetLeft+(e.clientX-_227)),y:(_210.offsetTop+(e.clientY-_228))}; if(pos.x<0){ pos.x=0; } if(pos.y<0){ pos.y=0; } if(_210.offsetLeft+(e.clientX-_227)+_210.offsetWidth>_205.offsetWidth){ pos.x=_205.offsetWidth-_210.offsetWidth; } if(_210.offsetTop+(e.clientY-_228)+_210.offsetHeight>_205.offsetHeight){ pos.y=_205.offsetHeight-_210.offsetHeight; } self.setPosition(pos.x+"px",pos.y+"px"); _227=e.clientX; _228=e.clientY; } } }; var _22e=function(e){ if((e.which&&e.which==1)||(e.button&&e.button==1)){ _226=false; _225=false; } }; if(document.addEventListener){ document.addEventListener("mousemove",_229,false); document.addEventListener("mouseup",_22e,false); }else{ document.attachEvent("onmousemove",_229); document.attachEvent("onmouseup",_22e,false); } _212.onmousedown=function(e){ if(!e){ var e=window.event; } if((e.which&&e.which==1)||(e.button&&e.button==1)){ if(typeof e.preventDefault!="undefined"){ e.preventDefault(); } _225=true; } }; _210.onmousedown=function(e){ if(!e){ var e=window.event; } if(((e.which&&e.which==1)||(e.button&&e.button==1))&&_225==false){ if(typeof e.preventDefault!="undefined"){ e.preventDefault(); } _226=true; _227=e.clientX; _228=e.clientY; } }; self.setSize(150); } MenuPoint=function(x,y){ this.x=x; this.y=y; }; MenuItem=function(text){ this.parent=null; this.text=text; this.href=null; this.id=null; this.eventObject=null; this.clickCallback=null; }; MenuItem.prototype={release:function(){ }}; MenuItemEvent=function(){ }; MenuItemEvent.prototype={OnMouseClick:function(e){ var _236=e||window.event; var _237=_236.target||_236.srcElement||_236.relatedTarget; _237=_237.parentNode; if(_237.menu_item==null){ if(_237.parentNode!=null&&_237.parentNode.menu_item!=null){ _237=_237.parentNode; }else{ return; } } _237.menu_item.parent.clickMenuItem(_237); },OnMouseOut:function(e){ var _239=e||window.event; var _23a=_239.target||_239.srcElement||_239.relatedTarget; _23a=_23a.parentNode; if(_23a.menu_item==null){ if(_23a.parentNode!=null&&_23a.menu_item!=null){ _23a=_23a.parentNode; }else{ return; } } _23a.menu_item.parent.unselectMenuItem(_23a); },OnMouseOver:function(e){ var _23c=e||window.event; var _23d=_23c.target||_23c.srcElement||_23c.relatedTarget; _23d=_23d.parentNode; if(_23d==null){ return; } if(_23d.menu_item==null){ if(_23d.parentNode!=null&&_23d.menu_item!=null){ _23d=_23d.parentNode; }else{ return; } } _23d.menu_item.parent.selectMenuItem(_23d); }}; Menu=function(id,_23f,_240,_241){ this.prefix="ai_br"; this.browser=_240; this.parent=_23f; this.linkMenuItem=null; this.childMenu=new Array(); this.items=new Array(); this.parentMenu=null; this.inputId=id; this.id=null; this.fontColor="black"; this.fontName="Arial"; this.fontSize="9pt"; this.selectFontColor="white"; this.selectCellColor="gray"; this.cellColor="white"; this.borderColor="#DBDFE2"; this.borderSize=1; this.isCreated=false; this.beforeSelected=null; this.beforeSelectedObject=null; this.x=0; this.y=0; this.isShow=false; this.left=0; this.top=0; this.width=0; this.height=0; this.sep_pad_left=5; this.sep_pad_right=5; this.sep_pad_top=0; this.sep_pad_bottom=0; this.nor_pad_left=15; this.nor_pad_right_sub=0; this.nor_pad_right=15; this.nor_pad_top=4; this.nor_pad_bottom=4; this.arrow_pad_left=0; this.arrow_pad_right=2; this.direction=0; this.menuItemEvent=new Array(); var _242=_241||false; this.mainDiv=_242?document.createElement("div"):null; }; var menu_beforeSelected=null; Menu.prototype={util_decideDirection:function(x,y,_245,_246,_247,_248){ var _249=1; if(_247<_245||_248<_246){ return _249; } if(x+_245>=_247){ _249=2; } if(y+_246>=_248){ _249+=2; } return _249; },util_decideDirection2:function(x,y,_24c,_24d,_24e,_24f,_250){ if(_250==0){ return this.util_decideDirection(x,y,_24c,_24d,_24e,_24f); } var _251=_250%2==0?2:1; if(_250%2==0&&x-_24c<0){ _251=1; }else{ if(_250%2!=0&&x+_24c>=_24e){ _251=2; } } if(y+_24d>_24f){ _251+=2; } return _251; },clickMenuItem:function(_252){ if(_252.menu_item.text!="-"){ if(this.browser!=null&&_252.menu_item!=null&&_252.menu_item.href!=null){ this.browser.FollowLink(_252.menu_item.href); this.show(false,true); } } },selectMenuItem:function(_253){ if(_253.menu_item.text!="-"){ var _254=this.beforeSelected; if(_254!=null){ var _255=_254.parent.getSubMenuById(_254.id); if(_255!=null){ _255.show(false,true); } } if(menu_beforeSelected!=null){ this.unselectParentMenuItem(menu_beforeSelected.parent); } _253.style.color=this.selectFontColor; _253.style.backgroundColor=this.selectCellColor; this.selectParentMenuItem(this); var _256=this.getSubMenuById(_253.menu_item.id); if(_256!=null){ if(_256.isCreated==false){ _256.update(); var _257=0; if(_256.parentMenu!=null){ _257=_256.parentMenu.direction; } var _258=this.predictSubMenuPoint(this.direction,_253.menu_item.id); _256.x=_258.x; _256.y=_258.y; _257=this.util_decideDirection2(_256.x,_256.y,_256.width,_256.height,this.parent.offsetWidth,this.parent.offsetHeight,this.direction); if(_257!=this.direction){ _256.direction=_257; _258=this.getStartSubMenuPoint(_256.direction,_253.menu_item.id); _256.x=_258.x; _256.y=_258.y; }else{ _256.direction=this.direction; } _256.private_changePosition(_256.x,_256.y); } _256.show(true,true); } } },unselectMenuItem:function(_259){ if(_259.menu_item.text!="-"){ _259.style.color=this.fontColor; _259.style.backgroundColor=this.cellColor; this.beforeSelected=_259.menu_item; menu_beforeSelected=_259.menu_item; this.beforeSelectedObject=_259; } },selectParentMenuItem:function(_25a){ var _25b=_25a; if(_25b.parentMenu!=null){ if(_25b.linkMenuItem!=null){ var _25c=_25b.parentMenu.id+"_tr_"+_25b.linkMenuItem.id; var _25d=document.getElementById(_25c); if(_25d!=null){ _25d.style.color=this.selectFontColor; _25d.style.backgroundColor=this.selectCellColor; } } _25b.parentMenu.selectParentMenuItem(_25b.parentMenu); } },unselectParentMenuItem:function(_25e){ var _25f=_25e; if(_25f.parentMenu!=null){ if(_25f.linkMenuItem!=null){ var _260=_25f.parentMenu.id+"_tr_"+_25f.linkMenuItem.id; var _261=document.getElementById(_260); if(_261!=null){ _261.style.color=this.fontColor; _261.style.backgroundColor=this.cellColor; } } _25f.parentMenu.unselectParentMenuItem(_25f.parentMenu); } },removeAllItem:function(){ this.items=new Array(); },getMyId:function(){ var _262=this.prefix; var _263=this.parentMenu; while(_263!=null){ _262+="_"+_263.inputId; _263=_263.parentMenu; } _262+="_"+this.inputId; return _262; },setEvent:function(_264,item){ var _266=document.getElementById(_264); if(_266==null){ return; } _266.menu_item=item; if(item.eventObject==null){ item.eventObject=new MenuItemEvent(); if(_266.addEventListener){ _266.addEventListener("click",item.eventObject.OnMouseClick,false); _266.addEventListener("mouseover",item.eventObject.OnMouseOver,false); _266.addEventListener("mouseout",item.eventObject.OnMouseOut,false); }else{ _266.attachEvent("onclick",item.eventObject.OnMouseClick); _266.attachEvent("onmouseover",item.eventObject.OnMouseOver); _266.attachEvent("onmouseout",item.eventObject.OnMouseOut); } } },removeEvent:function(_267){ _267.menu_item=null; if(object.removeEventListener){ _267.removeEventListener("click",item.eventObject.OnMouseClick,false); _267.removeEventListener("mouseover",item.eventObject.OnMouseOver,false); _267.removeEventListener("mouseout",item.eventObject.OnMouseOut,false); }else{ _267.detachEvent("onclick",item.eventObject.OnMouseClick); _267.detachEvent("onmouseover",item.eventObject.OnMouseOver); _267.detachEvent("onmouseout",item.eventObject.OnMouseOut); } },getParentInputId:function(){ if(this.parentMenu!=null){ return this.parentMenu.inputId; } },show:function(_268,_269){ var _269=_269||false; var div=document.getElementById(this.id+"_div"); if(div==null){ return; } if(_268){ div.style.display="block"; this.isShow=true; }else{ div.style.display="none"; this.isShow=false; } if(_269){ for(var i=0;i<this.childMenu.length;i++){ if(this.childMenu[i].isShow==true){ this.childMenu[i].show(_268,_269); } } } },getMenuHTML:function(){ var _26c=this.id+"_table_"; var _26d=_26c+"_div"; var _26e=this.id+"_tbody_"; var _26f=this.id+"_tr_"; var _270=this.id+"_td_"; var _271="<div id=\""+_26c+"_shadow"+"\" style=\"position:absolute ;left : "+"3px ; top : "+"2px; background-color : black ;filter: alpha(opacity=40); opacity : 0.40; -moz-opacity : 0.40;\" >\n"+"</div>\n"+"<div id=\""+_26d+"\" style=\"position:absolute;left:0px; top : 0px;\" >\n"+"<table id=\""+_26c+"\" cellspacing=\"0\" style=\"background-color:"+this.cellColor+";cursor:pointer;\">\n"+"<tbody id=\""+_26e+"\">\n"; for(var i=0;i<this.items.length;i++){ var data=""; var _274=""; var _275=""; var _276=""; var _277=this.getSubMenu(i); var _278=_277!=null?this.nor_pad_right_sub:this.nor_pad_right; if(this.items[i].text=="-"){ data="<hr noshade size=\"1\" style=\"color : "+this.borderColor+" ;height : 1px;\" />\n"; _274="style=\"padding-left : "+this.sep_pad_left+"px ; padding-right :  "+this.sep_pad_right+"px ; padding-top :  "+this.sep_pad_top+"px ; padding-bottom :  "+this.sep_pad_bottom+"px;\""; _275=" colspan=\"2\""; _276="<td id=\""+_270+this.items[i].id+"_sub_menu\" style=\"padding-left: "+this.arrow_pad_left+"px; padding-right: "+this.arrow_pad_right+"px;text-align:right;white-space:nowrap;\">"+"</td>\n"; }else{ data=this.items[i].text; _274="style=\"padding-left : "+this.nor_pad_left+"px ; padding-right : "+_278+"px ; padding-top : "+this.nor_pad_top+"px ; padding-bottom : "+this.nor_pad_bottom+"px ;white-space:nowrap;\""; } _271+="<tr id=\""+_26f+this.items[i].id+"\" >\n<td id=\""+_270+this.items[i].id+"\" "+_274+_275+"  >"+data+"</td>\n"; _271+="<td id=\""+_270+this.items[i].id+"_sub_menu\" style=\"padding-left: "+this.arrow_pad_left+"px; padding-right: "+this.arrow_pad_right+"px;text-align:right;white-space:nowrap;\">\n"+(_277!=null?"<img src=\""+this.browser.GetBrowserProperty("imageurl")+"arrow_right.gif\"/>":"")+"</td>"+_276+"</tr>\n"; } _271+="</tbody></table></div>\n"; return _271; },getTableElement:function(){ var _279=this.id+"_table_"; var _27a=_279+"_div"; var _27b=this.id+"_tbody_"; var _27c=this.id+"_tr_"; var _27d=this.id+"_td_"; var _27e=document.createElement("div"); },update:function(){ if(this.isCreated==true){ this.releaseTable(); } if(this.id==null){ this.id=this.getMyId(); } if(this.parent==null){ return; } var _27f=this.id+"_div"; var _280=this.id+"_table_"; var _281=_280+"_div"; var _282=this.id+"_tbody_"; var _283=this.id+"_tr_"; var _284=this.id+"_td_"; var _285=null; if(this.mainDiv==null||!this.earlymake){ this.mainDiv=document.createElement("div"); } _285=this.mainDiv; _285.id=_27f; _285.style.display="none"; this.parent.appendChild(_285); var div=_285; if(div==null){ return; } div.innerHTML=this.getMenuHTML(); this.isCreated=true; this.updateStyle(); var _287=document.getElementById(_281); var _288=document.getElementById(_280+"_shadow"); var _289=_287.offsetWidth; this.width=_289; var _28a=_287.offsetHeight; this.height=_28a; if(_288!=null){ _288.style.display="block"; } if(this.parentMenu==null){ this.setPosition(); div.style.display="block"; } this.setItemsEvent(); setTimeout(function(){ var _28b=document.getElementById(_280); _288.style.width=_28b.offsetWidth+3; _288.style.height=_28b.offsetHeight+3; div.style.display="block"; },40); },setItemsEvent:function(){ var _28c=this.id+"_tr_"; for(var i=0;i<this.items.length;i++){ this.setEvent(_28c+this.items[i].id,this.items[i]); } },getSubMenu:function(_28e){ var _28f=null; if(this.items.length<=_28e){ return _28f; } for(var i=0;i<this.childMenu.length;i++){ if(this.childMenu[i].linkMenuItem.id==this.items[_28e].id){ _28f=this.childMenu[i]; break; } } return _28f; },getSubMenuById:function(id){ var _292=null; for(var i=0;i<this.childMenu.length;i++){ if(this.childMenu[i].linkMenuItem.id==id){ _292=this.childMenu[i]; break; } } return _292; },isLinkItem:function(item){ if(this.linkMenuItem!=null&&this.linkMenuItem.id==item.id){ return true; }else{ return false; } },release:function(){ this.releaseTable(); },getItemLeft:function(_295){ return this.left>5?this.left-5:0; },getItemRight:function(_296){ var _297=this.id+"_table_"+"_div"; var _298=document.getElementById(_297); if(_298==null){ return null; } return _298.offsetWidth+this.left; },getItemBottom:function(_299){ var _29a=this.id+"_tr_"; var _29b=this.top; for(var i=0;i<this.items.length;i++){ var row=document.getElementById(_29a+this.items[i].id); _29b+=row.offsetHeight; if(this.items[i].id==_299){ break; } } return _29b; },getItemTop:function(_29e){ var _29f=this.id+"_tr_"; var _2a0=this.top; for(var i=0;i<this.items.length;i++){ var row=document.getElementById(_29f+this.items[i].id); _2a0+=row.offsetHeight; if(this.items[i].id==_29e){ _2a0-=row.offsetHeight; break; } } return _2a0; },updateStyle:function(){ var _2a3=this.id+"_table_"; var _2a4=document.getElementById(_2a3); if(_2a4==null){ return; } _2a4.style.borderWidth=this.borderSize+"px"; _2a4.style.borderColor=this.borderColor; _2a4.style.borderStyle="solid"; _2a4.style.fontFamily="\""+this.fontName+"\""; _2a4.style.fontSize=this.fontSize; for(var i=0;i<this.childMenu.length;i++){ this.childMenu[i].updateStyleByParent(this); } },updateStyleByParent:function(_2a6){ var _2a7=this.id+"_table_"; var _2a8=document.getElementById(_2a7); if(_2a8==null){ return; } _2a8.style.borderWidth=_2a6.borderSize+"px"; _2a8.style.borderColor=_2a6.borderColor; _2a8.style.borderStyle="solid"; _2a8.style.fontFamily="\""+_2a6.fontName+"\""; _2a8.style.fontSize=_2a6.fontSize; },releaseTable:function(){ if(this.isCreated==false){ return; } this.isCreated=false; var div=document.getElementById(this.id+"_div"); var _2aa=document.getElementById(this.id+"_table_"+"_div"); var _2ab=document.getElementById(this.id+"_table_"); var _2ac=document.getElementById(this.id+"_tbody_"); if(_2ab==null||_2ac==null){ return; } var _2ad=this.id+"_tr_"; var _2ae=this.id+"_td_"; for(var i=0;i<this.items.length;i++){ var tr=document.getElementById(_2ad+this.items[i].id); var td=document.getElementById(_2ae+this.items[i].id); if(td!=null&&tr!=null){ this.removeEvent(tr); tr.removeChild(td); _2ac.removeChild(tr); } } _2ab.removeChild(_2ac); _2aa.removeChild(_2ab); div.removeChild(_2aa); this.parent.removeChild(div); for(var i=0;i<this.childMenu.length;i++){ this.childMenu[i].releaseTable(); } },getPosX:function(){ return this.x; },getPosY:function(){ return this.y; },private_changePosition:function(in_x,in_y){ this.x=in_x; this.y=in_y; this.left=in_x-5; this.top=in_y; var div=document.getElementById(this.id+"_div"); if(div==null){ return; } var pos=this.util_decideDirection2(this.x,this.y,this.width,this.height,this.parent.offsetWidth,this.parent.offsetHeight,this.parentMenu==null?0:this.parentMenu.direction); this.direction=pos; var x=0; var y=0; switch(pos){ case 2: y=this.y; var _2b8=this.parentMenu!=null?this.parentMenu.width:0; x=this.x-this.width+10; break; case 3: x=this.x; y=this.y-this.height; break; case 4: y=this.y-this.height; var _2b8=this.parentMenu!=null?this.parentMenu.width:0; x=this.x-this.width+10; break; default: x=this.x; y=this.y; break; } this.left=x; this.top=y; if(div!=null){ div.style.position="absolute"; div.style.left=this.left+"px"; div.style.top=this.top+"px"; div.style.display="block"; } return; },changePosition:function(x,y){ this.private_changePosition(x,y); this.resetChildMenuPos(); this.private_hide(); },private_hide:function(){ for(var i=0;i<this.childMenu.length;i++){ this.childMenu[i].show(false); this.childMenu[i].private_hide(); } },resetChildMenuPos:function(){ var _2bc=0; for(var i=0;i<this.childMenu.length;i++){ var _2be=this.childMenu[i]; if(_2be.isCreated==false){ continue; } if(_2be.linkMenuItem!=null){ if(_2be.linkMenuItem.id==null){ continue; } var _2bf=this.predictSubMenuPoint(this.direction,_2be.linkMenuItem.id); _2be.x=_2bf.x; _2be.y=_2bf.y; _2bc=this.util_decideDirection2(_2be.x,_2be.y,_2be.width,_2be.height,this.parent.offsetWidth,this.parent.offsetHeight,this.direction); if(_2bc!=this.direction){ _2be.direction=_2bc; _2bf=this.getStartSubMenuPoint(_2be.direction,_2be.linkMenuItem.id); _2be.x=_2bf.x; _2be.y=_2bf.y; }else{ _2be.direction=this.direction; } if(_2bf!=null){ _2be.private_changePosition(_2be.x,_2be.y); _2be.resetChildMenuPos(); } } } },getStartSubMenuPoint:function(_2c0,_2c1){ var _2c2=null; switch(_2c0){ case 2: _2c2=new MenuPoint(this.getItemLeft(_2c1),this.getItemTop(_2c1)); break; case 3: _2c2=new MenuPoint(this.getItemRight(_2c1),this.getItemBottom(_2c1)); break; case 4: _2c2=new MenuPoint(this.getItemLeft(_2c1),this.getItemBottom(_2c1)); break; default: _2c2=new MenuPoint(this.getItemRight(_2c1),this.getItemTop(_2c1)); } return _2c2; },predictSubMenuPoint:function(_2c3,_2c4){ var _2c5=null; if(_2c3%2!=0){ return new MenuPoint(this.getItemRight(_2c4),this.getItemTop(_2c4)); }else{ return new MenuPoint(this.getItemLeft(_2c4),this.getItemTop(_2c4)); } },setPosition:function(){ this.left=this.x; this.top=this.y; this.private_changePosition(this.x,this.y); },appendItem:function(item){ item.parent=this; item.id=this.items.length; this.items.push(item); },appendMenu:function(item,menu){ menu.linkMenuItem=item; menu.parentMenu=this; menu.id=menu.getMyId(); this.childMenu.push(menu); }}; MenuContainer=function(){ this.menu=null; this.id=null; }; MenuCreator=function(_2c9,_2ca){ this.parentLayer=_2c9; this.counter=0; this.browser=_2ca; }; MenuCreator.prototype={createMenu:function(Node){ var _2cc=null; if(Node.nodeName.toLowerCase()=="menu"){ _2cc=new MenuContainer(); var _2cd=Node.attributes; for(var i=0;i<_2cd.length;i++){ var _2cf=_2cd.item(i); if(_2cf.nodeName=="id"){ _2cc.id=_2cf.nodeValue; break; } } _2cc.menu=this.createSubMenu(Node); } return _2cc; },createSubMenu:function(node){ if(!node.hasChildNodes()){ return null; } var _2d1=node.childNodes; var sub=new Menu(this.counter++,this.parentLayer,this.browser); sub.fontName=node.getAttribute("fontName")==null||node.getAttribute("fontName")==""?"Arial":node.getAttribute("fontName"); sub.fontColor=node.getAttribute("fontColor")==null||node.getAttribute("fontColor")==""?"black":node.getAttribute("fontColor"); sub.cellColor=node.getAttribute("cellColor")==null||node.getAttribute("cellColor")==""?"white":node.getAttribute("cellColor"); sub.selectFontColor=node.getAttribute("selectFontColor")==null||node.getAttribute("selectFontColor")==""?"white":node.getAttribute("selectFontColor"); sub.selectCellColor=node.getAttribute("selectCellColor")==null||node.getAttribute("selectCellColor")==""?"gray":node.getAttribute("selectCellColor"); sub.fontSize=node.getAttribute("fontSize")==null||node.getAttribute("fontSize")==""?"9pt":parseInt(node.getAttribute("fontSize"))+"pt"; sub.borderColor=node.getAttribute("borderColor")==null||node.getAttribute("borderColor")==""?"#DBDFE2":parseInt(node.getAttribute("borderColor"))+"pt"; sub.borderSize=node.getAttribute("borderSize")==null||node.getAttribute("borderSize")==""?1:parseInt(node.getAttribute("borderSize")); try{ for(var i=0;i<_2d1.length;i++){ var _2d4=_2d1[i]; if(_2d4.nodeName.toLowerCase()=="menuitem"){ var item=new MenuItem(""); var _2d6=null; item.text=_2d4.getAttribute("text"); item.href=_2d4.getAttribute("href"); sub.appendItem(item); if(_2d4.hasChildNodes()){ var _2d6=this.createSubMenu(_2d4); if(_2d6!=null){ sub.appendMenu(item,_2d6); } } } } } catch(e){ } return sub; }};  