/************************** Zoom **************************/
// Mozilla = (navigator.userAgent.indexOf('Gecko') != -1) && (document.getElementById?true:false);
Mozilla = (document.getElementById?true:false);
function zoom(img) {return zoomf('/i/news/' + img, '');}
function zoomf(img, title) {
  if (!title) title = '';
  winID = Math.random() + ""; winID = winID.substr(2, 10); // random ID for IE 6-
  win = window.open("","win"+winID,"top=50,left=200,width=" + 300 + ",height=" + 300 + ",toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes");
  win.document.write(
    "<html>\n<head><title>" + title + "</title></head>" +
    "<body style=\"margin: 0; padding: 0\">" +
    "<a href=\"\#\" onclick=\"window.close()\"><img src=\""+ img +"\" border=\"0\" id=\"myimg\" onload=\" nws = document.getElementById('myimg'); if (" + Mozilla + ") {window.resizeTo(nws.width + 30, nws.height + 30); window.resizeTo(nws.width + 8, nws.height + 53);} else {window.resizeTo(nws.width,nws.height);}\" /></a>" +
    "</body>\n</html>"
  );
  win.document.close();
}

