function zoom(ob, w, h, sp) { wNow = ob.style.Width; hNow = ob.style.Height; var v = sp - 1; if (wNow < (w - v)) { wNow = wNow + sp; } else { if (wNow > (w + v)) { wNow = wNow - sp; } else { wNow = w; } } if (hNow < (h - v)) { hNow = hNow + sp; } else { if (hNow > (h + v)) { hNow = hNow - sp; } else { hNow = h; } } ob.style.Width = wNow; ob.style.Height = hNow; tmn = window.setTimeout("zoom("+ob.id+","+w+","+h+","+sp+")", 1); } function init() { makeFlash(Glow) } function makeFlash(obj) { obj.flashTimer = setInterval("Glow.filters.glow.enabled = !Glow.filters.glow.enabled", 250) } function MOV(i, x, y, a) { i.isMoving = 1; yNow = i.style.posTop; xNow = i.style.posLeft; var b = a - 1; if (xNow < (x - b)) { xNow = xNow + a; } else { if (xNow > (x + b)) { xNow = xNow - a; } else { xNow = x; } } if (yNow < (y - b)) { yNow = yNow + a; } else { if (yNow > (y + b)) { yNow = yNow - a; } else { yNow = y; } } i.style.posLeft = xNow; i.style.posTop = yNow; if (yNow == y && xNow == x) { i.isMoving = 0; if (i.onMoveo != null) { i.onMoveo(); } return; } ab1 = window.setTimeout("MOV("+i.id+","+x+","+y+","+a+");", 1); } var timerID function StopBackground() { clearTimeout(timerID) } function AnimateBackground(hPos,vPos,hInc,vInc,delay) { if (arguments[5]) document.body.style.backgroundImage = "url(\"" + arguments[5] + "\")" if (arguments[6]) document.body.style.backgroundRepeat = arguments[6] if (!isNaN(hPos)) { if ((hInc!=0) && (hPos>0)) hPos=-100000 hPos+=hInc } if (!isNaN(vPos)) { if ((vInc!=0) && (vPos>0)) vPos=-100000 vPos+= vInc } document.body.style.backgroundPosition= hPos + " " + vPos if (isNaN(hPos)) hPos = "\"" + hPos + "\"" if (isNaN(vPos)) vPos = "\"" + vPos + "\"" timerID = setTimeout("AnimateBackground("+hPos+","+vPos+","+hInc+","+vInc+","+delay+")",delay) } function mover(id) { id.style.cursor = "hand"; id.style.background = "#ee2288"; id.style.color ="#ffffff"; } function mout(id) { id.style.background = "#CC0066"; id.style.color ="#ffffff"; } function mclk(id, i) { id.style.background = "#ffaaff"; id.style.color ="#000000"; go = new Array("hp.htm", "java.htm", "develop.htm", "vcd.htm", "cdw.htm", "dtp.htm", "dtp.htm#scan", "dtp.htm#meisi", "dtp.htm#pc", "dtp.htm#T", "dtp.htm#dpe", "down.htm", "prof.htm", "link.htm", "web.htm", "web.htm#flash", "web.htm#av", "link.htm"); window.location.href = go[i]; } var count = 0; function Fade(obj, i) { if (count >= 0) { obj.filters(0).Opacity = count; obj.filters(0).FinishOpacity = count; count += i; } tm = window.setTimeout("Fade("+ obj.id +","+ i +")", 100); }