function PSTPopup() { // Styles this.title_style = "font-family:verdana,arial,helvetica; font-size:10px; font-weight:bold; color:#FFFFFF; background-color:#000000;"; this.content_style = "font-family:verdana,arial,helvetica; font-size:9px; font-weight:normal; color:#000000; background-color:#FFFFFF;"; this.width = 169; this.height = 100; this.border = 1; this.border_color = "#000000"; this.shadow = 0; this.shadow_color = "#DDDDDD"; this.skin = 1; this.absolutx = 0; this.absoluty = 0; this.offsetx = -165; this.offsety = 25; // Values this.x = 0; this.y = 0; this.snow = 0; this.sw = 0; this.cnt = 0; this.dir = "right"; // reg Values this.id = 0; this.layname = ""; this.layobj = null; this.laystyle= null; // Functions this.init = PSTPopup_init; this.popup = PSTPopup_popup; this.write = PSTPopup_write; this.display = PSTPopup_display; this.show = PSTPopup_show; this.hide = PSTPopup_hide; this.mousemove = PSTPopup_mousemove; this.move = PSTPopup_move; this.close = PSTPopup_close; // Init this.init(); } function PSTPopup_init() { // Add to Stack this.id=PST_stack.add(this); // Layer this.layname='fupPSTlayer'+this.id; document.write(''); document.write('
'); this.layobj=(ns6)? document.getElementById(this.layname) : document.all[this.layname]; this.laystyle=this.layobj.style; } // PST popup function PSTPopup_popup(title_text,content_text) { with (this) { html=''; if(skin) { html+='
'; } if (shadow) { html+=''; html+=''; html+=''; html+=''; html+=''; html+=''; html+=''; html+=''; html+=''; html+=''; html+=''; html+=''; html+=''; html+='
'; } html+=''; html+='
'; if (title_text) {html+='
'+title_text+'
';} html+='
'+content_text+'
'; html+='
'; if (shadow) { html+='
'; } if(skin) { html+='
'; } write(html); display(); } } // PST close function PSTPopup_close() { if (this.cnt>=1) {this.sw=0;} if (this.sw==0) { this.snow=0; this.hide(this.laystyle); } else { this.cnt++; } } function PSTPopup_write(html) { this.layobj.innerHTML=html; } function PSTPopup_display() { if (this.snow==0) { if (this.dir=="center") { this.move(this.laystyle,this.x+this.offsetx-(this.width/2),this.y+this.offsety); } else if (this.dir=="left") { this.move(this.laystyle,this.x-this.offsetx-this.width,this.y+this.offsety); } else { this.move(this.laystyle,this.x+this.offsetx,this.y+this.offsety); } this.show(this.laystyle); this.snow=1; } } function PSTPopup_mousemove(e) { if (e) { // NS this.x=e.pageX; this.y=e.pageY; } else { // IE this.x=event.x+document.body.scrollLeft; this.y=event.y+document.body.scrollTop; } // alert(this.x); if (this.snow) { if (this.dir=="center") { if (this.absolutx) {newx=this.absolutx;} else {newx=this.x+this.offsetx-(this.width/2);} } else if (this.dir=="left") { if (this.absolutx) {newx=this.absolutx;} else {newx=this.x-this.offsetx-this.width;} } else { if (this.absolutx) {newx=this.absolutx;} else {newx=this.x+this.offsetx} } if (this.absoluty) {newy=this.absoluty;} else {newy=this.y+this.offsety;} newx=Math.max(0,newx); newy=Math.max(0,newy); this.move(this.laystyle,newx,newy); } } function PSTPopup_show(obj) { obj.visibility = "visible"; } function PSTPopup_hide(obj) { obj.visibility = "hidden" } function PSTPopup_move(obj,x,y) { obj.left = x obj.top = y } function PSTPopup_stack() { this.PST = new Array(); this.add = PSTPopup_stack_add; } function PSTPopup_stack_add(addPST) { id=this.PST.length this.PST[id]=addPST; return id; } function fup_mousemove(e) { if (PST_stack) { for (a=0; apop_width)||(height>pop_height)) { var additionals=",scrollbars=yes,resizable=yes"; } else { var additionals=",scrollbars=no,resizable=no"; } var screenshot=window.open("/infopac/infopac_screenshot.php?id="+id,"screenshot","width="+pop_width+",height="+pop_height+additionals); if (screenshot) {screenshot.focus();} } // Browsercheck var ie4=document.all?1:0; var ns6=document.getElementById&&!document.all?1:0; // Vars4MouseOver var on_img=""; var on_txt=""; var preload_complete=0; var button=new Array(); var button_lo=new Array(); var button_hi=new Array(); var txt=new Array(); var swap_timer=null; // Global Inits var PST_stack=new PSTPopup_stack(); // EventHandler if (ns6||ie4) { document.onmousemove = fup_mousemove; if (ns6) document.captureEvents(Event.MOUSEMOVE); }