function Browser(){this.ie=!!(window.attachEvent&&navigator.userAgent.indexOf("Opera")===-1);this.opera=navigator.userAgent.indexOf("Opera")>-1;this.webkit=navigator.userAgent.indexOf("AppleWebKit/")>-1;this.gecko=navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")===-1;if(this.webkit){if(navigator.userAgent.indexOf("Chrome")>-1){this.chrome=true}else{if(navigator.userAgent.indexOf("Safari")>-1){this.safari=true}}}}Browser.prototype.ie=false;Browser.prototype.opera=false;Browser.prototype.webkit=false;Browser.prototype.chrome=false;Browser.prototype.safari=false;Browser.prototype.toString=function(){return"ie:"+this.ie+"\nopera:"+this.opera+"\nwebkit:"+this.webkit+"\ngecko:"+this.gecko};function EToolbar(b,a){this.paper=b;this.container=a;this.container.innerHTML=""}EToolbar.prototype.paper=false;EToolbar.prototype.container=false;EToolbar.prototype.add=function(a,b){try{if(a<0){this.container.insertBefore(b,this.container.firstChild)}else{if(a==0){this.container.appendChild(b)}else{this.container.insertBefore(b,this.container.childNodes[a-1])}}}catch(c){}};EToolbar.prototype.addButton=function(d,g,f,e){var c=document.createElement("img"),b=document.createElement("a");c.defaultsrc=c.src=g+".png";c.disableimg=new Image();c.disableimg.src=g+"_dis.png";c.hoverimg=new Image();c.hoverimg.src=g+"_hot.png";c.onmouseover=function(){if(c.src!=c.disableimg.src){c.src=c.hoverimg.src}};c.onmouseout=function(){if(c.src==c.hoverimg.src){c.src=c.defaultsrc}};b.href="#";b.onclick=e;b.appendChild(c);ETooltip(c,500,f);this.add(d,b);return b};EToolbar.prototype.disable=function(a){try{a.className="disabled";a.firstChild.src=a.firstChild.disableimg.src}catch(b){}};EToolbar.prototype.enable=function(a){try{a.className="";a.firstChild.src=a.firstChild.defaultsrc}catch(b){}};function EPaper(c,a){var b=this,d=document.getElementById("nojs");this.browser=new Browser();if(typeof(EPaperConfig)!="undefined"){this.config=EPaperConfig}this.index=c;this.res2=(a.length>1);this.previewRes=a;this.pageContainer=document.createElement("div");this.pageContainer.style.position="absolute";this.pageContainer.style.top=this.toolbarHeight+"px";this.pageContainer.style.left="0px";this.pageContainer.style.overflow="hidden";this.indexContainer=document.createElement("div");this.indexContainer.style.position="absolute";this.indexContainer.style.top=this.toolbarHeight+"px";this.indexContainer.style.left="0px";this.indexContainer.style.overflow="hidden";this.indexList=document.createElement("div");this.indexList.style.position="absolute";this.indexList.style.top="0";this.indexList.style.left="0";this.indexList.style.overflow="auto";this.indexSwitch=document.createElement("div");this.indexSwitch.style.position="absolute";this.indexSwitch.style.top="0";this.indexSwitch.style.right="0";this.indexSwitch.style.width="10px";this.indexSwitch.className="sideswitch";this.indexSwitch.onclick=function(){b.displayMode=(b.displayMode==1?0:1);b.sidepane=(b.displayMode==1);b.updateWindowSize()};this.indexContainer.appendChild(this.indexList);this.indexContainer.appendChild(this.indexSwitch);this.browserContainer=document.createElement("div");this.browserContainer.className="browser";this.browserContainer.style.position="absolute";this.browserContainer.style.top=this.toolbarHeight+"px";this.browserContainer.style.left="0px";this.browserContainer.style.overflow="hidden";document.getElementsByTagName("body")[0].appendChild(this.browserContainer);document.getElementsByTagName("body")[0].appendChild(this.pageContainer);document.getElementsByTagName("body")[0].appendChild(this.indexContainer);this.toolbar=new EToolbar(this,document.getElementById("navi"));this.b_index=this.toolbar.addButton(0,"../menu/index",this.config.but_index_text,function(){b.goIndex()});this.b_book=this.toolbar.addButton(0,"../menu/book",this.config.but_book_text,function(){b.goBook()});this.b_prev=this.toolbar.addButton(0,"../menu/prev",this.config.but_prev_text,function(){b.goPrev()});this.b_next=this.toolbar.addButton(0,"../menu/next",this.config.but_next_text,function(){b.goNext(-1)});this.b_zoomin=this.toolbar.addButton(0,"../menu/zoom_in",this.config.but_zIn_text,function(){b.zoom(1)});this.b_zoomout=this.toolbar.addButton(0,"../menu/zoom_out",this.config.but_zOut_text,function(){b.zoom(-1)});this.b_print=this.toolbar.addButton(0,"../menu/print",this.config.print_but_text,function(){b.openPDF()});this.b_find=this.toolbar.addButton(0,"../menu/find_button",this.config.search_but_text,function(){b.find()});this.b_help=this.toolbar.addButton(0,"../menu/help",this.config.help_but_text,function(){b.help()});this.pagenumber=new EPageNum(this);this.toolbar.add(4,this.pagenumber.container);this.pagedepartment=new EPageDep(this);this.pagedepartment.set(this.config.index_text?this.config.index_text:"");this.toolbar.add(3,this.pagedepartment.container);this.search=new ESearch(this);this.toolbar.add(10,this.search.container);if(this.config.search_tip_text){ETooltip(this.search.container,500,this.config.search_tip_text)}if(this.res2){this.book=new EBook(this,this.browserContainer,this.previewRes[1])}this.indexList.appendChild(this.index.createIndex(function(e){b.showPage(e)}));if(this.config&&this.config.initial_book){this.goBook()}else{this.updateWindowSize()}this.cThumb=new ECropThumb(this);document.onmouseup=function(){if(b.current){b.current.endMove()}};window.onresize=function(){b.updateWindowSize()};if(this.browser.ie||this.browser.opera||this.browser.webkit){document.onmousewheel=function(f){b.wheel(f)}}else{if(this.browser.gecko){window.addEventListener("DOMMouseScroll",function(f){b.wheel(f)},false)}}if(this.browser.ie){document.onselectstart=function(){var g=window.event;var f=g.target?g.target:(g.srcElement?g.srcElement:null);if(f.nodeName.toLowerCase()=="input"){return true}return false}}document.onkeyup=function(g){var f=(window.event?window.event.keyCode:g.which);if(f==39){b.goNext()}else{if(f==37){b.goPrev()}}};this.zoom_in=document.createElement("img");this.zoom_in.src="../mzoom_in.png";this.zoom_in.style.position="absolute";this.zoom_in.style.display="none";this.zoom_in.style.zIndex="1000";this.zoom_out=document.createElement("img");this.zoom_out.src="../mzoom_out.png";this.zoom_out.style.position="absolute";this.zoom_out.style.zIndex="1000";this.zoom_out.style.display="none";document.getElementsByTagName("body")[0].appendChild(this.zoom_in);document.getElementsByTagName("body")[0].appendChild(this.zoom_out);this.preloadQ=Array();if(d){d.style.display="none";d.parentNode.removeChild(d)}}EPaper.prototype.winW=0;EPaper.prototype.winH=0;EPaper.prototype.viewW=0;EPaper.prototype.viewH=0;EPaper.prototype.toolbar=false;EPaper.prototype.toolbarHeight=40;EPaper.prototype.sidebarWidth=200;EPaper.prototype.current=false;EPaper.prototype.index=false;EPaper.prototype.res2=false;EPaper.prototype.displayMode=2;EPaper.prototype.sidepane=true;EPaper.prototype.cThumb=false;EPaper.prototype.config=false;EPaper.prototype.preloadQ=false;EPaper.prototype.preloadC=false;EPaper.prototype.browserContainer=false;EPaper.prototype.curBrowser=false;EPaper.prototype.book=false;EPaper.prototype.imagebrowser=false;EPaper.prototype.videobrowser=false;EPaper.prototype.pagenumber=false;EPaper.prototype.res=1;EPaper.prototype.searchTpl="epapersearch_nt";EPaper.prototype.showPage=function(e,a,f){var d=false,b=this,e=e;for(var c=0;c<this.index.pages.length;c++){if(this.index.pages[c]==e){if(c+1<this.index.pages.length){d=this.index.pages[c+1]}if(this.pagenumber){this.pagenumber.set(c+1,this.index.pages.length)}}}if(this.pagedepartment){this.pagedepartment.set(e.department)}if(this.current&&this.current!=e){this.current.hide()}this.current=e;if(this.displayMode>1){this.displayMode=(this.sidepane?1:0)}if(d){e.createPage(this.res-1,this.pageContainer,function(){b.preload(d)},a,f)}else{e.createPage(this.res-1,this.pageContainer,false,a,f)}this.updateWindowSize()};EPaper.prototype.zoom=function(a){if(this.displayMode<2){if(this.res+a>0&&this.res+a<=2){var b=this.current.getPos();this.current.hide();this.res+=a;this.showPage(this.current,b.x,b.y)}}};EPaper.prototype.setRes=function(a){this.res=a};EPaper.prototype.goNext=function(){if(this.displayMode==3&&this.curBrowser){this.curBrowser.next()}else{for(var a=1;a<this.index.pages.length;a++){if(this.index.pages[a-1]==this.current){this.showPage(this.index.pages[a]);return}}}};EPaper.prototype.goPrev=function(){if(this.displayMode==3&&this.curBrowser){this.curBrowser.prev()}else{for(var a=1;a<this.index.pages.length;a++){if(this.index.pages[a]==this.current){this.showPage(this.index.pages[a-1]);return}}}};EPaper.prototype.goIndex=function(){this.displayMode=2;this.updateWindowSize();if(this.pagenumber){this.pagenumber.set(" "," ")}if(this.pagedepartment){this.pagedepartment.set(this.config.index_text?this.config.index_text:"")}};EPaper.prototype.goBook=function(){if(this.curBrowser!=this.book||this.displayMode!=3){this.curBrowser=this.book;if(this.current){for(var a=0;a<this.index.pages.length;a++){if(this.index.pages[a]==this.current){this.book.setcurrent(a)}}}this.book.display();this.displayMode=3;this.updateWindowSize()}};EPaper.prototype.goVideo=function(){if(this.curBrowser!=this.videobrowser||this.displayMode!=3){this.curBrowser=this.videobrowser;this.videobrowser.display();this.displayMode=3;this.updateWindowSize()}};EPaper.prototype.goImage=function(){if(this.curBrowser!=this.imagebrowser||this.displayMode!=3){this.curBrowser=this.imagebrowser;this.imagebrowser.display();this.displayMode=3;this.updateWindowSize()}};EPaper.prototype.SetSearchTpl=function(a){this.searchTpl=a};EPaper.prototype.find=function(){var a=this.config.edoris_url+"?tem="+this.searchTpl+"&search="+escape(this.search.getValue());EQuery(a,true,function(c){if(c.readyState==4){if(c.responseXML&&c.responseXML.documentElement){var e=c.responseXML.documentElement;if(e.nodeName=="search"){var b=e.getElementsByTagName("result")[0];if(b){paper.findResult(GetNodeText(b).split(","));return}var d=e.getElementsByTagName("error")[0];if(d){alert(paper.config.search_failed_text+":\n"+GetNodeText(d))}}}else{alert(paper.config.search_failed_text+":\n"+paper.config.no_eds_server)}}})};EPaper.prototype.findResult=function(b){try{if(this.findresultwin){this.findresultwin.parentNode.removeChild(this.findresultwin)}}catch(f){}if(b.length==1&&b[0]!=""){if(this.displayMode==2){this.displayMode=3}this.showPage(this.index.pages[parseInt(b[0])-1])}else{if(b.length>1){var l=elPos(this.search.container),d=document.createElement("div"),j=document.createElement("h1"),n=document.createElement("a"),g=document.createElement("ul");d.className="searchresult";d.style.position="absolute";d.style.top=(l.y+35)+"px";d.style.left=(l.x+3)+"px";document.getElementsByTagName("body")[0].appendChild(d);this.findresultwin=d;j.appendChild(document.createTextNode(this.config.search_result_text));n.appendChild(document.createTextNode(this.config.close_text));n.onclick=function(){d.parentNode.removeChild(d)};n.href="#";j.appendChild(n);d.appendChild(j);d.appendChild(g);for(var c=0;c<b.length;c++){if(parseInt(b[c])-1<this.index.pages.length){var h=this.index.pages[parseInt(b[c])-1],m=document.createElement("li"),k=document.createElement("a");k.innerHTML=b[c]+" - "+h.department;k.href="#"+b[c];k.page=h;k.onclick=function(){if(paper.displayMode==2){paper.displayMode=3}paper.showPage(this.page);d.parentNode.removeChild(d)};m.appendChild(k);g.appendChild(m)}}}else{alert(this.config.search_noresults_text)}}};EPaper.prototype.help=function(){window.open("../help.html","epaper_help","location=0,menubar=0,resizable=1,toolbar=0,width=400,height=600,scrollbars=1")};EPaper.prototype.openPDF=function(){if(this.displayMode<2&&this.current){for(var a=0;a<this.index.pages.length;a++){if(this.index.pages[a]==this.current){window.open((a+1)+".pdf","epaper_pdf","location=0,menubar=1,resizable=1,toolbar=0,width=800,height=500,scrollbars=0")}}}};EPaper.prototype.ready=function(){for(var a=0;a<this.index.pages.length&&a<2;a++){this.preload(this.index.pages[a])}};EPaper.prototype.preload=function(a){this.preloadQ.push(a);if(!this.preloadC){this.preloadReady()}};EPaper.prototype.preloadReady=function(b){var a=this;if(this.preloadQ.length>0){this.preloadQ.shift().createPage(this.res-1,false,function(c){a.preloadReady(c)})}};EPaper.prototype.wheel=function(a){if(!this.current){return}var c=0,b=MouseFromEvent(a);if(b.y<this.toolbarHeight||b.x<parseInt(this.indexContainer.style.width)){return}if(this.browser.ie){var a=window.event;c=a.wheelDelta/120}else{if(this.browser.opera){c=a.wheelDelta/120}else{if(this.browser.webkit){c=a.wheelDelta/360}else{if(this.browser.gecko){c=-a.detail/3}}}}if(c&&this.current){this.current.move(this.current.x,this.current.y+50*c)}};EPaper.prototype.updateWindowSize=function(){if(typeof(window.innerWidth)=="number"){this.winW=window.innerWidth;this.winH=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){this.winW=document.documentElement.clientWidth;this.winH=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){this.winW=document.body.clientWidth;this.winH=document.body.clientHeight}}}this.viewH=this.winH-this.toolbarHeight;this.viewW=this.winW;if(this.displayMode==2){if(this.browserContainer&&this.browserContainer.style.display!="none"){}EFade(this.browserContainer,1,0,200,function(){paper.browserContainer.style.display="none";paper.browserContainer.style.opacity="1"});this.pageContainer.style.display="none";this.indexSwitch.style.display="none";this.indexList.style.width=this.winW+"px";this.indexContainer.style.width=this.winW+"px";this.indexContainer.style.display="block"}else{if(this.displayMode==1){if(this.browserContainer&&this.browserContainer.style.display!="none"){}EFade(this.browserContainer,1,0,200,function(){paper.browserContainer.style.display="none";paper.browserContainer.style.opacity="1"});this.indexSwitch.style.display="block";this.indexSwitch.className="sideswitch min";this.indexList.style.width=this.sidebarWidth-10+"px";this.indexContainer.style.width=this.sidebarWidth+"px";this.indexContainer.style.display="block";this.viewW=this.winW-this.sidebarWidth;this.pageContainer.style.display="block";this.pageContainer.style.width=this.viewW+"px";this.pageContainer.style.left=this.sidebarWidth+"px"}else{if(this.displayMode==0){if(this.browserContainer&&this.browserContainer.style.display!="none"){}EFade(this.browserContainer,1,0,200,function(){paper.browserContainer.style.display="none";paper.browserContainer.style.opacity="1"});this.indexSwitch.style.display="block";this.indexSwitch.className="sideswitch exp";this.indexContainer.style.width="10px";this.indexContainer.style.display="block";this.viewW=this.winW-10;this.pageContainer.style.width=this.viewW+"px";this.pageContainer.style.display="block";this.pageContainer.style.left=10+"px"}else{if(this.displayMode==3){this.pageContainer.style.display="none";this.indexContainer.style.display="none";this.browserContainer.style.width=this.viewW+"px";this.browserContainer.parentNode.appendChild(this.browserContainer);if(this.browserContainer.style.display!="block"){EFade(this.browserContainer,0,1,200)}this.browserContainer.style.display="block";this.curBrowser.updateLayout()}}}}this.pageContainer.style.height=this.indexContainer.style.height=this.indexList.style.height=this.indexSwitch.style.height=this.browserContainer.style.height=this.viewH+"px";if(this.displayMode<2&&this.current){this.current.move(this.current.x,this.current.y,true)}if(this.displayMode==2){if(this.b_book){this.toolbar.enable(this.b_book)}if(this.b_video){this.toolbar.enable(this.b_video)}if(this.b_image){this.toolbar.enable(this.b_image)}this.toolbar.disable(this.b_zoomin);this.toolbar.disable(this.b_zoomout);this.toolbar.disable(this.b_print);this.toolbar.disable(this.b_next);this.toolbar.disable(this.b_prev);this.toolbar.disable(this.b_index)}else{if(this.displayMode<2){if(this.res==1){this.toolbar.enable(this.b_zoomin);this.toolbar.disable(this.b_zoomout)}else{this.toolbar.disable(this.b_zoomin);this.toolbar.enable(this.b_zoomout)}this.toolbar.enable(this.b_print);if(this.b_book){this.toolbar.enable(this.b_book)}if(this.b_video){this.toolbar.enable(this.b_video)}if(this.b_image){this.toolbar.enable(this.b_image)}this.toolbar.enable(this.b_next);this.toolbar.enable(this.b_prev);this.toolbar.enable(this.b_index)}else{if(this.displayMode==3){if(this.curBrowser==this.book){if(this.b_book){this.toolbar.disable(this.b_book)}if(this.b_video){this.toolbar.enable(this.b_video)}if(this.b_image){this.toolbar.enable(this.b_image)}}else{if(this.curBrowser==this.videobrowser){if(this.b_video){this.toolbar.disable(this.b_video)}if(this.b_image){this.toolbar.enable(this.b_image)}if(this.b_book){this.toolbar.enable(this.b_book)}}else{if(this.curBrowser==this.imagebrowser){if(this.b_image){this.toolbar.disable(this.b_image)}if(this.b_book){this.toolbar.enable(this.b_book)}if(this.b_video){this.toolbar.enable(this.b_video)}}}}this.toolbar.disable(this.b_zoomin);this.toolbar.disable(this.b_zoomout);this.toolbar.disable(this.b_print);this.toolbar.enable(this.b_next);this.toolbar.enable(this.b_prev);this.toolbar.enable(this.b_index)}}}};EPaper.prototype.AddVideoBrowser=function(b){var a=this;this.videobrowser=new EImgBrowser(this,this.browserContainer,b);this.b_video=this.toolbar.addButton(3,"../menu/video",this.config.but_video_text,function(){a.goVideo()})};EPaper.prototype.AddImageBrowser=function(b){var a=this;this.imagebrowser=new EImgBrowser(this,this.browserContainer,b);this.b_image=this.toolbar.addButton(3,"../menu/image",this.config.but_image_text,function(){a.goImage()})};function EPageNum(b,a){this.paper=b;this.toolbar=a;this.container=document.createElement("div");this.container.className="pagenumber";this.inner=document.createElement("span");this.container.appendChild(this.inner)}EPageNum.prototype.paper=false;EPageNum.prototype.toolbar=false;EPageNum.prototype.container=false;EPageNum.prototype.set=function(b,a){this.inner.innerHTML=b+" / "+a};function EPageDep(h){this.paper=h;this.container=document.createElement("div");this.container.className="pagedepartment";this.containerInner=document.createElement("div");this.containerInner2=document.createElement("div");this.inner=document.createElement("span");this.container.appendChild(this.containerInner);this.containerInner.appendChild(this.containerInner2);this.containerInner2.appendChild(this.inner);this.list=document.createElement("div");this.list.className="deplist";this.list.style.position="absolute";this.list.style.display="none";document.getElementsByTagName("body")[0].appendChild(this.list);var g=false,f=false;for(var e=0;e<this.paper.index.pages.length;e++){if(g!=this.paper.index.pages[e].department||!f){var d=document.createElement("h1");d.innerHTML=this.paper.index.pages[e].department;f=document.createElement("ul");this.list.appendChild(d);this.list.appendChild(f)}var b=document.createElement("li"),c=document.createElement("a");c.innerHTML=e+1;c.href="#"+(e+1);c.page=this.paper.index.pages[e];c.onclick=function(){if(h.displayMode==2){h.displayMode=3}h.showPage(this.page)};b.appendChild(c);f.appendChild(b);g=this.paper.index.pages[e].department}this.setEvents(this.container);this.setEvents(this.list)}EPageDep.prototype.hideTimer=false;EPageDep.prototype.paper=false;EPageDep.prototype.container=false;EPageDep.prototype.set=function(a){this.inner.innerHTML=a};EPageDep.prototype.setEvents=function(c){if(c.nodeType!=1){return}var a=this;c.onmouseover=function(){a.showList()};c.onmouseout=function(){a.hideList()};for(var b=0;b<c.childNodes.length;b++){this.setEvents(c.childNodes[b])}};EPageDep.prototype.showList=function(){var a=elPos(this.container);this.list.style.top=(a.y+35)+"px";this.list.style.left=(a.x-1)+"px";this.list.style.display="block";if(this.hideTimer){clearTimeout(this.hideTimer)}};EPageDep.prototype.hideList=function(){var a=this;if(this.hideTimer){clearTimeout(this.hideTimer)}this.hideTimer=setTimeout(function(){a.list.style.display="none"},200)};function ESearch(a){this.paper=a;this.container=document.createElement("div");this.container.className="search";this.containerInner=document.createElement("div");this.input=document.createElement("input");this.input.type="text";this.input.onkeyup=function(b){if(!b){var b=window.event;b.cancelBubble=true;b.returnValue=false}else{b.preventDefault();b.stopPropagation()}if(b.keyCode==13||b.which==13){a.find()}return false};this.input.onfocus=function(){this.select()};this.container.appendChild(this.containerInner);this.containerInner.appendChild(this.input)}ESearch.prototype.paper=false;ESearch.prototype.container=false;ESearch.prototype.getValue=function(){return this.input.value};function EBook(f,a,e){this.paper=f;this.container=a;this.pageWo=e.x;this.pageHo=e.y;this.pageContainer=document.createElement("div");this.pageContainer.style.position="relative";this.pageContainer.className="book";this.pages=Array();this.left=document.createElement("div");this.pageContainer.appendChild(this.left);this.left.style.position="absolute";this.left.style.left="0";this.left.style.top="0";this.right=document.createElement("div");this.pageContainer.appendChild(this.right);this.right.style.position="absolute";this.right.style.right="0";this.right.style.top="0";var c=this;this.right.onmouseup=this.left.onmouseup=function(h){try{if(!h){var h=window.event;h.cancelBubble=true;h.returnValue=false}else{h.preventDefault();h.stopPropagation()}var g=h.target?h.target:(h.srcElement?h.srcElement:null);if(c.mdown){if(g==c.left){c.next()}else{c.prev()}}}catch(h){}};for(var d=0;d<this.paper.index.pages.length;d++){var b=document.createElement("img");b.style.display="none";b.src=this.paper.index.pages[d].imgB;b.page=this.paper.index.pages[d];b.style.position="absolute";b.style.top="0";if(this.pageWo&&this.pageHo){b.style.width=this.pageWo+"px";b.style.height=this.pageHo+"px"}if((d+1)%2==0){b.style.right="0";this.left.appendChild(b)}else{b.style.left="0";this.right.appendChild(b)}if(d==0){b.style.display="block"}b.onclick=function(j){try{var h=j?j:window.event,i=h.target?h.target:(h.srcElement?h.srcElement:null),m=elPos(i),k=MouseFromEvent(h),g=(k.x-m.x)/parseInt(i.style.width)*100,l=(k.y-m.y)/parseInt(i.style.height)*100;c.paper.showPage(this.page,g,l)}catch(j){c.paper.showPage(this.page)}};b.onmousedown=function(h){try{if(!h){var h=window.event;h.cancelBubble=true;h.returnValue=false}else{h.preventDefault();h.stopPropagation()}var g=h.target?h.target:(h.srcElement?h.srcElement:null);c.mdown=g}catch(h){}};b.onmouseup=function(h){try{if(!h){var h=window.event;h.cancelBubble=true;h.returnValue=false}else{h.preventDefault();h.stopPropagation()}var g=h.target?h.target:(h.srcElement?h.srcElement:null);if(c.mdown!=g){if(g.parentNode==c.left){c.next()}else{c.prev()}}}catch(h){}};b.onmouseover=function(g){var h=MouseFromEvent(g);f.zoom_in.style.display="block";f.zoom_in.style.top=h.y+"px";f.zoom_in.style.left=(h.x+15)+"px";if(!document.all){document.captureEvents(Event.MOUSEMOVE)}document.onmousemove=function(i){if(!i){var i=window.event}var j=MouseFromEvent(i);f.zoom_in.style.display="block";f.zoom_in.style.top=j.y+"px";f.zoom_in.style.left=(j.x+15)+"px"}};b.onmouseout=function(g){document.onmousemove=function(){};f.zoom_out.style.display="none";f.zoom_in.style.display="none"};this.pages.push(b)}}EBook.prototype.paper=false;EBook.prototype.container=false;EBook.prototype.pages=false;EBook.prototype.current=0;EBook.prototype.pageW=0;EBook.prototype.pageH=0;EBook.prototype.pageWo=0;EBook.prototype.pageHo=0;EBook.prototype.speed=400;EBook.prototype.anim=false;EBook.prototype.flipping=false;EBook.prototype.display=function(){this.updateNumbers();while(this.container.firstChild){this.container.removeChild(this.container.firstChild)}this.container.appendChild(this.pageContainer)};EBook.prototype.setPageSize=function(a,b,c){this.pageW=a;this.pageH=b;this.right.style.width=this.left.style.width=this.pageW+2+"px";this.pageContainer.style.height=this.right.style.height=this.left.style.height=this.pageH+2+"px";this.pageContainer.style.width=this.pageW*2+2+"px";if(!c){this.updateLayout()}};EBook.prototype.updateLayout=function(){if(this.pageHo>this.paper.viewH){var b=this.paper.viewH/this.pageHo;this.setPageSize(b*this.pageWo,b*this.pageHo,true);for(var c=0;c<this.pages.length;c++){this.pages[c].style.width=b*this.pageWo+"px";this.pages[c].style.height=b*this.pageHo+"px"}}else{if(this.pageH!=this.pageHo){this.setPageSize(this.pageWo,this.pageHo,true);for(var c=0;c<this.pages.length;c++){this.pages[c].style.width=this.pageWo+"px";this.pages[c].style.height=this.pageHo+"px"}}}var a=Math.floor(this.paper.viewW/2-this.pageW),d=Math.floor(this.paper.viewH/2-this.pageH/2);this.pageContainer.style.top=d+"px";this.pageContainer.style.left=a+"px";this.pageContainer.style.position="absolute"};EBook.prototype.updateNumbers=function(){if(this.paper.pagenumber){var a=this.current+1;if(this.current>0){a=(this.current)+"-"+a}if(this.current+1>=this.pages.length){a=this.current}this.paper.pagenumber.set(a,this.pages.length);if(this.paper.pagedepartment){if(this.paper.index.pages.length>this.current){this.paper.pagedepartment.set(this.paper.index.pages[this.current].department)}else{this.paper.pagedepartment.set(this.paper.index.pages[this.paper.index.pages.length-1].department)}}}this.setcurrent(this.current)};EBook.prototype.next=function(){if(this.flipping){return}var a=this;if(this.current+1<this.pages.length){var b=false;if(this.current+2<this.pages.length){b=this.pages[this.current+2]}this.change(this.pages[this.current],b,1,function(){var c=false;if(a.current>0){c=a.pages[a.current-1]}a.change(a.pages[a.current+1],c,0,function(){try{a.pages[a.current].style.display="none";a.pages[a.current-1].style.display="none"}catch(d){}a.current+=2;try{a.pages[a.current].style.display="block";a.pages[a.current-1].style.display="block"}catch(d){}a.updateNumbers()})})}};EBook.prototype.prev=function(){if(this.flipping){return}var a=this;if(this.current>0){var b=false;if(this.current-3>0){b=this.pages[this.current-3]}this.change(this.pages[this.current-1],b,1,function(){a.change(a.pages[a.current-2],a.pages[a.current],0,function(){try{a.pages[a.current].style.display="none";a.pages[a.current-1].style.display="none"}catch(c){}a.current-=2;try{a.pages[a.current].style.display="block";a.pages[a.current-1].style.display="block"}catch(c){}a.updateNumbers()})})}};EBook.prototype.setcurrent=function(a){if(a<this.pages.length){if(a%2==1){a++}this.current=a;for(var b=0;b<this.pages.length;b++){if(b==a-1||b==a){this.pages[b].style.display="block";this.pages[b].style.width=this.pageW+"px";this.pages[b].style.height=this.pageH+"px"}else{this.pages[b].style.display="none";if(this.paper.browser.ie){this.pages[b].parentNode.appendChild(this.pages[b])}}}document.getElementsByTagName("body")[0].className=""}};EBook.prototype.change=function(a,d,b,c){if(this.flipping){return}this.flipping=true;a.style.display="block";a.style.zIndex="102";if(d){d.style.zIndex="101";d.style.display="block"}this.flip(a,b,c)};EBook.prototype.flip=function(c,e,f){var i=new Date(),g=0;if(!this.flipstart){this.flipstart=i.getTime()}g=i.getTime()-this.flipstart;var h=(g/this.speed)*(Math.PI/2),a=0;if(h>Math.PI/2){h=Math.PI/2}if(e==0){a=Math.abs(Math.round(Math.cos(h+Math.PI/2)*this.pageW))}else{a=Math.abs(Math.round(Math.cos(h)*this.pageW))}c.style.width=a+"px";c.style.height=this.pageH+"px";if(h>=Math.PI/2){if(a==0){c.style.display="none"}this.flipstart=false;this.flipping=false;if(f){f()}}else{var b=this,c=c,e=e,f=f;if(this.anim){clearTimeout(this.anim)}this.anim=setTimeout(function(){b.flip(c,e,f)},10)}};function ECropThumb(a){this.paper=a;this.container=document.createElement("div");this.container.className="cropthumb";this.container.style.zIndex="100";this.img=document.createElement("img");this.img.style.display="none";this.container.appendChild(this.img);this.crop=document.createElement("div");this.crop.className="crop";this.crop.style.zIndex="101";this.container.appendChild(this.crop);this.paper.pageContainer.appendChild(this.container)}ECropThumb.prototype.paper=false;ECropThumb.prototype.container=false;ECropThumb.prototype.crop=false;ECropThumb.prototype.maxW=200;ECropThumb.prototype.maxH=200;ECropThumb.prototype.timer=false;ECropThumb.prototype.update=function(){this.container.style.opacity="1";this.container.style.display="block";var a=this,b=this.fit(this.paper.current.width[this.paper.current.res],this.paper.current.height[this.paper.current.res]);this.container.style.width=b.w+"px";this.container.style.height=b.h+"px";this.crop.style.width=b.scale*this.paper.viewW+"px";this.crop.style.height=b.scale*this.paper.viewH+"px";this.crop.style.left=this.paper.current.x*-b.scale+"px";this.crop.style.top=this.paper.current.y*-b.scale+"px";if(this.paper.current&&this.paper.current.img){this.img.src=this.paper.current.img;this.img.style.width=this.container.style.width;this.img.style.height=this.container.style.height;this.img.style.display="block";this.crop.style.backgroundImage="url("+this.paper.current.img+")";this.crop.style.backgroundPosition=this.paper.current.x*b.scale+"px "+this.paper.current.y*b.scale+"px"}else{this.img.style.display="none"}if(this.timer){clearTimeout(this.timer)}this.timer=setTimeout(function(){a.Hide()},500)};ECropThumb.prototype.fit=function(a,b){var c=0;if(a>b){c=this.maxW/a}else{c=this.maxH/b}return{scale:c,w:a*c,h:b*c}};ECropThumb.prototype.Hide=function(g,e){if(this.timer){clearTimeout(this.timer)}var c=300,g=g||0,e=e||0,f=new Date(),b=f.getTime(),a=this;if(!g){e=b;g=parseFloat(this.container.style.opacity)}else{if(b-e>c){this.container.style.display="none";if(this.timer){clearTimeout(this.timer)}return}else{this.container.style.opacity=g-g*((b-e)/c)}}this.timer=setTimeout(function(){a.Hide(g,e)},5)};function EIndex(a){this.pages=a}EIndex.prototype.pages=false;EIndex.prototype.container=false;EIndex.prototype.createIndex=function(f){if(this.container){return this.container}this.container=document.createElement("div");this.container.className="index";var d=false,e=false,a=0;for(var c=0;c<this.pages.length;c++){if(d!=this.pages[c].department||!e){e=document.createElement("div");e.className="department"+a++%2;var b=document.createElement("h1");b.className="department";b.innerHTML=this.pages[c].department;e.appendChild(b);this.container.appendChild(e)}e.appendChild(this.pages[c].createThumb(f,c+1));d=this.pages[c].department}return this.container};function EPage(b,a,d,c){this.url=b;this.img=a;this.department=d;if(c){this.imgB=c}this.data=new Array(false,false);this.page=new Array(false,false);this.width=new Array(0,0);this.height=new Array(0,0)}EPage.prototype.url=false;EPage.prototype.img=false;EPage.prototype.imgB=false;EPage.prototype.department="";EPage.prototype.data=false;EPage.prototype.page=false;EPage.prototype.thumb=false;EPage.prototype.width=false;EPage.prototype.height=false;EPage.prototype.x=0;EPage.prototype.y=0;EPage.prototype.oldx=0;EPage.prototype.oldy=0;EPage.prototype.images=0;EPage.prototype.imagesLoaded=0;EPage.prototype.onload=false;EPage.prototype.res=0;EPage.prototype.createThumb=function(g,f){if(this.thumb){return this.thumb}var d=this,g=g,c=document.createElement("img"),e=document.createElement("span"),b=document.createElement("a");c.src=this.img;e.innerHTML=f;b.appendChild(c);b.appendChild(e);b.href="#";b.onclick=function(){g(d)};this.thumb=document.createElement("div");this.thumb.className="pagethumb";this.thumb.appendChild(b);return this.thumb};EPage.prototype.hide=function(){if(this.page[0]&&this.page[0].parentNode){this.page[0].parentNode.removeChild(this.page[0])}if(this.page[1]&&this.page[1].parentNode){this.page[1].parentNode.removeChild(this.page[1])}};EPage.prototype.createPage=function(f,b,g,a,h){if(b){this.res=f}if(this.page[f]){if(b){b.appendChild(this.page[f]);paper.updateWindowSize();if(a||h){this.panTo(a,h)}else{this.move(0,0)}}if(g){g(this)}return}else{if(!this.data[f]){this.load(true,f,b,g,a,h);return}}this.onload=g;var c=this,e=document.createElement("div"),d=document.createElement("div");e.innerHTML=this.data[f];this.page[f]=e.firstChild;this.page[f].className="paperpane";this.images=0;this.imagesLoaded=0;this.setEventHandlers(this.page[f]);this.width[f]=parseInt(this.page[f].attributes.getNamedItem("width").value);this.height[f]=parseInt(this.page[f].attributes.getNamedItem("height").value);this.page[f].style.position="absolute";d.style.width=this.page[f].style.width=this.width[f]+"px";d.style.height=this.page[f].style.height=this.height[f]+"px";d.style.position="absolute";d.style.left=d.style.top="0px";d.style.zIndex="5";d.onclick=function(l){var j=l?l:window.event;c.endMove();if(((paper.browser.ie&&j.button==1)||(!paper.browser.ie&&j.button==0))&&(j.ctrlKey||j.shiftKey)){try{var k=j.target?j.target:(j.srcElement?j.srcElement:null),o=elPos(k),m=MouseFromEvent(j),i=(m.x-o.x)/parseInt(k.style.width)*100,n=(m.y-o.y)/parseInt(k.style.height)*100;if(paper.res==1&&j.ctrlKey){paper.setRes(2)}else{if(paper.res==2&&j.shiftKey){paper.setRes(1)}}c.hide();paper.showPage(c,i,n)}catch(l){}}};this.page[f].appendChild(d);if(b){b.appendChild(this.page[f]);paper.updateWindowSize();if(a||h){this.panTo(a,h)}else{this.move(0,0)}}};EPage.prototype.panTo=function(a,f){try{var d=paper.viewW/2-Math.floor((parseInt(a)/100)*this.width[this.res]),c=paper.viewH/2-Math.floor((parseInt(f)/100)*this.height[this.res]);this.move(Math.floor(d),Math.floor(c))}catch(b){}};EPage.prototype.getPos=function(){var a=0,b=0;if(paper.viewW<this.width[this.res]){a=((this.x*-1)+paper.viewW/2)/this.width[this.res]*100}if(paper.viewH<this.height[this.res]){b=((this.y*-1)+paper.viewH/2)/this.height[this.res]*100}return{x:a,y:b}};EPage.prototype.setEventHandlers=function(c){var a=this;c.onmousedown=function(d){a.beginMove(d)};c.onclick=function(d){a.endMove()};c.onmouseup=function(d){a.endMove()};if(c.nodeName.toLowerCase()=="img"){this.images++;if(c.complete){this.imagesLoaded++;this.updateStatus()}else{c.onload=function(){a.imgLoaded(c)}}}else{for(var b=0;b<c.childNodes.length;b++){this.setEventHandlers(c.childNodes[b])}}};EPage.prototype.imgLoaded=function(a){this.imagesLoaded++;this.updateStatus()};EPage.prototype.updateStatus=function(){var f=Array(200,80,0),c=Array(145,255,0),e=Math.floor(f[0]+((c[0]-f[0])/this.images)*this.imagesLoaded),d=Math.floor(f[1]+((c[1]-f[1])/this.images)*this.imagesLoaded),a=Math.floor(f[2]+((c[2]-f[2])/this.images)*this.imagesLoaded);this.thumb.firstChild.firstChild.style.borderColor="rgb("+e.toString()+","+d.toString()+","+a.toString()+")";if(this.imagesLoaded>=this.images){if(this.onload){this.onload(this)}this.onload=false}};EPage.prototype.beginMove=function(b){if(!b){var b=window.event;b.cancelBubble=true;b.returnValue=false}else{b.preventDefault();b.stopPropagation()}var a=this,c=MouseFromEvent(b);this.mousex=c.x;this.mousey=c.y;this.oldx=this.x;this.oldy=this.y;window.focus();if(!document.all){document.captureEvents(Event.MOUSEMOVE)}document.onmousemove=function(d){if(!d){var d=window.event;d.cancelBubble=true;d.returnValue=false}else{d.preventDefault();d.stopPropagation()}var f=MouseFromEvent(d);a.move(a.oldx+(f.x-a.mousex),a.oldy+(f.y-a.mousey))}};EPage.prototype.endMove=function(){try{document.onmousemove=false}catch(a){document.onmousemove=""}};EPage.prototype.move=function(a,c,b){if(!this.page[this.res]){return}var a=a,c=c;if(a!=this.x||b){if(a>0||paper.viewW>this.width[this.res]){a=0}else{if(a<paper.viewW-this.width[this.res]){a=paper.viewW-this.width[this.res]}}this.x=a;this.page[this.res].style.left=this.x+"px"}if(c!=this.y||b){if(c>0||paper.viewH>this.height[this.res]){c=0}else{if(c<paper.viewH-this.height[this.res]){c=paper.viewH-this.height[this.res]}}this.y=c;this.page[this.res].style.top=this.y+"px"}if(paper.cThumb){paper.cThumb.update()}};EPage.prototype.load=function(e,d,b,f,a,g){var c=this,e=e,b=b,f=f,a=a,g=g,d=d;EQuery((d==0?this.url:"B"+this.url),true,function(h){if(h.readyState==4){c.data[d]=h.responseText;if(e){c.createPage(d,b,f,a,g)}}})};function EQuery(b,c,d){var a=EXmlHttp();if(c){a.onreadystatechange=function(){d(a)}}a.open("GET",b,c);a.send("");if(!c){d(a)}return a}function EXmlHttp(){var a;try{a=new XMLHttpRequest()}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){MessageBox("Your browser does not support AJAX!")}}}return a}function ETooltip(b,a,c){b.onmouseover_tip=b.onmouseover;b.onmouseout_tip=b.onmouseout;b.tip_timer=false;b.tip=false;var c=c,a=a,b=b;b.onmouseover=function(d){if(b.onmouseover_tip){b.onmouseover_tip(d)}if(b.tip_timer){clearTimeout(b.tip_timer)}if(!d){var d=window.event}var f=MouseFromEvent(d);b.tip_timer=setTimeout(function(){if(!b.tip){b.tip=document.createElement("div");b.tip.className="tooltip";b.tip.style.position="absolute";b.tip.style.zIndex="1000";document.getElementsByTagName("body")[0].appendChild(b.tip)}b.tip.style.left=(f.x+0)+"px";b.tip.style.top=(f.y+20)+"px";b.tip.innerHTML=c},a)};b.onmouseout=function(d){if(b.onmouseout_tip){b.onmouseout_tip(d)}if(b.tip_timer){clearTimeout(b.tip_timer)}if(b.tip){b.tip.parentNode.removeChild(b.tip);b.tip=false}}}function GetNodeText(b){var c="";if(b&&b.childNodes){for(var a=0;a<b.childNodes.length;a++){if(b.childNodes[a].nodeType==3){c+=b.childNodes[a].nodeValue}else{if(b.childNodes[a].nodeType==1){c+=GetNodeText(b.childNodes[a])}}}}return c}function elPos(b){var a=b.offsetLeft,d=b.offsetTop,c=b.offsetParent;while(c!=null){a+=c.offsetLeft;d+=c.offsetTop;c=c.offsetParent}return{x:a,y:d}}function MouseFromEvent(a){if(!a){var a=window.event}var b={x:0,y:0};if(a.pageX||a.pageY){b.x=a.pageX;b.y=a.pageY}else{if(a.clientX||a.clientY){b.x=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;b.y=a.clientY+document.body.scrollTop+document.documentElement.scrollTop}}return b}function EImgBrowser(c,b,a){this.paper=c;this.container=b;this.images=a}EImgBrowser.prototype.paper=false;EImgBrowser.prototype.container=false;EImgBrowser.prototype.images=false;EImgBrowser.prototype.current=0;EImgBrowser.prototype.display=function(){while(this.container.firstChild){this.container.removeChild(this.container.firstChild)}this.show(this.current)};EImgBrowser.prototype.updateLayout=function(a){this.show(this.current)};EImgBrowser.prototype.show=function(b){var a=this.images[b],d=a.getElem(),c;a.fit(this.paper.viewW,this.paper.viewH);c=a.getSize();d.style.left=Math.floor(this.paper.viewW/2-c.w/2);d.style.top=Math.floor(this.paper.viewH/2-c.h/2);this.current=b;EFade(d,0,1,200);this.container.appendChild(d);this.paper.pagenumber.set(b+1,this.images.length);if(this.paper.pagedepartment&&this.images[b].getPage()-1>0&&this.images[b].getPage()-1<this.paper.index.pages.length){this.paper.pagedepartment.set(this.paper.index.pages[this.images[b].getPage()-1].department)}};EImgBrowser.prototype.hide=function(c){var b=this.images[c],d=b.getElem(),a=this;EFade(d,1,0,200,function(){a.container.removeChild(d)})};EImgBrowser.prototype.change=function(b,a){this.hide(b);this.show(a)};EImgBrowser.prototype.next=function(){if(this.images.length>this.current+1){this.change(this.current,this.current+1)}};EImgBrowser.prototype.prev=function(){if(this.current>0){this.change(this.current,this.current-1)}};function EImg(g,f,e,a,d){this.iWidth=a;this.iHeight=d;this.page=f;this.container=document.createElement("div");this.container.className="browserimg";this.container.style.position="absolute";this.img=document.createElement("img");this.img.src=g;var b=this;this.img.onclick=function(){paper.showPage(paper.index.pages[b.page-1])};var c=document.createElement("div");c.className="pagenumber";c.innerHTML=this.page;this.caption=document.createElement("div");this.caption.className="caption";this.caption.innerHTML=e;this.container.appendChild(this.img);this.container.appendChild(this.caption);this.container.appendChild(c)}EImg.prototype.container=false;EImg.prototype.img=false;EImg.prototype.page=0;EImg.prototype.caption=false;EImg.prototype.captionH=20;EImg.prototype.width=false;EImg.prototype.height=false;EImg.prototype.iWidth=false;EImg.prototype.iHeight=false;EImg.prototype.getElem=function(){return this.container};EImg.prototype.getSize=function(){return{w:this.width,h:this.height}};EImg.prototype.getPage=function(){return this.page};EImg.prototype.fit=function(a,c){var b=EFit(a,c,this.iWidth,this.iHeight+this.captionH);this.width=b.w;this.height=b.h;this.img.style.width=this.width+"px";this.img.style.height=(this.height-this.captionH)+"px";this.caption.style.width=this.container.style.width=this.width+"px";this.container.style.height=this.height+"px"};function EVideo(f,d,c){this.page=d;this.container=document.createElement("div");this.container.className="browservideo";this.container.style.width=this.iWidth+"px";this.container.style.height=(this.iHeight+this.captionH)+"px";this.container.style.position="absolute";var b=document.createElement("div");b.className="pagenumber";b.innerHTML=this.page;this.caption=document.createElement("div");this.caption.innerHTML=c;this.caption.className="caption";var e=f.split("."),a=e[e.length-1].toLowerCase();if(a=="flv"){this.container.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"width="'+this.iWidth+'" height="'+this.iHeight+'"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"><param name="movie" value="../flv_player.swf" /><param name="play" value="false" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="scale" value="scale" /><param name="salign" value="lt" /><param name="wmode" value="opaque" /><param name="bgcolor" value="#000000" /><param name="FlashVars" value="video1='+f+'"/><embed src="../flv_player.swf" width="'+this.iWidth+'" height="'+this.iHeight+'" name="FLVPlayer_local" align="middle" play="true" loop="false" quality="high" scale="scale" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="video1='+f+'"/></object>'}else{if(a=="mp4"){this.container.innerHTML='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"width="100%" height="100%"codebase="http://www.apple.com/qtactivex/qtplugin.cab"><param name="autoplay" value="false"><param name="controller" value="true"><param name="loop" value="true"><param name="src" value="'+f+'"> <EMBED src="'+f+'" width="470" height="411" autoplay="false" onmouseover="Play();" onmouseout="Stop();" controller="true" loop="true" pluginspage="http://www.apple.com/quicktime/download/>"></embed></object>'}else{if(a=="ogg"||a=="ogv"){this.container.innerHTML='<video width="'+this.iWidth+'" height="'+this.iHeight+'" src="'+f+'" controls>Your browser does not support openvideo.</video>'}else{this.container.innerHTML="<b>"+a+"</b> not supported."}}}this.container.appendChild(this.caption);this.container.appendChild(b)}EVideo.prototype.container=false;EVideo.prototype.caption=false;EVideo.prototype.page=0;EVideo.prototype.captionH=20;EVideo.prototype.width=false;EVideo.prototype.height=false;EVideo.prototype.iWidth=600;EVideo.prototype.iHeight=337;EVideo.prototype.getElem=function(){return this.container};EVideo.prototype.getSize=function(){return{w:this.width,h:this.height}};EVideo.prototype.getPage=function(){return this.page};EVideo.prototype.fit=function(a,c){var b=EFit(a,c,this.iWidth,this.iHeight+this.captionH);this.width=b.w;this.height=b.h;this.caption.style.width=this.container.style.width=this.width+"px";this.container.style.height=this.height+"px"};function EFit(e,b,a,c){var d=1;if(e<a){d=e/a}if(b<c&&b/c<d){d=b/c}return{scale:d,w:a*d,h:c*d}}function EFade(d,b,f,e,i,h){var d=d,b=b,f=f,e=e,i=i,h=h,c=new Date(),a=c.getTime();if(!h){h=a}if(a-h>e){if(document.all){d.style.filter="alpha(opacity = "+Math.round(f*100)+")"}else{d.style.opacity=f}if(i){i()}}else{var g=b+(f-b)*((a-h)/e);if(document.all){d.style.filter="alpha(opacity = "+Math.round(g*100)+")"}else{d.style.opacity=g}setTimeout(function(){EFade(d,b,f,e,i,h)},5)}};