if ((typeof nsp_eshow_keyword != "string") || !nsp_eshow_keyword.length || (nsp_eshow_keyword.length > 64))
 document.write ('<span style="background: #ffff99; border: solid 1px #ffcc66; ' +
 'font: normal 12px Tahoma, Geneva, Kalimati, sans-serif; padding: 8px; ' +
 'margin: 8px">NonStopPics.com Slideshow: <b>Bad implementation</b></span>') ;
else
{
  nsp_eshow_keyword = nsp_eshow_keyword.replace (/[^-_0-9A-Za-z]/g, "_") ;

  if (typeof nsp_eshow_naauth != "string") var nsp_eshow_naauth = "" ;
  if (nsp_eshow_naauth != "aca22") nsp_eshow_naauth = "" ;

  if (typeof nsp_eshow_xsize != "number") var nsp_eshow_xsize = 800 + 16 ;
  if (typeof nsp_eshow_ysize != "number")
  {
    var nsp_eshow_ysize = parseInt (((nsp_eshow_xsize - 16) * 10 / 16) + 84) ;
    if (nsp_eshow_xsize >= 744) nsp_eshow_ysize += 30 ;
  }

  if (nsp_eshow_naauth == "")
  {
    if (nsp_eshow_xsize < 250) nsp_eshow_xsize = 250 ;
    if (nsp_eshow_ysize < 230) nsp_eshow_ysize = 230 ;
  }

  if (typeof nsp_eshow_border != "number") var nsp_eshow_border = 0 ;

  if (typeof nsp_eshow_marginw != "number") var nsp_eshow_marginw = 8 ;
  if (typeof nsp_eshow_marginh != "number") var nsp_eshow_marginh = 8 ;

  var ihtml =
   '<iframe name="nsp_' + nsp_eshow_keyword + '" src="http://www.nonstoppics.com/slideshow/' +
   nsp_eshow_keyword + '/?emb=1&xsize=' + nsp_eshow_xsize + '&ysize=' + nsp_eshow_ysize ;

  if (nsp_eshow_naauth != "") ihtml += '&naauth=' + nsp_eshow_naauth ;

  ihtml += '" frameborder=0 marginwidth=' + nsp_eshow_marginw + ' marginheight=' +
   nsp_eshow_marginh + ' scrolling=no width=' + nsp_eshow_xsize + ' height=' + nsp_eshow_ysize ;

  if (nsp_eshow_border != 0) ihtml += ' style="border: solid ' + nsp_eshow_border + 'px #6699cc"' ;

  ihtml += '></iframe>' ;

  document.write (ihtml) ;
}