// Popup-Script
var afpl = false;function gpd(dv,wh){absV=0;calV=parseInt(dv);calV=(calV<1)?1:(calV>100)?100:calV;absV=Math.round((calV * (eval('screen.'+wh)/100)));return absV;}function gsc(wh){cp = Math.round(eval('screen.'+wh+'-openPopup_'+wh)/2);return cp;}function pps(){aa=arguments[0].split(',');rs=',left='+aa[0]+',top='+aa[1];return rs;}function wps(){aa=arguments[0].split(',');sb=false;tb=false;st=false;lb=false;di=false;mb=false;rz=false;for (i=0;i<aa.length;i++){sb = (aa[i].indexOf('scrollbars') != -1)? aa[i]:(!sb)? 'scrollbars=no':sb;tb = (aa[i].indexOf('toolbar') != -1)? aa[i]:(!tb)? 'toolbar=no':tb;st = (aa[i].indexOf('status') != -1)? aa[i]:(!st)? 'status=no':st;lb = (aa[i].indexOf('location') != -1)? aa[i]:(!lb)? 'location=no':lb;di = (aa[i].indexOf('directories') != -1)? aa[i]:(!di)? 'directories=no':di;mb = (aa[i].indexOf('menubar') != -1)? aa[i]:(!mb)? 'menubar=no':mb;rz = (aa[i].indexOf('resizable') != -1)? aa[i]:(!rz)? 'resizable=no':rz;}rs=','+sb+','+tb+','+st+','+lb;return rs;}function pds(){aa = arguments[0].split(',');bName=navigator.appName;bApp=navigator.appVersion;bVer=parseInt(navigator.appVersion);ns4=(document.layers||(bName.indexOf('Netscape')>=0&&bVer<5))?true:false;ie4=(document.all&&document.styleSheets)?true:false;ns5=(document.getElementById&&!document.all)?true:false;op5=(document.all&&!document.styleSheets)?true:false;win=(bApp.indexOf('Win')>=0)?true:false;mac=(bApp.indexOf('Mac')>=0)?true:false;diw =(ie4&&win)?aa[0]:(ns4&&win)?aa[2]:(ns5&&win)?aa[4]:(op5&&win)?aa[6]:(ie4&&mac)?aa[8]:(ns4&&mac)?aa[10]:(ns5&&mac)?aa[12]:(op5&&mac)?aa[14]:0;dih=(ie4&&win)?aa[1]:(ns4&&win)?aa[3]:(ns5&&win)?aa[5]:(op5&&win)?aa[7]:(ie4&&mac)?aa[9]:(ns4&&mac)?aa[11]:(ns5&&mac)?aa[13]:(op5&&mac)?aa[15]:0;pw=parseInt(openPopup_width)+parseInt(diw);ph=parseInt(openPopup_height)+parseInt(dih);rs='width='+pw+',height='+ph;return rs;}function openPopup(){pa=new Array('customPosition','customParams','browserDiff');for (i=0;i<pa.length;i++) eval('openPopup_'+pa[i]+'=false');openPopup_popupUrl = arguments[0];openPopup_width=(typeof(arguments[1])=='string'&&arguments[1].indexOf('%')>-1)?gpd(arguments[1],'width'):arguments[1];openPopup_height=(typeof(arguments[2])=='string'&&arguments[2].indexOf('%')>-1)?gpd(arguments[2],'height'):arguments[2];opo=(arguments.length>3)?arguments[3]:'';if(opo!=''){opo=opo.slice(1,opo.length);opoArray = opo.split('-');for (i=0;i<opoArray.length;i++){for (j=0;j<pa.length;j++){eval('openPopup_'+pa[j]+' = (opoArray[i].indexOf("'+pa[j]+'") != -1 && typeof(opoArray[i]) == "string")? opoArray[i].substring(opoArray[i].indexOf("[")+1,opoArray[i].indexOf("]")):(!openPopup_'+pa[j]+')? false:openPopup_'+pa[j]);}}}ps=(!openPopup_browserDiff)?'width='+openPopup_width+',height='+openPopup_height:pds(openPopup_browserDiff);ps+=(!openPopup_customPosition)?',left='+gsc('width')+',top='+gsc('height'):pps(openPopup_customPosition);ps+=(!openPopup_customParams)?',scrollbars=no,toolbar=no,status=no,location=no,directories=no,menubar=no,resizable=no':wps(openPopup_customParams);var poa=new Array();var time=new Date();var rnd=time.getTime();var pna='POPUP'+rnd;poa[poa.length]=open(openPopup_popupUrl,pna,ps);if (typeof(poa[poa.length-2]) == 'object') poa[poa.length-2].close();poa[poa.length-1].focus();}var afpl = true;
