function hidepic(){greyscr=document.getElementById("greyscreen");greyscr.style.width=1;greyscr.style.height=1;greyscr.style.visibility="hidden";box=document.getElementById("picbox");box.style.visibility="hidden";box.style.left="-500px"}function createpicbox(){var a=document.createElement("div");a.setAttribute("id","picbox");document.body.appendChild(a)}function showpic(c,b){var a=1;if(ie||ns6){allconts=document.getElementById("allcontent");greyscr=document.getElementById("greyscreen");greyscr.style.width=allconts.offsetWidth;greyscr.style.height=allconts.offsetHeight+80;greyscr.style.visibility="visible";if(!document.getElementById("picbox")){createpicbox()}dropmenuobj=document.getElementById("picbox");dropmenuobj.innerHTML='<table><tr><td align=right><a href="" onclick="hidepic(); return false"><img src="/img/close.png"></a>&nbsp;</td></tr><tr><td align=center><a href="" onclick="hidepic(); return false">'+c+"</a></td></tr></table>";dropmenuobj.style.left=dropmenuobj.style.top=-500;dropmenuobj.x=getposOffset(b,"left");dropmenuobj.y=getposOffset(b,"top");dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(dropmenuobj,b,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(dropmenuobj,b,"bottomedge")+40+"px";dropmenuobj.style.visibility="visible"}}function go(b,a){showbox('Loading...<br><img src="/img/loadinganim.gif">',null,220);showpic('<img id="theimage" style="border:1px solid #CCCCCC; padding:1px; margin:5px" src='+b+">",document.getElementById("b"+a));document.getElementById("theimage").alt=document.getElementById("bimg"+a).alt;document.getElementById("theimage").title=document.getElementById("bimg"+a).title+" [Click to close this window]"};