﻿function ppImg(a) { ppImg2(a, a, 'divImg', 430, 370); } function ppImg1(a, b) { var c = this.document.getElementById(b); ppImg2(a, c, 'divImg', 430, 370); } function ppImg2(a, b, c, d, e) { var f = b.src.replace('_th.', '.'); var g = this.document.getElementById(c); divStyle = g.style; if (divStyle.display == 'none') { divStyle.display = 'block'; divStyle.zIndex = 100; divStyle.position = 'absolute'; a.style.position = 'absolute'; var h = sgf4(); var i = sgf5(); var j = i[0]; var k = i[1]; var l = h[0] + j; var m = h[1] + k; var n = (h[1] / 2) + k; var o = sgf1(a); var p = sgf2(a); var q = a.offsetWidth; var r = a.offsetHeight; var s = 0; var t = 0; if (e > h[1]) t = k; else t = n - e / 2; if (((o + q / 2) - j) < ((l - j) / 2)) { s = o + q; } else { s = o - d; }; divStyle.left = s + 'px'; divStyle.top = t + 'px'; a.style.position = ''; var u = '<img src="' + f + '" alt="" border="1" />'; g.innerHTML = innerHTML = u; } else divStyle.display = 'none'; } function ppHide() { ppHide2('divImg'); } function ppHide2(a) { this.document.getElementById(a).style.display = 'none' } function sgf1(a) { return sgf3(a) ? 0 : a.offsetLeft + sgf1(a.offsetParent); } function sgf2(a) { return sgf3(a) ? 0 : a.offsetTop + sgf2(a.offsetParent); } function sgf3(a) { return ((a === null) || (a === undefined)); } function sgf4() { var a = 0, b = 0; if (typeof (this.window.innerWidth) == 'number') { a = this.window.innerWidth; b = this.window.innerHeight; } else if (this.document.documentElement && (this.document.documentElement.clientWidth || this.document.documentElement.clientHeight)) { a = this.document.documentElement.clientWidth; b = this.document.documentElement.clientHeight; } else if (this.document.body && (this.document.body.clientWidth || this.document.body.clientHeight)) { a = this.document.body.clientWidth; b = this.document.body.clientHeight; } return [a, b]; } function sgf5() { var a = 0, b = 0; if (typeof (this.window.pageYOffset) == 'number') { b = this.window.pageYOffset; a = this.window.pageXOffset; } else if (this.document.body && (this.document.body.scrollLeft || this.document.body.scrollTop)) { b = this.document.body.scrollTop; a = this.document.body.scrollLeft; } else if (this.document.documentElement && (this.document.documentElement.scrollLeft || this.document.documentElement.scrollTop)) { b = this.document.documentElement.scrollTop; a = this.document.documentElement.scrollLeft; } return [a, b]; }
