<!--
function JustSoPicWindow(imageName,imagewidth,imageheight,alt,bgcolor,hugger,hugMargin) {

// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 2.2.1
	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10, lift;
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  lift=0.90;
	}
	if(w>=740 & w<835){
	  lift=0.91;
	}
	if(w>=835){
	  lift=0.93;
	}
	if (imagewidth>w){	
	  byFactor = w / imagewidth;			
	  imagewidth = w;
	  imageheight = imageheight * byFactor;
	}
	if (imageheight>h-adj){
	  byFactor = h / imageheight;
	  imagewidth = (imagewidth * byFactor);
	  imageheight = h; 
	}
	   
	var scrwidth = w-adj;
	var scrheight = (h*lift)-adj;

	if (imageheight>scrheight){
  	  imageheight=imageheight*lift;
	  imagewidth=imagewidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrheightTemp = imageheight - 0 + 2*hugMargin;
	  if (scrheightTemp < scrheight) {
		scrheight = scrheightTemp;
	  } 
	  var scrwidthTemp = imagewidth - 0 + 2*hugMargin;
	  if (scrwidthTemp < scrwidth) {
		scrwidth = scrwidthTemp;
	  }
	  
	  if (scrheight<100){scrheight=100;}
	  if (scrwidth<100){scrwidth=100;}

	  posTop =  ((h-(scrheight/lift)-adj)/2);
	  posLeft = ((w-(scrwidth)-adj)/2);
 	}

	if (imageheight > (h*lift)-adj || imagewidth > w-adj){
		imageheight=imageheight-adj;
		imagewidth=imagewidth-adj;
	}

	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("vwd_justso.htm","newWindow","width="+scrwidth+",height="+scrheight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onclick="self.close()">');  
	newWindow.document.write('<table  width='+imagewidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrheight+' ><tr ><td >');
	newWindow.document.write('<img src="'+imageName+'" width='+imagewidth+' height='+imageheight+' alt="Click screen to close" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}
//-->