var DnrPCMod=new function(){var c=this,v=document,a,e,h,r,m=200,o=600,d="dnr-pc-grid",f="dnr-pc-ldr",i="dnr-pc",s="dnr-pc-sort-txt",b,j,g={a:1,b:2,c:3,d:4,e:6,f:7,g:8,h:9,i:10,j:11,k:12,l:13,m:14,n:15,o:16,p:17,q:19,r:20,s:21,t:22,u:23,v:24,w:25,x:26,y:27,z:28},p="http://europeanspermbankusa.com/why-us/oid-pc-link.html";c._init_=function(){window.onunload=u;a=v.getElementById(d);e=v.getElementById(f);h=v.getElementById(i);r=v.getElementById(s);if(!(a&&e&&h&&r)){);return}h.onclick=function(){window.location.replace(p)};r.onchange=n;r.onclick=l;j=0};function l(x){var w=(x||window.event);if(w.stopPropagation){w.stopPropagation()}w.cancelBubble=true;w.returnValue=false}function n(y){var x=(y||window.event),w=(x.target||x.srcElement);q(w.value)}function q(y){var z,x,A,w;y=parseInt(y,10);if(b&&y&&y!==j){j=y;A=b.data;z=A.length;switch(y){case 1:do{w=1;for(x=1;x<z;++x){if(parseFloat(A[x].ICI)>parseFloat(A[x-1].ICI)){w=0;A.splice(x-1,0,A[x]);A.splice(++x,1)}}}while(!w);t();b.data=A;DnrPCMod.loadGrid(b);break;case 2:do{w=1;for(x=1;x<z;++x){if(parseFloat(A[x].IUI)>parseFloat(A[x-1].IUI)){w=0;A.splice(x-1,0,A[x]);A.splice(++x,1)}}}while(!w);t();b.data=A;DnrPCMod.loadGrid(b);break;case 3:do{w=1;for(x=1;x<z;++x){if(k(A[x].COMPANY_NAME,A[x-1].COMPANY_NAME)){w=0;A.splice(x-1,0,A[x]);A.splice(++x,1)}}}while(!w);t();b.data=A;DnrPCMod.loadGrid(b);break}}else{j=0}}function k(C,B){var y=0,x,w,A,z;if(typeof C==="string"&&typeof B==="string"){x=C.toLowerCase().split("");w=B.toLowerCase().split("");if(g[x[0]]<g[w[0]]){y=1}}return y}c.loadGrid=function(G){var H="DIV",z,F,J,y,w,x,E,D,A,C,B,I;if(G&&G.data&&G.data.length!==undefined){z="dnr-pc-nme";F="dnr-pc-row";J="odd";C=G.data;A=C.length;D=0;I=false;for(;D<A;++D){B=C[D];if(B){y=v.createElement(H);y.className=(I)?F+" "+J:F;E=v.createElement(H);x=v.createElement(H);E.appendChild(v.createTextNode(B.IUI));y.appendChild(E);x.appendChild(v.createTextNode(B.ICI));y.appendChild(x);w=v.createElement(H);w.appendChild(v.createTextNode(B.COMPANY_NAME));w.className=z;y.appendChild(w);y=a.appendChild(y);I=!I}}}else{a.appendChild(v.createTextNode("Unable to load list. Please refresh the page."))}y.className+=" last";if(!I){h.className+=" blend"}if(!b){e=e.parentNode.removeChild(e)}b=G;a.style.display="block"};function t(){while(a.childNodes[0]){a.removeChild(a.childNodes[0])}}function u(){v=e=h=0}};
