<!-- 


// get available screen height and width
var popHeight = 700;
var popWidth = 780;
var topLoc = 40;
var leftLoc = 40;
var availHeight;
var availWidth;

availHeight = Math.round(screen.availHeight * 0.85);
availWidth = Math.round(screen.availWidth * 0.9);

if (availHeight < popHeight)
{
  popHeight = availHeight;
  topLoc = 0;
}
if (availWidth < popWidth)
{
  popWidth = availWidth;
  leftLoc = 0;
}

popHeight = popHeight.toString();
popWidth = popWidth.toString();
topLoc = topLoc.toString();
leftLoc = leftLoc.toString();

popHeight.toString()

var galleryWin = null;
var galString = "scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,width=" + popWidth + ",height=" + popHeight + ",top=" + topLoc + ",left=" + leftLoc + "";

var descriptWin = null;
var desString = "scrollbars=no,resizable=yes,toolbar=no,menubar=no,location=no,width=510,height=370,top=80,left=80";


function portfolio(url)
{
  url = "pop_portfolio/" + url;
  if (galleryWin != null && !galleryWin.closed)    // window already open
    galleryWin.location = url;
  else                                       // new window
    galleryWin = window.open(url, "KNGalleryWin", galString);
}


function descript(url)
{
  if (descriptWin != null && !galleryWin.closed)    // window already open
    descriptWin.location = url;
  else                                       // new window
    descriptWin = window.open(url, "KNDescriptWin", desString);
}

// -->
