<!--
function openWindow(theURL,winName,features) { //v2.0
  var main = window.open(theURL,winName,features);
  main.focus();
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function openWindow(theURL,winName,features) { //v2.0
   var DemoWin = window.open(theURL,winName,features);
   DemoWin.focus();
}

function LoadContent(name){
	frames['Pictures'].location.href = name;
}//end LoadContent

function OpenImages(which, type){
	if((which != "") && (which != null)){
		if(type.indexOf("Film") >= 0) openWindow('./images/film/' + which + '/index.html','LargeImage','menubar=yes,scrollbars=yes,resizable=yes,width=450,height=340');
		else if(type.indexOf("TV") >= 0) openWindow('./images/tv/' + which + '/index.html','LargeImage','menubar=yes,scrollbars=yes,resizable=yes,width=450,height=340');
		else if(type.indexOf("Theatre") >= 0) openWindow('./images/theatre/' + which + '/index.html','LargeImage','menubar=yes,scrollbars=yes,resizable=yes,width=450,height=340');
		else if(type.indexOf("Photo") >= 0) openWindow('./images/personal/' + which + '/index.html','LargeImage','menubar=yes,scrollbars=yes,resizable=yes,width=450,height=340');
	}//end if
}

function UpdateChoice(phg, index){
	document.form1.Photographer.value = phg;
	document.form1.PhotoNum.value = index;
	var newWin = window.open('showphoto.html','Photos','menubar=no,scrollbars=yes,resizable=yes,width=400,height=400');
	newWin.window.focus();
}

function getTheDate2(type){
	var months=new Array(13);
	months[1]="January";
	months[2]="February";
	months[3]="March";
	months[4]="April";
	months[5]="May";
	months[6]="June";
	months[7]="July";
	months[8]="August";
	months[9]="September";
	months[10]="October";
	months[11]="November";
	months[12]="December";
	var time=new Date();
	var lmonth=time.getMonth()+1;
		if(lmonth <10) date = "0" + lmonth;
	var date=time.getDate();
		if(date <10) date = "0" + date;
	var year=time.getYear();
	
	if (year < 2000)
	year = year + 1900;
	
	if(type == "digital") theDate = year + "-" + lmonth + "-" + date;
	else theDate = months[lmonth] + " " + date + ", " + year;
	return theDate;
}

function getTheDate(){
	theDate = getTheDate2("digital");
	return theDate;
}

function getTheYear(date){
	return date.substring(0, date.indexOf("-"));
}
//-->
