// JavaScript Document
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->

function PicRemote(picName) { // Pops up the photo in a remote window.
	var picPath = "Uploaded/Gallery/";
	var wid, hei
    ShowingImage = new Image();
    ShowingImage.src = picPath + picName;
    wid = ShowingImage.width + 30;
    hei = ShowingImage.height + 50;
 	if (wid < 70 || hei < 70) {
		wid=850;
	    hei=650;
  	}
	if (screen.width < wid || screen.height < hei) {
	wid = screen.width - 50;
	hei = screen.height - 50;
	}
	OpenWindow = window.open("", "remoteWin", "resizable=1, scrollbars=1, toolbar=0, left=10, top=10, width=" + wid + ", height=" + hei);
	OpenWindow.document.open();
	OpenWindow.document.write('<html><head><title>RCC Gallery</title></head>'
    	+ '<body bgcolor="#FFFFFF" style=" font:8pt verdana; margin:2px"><center>' + '<br>'
    	+ '<img src=' + picPath + picName + '><br>'
		+ '<br><a href="javascript:window.close();">Close Window</a></center></body></html>');
  	OpenWindow.document.close();
	}

function OpenWin(linkname){
	newWin = window.open(linkname,'_blank','HEIGHT=620,WIDTH=820,channelmode=no,directories=no,fullscreen=no,location=no,menubar=no,resizeable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=no');
	return;		
}
