function wppa_full_popup(a, b, c, d, e) { var f = e + 50; var g = d + 14; var h = ""; var i = ""; var j = document.getElementById("i-" + b + "-" + a); if (j) { h = j.alt; i = j.title } var k = window.open("", "Print", "width=" + g + ", height=" + f + ", location=no, resizable=no, menubar=yes "); k.document.write("<html>"); k.document.write("<head>"); k.document.write('<style type="text/css">body{margin:0; padding:6px; background-color:' + wppaBackgroundColorImage + "; text-align:center;}</style>"); k.document.write("<title>" + h + "</title>"); k.document.write('<script type="text/javascript">function wppa_print(){document.getElementById("wppa_printer").style.visibility="hidden"; window.print(); }</script>'); k.document.write("</head>"); k.document.write("<body>"); k.document.write('<div style="width:' + d + 'px;">'); k.document.write('<img src="' + c + '" style="padding-bottom:6px;" /><br/>'); k.document.write('<div style="text-align:center">' + i + "</div>"); var l = d - 30; k.document.write('<img src="' + wppaImageDirectory + 'printer.png" id="wppa_printer" title="Print" style="position:absolute; top:6px; left:' + l + "px; background-color:" + wppaBackgroundColorImage + '; padding: 2px; cursor:pointer;" onclick="wppa_print();" />'); k.document.write("</div>"); k.document.write("</body>"); k.document.write("</html>") } function wppa_popdown(a, b) { var c; if (!a) var a = window.event; if (a.which) c = a.which == 3; else if (a.button) c = a.button == 2; if (c) { jQuery("#wppa-popup-" + b).html(""); return false } } function wppa_popready(a) { jQuery("#wppa-name-" + a).show(); jQuery("#wppa-desc-" + a).show(); jQuery("#wppa-rat-" + a).show() } function wppa_popup(a, b, c, d) { var e, f, g, h; var i, j, k, l, m; var n; if (c == wppa_saved_id[a]) return; wppa_saved_id[a] = c; clearTimeout(_wppaTimer[a]); if (document.getElementById("x-" + c + "-" + a)) { switch (wppaPopupLinkType) { case "none": jQuery("#wppa-popup-" + a).html('<div class="wppa-popup" onmousedown="wppa_popdown(event,' + a + ')" style="background-color:' + wppaBackgroundColorImage + '; text-align:center;"><img id="wppa-img-' + a + '" src="' + b.src + '" title="" style="border-width: 0px;" /><div id="wppa-name-' + a + '" style="display:none; padding:2px;" class="wppa_pu_info">' + b.alt + '</div><div id="wppa-desc-' + a + '" style="clear:both; display:none;" class="wppa_pu_info">' + b.title + '</div><div id="wppa-rat-' + a + '" style="clear:both; display:none;" class="wppa_pu_info">' + d + "</div></div>"); break; case "fullpopup": jQuery("#wppa-popup-" + a).html('<div class="wppa-popup" onmousedown="wppa_popdown(event,' + a + ')" style="background-color:' + wppaBackgroundColorImage + '; text-align:center;"><img id="wppa-img-' + a + '" src="' + b.src + '" title="" style="border-width: 0px;" onclick="' + wppaPopupOnclick[c] + '" /><div id="wppa-name-' + a + '" style="display:none; padding:2px;" class="wppa_pu_info">' + b.alt + '</div><div id="wppa-desc-' + a + '" style="clear:both; display:none;" class="wppa_pu_info">' + b.title + '</div><div id="wppa-rat-' + a + '" style="clear:both; display:none;" class="wppa_pu_info">' + d + "</div></div>"); break; default: jQuery("#wppa-popup-" + a).html('<div class="wppa-popup" onmousedown="wppa_popdown(event,' + a + ')" style="background-color:' + wppaBackgroundColorImage + '; text-align:center;"><a id="wppa-a" href="' + document.getElementById("x-" + c + "-" + a).href + '"><img id="wppa-img-' + a + '" src="' + b.src + '" title="" style="border-width: 0px;" /></a><div id="wppa-name-' + a + '" style="display:none; padding:2px;" class="wppa_pu_info">' + b.alt + '</div><div id="wppa-desc-' + a + '" style="clear:both; display:none;" class="wppa_pu_info">' + b.title + '</div><div id="wppa-rat-' + a + '" style="clear:both; display:none;" class="wppa_pu_info">' + d + "</div></div>") } } n = document.getElementById("wppa-img-" + a); if (n) jQuery(".wppa_pu_info").css("width", (n.clientWidth > n.clientHeight ? n.clientWidth : n.clientHeight) - 8 + "px"); h = parseInt(b.offsetLeft) - 7 - 5 - 1; f = parseInt(b.offsetTop) - 7 - 5 - 1; l = parseInt(b.clientWidth); j = parseInt(b.clientHeight); k = n.clientWidth; i = parseInt(n.clientHeight); m = n.clientWidth > n.clientHeight ? n.clientWidth : n.clientHeight; g = h - parseInt((m - l) / 2); e = f - parseInt((i - j) / 2); jQuery("#wppa-popup-" + a).css({ marginLeft: h + "px", marginTop: f + "px" }); jQuery("#wppa-img-" + a).css({ width: l + "px", height: j + "px" }); jQuery("#wppa-popup-" + a).stop().animate({ marginLeft: g + "px", marginTop: e + "px" }, 400); jQuery("#wppa-img-" + a).stop().animate({ width: k + "px", height: i + "px" }, 400); _wppaTimer[a] = setTimeout("wppa_popready(" + a + ")", 400) } var wppaBackgroundColorImage = ""; var _wppaTimer = new Array; var wppa_saved_id = new Array; var wppaPopupLinkType = ""; var wppaPopupOnclick = new Array
