// jspw3x.js version 1.4.9===1.0.0
var gJspw3Obj="",gJspw3nm=0;function massage(wi,hi,g,t,l,n,v,b,clo){wi-=0;if(t != '')t-=0;if(l != '')l-=0;if(!window.isOther){var isOther=(navigator.userAgent.toLowerCase().indexOf("firebird")!=-1)?'fb':'';if(!isOther && (navigator.appName.toLowerCase()=='netscape')&&(parseInt(navigator.appVersion)==4))isOther='n4';window.isOther=isOther;}else var isOther=window.isOther;if(isOther != 'n4' && screen.availHeight){var h=screen.availHeight-30-7;if(isOther=='fb')h-=22;var w=screen.availWidth-10;}else{var adj=10;var h=screen.height;var w=screen.width;if(w<740)h=0.90*h-adj;if(w>=740 & w<835)h=0.91*h-adj;if(w>=835)h=0.93*h-adj;w-=adj;}if(Math.abs(l)>w-100)l=(l/Math.abs(l))*(w-100);if(Math.abs(l)<1&&Math.abs(l)>0.001)l=l*w;if(Math.abs(t)>h-100)t=(t/Math.abs(t))*(h-100);if(Math.abs(t)<1&&Math.abs(t)>0.001)t=t*h;if(n&&v.length>2){n=(n=='js')?0:1;v=v.split('.')[0]*(v.split('.')[1]-0+n);if(v>0)v+=15;}else v=0;var cnh=(hi-0)+v+(clo-0);if(!b){var rw=1,rh=1;if(wi>w)rw=w/wi;if(cnh>h)rh=h/cnh;wi=wi*Math.min(rh,rw);cnh=cnh*Math.min(rh,rw);var rh=1,rw=1;if(cnh>h-Math.abs(t))rh=(h-Math.abs(t))/cnh;if(wi>w-Math.abs(l))rw=(w-Math.abs(l))/wi;cnh=cnh*Math.min(rh,rw);wi=wi*Math.min(rh,rw);}var wh=Math.max(Math.min((cnh-0+2*g),(h-Math.abs(t))),100);var ww=Math.max(Math.min((wi-0+2*g),(w-Math.abs(l))),100);var pt=(h-wh)/2;var pl=(w-ww)/2;if(t!=''){if(t>=0){pt=t;}else pt=h+t-wh;}if(l!=''){if(l>=0){pl=l;}else pl=w+l-ww;}	if(pt<0)pt=0;if(pt>h-wh)pt=h-wh;if(pl<0)pl=0;if(pl>w-ww)pl=w-ww;return [parseInt(ww),parseInt(wh),parseInt(pt),parseInt(pl),parseInt(wi),parseInt(cnh-v-(clo-0))]}

function jspw3(d,m,f){ //v1.4 
	f=f.split(',');var b=f[15],u=f[17],c=f[0],sl="_v_w_d_";var hr="jspw3_pop.htm?"+eval('escape(m.replace(/\\//g,sl))');var ret=massage(f[10],f[11],f[12],f[13],f[14],f[1],String(f[2]),b,f[6]);if(ret!=''){hr+=","+ret[0]+","+c+","+escape(f[1])+","+f[2]+","+escape(f[3])+","+escape(f[4])+","+f[6]+","+f[7]+","+f[8]+","+f[9]+","+ret[4]+","+ret[5]+","+f[16]+","+f[19]+","+eval('d.replace(/\\//g,sl)')+","+escape(f[5]);b=(b)?"yes":"no";var features="resizable=yes,scrollbars="+b+",width="+ret[0]+",height="+ret[1]+",top="+ret[2]+",left="+ret[3];if(u&&!c){window.open(hr,gJspw3nm++,features);}else{if(gJspw3Obj && typeof gJspw3Obj=='object' && !gJspw3Obj.closed)gJspw3Obj.close();gJspw3Obj=window.open(hr,gJspw3nm++,features);}}else window.open(m);document.MM_returnValue=(f[18]==3);}

var dragapproved=false
var minrestore=0
var initialwidth,initialheight
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all
function iecompattest(){return(!window.opera&&document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function drag_drop(e){if(ie5&&dragapproved&&event.button==1){document.getElementById("dwindow").style.left=tempx+event.clientX-offsetx+"px"
document.getElementById("dwindow").style.top=tempy+event.clientY-offsety+"px"}
else if(ns6&&dragapproved){document.getElementById("dwindow").style.left=tempx+e.clientX-offsetx+"px"
document.getElementById("dwindow").style.top=tempy+e.clientY-offsety+"px"}}
function initializedrag(e){offsetx=ie5?event.clientX:e.clientX
offsety=ie5?event.clientY:e.clientY
document.getElementById("dwindowcontent").style.display="none"
tempx=parseInt(document.getElementById("dwindow").style.left)
tempy=parseInt(document.getElementById("dwindow").style.top)
dragapproved=true
document.getElementById("dwindow").onmousemove=drag_drop}
function loadwindow(url,width,height){if(!ie5&&!ns6)
window.open(url,"","width=width,height=height,scrollbars=1")
else{document.getElementById("dwindow").style.display=''
document.getElementById("dwindow").style.width=initialwidth=width+"px"
document.getElementById("dwindow").style.height=initialheight=height+"px"
document.getElementById("dwindow").style.left="30px"
document.getElementById("dwindow").style.top=ns6?window.pageYOffset*1+30+"px":iecompattest().scrollTop*1+30+"px"
document.getElementById("cframe").src=url}}
function maximize(){if(minrestore==0){minrestore=1
document.getElementById("maxname").setAttribute("src","restore.gif")
document.getElementById("dwindow").style.width=ns6?window.innerWidth-20+"px":iecompattest().clientWidth+"px"
document.getElementById("dwindow").style.height=ns6?window.innerHeight-20+"px":iecompattest().clientHeight+"px"}
else{minrestore=0
document.getElementById("maxname").setAttribute("src","max.gif")
document.getElementById("dwindow").style.width=initialwidth
document.getElementById("dwindow").style.height=initialheight}
document.getElementById("dwindow").style.left=ns6?window.pageXOffset+"px":iecompattest().scrollLeft+"px"
document.getElementById("dwindow").style.top=ns6?window.pageYOffset+"px":iecompattest().scrollTop+"px"}
function closeit(){document.getElementById("dwindow").style.display="none"}
function stopdrag(){dragapproved=false;document.getElementById("dwindow").onmousemove=null;document.getElementById("dwindowcontent").style.display=""}
