
function imgOpen(image_loc)
{
  HTML = "<html><style>body{margin:0px 0px 0px 0px}</style><body onBlur='top.close()'><img src='"+ image_loc +"' border=0 name=load_image onLoad='window.resizeTo(document.load_image.width+10,document.load_image.height+30)'></body></html>";
  popupImage = window.open('','_pics','toolbar=no,scrollbars=no, width=10, height=10');
  popupImage.document.open();
  popupImage.document.write(HTML);
  popupImage.document.close();
}

function vidOpen(video_loc)
{
  var h = window.screen.height;
  var l = (window.screen.width-370)/2;
  var t = (window.screen.heigth-265)/2;
  window.open(video_loc,"video","width=370,height=270,top="+t+",left="+l);
}

function popUp(url,name,w,h)
{
  str="height="+h+",width="+w+",scrollbars=no";
  if(parseInt(navigator.appVersion)>3)
    {
      str+=",left="+(screen.width -w)/2+",top="+parseInt((screen.height -h)/3);
    }
  win=window.open(url,name,str);
}

function showImage(img,imgName)
{
	if (document.images) 
	{
	  document[imgName].src = eval(imgName + img+".src");
	}
	if(document.anchors[imgName+'_lg'])
	{
		document.anchors[imgName+'_lg'].href="javascript:imgOpen('../images/"+imgName+"_lg"+img+".jpg');";
	}
}
