function view_photo(imgSrc,width,height,title)
{
  var sWidth = screen.availWidth;
  var sHeight = screen.availHeight;

  if(!title)
  {
    title = "";
  }

  var pic_window = window.open('','','width=' + width + ',height=' + height + ',left=' + ((sWidth-width)/2) + ',top=' + ((sHeight-height)/2) + ',scrollbars=yes');
  var str = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">' +
            '<html><head><title>' + title + '</title></head><body style="margin: 0; padding: 0;">' +
            '<img alt="' + title + '" src="' + imgSrc + '" width="' + width + '" height="' + height + '">' +
            '</body></html>';
  pic_window.document.write(str);
  pic_window.document.close();
}

colorhash={'0':'color1',
		   '1':'color2',
		   '2':'color3',
		   '3':'color4',
		   '4':'color5',
		   '5':'color6',
		   '6':'color7',
		   '7':'color8',
		   '8':'color9'
		  }

function do_shine(id,val)
{
newpointer = document.getElementById(id);
shinei = 0;
setInterval('shine_interval()',val);
}

function shine_interval()
{
if (colorhash[shinei])
{
 newpointer.className = colorhash[shinei];
}
else shinei = 0;
shinei += 1;
}
