var drs = 0, moving = 0, resizing = 0, shf, def, rsh, dsh, bdf = 0, sht = 0, slt = 0, ba5 = 0, pla, nd9, absl = 1, ism3 = 0; var fia = 0, foa = 100, fis = 15, fii = 2, fos = 5, foi = 2, ddp = 0, bp3 = 0, dis = 15, sis = 10, sp7 = 0, fp5 = 0, fo4 = 0, tid1, tid2, tid3, tid4, isc, cth, ctw; var lhg = 0, dmt = document, nbl = 'none', ibl = 'block', nvi = 'hidden', ivi = 'visible', sct, isScri, na = navigator.userAgent; function de7(id) { return dmt.getElementById(id) } var w37 = (de7) ? true : false, mie = (w37 && dmt.all) ? true : false, ns = (w37 && !dmt.all) ? true : false, op = (na.indexOf('Opera') != -1); if (op) { var otmp = na.indexOf("Opera") + 6; opv = parseInt(na.charAt(otmp)); var op9 = (opv == 9) ? true : false; } if (mie) { mtmp = na.split("MSIE"); miv = parseFloat(mtmp[1]); var ieh = (miv >= 5.5) ? true : false; } window.onerror = function() { return true }; var xpos = new Array(), ypos = new Array(), pwidth = new Array, pheight = new Array, cpadg = new Array(), bwhg = new Array(), tbwg = new Array(), delX = new Array(), delY = new Array(); var MovexDiff = 0, MoveyDiff = 0, ResizexDiff = 0, ResizeyDiff = 0, z_index = 10000, Mousex = 0, Mousey = 0; function miebody() { return (dmt.compatMode && dmt.compatMode == "CSS1Compat") ? dmt.documentElement : dmt.body } if (dmt.compatMode == 'CSS1Compat') sct = true; else sct = false; function soh(id, bon, voh) { if (ush) de7(id + '_ash').style.display = bon; de7(id + '_border').style.display = bon; if (is6) de7(id + '_shadow').style.display = bon; de7(id + '_rsize').style.display = bon; de7(id + '_close').style.display = bon; de7(id + '_innercontent').style.display = bon; de7(id + '_title').style.display = bon; de7(id + '_border').style.visibility = voh; if (is6) de7(id + '_shadow').style.visibility = voh; de7(id + '_rsize').style.visibility = voh; de7(id + '_close').style.visibility = voh; de7(id + '_innercontent').style.visibility = voh; de7(id + '_title').style.visibility = voh; } function hide(id) { clearTimeout(dsh); clearInterval(rsh); clearTimeout(tid3); clearTimeout(tid4); soh(id, nbl, nvi) } function show(id) { if (absl && !drs && !ism3) setTimeout("UpdatePosition('" + id + "',xpos['" + id + "'],ypos['" + id + "'])", 150); dsh = setTimeout("soh('" + id + "',ibl,ivi)", 250); if (mie) { de7(id + '_border').style.filter = "alpha(opacity=100)"; de7(id + '_shadow').style.filter = "alpha(opacity=30)"; } else { de7(id + '_border').style.MozOpacity = 1; de7(id + '_shadow').style.MozOpacity = 0.3; } } function gsp() { sht = (mie) ? miebody().scrollTop : window.pageYOffset; slt = (mie) ? miebody().scrollLeft : window.pageXOffset; return sht, slt; } function UpdatePosition(id, x, y, m, evt) { ism3 = m; xpos[id] = x; ypos[id] = y; if (m) { Mousex = (mie) ? event.clientX + miebody().scrollLeft : evt.pageX; Mousey = (mie) ? event.clientY + miebody().scrollTop : evt.pageY; x = x + Mousex; y = y + Mousey; xpos[id] = x; ypos[id] = y; } else { gsp(); x += slt; y += sht; } de7(id + '_shadow').style.right = (x + shs) + 'px'; de7(id + '_shadow').style.top = (y + shs) + 'px'; de7(id + '_border').style.right = x + 'px'; de7(id + '_border').style.top = y + 'px'; if (ush) de7(nEl + '_ash').style.top = y + 'px'; if (ush) de7(nEl + '_ash').style.right = x + 'px'; } function adpDropin(id) { var tod; drs = 1; clearInterval(ddp); if (tod) clearTimeout(tod); tod = setTimeout("indl('" + id + "')", 200); } function indl(id) { var oa = pheight[id] + (2 * bwhg[id] + 2 * tbwg[id]); nd9 = 0; ba5 = 40; ddp = setInterval("dropdown('" + id + "','" + oa + "')", dis); } function dropdown(id, oa) { clearInterval(bp3); gsp(); if (nd9 == 0) { var delta = ypos[id] - 10 * Math.floor(ypos[id] / 10); if (ush) de7(id + '_ash').style.top = sht - 100 - delta - (10 * Math.round(parseInt(oa) / 10)) + 'px'; de7(id + '_border').style.top = sht - 100 + delta - (10 * Math.round(parseInt(oa) / 10)) + 'px'; de7(id + '_shadow').style.top = sht - 100 + delta - (10 * Math.round(parseInt(oa) / 10)) + shs + 'px'; nd9 += 1; } if (parseInt(de7(id + '_border').style.top) < ypos[id] + delY[id] + sht) { if (ush) de7(id + '_ash').style.top = parseInt(de7(id + '_border').style.top) + 10 + 'px'; de7(id + '_border').style.top = parseInt(de7(id + '_border').style.top) + 10 + 'px'; de7(id + '_shadow').style.top = parseInt(de7(id + '_shadow').style.top) + 10 + 'px'; if (ush) de7(id + '_ash').style.right = xpos[id] + delX[id] + 'px'; de7(id + '_border').style.right = xpos[id] + delX[id] + 'px'; de7(id + '_shadow').style.right = xpos[id] + delX[id] + shs + 'px'; } else { drs = 2; clearInterval(ddp); if (bng) { bp3 = setInterval("bouncedown('" + id + "')", 50); } else { if (isScr) ds8(id, pla); } } } function bouncedown(id) { if (ush) de7(id + '_ash').style.top = parseInt(de7(id + '_border').style.top) - ba5 + 'px'; de7(id + '_border').style.top = parseInt(de7(id + '_border').style.top) - ba5 + 'px'; de7(id + '_shadow').style.top = parseInt(de7(id + '_shadow').style.top) - ba5 + 'px'; if (ba5 < 0) ba5 += 10; ba5 = ba5 * -1; if (ba5 == 0) { clearInterval(bp3); if (isScr) ds8(id, pla); } } function adpFadein(id) { clearInterval(fp5); clearInterval(fo4); fia = 0; show(id); if (mie) { de7(id + '_border').style.filter = "alpha(opacity=0)"; de7(id + '_shadow').style.filter = "alpha(opacity=0)"; } else { de7(id + '_border').style.MozOpacity = 0; de7(id + '_shadow').style.MozOpacity = 0; } fp5 = setInterval("fadein('" + id + "')", fis); } function fadein(id) { fia += fii; if (fia <= 99) { if (mie) { de7(id + '_border').style.filter = "alpha(opacity=" + fia + ")"; de7(id + '_shadow').style.filter = "alpha(opacity=" + 3 * fia / 10 + ")"; } else { de7(id + '_border').style.MozOpacity = fia / 100; de7(id + '_shadow').style.MozOpacity = 3 * fia / 1000; } } else { clearInterval(fp5); } } function adpFadeout(id) { clearInterval(fo4); clearInterval(fp5); foa = 99; show(id); if (mie) { de7(id + '_border').style.filter = "alpha(opacity=100)"; de7(id + '_shadow').style.filter = "alpha(opacity=30)"; } else { de7(id + '_border').style.MozOpacity = 0.99; de7(id + '_shadow').style.MozOpacity = 0.3; } fo4 = setInterval("fadeout('" + id + "')", fos); } function fadeout(id) { foa -= foi; if (foa >= 1) { if (mie) { de7(id + '_border').style.filter = "alpha(opacity=" + foa + ")"; de7(id + '_shadow').style.filter = "alpha(opacity=" + 3 * foa / 10 + ")"; } else { de7(id + '_border').style.MozOpacity = foa / 100; de7(id + '_shadow').style.MozOpacity = 3 * foa / 1000; } } else { hide(id); clearInterval(fo4); } } function ds8(id, p) { if (mie) { miebody().onscroll = function() { UpdateScroll(id, xpos[id], ypos[id], p); }; } else { isScri = setInterval("UpdateScroll('" + id + "',xpos['" + id + "'],ypos['" + id + "'],'" + p + "')", 100); } } function UpdateScroll(id, x, y, p) { if (drs == 1) return; gsp(); sth(id, p); if (ush) de7(id + '_ash').style.top = (sht + cth + delY[id]) + 'px'; de7(id + '_border').style.top = (sht + cth + delY[id]) + 'px'; de7(id + '_shadow').style.top = (sht + cth + delY[id] + shs) + 'px'; if (ush) de7(id + '_ash').style.right = (slt + ctw + delX[id]) + 'px'; de7(id + '_border').style.right = (slt + ctw + delX[id]) + 'px'; de7(id + '_shadow').style.right = (slt + ctw + delX[id] + shs) + 'px'; } function wh5() { if (self.innerHeight) { pht = self.innerHeight; pwh = self.innerWidth; } else if (dmt.documentElement && sct) { pht = dmt.documentElement.offsetHeight; pwh = dmt.documentElement.offsetWidth; } else if (document.body) { pht = dmt.body.offsetHeight; pwh = dmt.body.offsetWidth; } } function adpPlace(id, p, fw) { gsp(); sth(id, p); if (fw == 1) ctw = 0; rsz(id, p, fw); UpdatePosition(id, ctw, cth); xpos[id] = ctw; ypos[id] = cth; } function rsz(id, p, fw, e) { if (fw == 1) { pwidth[id] = pwh - ((mie) ? 21 : 22) - 2 * bwhg[id] - 2 * tbwg[id]; UpdateSize(id, pwidth[id], pheight[id]); } window.onresize = function() { wh5(); gsp(); delY[id] = 0; delX[id] = 0; if (fw == 1) { pwidth[id] = pwh - ((mie) ? 21 : 22) - 2 * bwhg[id] - 2 * tbwg[id]; UpdateSize(id, pwidth[id], pheight[id]); } sth(id, p); cth = Math.floor(cth); ctw = Math.floor(ctw); UpdatePosition(id, ctw, cth, 0, e); } } function sth(id, p) { wh5(); if (p == 0) { cth = ypos[id]; ctw = xpos[id]; } if (p == 1) { cth = (pht / 2) - ((mie) ? 2 : 0) - ((pheight[id] + 2 * bwhg[id] + 2 * tbwg[id]) / 2); ctw = (pwh / 2) - ((mie) ? 10 : 8) - ((pwidth[id] + 2 * bwhg[id] + 2 * tbwg[id]) / 2); } if (p == 2) { cth = (pht) - ((mie) ? 4 : 0) - ((pheight[id] + 2 * bwhg[id])); ctw = (pwh / 2) - ((mie) ? 10 : 8) - ((pwidth[id] + 2 * bwhg[id]) / 2); } if (p == 3) { cth = (pht / 2) - ((mie) ? 2 : 0) - ((pheight[id] + 2 * bwhg[id] + 2 * tbwg[id]) / 2); ctw = 0; } if (p == 4) { cth = (pht / 2) - ((mie) ? 2 : 0) - ((pheight[id] + 2 * bwhg[id] + 2 * tbwg[id]) / 2); ctw = (pwh) - ((mie) ? 22 : 18) - ((pwidth[id] + 2 * bwhg[id] + 2 * tbwg[id])); } if (p == 5) { cth = 0; ctw = (pwh / 2) - ((mie) ? 10 : 8) - ((pwidth[id] + 2 * bwhg[id] + 2 * tbwg[id]) / 2); } if (p == 6) { cth = 0; ctw = 0; } if (p == 7) { cth = (pht) - ((mie) ? 4 : 0) - ((pheight[id] + 2 * bwhg[id])); ctw = 0; } if (p == 8) { cth = (pht) - ((mie) ? 4 : 0) - ((pheight[id] + 2 * bwhg[id])); ctw = (pwh) - ((mie) ? 22 : 18) - ((pwidth[id] + 2 * bwhg[id] + 2 * tbwg[id])); } if (p == 9) { cth = 0; ctw = (pwh) - ((mie) ? 22 : 18) - ((pwidth[id] + 2 * bwhg[id] + 2 * tbwg[id])); } cth = Math.floor(cth); ctw = Math.floor(ctw); } function NewElement(id, x, y, w, h, bgColour) { var adiv = dmt.createElement('div'); adiv.setAttribute('id', id); adiv.style.backgroundColor = bgColour; adiv.style.display = 'none'; adiv.style.padding = '0px 0px 0px 0px'; adiv.style.position = 'absolute'; adiv.style.right = x + 'px'; adiv.style.top = y + 'px'; adiv.style.width = w + 'px'; adiv.style.height = h + 'px'; return adiv; } function adp(adpid, text, titletext) { mnh = 50; mnw = 50; mxp = 15; mxb = 15; mxt = 5; x = 155; y = 30; w = 333; h = 580; sc5 = "#0F0F0F"; if8 = "bold 10pt @DotumChe"; it3 = "#FFFFFF"; ib8 = "transparent"; tc2 = "#FFFFFF"; tc3 = "#000000"; bc7 = "transparent"; ir9 = 0; oo7 = 0; im5 = 0; shf = 15; cc6 = 1; it9 = 0; is6 = 0; cpad = 0; bwh = 0; tbw = 3; pla = 0; is7 = 0; def = 0; shs = 0; isScr = 1; pcc = 0; tro = 5; tra = 6; rn = 1; bng = 0; cnm = 0; issp = 0; plt = 0; ifr = 0; fw7 = 0; w = Math.max(w, mnw); h = Math.max(h, mnh); cpad = Math.min(cpad, mxp); tbw = Math.min(tbw, mxt); tbw = 0; bwhg[adpid] = Math.min(bwh, mxb); cpadg[adpid] = cpad; tbwg[adpid] = tbw; xpos[adpid] = x; ypos[adpid] = y; pwidth[adpid] = w; pheight[adpid] = h; delX[adpid] = 0; delY[adpid] = 0; ush = (ifr && ieh && !op); if (it9) tsp = 20; else tsp = 0; if (!w37) return; if (Math.floor(Math.random() * rn) != 0) return isc = 1; alc = window.location.href; if (issp) { var sp = rca(adpid + '_sp'); if (sp) return isc = 1; else mca(adpid + '_sp', true, plt); } if (oo7) if (ac1(adpid)) return isc = 1; if (ush) { var ash = new adpiF(adpid + '_ash', xpos[adpid], ypos[adpid], w + 2 * bwhg[adpid] + shs + ((mie) ? 2 * tbw : 0), h + 2 * bwhg[adpid] + shs + ((mie) ? 2 * tbw : 0)); ash.style.zIndex = ++z_index; } var shadow = new NewElement(adpid + '_shadow', xpos[adpid] + shs, ypos[adpid] + shs, w + 2 * bwhg[adpid] + 2 * tbw, h + 2 * bwhg[adpid] + 2 * tbw, sc5); shadow.style.zIndex = ++z_index; if (mie) shadow.style.filter = "alpha(opacity=30)"; else shadow.style.MozOpacity = .3; var border = new NewElement(adpid + '_border', xpos[adpid], ypos[adpid], w + 2 * bwhg[adpid] + ((mie) ? 2 * tbw : 0), h + 2 * bwhg[adpid] + ((mie) ? 2 * tbw : 0), bc7); border.style.borderStyle = "outset"; border.style.borderWidth = tbw; border.style.borderColor = bc7; border.style.zIndex = ++z_index; var title = new NewElement(adpid + '_title', bwhg[adpid], bwhg[adpid], w - ((mie && !sct && !op9) ? 0 : 3), 20, tc3); title.style.overflow = "hidden"; title.style.borderStyle = "solid"; title.style.borderWidth = "0px"; title.style.borderColor = ""; title.style.padding = "0px 0px 0px 3px"; title.innerHTML = '<span style="position:absolute;top:1px;font:bold 9pt arial;color:' + tc2 + ';height:15px;overflow:hidden;">' + titletext + '</span>'; if (it9) { var innercontent = new NewElement(adpid + '_innercontent', bwhg[adpid], bwhg[adpid] + 20, w - ((mie && !sct && !op9) ? 0 : 2 * cpad), h - lhg - 20 - ((mie && !sct && !op9) ? 0 : 2 * cpad), ib8); } else { var innercontent = new NewElement(adpid + '_innercontent', bwhg[adpid], bwhg[adpid], w - ((mie && !sct && !op9) ? 0 : 2 * cpad), h - lhg - ((mie && !sct && !op9) ? 0 : 2 * cpad), ib8); } innercontent.style.borderColor = ""; innercontent.style.borderStyle = "inset"; innercontent.style.borderWidth = "0px"; if (is7) { innercontent.style.overflow = "auto"; } else { innercontent.style.overflow = "hidden"; } innercontent.style.padding = cpad + 'px'; innercontent.style.font = if8; innercontent.style.color = it3; var rsize = new NewElement(adpid + '_rsize', w + 2 * bwhg[adpid] - 9, h + 2 * bwhg[adpid] - 9, 9, 9, ''); var close = new NewElement(adpid + '_close', w + bwhg[adpid] - 20, bwhg[adpid], 20, 20, ''); border.appendChild(close); border.appendChild(rsize); border.appendChild(title); border.appendChild(innercontent); if (ush) dmt.body.appendChild(ash); dmt.body.appendChild(border); dmt.body.appendChild(shadow); innercontent.innerHTML = text; if (ir9) { rsize.style.background = 'url("resize.gif") no-repeat'; rsize.style.cursor = 'NW-resize'; rsize.style.zIndex = ++z_index; } if (cc6) { close.style.background = 'url("close.gif") no-repeat'; close.style.cursor = (mie) ? 'hand' : 'pointer'; close.style.zIndex = ++z_index; } rEl = de7(adpid + '_rsize'); tEl = de7(adpid + '_title'); cEl = de7(adpid + '_innercontent'); rEl.adpid = adpid; tEl.adpid = adpid; cEl.adpid = adpid; if (ir9) rEl.onmousedown = amre; if (im5) { tEl.style.cursor = 'move'; tEl.onmousedown = amre; if (cnm) { cEl.style.cursor = 'move'; cEl.onmousedown = amre; } } de7(adpid + '_close').onclick = new Function("hide('" + adpid + "');"); if (isScr) ds8(adpid, pla); if (pla != 0) setTimeout("adpPlace('" + adpid + "',pla,fw7);", 150); } function adpTimer(id, fid1, fid2, fid3, fid4, int1, int2) { id = "'" + id + "'"; clearTimeout(tid1); clearTimeout(tid2); clearTimeout(tid3); clearTimeout(tid4); tstr1 = '' + fid1 + '(' + id + ')'; tstr2 = '' + fid2 + '(' + id + ')'; tstr3 = '' + fid3 + '(' + id + ')'; tstr4 = '' + fid4 + '(' + id + ')'; tid1 = setTimeout(tstr1, 1000 * int1); tid2 = setTimeout(tstr2, 1000 * int1); tid3 = setTimeout(tstr3, 1000 * (int1 + int2)); tid4 = setTimeout(tstr4, 1000 * (int1 + int2)); }

