var moOpenWindow = null; function showBigImage(sImage, nOrientation){ var sPage = "DisplayImage.htm?dimg=" + sImage; hideAnchorBorder; if (nOrientation==1){ var sAtts = "height=400,width=400,status=no,toolbar=no,menubar=no,location=no"; }else{ var sAtts = "height=400,width=400,status=no,toolbar=no,menubar=no,location=no"; //Yup its the same... now! } if (document.all){ var w=screen.width; var x=((w/2)-200); var h=screen.height; var y=((h/2)-200); sAtts = sAtts + ",left=" + x + ",top=" + y; if (isMacClient()){ sPage = "DisplayImageMAC.htm?dimg=" + sImage; window.open(sPage,null,sAtts); }else{ if (moOpenWindow){ moOpenWindow.close(); } moOpenWindow = window.open(sPage,null,sAtts); moOpenWindow.focus(); } }else{ window.open(sPage,null,sAtts); } } function hideAnchorBorder() { window.focus(); return true; } function isMacClient(){ var agt=navigator.userAgent.toLowerCase(); var is_mac = (agt.indexOf("mac")!=-1); var is_mac68k = (is_mac && ((agt.indexOf("68k")!=-1) || (agt.indexOf("68000")!=-1))); var is_macppc = (is_mac && ((agt.indexOf("ppc")!=-1) || (agt.indexOf("powerpc")!=-1))); if (is_mac || is_mac68k || is_macppc){ return true; }else{ return false; } }