function collectWidth(C){var A=0;var D=C.document.getElementsByTagName("*");for(var B=0;B<D.length;B++){A=Math.max(D[B].offsetWidth,A);}return A;}function setClicks(E){var B=E.contentDocument.getElementsByTagName("a");var C=document.getElementsByTagName("iframe");for(var D=0;D<B.length;D++){if(B[D].target){for(var A=0;A<C.length;A++){if(B[D].target==C[A].name){B[D].onclick=new Function("parent."+B[D].target+".location.replace(this.href);return false;");}else{if(B[D].target!==""){B[D].target=B[D].target;}else{B[D].onclick=new Function("parent."+E.name+".location.replace(this.href);return false;");}}}B=document.getElementsByTagName("a");for(D=0;D<B.length;D++){for(A=0;A<C.length;A++){if(B[D].target==C[A].name){B[D].onclick=new Function("window."+B[D].target+".location.replace(this.href);return false;");}}}}}}function sizeFrame(E,D){var C=15;var F,B;var G=0;if(E.Document){if(E.Document.body){if(E.Document.body.scrollHeight){G=1;}}}else{if(E.contentDocument){if(E.contentDocument.body){if(E.contentDocument.body.offsetHeight||E.contentDocument.documentElement.offsetHeight){G=1;}}}}if(G){if(window.opera){setClicks(E);}F=window.opera?E.contentDocument.documentElement.offsetHeight:E.contentDocument?E.contentDocument.body.offsetHeight+C:E.Document.body.scrollHeight+4;B=window.opera?collectWidth(E.contentDocument):E.contentDocument?E.contentDocument.documentElement.offsetWidth:E.Document.body.scrollWidth;var A=E.offsetWidth;if(!window.opera){E.style.overflow="visible";}E.height=A<B?F+18:F+3;if(window.opera&&A>=B){E.contentDocument.body.style.overflow="hidden";}}if(D){if(document.getElementById(D)){document.getElementById(D).style.display="none";}else{alert("An Error Has Occured Closing Loading Status");}}return F;}