/************************** Zoom **************************/
// Mozilla = (navigator.userAgent.indexOf('Gecko') != -1) && (document.getElementById?true:false);
var Mozilla = (document.getElementById?true:false);
function zoom(img) {return zoomf('/images/docs/' + 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>'+
		'<head><title>' + title + '</title></head>'+
    '<body style="margin: 0; padding: 0">'+
    '<a href="#" onclick="window.close()">'+
		'<img src="'+ img +'" border="0" id="myimg" onload="if (' + Mozilla + ') {window.resizeTo(this.width + 30, this.height + 30); window.resizeTo(this.width + 8, this.height + 53)} else {window.resizeTo(this.width, this.height)}" />'+
		'</a>'+
    '</body>'+
		'</html>'
  );
  win.document.close();
}