
var MaxImageWidth = 800; //change this if you want another size
var ImageMouseOverTitle = 'Paspauskite, jei norite matyti visu dydžiu'; //Change here for the message to display when the mouse is over the resized image

   window.onload = resizeit;
 
    function resizeit()
      {
      if (document.getElementById('pagecontent')) /* This section for subsilver2 based styles */
         {
            for (i=0; i<document.getElementById('pagecontent').getElementsByTagName('img').length; i++)
               {
                  chgimgsize = document.getElementById('pagecontent').getElementsByTagName('img')[i];
                  if (chgimgsize.width > MaxImageWidth)
                     {
                        chgimgsize.style.width = MaxImageWidth + 'px';
                        eval("pop" + String(i) + " = new Function(\"pop = window.open('" + chgimgsize.src + " ','fullscale','width=800,height=800,scrollbars=1,resizable=1'); pop.focus();\")");
                        eval("chgimgsize.onclick = pop" + String(i) + ";");
                        if (document.all) chgimgsize.style.cursor = 'hand';
                        if (!document.all) chgimgsize.style.cursor = 'pointer';
                        chgimgsize.title = ImageMouseOverTitle;
                     }
               }
         }
      if (document.getElementById('page-body'))  /* This section for prosilver based styles */
         {
            for (i=0; i<document.getElementById('page-body').getElementsByTagName('img').length; i++)
               {
                  chgimgsize = document.getElementById('page-body').getElementsByTagName('img')[i];
                  if (chgimgsize.width > MaxImageWidth)
                     {
                        chgimgsize.style.width = MaxImageWidth + 'px';
                        eval("pop" + String(i) + " = new Function(\"pop = window.open('" + chgimgsize.src + " ','fullscale','width=800,height=800,scrollbars=1,resizable=1'); pop.focus();\")");
                        eval("chgimgsize.onclick = pop" + String(i) + ";");
                        if (document.all) chgimgsize.style.cursor = 'hand';
                        if (!document.all) chgimgsize.style.cursor = 'pointer';
                        chgimgsize.title = ImageMouseOverTitle;
                     }
               }
         }
		       if (document.getElementById('citavimas')) /* This section for subsilver2 based styles */
         {
            for (i=0; i<document.getElementById('citavimas').getElementsByTagName('img').length; i++)
               {
                  chgimgsize = document.getElementById('citavimas').getElementsByTagName('img')[i];
                  if (chgimgsize.width > MaxImageWidth)
                     {
                        chgimgsize.style.width = MaxImageWidth + 'px';
                        eval("pop" + String(i) + " = new Function(\"pop = window.open('" + chgimgsize.src + " ','fullscale','width=800,height=800,scrollbars=1,resizable=1'); pop.focus();\")");
                        eval("chgimgsize.onclick = pop" + String(i) + ";");
                        if (document.all) chgimgsize.style.cursor = 'hand';
                        if (!document.all) chgimgsize.style.cursor = 'pointer';
                        chgimgsize.title = ImageMouseOverTitle;
                     }
               }
         }
		 
      }
	  
	  
