﻿function df_References(){function g(){(new wp_XMLHttpRequest({uri:"/gen/ajax_references.aspx",query_string:"page="+l,cache:false,onload:a,onerror:function(){j.fade({id:"references-list",step:2,interval:10,type:"in",onfinish:b})}})).execute()}function i(){if(k){document.getElementById("references").className="loading";j.fade({id:"references-list",step:2,interval:10,onfinish:g})}else setTimeout(i,m*1E3)}function b(){document.getElementById("references").className=""}function a(c){var e=null,d="";try{e=
new wp_XMLParser(c.dom);e.init()}catch(n){}if(e.goTo("/resultset/source"))d=e.getValue();if(e.goTo("/resultset/next_page"))l=e.getValue();c=document.getElementById("references");c.style.height=document.getElementById("references").offsetHeight+"px";c.innerHTML=d;h()}function h(){for(var c=document.getElementById("references").getElementsByTagName("IMG"),e=true,d=0;d<c.length;d++)if(c[d].complete==false)e=false;if(e){f();j.fade({id:"references-list",step:2,interval:10,type:"in",onfinish:b});document.getElementById("references").style.height=
"auto"}else setTimeout(h,20)}function f(){var c=document.getElementById("references"),e=c.getElementsByTagName("IMG");c.onmouseover=function(){k=false};c.onmouseout=function(){k=true};c=[];for(var d=0;d<e.length;d++)c.push(e[d]);for(d=0;d<c.length;d++)j.reflectImage({element:c[d],height:33,alpha:0.3});setTimeout(i,m*1E3)}var m=new Number(10),l=2,k=true,j=new wp_FX;window.onload=f}var references=new df_References;
function openLayer(g){var i=new wp_FX;cfg={id:"popup",width:-1,height:-1,content:{uri:g,cache:false},align:"center"};var b=document.createElement("DIV");b.style.backgroundColor="#000";b.style.filter="alpha(opacity=70)";b.style.opacity=".7";b.style.height=document.body.offsetHeight+"px";b.style.width=document.body.offsetWidth+"px";b.style.position="absolute";b.style.zIndex="3000";b.style.top="0";b.style.left="0";b.id=(cfg.id||"__wp_fx_layer")+"_background";document.body.appendChild(b,document.body);
window.popupOpen=true;b.onclick=function(){try{if(window.popupOpen){i.fade({id:cfg.id,start_opacity:100,finish_opacity:0,step:10,interval:5,onfinish:function(){document.body.removeChild(b);document.body.removeChild(a)}});window.popupOpen=false}}catch(h){}};b.close=b.onclick;var a=document.createElement("DIV");a.style.backgroundColor="#fff";a.style.filter="alpha(opacity=100)";a.style.height="0px";a.style.width="0px";a.style.position="absolute";a.style.zIndex="4000";a.style.top=100+(document.body.scrollTop?
document.body.scrollTop:document.documentElement.scrollTop)+"px";a.style.left="-9999px";a.id=cfg.id||"__wp_fx_layer";document.body.appendChild(a,document.body);this.addContent=function(h){if(cfg.width==-1||cfg.height==-1){var f=document.createElement("DIV");f.style.position="absolute";f.style.left="-9999px";f.innerHTML=h.text;document.body.appendChild(f,document.body);if(cfg.width==-1)cfg.width=f.offsetWidth;if(cfg.height==-1)cfg.height=f.offsetHeight;document.body.removeChild(f)}a=document.getElementById("popup");
a.style.height=cfg.height+"px";a.style.width=cfg.width+"px";a.style.top=100+(document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop)+"px";a.style.left=window.getSize().width/2-cfg.width/2+"px";a.innerHTML=h.text;i.fade({id:a.id,start_opacity:0,finish_opacity:100,step:5,interval:1})};if(typeof cfg.content=="string"){g={};g.text=cfg.content;this.addContent(g)}else{cfg.content.onload=this.addContent;cfg.content.query_string+=cfg.content.query_string!=""?"&":"";cfg.content.query_string+=
"ajax=true";(new wp_XMLHttpRequest(cfg.content)).execute()}return false};
