function displayHeader(main) {
	//if (NS) {
	//layering='<LAYER ID="oText" left=90 top=55 width=400><font face=verdana size=-1 color=blue><b>specializing in travel landscapes...</b></font></LAYER>';
	//} else {
	//layering='<div id="nText" style="position:absolute; left:30px; top:65px; width:400px; height:30px; visibility:visible;"><font face=verdana size=-1 color=blue><b>specializing in travel landscapes...</b></font></div>'
	//}
//add +layering+ tag after width=300
//document.write('<div align=center><table border=0 cellspacing=0 cellpadding=0 width=700><tr valign=bottom><td align=right width=300></td><td align=right><a href="/index.html"><img src="/images/logo.gif" height=85 width=240 border=0></a></td></tr></table><table border=0 cellspacing=0 cellpadding=0 width=700><tr><td align=center><img src="/images/redline_top.gif" height=5 width=700 border=0><br><A HREF="/about/index.html" onMouseOver=document.banner1.src=im1on.src;changeCaption("aboutcaption"); onMouseOut=document.banner1.src=im1off.src;changeCaption("caption");><img src="/images/about_off.gif" height=20 width=114 border=0 name=banner1></A><img src="/images/graytab.gif" height=20 width=2 border=0><A HREF="/galleries/index.html" onMouseOver=document.banner2.src=im2on.src;changeCaption("gallerycaption"); onMouseOut=document.banner2.src=im2off.src;changeCaption("caption");><img src="/images/galleries_off.gif" height=20 width=114 border=0 name=banner2></A><img src="/images/graytab.gif" height=20 width=2 border=0><A HREF="/contact/index.html" onMouseOver=document.banner3.src=im3on.src;changeCaption("contactcaption"); onMouseOut=document.banner3.src=im3off.src;changeCaption("caption");><img src="/images/contact_off.gif" height=20 width=114 border=0 name=banner3></A></td></tr><tr><td align=center><img src="/images/redline_bot.gif" height=5 width=700 border=0></td></tr></table></div>');

opentag="<div class=red></div><div class=logoBlock><a href=/index.html><img src=/images/logo.png class=logo border=0><img src=/images/tag.png class=tag border=0></a></div><div align=center><div class=menu><div class=header>";

if (main=="about") {
	text="<b><a href=/about/index.html>about</a></b>  |  <a href=/galleries/index.html>galleries</a>  |  <a href=/contact/index.html>contact</a>  |  <a href=/galleries/dogs/index.html>four paws<span class=plus>+</span>tail</a><br><a href=resume.html>my resume</a>";

} else if (main=="galleries") {
	text="<a href=/about/index.html>about</a>  |  <b><a href=/galleries/index.html>galleries</a></b>  |  <a href=/contact/index.html>contact</a>  |  <a href=/galleries/dogs/index.html>four paws<span class=plus>+</span>tail</a>";

} else if (main=="contact") {
	text="<a href=/about/index.html>about</a>  |  <a href=/galleries/index.html>galleries</a>  |  <b><a href=/contact/index.html>contact</a></b>  |  <a href=/galleries/dogs/index.html>four paws<span class=plus>+</span>tail</a>";

} else if (main=="photoblog") {
	text="<a href=/about/index.html>about</a>  |  <a href=/galleries/index.html>galleries</a>  |  <a href=/contact/index.html>contact</a>  |  <b><a href=/galleries/dogs/index.html>four paws<span class=plus>+</span>tail</a></b>";

} else if (main=="splash") {
	text="<br>";

} else if (main=="fourpaws") {
	text="<a href=/about/index.html>about</a>  |  <a href=/galleries/index.html>galleries</a>  |  <a href=/contact/index.html>contact</a>  |  <b><a href=/galleries/dogs/index.html>four paws<span class=plus>+</span>tail</a></b>";

} else {
	text="<a href=/about/index.html>about</a>  |  <a href=/galleries/index.html>galleries</a>  |  <a href=/contact/index.html>contact</a>  |  <a href=/galleries/dogs/index.html>four paws<span class=plus>+</span>tail</a>";
};

closetag="</div></div><div class=line></div></div>";

document.write(opentag+text+closetag)

}//end displayHeader

function changeCaption(mode) {
	if (mode=="aboutcaption") {
		text="a little about myself...";
	} else 	if (mode=="gallerycaption") {
		text="view the pictures in the gallery...";
	} else 	if (mode=="contactcaption") {
		text="pricing info or ask me questions...";
	} else 	if (mode=="caption") {
		text="specializing in travel landscapes...";
	} 
this.sText ="<font face=verdana size=-1 color=blue><b>"+text+"</b></font>";
this.update();
}//end changeCaption


function update() {
if (IE || NS6) {
	document.getElementById("nText").innerHTML=sText;
}else if (NS) {
  document.layers['oText'].document.open();
  document.layers['oText'].document.write(sText);
  document.layers['oText'].document.close();
}
}//end update

function resizeFix() {
if (NS) {
if (window.innerWidth != origWidth || window.innerHeight != origHeight) {
window.location.reload()
}
}
}//end resizeFix


/////////////////////////////////////////////////////////////displayLocation
function displayLocation(param1,param2,param3) {

	if (param1=="home") {
		outputstring="home"
	} else if (param1=="about") {
		if (param2=="resume") {
			outputstring="<a href=../index.html>home</a> | <a href=../about/index.html>about</a> | resume"
		} else {
			outputstring="<a href=../index.html>home</a> | about<br><a href=resume.html>my resume</a>"
		}
	} else if (param1=="contact") {
		outputstring="<a href=../index.html>home</a> | contact"
	} else if (param1=="galleries") {
		outputstring="<a href=../index.html>home</a> | <b>galleries</b>"
		if (param2=="abstract" || param2=="still" || param2=="people" || param2=="wedding" || param2=="charlie") {
			if (param3==null) {
				outputstring="<a href=../index.html>home</a> | <a href=../galleries/index.html>galleries</a> | <b>"+param2+"</b>";
			} 
			else  {
				outputstring="<a href=../index.html>home</a> | <a href=../galleries/index.html>galleries</a> | <a href=../Scripts/thumb.html?"+param2+">"+param2+"</a> | <b>"+param3+"</b>";
			}
		} else if (param2!=null) {
			if (param2=="landscape") {
			outputstring="<a href=../index.html>home</a> | <a href=../galleries/index.html>galleries</a> | <b>landscape</b>";
			} else if (param3==null) {
			outputstring="<a href=../index.html>home</a> | <a href=../galleries/index.html>galleries</a> | <b>"+param2+"</b>";
			} else {
			outputstring="<a href=../index.html>home</a> | <a href=../galleries/index.html>galleries</a> | <a href=../Scripts/thumb.html?"+param2+">"+param2+"</a> | <b>"+param3+"</b>";
			}
		}
	}

document.write('<div align=center><table border=0 cellspacing=0 cellpadding=0 width=1050><tr><td class=location>'+outputstring+'</td></tr></table></div>');
}//end displayLocation


/////////////////////////////////////////////////////////////displayEnder
function displayEnder(main) {
preEnder="<div class=ender><div class=line></div>"
ender1="all images &copy; 2010 copyright aaron lam photography";
ender2="all images &copy; 2010 copyright aaron lam photography. view aaron lam photography website <a href=/index.html>here</a>. view life through the lens blog <a href=http://blog.aaronlam.com>here</a>.";
ender3="all images &copy; 2010 copyright aaron lam photography &curren; <a href=http://blog.aaronlam.com/>life through the lens blog</a>"
postEnder="</div>"

if (main=="splash") {
		document.write(preEnder+ender1+postEnder)

	} else if (main=="left") {	
		document.write("<div class=enderLeft>"+ender2+"</div>");
	
	} else {
		document.write(preEnder+ender3+postEnder)
};
	
	
};//end displayEnder

var windowPicture=null;

function displayPict(folder,file,dir,caption) {
url= "picture.html?"+folder+"&"+file+"-"+dir+"="+caption;
window.location=url;
};

/////////////////////////////////////////////////////////////displayThumbs
function displayThumbs(folder) {
var thumbstring="";
arraylist=checkList(folder);
	
	for (i=0; i<arraylist.length; i++) {
		j=i+1;
		if (i==0) {
		thumbstring=thumbstring+"<tr align=center>";
		}
	
		thumbstring=thumbstring+"<td><a href=../galleries/"+folder+"/"+arraylist[i]+".jpg class=highslide onclick='return hs.expand(this)'><img class=thumbFader src=../galleries/"+folder+"/"+arraylist[i]+"_tn.jpg border=0 width=65 height=65 alt='"+msg+" | "+arraylist[i]+"'></a><div class=highslide-caption style='font-size:10px; color: #7a86ab; margin-top:5px;'>"+j+" of " +arraylist.length+"<br>"+arraylist[i]+"</div></td>";
		
		if (i==7 || i==15 || i==23 || i==31 || i==39 || i==47 || i==55 || i==63 || i==71 || i==79) {
		thumbstring=thumbstring+"</tr><tr>";
		}
		if (i==arraylist.length-1) {
		thumbstring=thumbstring+"</tr>";
		}
		
	}
document.write("<div class=highslide-gallery align=center><table>"+thumbstring+"</table></div>");
}//end displayThumbs


/////////////////////////////////////////////////////////////displayiPhone
function displayiPhone(folder) {
var iPhonestring="";
arraylist=checkList(folder);
	
	for (i=0; i<arraylist.length; i++) {
		
		iPhonestring=iPhonestring+"<li><img src=../galleries/"+folder+"/"+arraylist[i]+".jpg class=pictureBorder></li>";
		}
document.write("<a href=/mobile/index.html><img src=../images/logoTagged.png class=iphoneLogo></a><div id=iPhonePictures><ul>"+iPhonestring+"</ul></div>");
}//end displayiPhone

function displayPawsiPhone(folder,file) {
pawsiPhonestring="";	
	for (i=0; i<file; i++) {
	num=i+1;
	pawsiPhonestring=pawsiPhonestring+"<li><img src=../galleries/dogs/"+folder+"/"+folder+num+".jpg class=pictureBorder></li>";
	}
		
document.write("<a href=/mobile/index.html><img src=../images/logo_thin_gray.png class=iphoneLogo></a><div id=iPhonePictures><ul>"+pawsiPhonestring+"</ul></div>");
}//end displayPawsiPhone



/////////////////////////////////////////////////////////////displayListing
function displayListing(location,text,num,address,funct) {

opentag="<font face=verdana size=-1><img src=/images/bracketwhite.gif name=boxA"+num+" border=0 width=16 height=13>"

if (funct==text || address==location) text = "<span class=selected>"+text+"</span>";

if (location=="events") {
	if (text=="events") {
		targetFrame="_top";
	} else {
		targetFrame="eventFrame";
	}
linktag="<A HREF="+address+" onMouseOver='document.boxA"+num+".src=bracketA_on.src; document.boxB"+num+".src=bracketB_on.src;' onMouseOut='document.boxA"+num+".src=bracketA_off.src; document.boxB"+num+".src=bracketB_off.src;' onMouseDown='document.boxA"+num+".src=bracketA_off.src; document.boxB"+num+".src=bracketB_off.src;' target="+targetFrame+">"+text+"</a>"


} else {
linktag="<A href=../Scripts/thumb.html?"+location+" onMouseOver='document.boxA"+num+".src=bracketA_on.src; document.boxB"+num+".src=bracketB_on.src;' onMouseOut='document.boxA"+num+".src=bracketA_off.src; document.boxB"+num+".src=bracketB_off.src;' onMouseDown='document.boxA"+num+".src=bracketA_off.src; document.boxB"+num+".src=bracketB_off.src;'>"+text+"</a>"
}

closetag="<img src=/images/bracketwhite.gif name=boxB"+num+" border=0 width=16 height=13></font><br>"

if (funct=="ret") {
	return(opentag+linktag+closetag);
} else {
	document.write(opentag+linktag+closetag);
}
} //end displayListing


/////////////////////////////////////////////////////////////PAWS FUNCTIONS
function displayPawsHeader() {
document.write("<tr><td><a href=../galleries/dogs/index.html><img src=/images/logo_thin.png border=0></a></td></tr><tr><td align=right><span class=date>(back) </span><span class=paws><a href=../galleries/dogs/index.html>four paws <span class=plus>+</span>tail</a></span></td></tr>");
}//end displayPawsHeader


function displayPawListings(folder,num,shot,funct) {
	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
		listing="<span class=plus>+</span> <a href=/mobile/displayPawsiPhone.html?"+folder+"&"+num+"# />"+folder+"</a></span><br>";
	} else {
		listing="<span class=listing><a href=/galleries/dogs/"+folder+" target=dogFrame>"+folder+"</a><span class=plus>+</span><span class=date>("+shot+")</span></span><br>";
	}//end iphoneCheck

	if (funct=="ret") {
		return(listing);
	} else {
		document.write(listing);
	}//endif
}//end displayPawListings


function displayPawListing(){

displayPawListings("charlie","20","lastUpdated.aug.11.2009");
displayPawListings("houston","9","shot.jul.02.2010");
displayPawListings("beaconbeachday","18","shot.may.22.2010");
displayPawListings("levi","8","lastUpdated.aug.11.2009");
displayPawListings("beacon","21","shot.apr.24.2010");
displayPawListings("charliewillrogers","14","shot.apr.3.2010");
displayPawListings("charliegriffithpark","7","shot.mar.27.2010");
displayPawListings("sophie","7","shot.jan.9.2010");
displayPawListings("oliverandlucy","16","shot.nov.22.2009");
displayPawListings("poeandgizmo","14","shot.nov.10.2009");
displayPawListings("teddy","6","shot.sep.27.2009");
displayPawListings("pinky","9","shot.sep.6.2009");
displayPawListings("freddiebeachday","13","shot.sep.5.2009");
displayPawListings("freddie","10","shot.aug.19.2009");
displayPawListings("joey2","11","shot.jun.13.2009");
displayPawListings("boomer","12","shot.may.19.2009");
displayPawListings("mieko","8","shot.may.3.2009");
displayPawListings("marly2","16","shot.mar.1.2009");
displayPawListings("chester","12","shot.mar.1.2009");
displayPawListings("khan","11","shot.feb.8.2009");
displayPawListings("levisolanobeach","6","shot.jan.17.2009");
displayPawListings("levidogpark","7","shot.dec.14.2008");
displayPawListings("puppies2","9","shot.nov.8.2006");
displayPawListings("chicagojoey","5","shot.oct.31.2008");
displayPawListings("shadow","11","shot.oct.25.2008");
}


function displayPawList(PawOn) {
document.write('<div id=PawText class=listing style=margin-top:4px;><A HREF=javascript:displayPawExpand();>more...</A></div>');

} //end displayPawList

function displayPawExpand() {
	entry12=displayPawListings("johnnie","9","shot.sep.7.2008","ret");
	entry11=displayPawListings("tobyandkyle","27","shot.aug.31.2008","ret");
	entry10=displayPawListings("cj","9","shot.jun.24.2008","ret");
	entry9=displayPawListings("charliebeachday","23","shot.aug.10.2008","ret");
	entry8=displayPawListings("patrick","6","shot.dec.29.2007","ret");
	entry7=displayPawListings("joey","5","shot.dec.17.2007","ret");
	entry6=displayPawListings("jacksonandsamson","9","shot.dec.12.2007","ret");
	entry5=displayPawListings("marly","8","shot.apr.28.2007","ret");
	entry4=displayPawListings("charliecrazycool","7","lastUpdated.feb.2.2007","ret");
	entry3=displayPawListings("puppies1","7","shot.dec.12.2006","ret");
	entry2=displayPawListings("louie","5","shot.mar.11.2006","ret");
	entry1=displayPawListings("doggyportraits","5","lastUpdated.dec.19.2008","ret");
text="<div id=PawText class=listing>"+entry10+entry9+entry8+entry7+entry6+entry5+entry4+entry3+entry2+entry1+"<div style=margin-top:4px;><A HREF=javascript:displayPawShrink();>...less</a></div></div><br>";

var PawTextID="PawText";
this.PawText=text;
document.getElementById(PawTextID).innerHTML=PawText;
}//end displayPawListExpand


function displayPawShrink() {
text='<div id=PawText class=listing style=margin-top:4px;><A HREF=javascript:displayPawExpand();>more...</A></div>';

var PawTextID="PawText";
this.PawText=text;
document.getElementById(PawTextID).innerHTML=PawText;
}//end displayPawShrink



/////////////////////////////////////////////////////////////EVENT FUNCTIONS
function displayEventList() {
document.write('<div id="EventTextAll"><A HREF=javascript:displayEventExpandAll();><div class=eventToggle><b>expand all</b></div></A><br></div>');
document.write('<div id="EventText2003"><A HREF=javascript:displayEventExpand("2003");><div class=eventText><span class=plusSm>[+]</span> <b>2003</b></div></A><br></div>');
document.write('<div id="EventText2004"><A HREF=javascript:displayEventExpand("2004");><div class=eventText><span class=plusSm>[+]</span> <b>2004</b></div></A><br></div>');
document.write('<div id="EventText2005"><A HREF=javascript:displayEventExpand("2005");><div class=eventText><span class=plusSm>[+]</span> <b>2005</b></div></A><br></div>');
document.write('<div id="EventText2006"><A HREF=javascript:displayEventExpand("2006");><div class=eventText><span class=plusSm>[+]</span> <b>2006</b></div></A><br></div>');
document.write('<div id="EventText2007"><A HREF=javascript:displayEventExpand("2007");><div class=eventText><span class=plusSm>[+]</span> <b>2007</b></div></A><br></div>');
document.write('<div id="EventText2008"><A HREF=javascript:displayEventExpand("2008");><div class=eventText><span class=plusSm>[+]</span> <b>2008</b></div></A><br></div>');
document.write('<div id="EventText2009"><A HREF=javascript:displayEventExpand("2009");><div class=eventText><span class=plusSm>[+]</span> <b>2009</b></div></A><br></div>');

document.write("<div class=eventText><div style='margin:8px 14px 0 0';><span class=plusSm>[<img src=../images/hyphenRed.png width=11 height=8 border=0>]</span> <b>2010</b></div></div>");
		displayListing("events","sophie","52","../Scripts/displayPaws.html?sophie&7#");
		displayListing("events","chinese new years","53","../events/ChineseNewYears2010");
		displayListing("events","park city","54","../events/ParkCity2010");
		displayListing("events","looking for trouble","55","../events/LookingForTrouble2010");
		displayListing("events","beacon","56","../events/Beacon2010");
		displayListing("events","goodbye levi","57","../events/GoodbyeLevi2010");
		displayListing("events","new york to boston","58","../events/NewYorktoBoston2010");
		displayListing("events","big sur","59","../events/BigSur2010");
		displayListing("events","comic-con","60","../events/ComicCon2010");
}

function displayEventExpand(year) {
year=parseInt(year);
	if (year=="2003"){
		entry1=displayListing("events","thanksgiving","1","../events/Thanksgiving2003/index.html","ret");
		text="<div id='EventText"+year+"'><A HREF=javascript:displayEventShrink("+year+");><div class=eventText><span class=plusSm>[<img src=../images/hyphenRed.png width=11 height=8 border=0>]</span> <b>"+year+"</b></div></A></b><br>"+entry1+"</div>";	
	}	else if (year=="2004") {
		entry2=displayListing("events","ryan & sylvia's wedding","2","../events/SylviaWedding2004/index.html","ret");
		entry3=displayListing("events","maine trip","3","../events/Maine2004/index.html","ret");
		entry4=displayListing("events","thanksgiving","4","../events/Thanksgiving2004/index.html","ret");
		text="<div id='EventText"+year+"'><A HREF=javascript:displayEventShrink("+year+");><div class=eventText><span class=plusSm>[<img src=../images/hyphenRed.png width=11 height=8 border=0>]</span> <b>"+year+"</b></div></A></b><br>"+entry2+entry3+entry4+"</div>";
	} else if (year=="2005") {
		entry5=displayListing("events","welcome charlie","5","../events/Charlie2005/index.html","ret");
		entry6=displayListing("events","gavin & diana's wedding","6","../events/GavinDianaWedding2005/index.html","ret");
		entry7=displayListing("events","grandma's birthday","7","../events/GrandmasBirthday2005/index.html","ret");
		entry8=displayListing("events","adventure race","8","../events/AdventureRace2005/index.html","ret");
		entry9=displayListing("events","santa barbara","9","../events/SantaBarbara2005/index.html","ret");
		entry10=displayListing("events","thanksgiving","10","../events/Thanksgiving2005/index.html","ret");
		text="<div id='EventText"+year+"'><A HREF=javascript:displayEventShrink("+year+");><div class=eventText><span class=plusSm>[<img src=../images/hyphenRed.png width=11 height=8 border=0>]</span> <b>"+year+"</b></div></A></b><br>"+entry5+entry6+entry7+entry8+entry9+entry10+"</div>";
	} else if (year=="2006") {
		entry11=displayListing("events","vancouver trip","11","../events/Vancouver2006/index.html","ret");
		entry112=displayListing("events","vancouver people","112","../events/Vancouver2006/people/index.html","ret");
		entry12=displayListing("events","phelan house","12","../events/PhelanHouseUpdated/index.html","ret");
		entry13=displayListing("events","hodges family","13","../events/Hodges2006/index.html","ret");
		entry14=displayListing("events","thanksgiving","14","../events/Thanksgiving2006/index.html","ret");
		text="<div id='EventText"+year+"'><A HREF=javascript:displayEventShrink("+year+");><div class=eventText><span class=plusSm>[<img src=../images/hyphenRed.png width=11 height=8 border=0>]</span> <b>"+year+"</b></div></A></b><br>"+entry11+entry112+entry12+entry13+entry14+"</div>";
	} else if (year=="2007") {		
		entry15=displayListing("events","japan premiere","15","../events/JapanPremiere2007/index.html","ret");
		entry16=displayListing("events","new york premiere","16","../events/NewYorkPremiere2007/index.html","ret");
		entry17=displayListing("events","san francisco trip","17","../events/SanFrancisco2007/index.html","ret");
		entry18=displayListing("events","aaron & laura's wedding","18","../events/AaronLauraWedding2007/index.html","ret");
		entry19=displayListing("events","thanksgiving","19","../events/Thanksgiving2007/index.html","ret");
		entry20=displayListing("events","meet jackson & samson","20","../events/JacksonSamson2007/index.html","ret");
		entry21=displayListing("events","seattle trip","21","../events/Seattle2007/index.html","ret");
		entry22=displayListing("events","patrick the pup","22","../events/Patrick2007/index.html","ret");		
		text="<div id='EventText"+year+"'><A HREF=javascript:displayEventShrink("+year+");><div class=eventText><span class=plusSm>[<img src=../images/hyphenRed.png width=11 height=8 border=0>]</span> <b>"+year+"</b></div></A></b><br>"+entry15+entry16+entry17+entry18+entry19+entry20+entry21+entry22+"</div>";		
	} else if (year=="2008") {		
		entry23=displayListing("events","richard & regina's wedding","23","../events/RichardReginaWedding2008/index.html","ret");
		entry24=displayListing("events","redondo to santa monica","24","../events/RedondoToSantaMonica2008/index.html","ret");
		entry25=displayListing("events","grandpa's 90th birthday","25","../events/GrandpasBirthday2008/index.html","ret");
		entry26=displayListing("events","kelly's birthday","26","../events/KellysBirthday2008/index.html","ret");
		entry27=displayListing("events","chances","27","../events/Chances2008/index.html","ret");
		entry28=displayListing("events","chicago trip","28","../events/Chicago2008/index.html","ret");
		entry29=displayListing("events","thanksgiving","29","../events/Thanksgiving2008/index.html","ret");
		entry30=displayListing("events","chi holiday vacation","30","../events/ChiHoliday2008/index.html","ret");	
		text="<div id='EventText"+year+"'><A HREF=javascript:displayEventShrink("+year+");><div class=eventText><span class=plusSm>[<img src=../images/hyphenRed.png width=11 height=8 border=0>]</span> <b>"+year+"</b></div></A></b><br>"+entry23+entry24+entry25+entry26+entry27+entry28+entry29+entry30+"</div>";
	} else if (year=="2009") {		
		entry31=displayListing("events","solano beach","31","../events/SolanoBeach2009/index.html","ret");
		entry32=displayListing("events","khan","32","../events/Khan2009/index.html","ret");
		entry33=displayListing("events","new york","33","../events/NewYork2009/index.html","ret");
		entry34=displayListing("events","new zealand","34","../events/NewZealand2009/index.html","ret");
		entry35=displayListing("events","nostalgia & dreams","34","../events/Nostalgia2009/index.html","ret");
		entry36=displayListing("events","getty museum","35","../events/Getty2009/index.html","ret");
		entry37=displayListing("events","mieko","36","../Scripts/displayPaws.html?mieko&8#","ret");
		entry38=displayListing("events","evelyn & clay's wedding","37","../events/EvelynClayWedding2009/index.html","ret");
		entry39=displayListing("events","evelyn & clay's photobooth","38","../events/ecPhotobooth2009/index.html","ret");
		entry40=displayListing("events","boomer","39","../events/boomer2009/index.html","ret");
		entry41=displayListing("events","seattle","40","../events/Seattle2009/index.html","ret");
		entry42=displayListing("events","orlando","41","../events/Orlando2009/index.html","ret");
		entry43=displayListing("events","new zealand... again","42","../events/NewZealand2009_2/index.html","ret");
		entry44=displayListing("events","comic-con","43","../events/ComicCon2009/index.html","ret");
		entry45=displayListing("events","big sur","44","../events/BigSur2009/index.html","ret");
		entry46=displayListing("events","freddie at the beach","45","../Scripts/displayPaws.html?freddiebeachday&13#","ret");		
		entry47=displayListing("events","pinky","46","/Scripts/displayPaws.html?pinky&9#","ret");		
		entry48=displayListing("events","china","47","../events/China2009/index.html","ret");
		entry49=displayListing("events","beryl and jeremy's wedding","48","../events/BerylsWedding2009/index.html","ret");
		entry50=displayListing("events","new zealand... the 3rd","49","../events/NewZealand2009_3/index.html","ret");
		entry51=displayListing("events","oliver and lucy","50","../events/OliverAndLucy2009/index.html","ret");
		entry52=displayListing("events","thanksgiving","51","../events/Thanksgiving2009/index.html","ret");
		text="<div id='EventText"+year+"'><A HREF=javascript:displayEventShrink("+year+");><div class=eventText><span class=plusSm>[<img src=../images/hyphenRed.png width=11 height=8 border=0>]</span> <b>"+year+"</b></div></A></b><br>"+entry31+entry32+entry33+entry34+entry35+entry36+entry37+entry38+entry39+entry40+entry41+entry42+entry43+entry44+entry45+entry46+entry47+entry48+entry49+entry50+entry51+entry52+"</div>";

	}//end year choices

EventText="EventText"+year;
var EventTextID="EventText"+year;
this.EventText="<font size=-1>"+text+"</font>";
document.getElementById(EventTextID).innerHTML=EventText;
}//end displayEventListExpand

function displayEventShrink(year) {
text="<div id='EventText"+year+"'><A HREF=javascript:displayEventExpand("+year+");><div class=eventText><span class=plusSm>[+]</span> <b>"+year+"</b></div></A></b><br></div>";

EventText="EventText"+year;
var EventTextID="EventText"+year;
this.EventText="<font size=-1>"+text+"</font>";
document.getElementById(EventTextID).innerHTML=EventText;
}//end displayEventShrink

function displayEventExpandAll(year) {
		displayEventExpand("2003");
		displayEventExpand("2004");
		displayEventExpand("2005");
		displayEventExpand("2006");
		displayEventExpand("2007");
		displayEventExpand("2008");
		displayEventExpand("2009");
		text="<div id='EventTextAll'><A HREF=javascript:displayEventShrinkAll();><div class=eventToggle><b>shrink all</b></div></A></b><br></div>";

EventText="EventTextAll"
var EventTextAllID="EventTextAll"
this.EventTextAll="<font size=-1>"+text+"</font>";
document.getElementById(EventTextAllID).innerHTML=EventTextAll;
}// end displayEventExpandAll

function displayEventShrinkAll(year) {
		displayEventShrink("2003");
		displayEventShrink("2004");
		displayEventShrink("2005");
		displayEventShrink("2006");
		displayEventShrink("2007");
		displayEventShrink("2008");
		displayEventShrink("2009");
		text="<div id='EventTextAll'><A HREF=javascript:displayEventExpandAll();><div class=eventToggle><b>expand all</b></div></A></b><br></div>";

EventText="EventTextAll"
var EventTextAllID="EventTextAll"
this.EventTextAll="<font size=-1>"+text+"</font>";
document.getElementById(EventTextAllID).innerHTML=EventTextAll;
}// end displayEventShrinkAll

/////////////////////////////////////////////////////////////LANDSCAPE FUNCTIONS
function displayLandscapeList(landscapeOn,select) {
if (!select) select="galleries";
document.write('<div id=LandscapeText><A HREF=javascript:displayLandscapeExpand('+select+');><div class=landscapeHead>[+] landscape</div></A><br></div>');

if (landscapeOn!=1) displayLandscapeExpand(select);

} //end displayLandscapeList

function displayLandscapeExpand(select) {
	entry1=displayListing("california","california","1",select,"ret");
	entry2=displayListing("canada","canada","2",select,"ret");
	entry3=displayListing("china","china","3",select,"ret");
	entry4=displayListing("florida","florida","4",select,"ret");
	entry5=displayListing("georgia","georgia","5",select,"ret");
	entry6=displayListing("hawaii","hawaii","6",select,"ret");
	entry7=displayListing("illinois","illinois","7",select,"ret");
	entry8=displayListing("japan","japan","8",select,"ret");
	entry9=displayListing("maine","maine","9",select,"ret");
	entry10=displayListing("massachusetts","massachusetts","10",select,"ret");
	entry11=displayListing("nevada","nevada","11",select,"ret");
	entry12=displayListing("newmexico","new mexico","12",select,"ret");
	entry13=displayListing("newyork","new york","13",select,"ret");
	entry14=displayListing("newzealand","new zealand","14",select,"ret");
	entry15=displayListing("tennessee","tennessee","15",select,"ret");
	entry16=displayListing("washington","washington","16",select,"ret");
	entry17=displayListing("utah","utah","17",select,"ret");
text="<div id=LandscapeText><A HREF=javascript:displayLandscapeShrink('"+select+"');><div class=landscapeHead><span class=plusSm>[<img src=../images/hyphenRed.png width=11 height=8 border=0>]</span> <b>landscape</b></div></a></div>"+entry1+entry2+entry3+entry4+entry5+entry6+entry7+entry8+entry9+entry10+entry11+entry12+entry13+entry14+entry15+entry16+entry17+"<br>";

var LandscapeTextID="LandscapeText";
this.LandscapeText="<font size=-1>"+text+"</font>";
document.getElementById(LandscapeTextID).innerHTML=LandscapeText;
}//end displayLandscapeListExpand


function displayLandscapeShrink(select) {
text="<div id=LandscapeText><A HREF=javascript:displayLandscapeExpand('"+select+"');><div class=landscapeHead><span class=plusSm>[+]</span> landscape</div></A></b><br></div>";

var LandscapeTextID="LandscapeText";
this.LandscapeText="<font size=-1>"+text+"</font>";
document.getElementById(LandscapeTextID).innerHTML=LandscapeText;
}//end displayLandscapeShrink


