var site = {};

var preload = "<span id='img1'></span><span id='img2'></span>";

site.head = function(title, subtitle){
	return	"<table id='header' width='100%'>" +
			"<tr><td><div id='title'>&nbsp;</div></td>" +
			"<td><div id='subtitle'>" + preload + subtitle + "&nbsp;</div>" + "</td></tr>" +
			"</table>" +
			"<div id='popupholder'></div>";
}
/*
site.mainimage = function(innerimage, outerimage){
	return "<tr id='outer-image'>" +
				 "<td colspan='2'></td><td id='inner-image' >" +
				 "</td><td colspan='2'></td></tr>"; 
}
*/
site.mainimage = function(innerimage, outerimage){
	return "<tr id='outer-image' style='" +
				 "background-image:url(images/" + outerimage + ");background-repeat:repeat-x;'>" +
				 "<td colspan='2'></td><td id='inner-image' style='" +
				 "background-image:url(images/" + innerimage + ");background-repeat:no-repeat;'>" + 
				 "</td><td colspan='2'></td></tr>"; 
}

site.copyright = function(message){
	return	"<p>" +	"<div style='font-size:9px;text-align:center;color:#999999;'>" + 
					message + "</div></p>";
}

var $FHFheader = {toString: function(){
	site.adjustFonts();
	var s = "";
	s += site.head("", "Help to Improve One Life at a Time");
	return s;
}};

var $FHFabout = {toString: function(){
	site.adjustFonts();
	var s = "";
	s += site.mainimage("fhfboys.jpg","fhfboys.jpg");
	return s;
}};


var $FHFmainimage = {toString: function(){
	site.adjustFonts();
	var s = "";
	s += site.mainimage("inner-image1.jpg","outer-image1.jpg");
	return s;
}};
var $FHFvolunteerimage = {toString: function(){
	site.adjustFonts();
	var s = "";
	s += site.mainimage("volunteer.jpg","treefade.jpg");
	return s;
}};
var $FHFmclinicimage = {toString: function(){
	site.adjustFonts();
	var s = "";
	s += site.mainimage("mclinic.jpg","treefade.jpg");
	return s;
}};
var $FHFeventimage = {toString: function(){
	site.adjustFonts();
	var s = "";
	s += site.mainimage("HoXuanHuong.jpg","bamboos.jpg");
	return s;
}};
var $FHFimpactimage = {toString: function(){
	site.adjustFonts();
	var s = "";
	s += site.mainimage("bamboos.jpg","bamboos.jpg");
	return s;
}};

var $footer = {toString: function(){
	var s = "";
	s += site.copyright("Copyright &copy; 2010 Friends of Hue Foundation. All Rights Reserved.") ;
	return s;
}};

var $whatsnew = {toString: function(){
	site.adjustFonts();
	var s = "";
	/* s += "<li><a href='javascript:void(0);' onclick='dynamicText($FHFcommingevent); return false;'><font color='#F84F00'>SOLD OUT:</font> FHF's Comic Care Featuring DAT PHAN</a></li>" + 
	 "<font color='#333'> @ San Jose City College Theater, 2100 Moorpark Ave., San Jose<br>[<a href='http://maps.google.com/maps?q=San+Jose+City+College,+2100+Moorpark+Ave,+San+Jose,+CA,+USA&sa=X&oi=map&ct=title'><font color='#0000FF'>DIRECTIONS</font></a>]</font>" +
	 "<a href='http://www.friendsofhue.org/sjcc_campusmap.pdf'>[<font color='#0000FF'>CAMPUS MAP</font>]</a>" +
	
  /* "<li><a href='javascript:void(0);' onclick='imagePopup(&quot;images/new/Postcard_HoXuanHuong.jpg&quot;); return false;'>Event At A Glance</a></li>" +
  "<li><a href='javascript:void(0);' onclick='dynamicText($FHFfromJustin); return false;'>Letter from Justin</a></li>" +
  "<li><a href='http://pg.photos.yahoo.com/ph/utpa982002/slideshow?.dir=/7a01scd&.src=ph&.tok=phBLT6EBYgTgRXqj' >Photos from Huan</a></li>" +
  "<li><a href='index_typhoon.html'><font color='#F84F00'>Typhoon Xangsane</font></a></li>" + 

  "<li><a href='index_typhoon.html'>Typhoon Xangsane</a></li>" +
  "<li><a href='javascript:void(0);' onclick='dynamicText($FHFtyphoonXangsane); return false;'>Report on Typhoon Xangsane Relief</a></li>" + */

 /* "<li><a href='javascript:void(0);' onclick='imagePopup(&quot;images/new/typhoon_relief3.jpg&quot;); return false;'>FHF on local newspaper</a></li>" +
  "<li><a href='javascript:void(0);' onclick='dynamicText($FHFdonorlist); return false;'>Thanks for your support</a></li>" +
  "<li><a href='javascript:void(0);' onclick='dynamicText($FHFsales); return false;'>Canvas Bags for Sale</a></li>" +
"<li><a href='javascript:void(0);' onclick='imagePopup(&quot;images/new/Postcard_back.jpg&quot;); return false;'>2006 At A Glance</a></li>" + */
  "<li><a href='javascript:void(0);' onclick='dynamicText($FHFnewletter); dynamicImage(&quot;volunteer.jpg&quot;, &quot;treefade.jpg&quot;); return false;'>Volunteer Opportunities</a></li>" +
  "<li><a href='javascript:void(0);' onclick='setOverseas(); dynamicImage(&quot;mclinic.jpg&quot;, &quot;treefade.jpg&quot;); return false;'>Words from some Overseas Volunteers</a></li>";

	return s;
}};

var $bulletin = {toString: function(){
	site.adjustFonts();
	var s = "";
	s +=  	 "<div class='box-section'>" + 
    	"<h2>THONG BAO TUYEN DUNG</h2>" +
			"<p>Hoi Than Huu Hue (Friends of Hue Foundation) dang can tuyen mot Pho Ðai Dien Trong nuoc.<br>" + 
"Co quan dong tai Thanh pho Hue      " + 
"<a href='http://www.friendsofhue.org/jobs_viec_lam/thong_bao_tuyen_dung.htm'><font color='#0000FF'>(Tiep theo...)</font></a></p>" +
 
		"</div>"+ 
						
	"<div class='box-section'>" + 
	"<h2>Peruse Our First Magazine!</h2>" +
        "<p>A labor of love and result of many contributors.  We would like to thank our wonderful friends Annabel Nguyen and Eleonora Ronconi for their contributions.  Without Eleonora's sacrifice we would not have such vibrant photos to share.  Eleonora is as beautiful, talented, and brave as she is generous. Thanks to Annabel, without whose superb design skills and tremendous patience our magazine would not have been such a dynamic showcase of FHF and the people we have been able to make an impact upon. [<a href='http://www.friendsofhue.org/documents/FHFMagazine-Oct2008-LoRez_Webversion.pdf'>here</a>]</p>" +
	"</div>" + 
	"<h2>FHF Vocational Center First Graduates</h2>" +
        "<p>We are proud to announce many firsts: the first graduates of our first ESL, Computer Literacy and Industrial Sewing classes." +
    	"All students of the Industrial Sewing class received job placement assistance and found jobs." +
    	"We are continuing to raise funds for the next crops of courses.</p>" +
	"<div class='box-section'>" + 
	"</div>";
	return s;
}};

var $FHFcommingevent = {toString: function(){
	site.adjustFonts();
	var s = "";
	
	s += "<p><h4><i>Friends of Hue Foundation Proud to Announce Our Comic Care Event is <font color='#F84F00'>SOLD OUT</font></i></h4></p>";
	s += "<h2>DAT PHAN</h2>";
	s += "<h4>A winner of NBC's hit reality show \"Last Comic Standing\"</h4></p>";
	s += "<h2>Ali Wong</h2>";
	s += "<h4>Featured on Jamie Foxx's LAFFAPALOOZA</h4></p>";
	s += "<h2>PETER VO</h2>";
	s += "<h4>A writer of MAD TV</h4></p>";
	s += "<p><h4>What has 800 arms, 13,200 vertebrae and laughs like crazy?<br><br>The audience at Friends of Hue's COMIC CARE event!</h4></p>";
	s += "<div style='float:left;margin:16px 8px 0px 0px;'><img src='images/new/Dat_headshot_small.jpg' border='0'></div>";
	s += "<p><br>We will see you at the San Jose City College Theater <font class='hilightlink'>[<a href='http://maps.google.com/maps?q=San+Jose+City+College,+2100+Moorpark+Ave,+San+Jose,+CA,+USA&sa=X&oi=map&ct=title'>DIRECTIONS</a>] [<a href='http://www.friendsofhue.org/sjcc_campusmap.pdf'>CAMPUS MAP</a>]</font> for a special evening of side-splitting comedy as Dat Phan makes his only Bay Area appearance this fall.  <br><br><b>PARKING INFO:</b> The show starts at 7:00 PM but we encourage you to be there by 6:30 PM due to a football game on campus at the same time as our show. Check Campus Map link above for theater and parking locations. STAFF parking lot adjacent to the theater is free but limited in number. Additional parking can be found on the street. Two student parking lots with entrance on Leigh street are available for a $2 fee/car. </p>";
	s += "<p><br>Date:  Saturday October 06, 2007 <br>Time: 7:00 PM <br>Place: San Jose City College Theater <br>2100 Moorpark Ave., San Jose</p><font class='hilightlink'>[<a href='http://maps.google.com/maps?q=San+Jose+City+College,+2100+Moorpark+Ave,+San+Jose,+CA,+USA&sa=X&oi=map&ct=title'>DIRECTIONS</a>][<a href='http://www.friendsofhue.org/sjcc_campusmap.pdf'>CAMPUS MAP</a>]</font>";
	s += "<p>If you have already purchased tickets for our previous show we will honor them for this show.</p>";
	s += "<p>The Comic Care fundraiser will be held in a much more intimate setting so tickets are SOLD OUT.  Thank you to our supporters for making this possible.  We will see you at the show!<br>";
	s += "<p>For more information about Dat Phan, please visit <a href='http://www.datphan.com' target='blank'>www.datphan.com</a>.</p>";
	s += "<div style='clear:both;' class='hilightlink'>";
	s += "<p>If you would like to make a donation to the Friends of Hue Foundation please</p>";
	s += "<p><a href='https://secure.groundspring.org/dn/index.php?aid=6955'>Click here to make your donation.</a></p>";
	s += "</div>";
	s += "<div>";
	s += "<h2>VIDEO: Dat Phan on Last Comic Standing Four</h2><br>";
	s += "<table align='center' border='0'><embed src='http://www.veoh.com/videodetails.swf?&player=videodetails&isVlog=false&permalinkId=v466449p4HRMQwe&file=b53d50dbb0b4eed503ec28b8c6a9740b5fc51a3c' width='425' height='340' type='application/x-shockwave-flash'></embed></table>";
	s += "</div>"; 
	s += "<h2>Don't Miss It!</h2>";
	s += "<p>Proceeds will benefit the Friends of Hue Foundation.  We maintain a Childrens\' Shelter and Vocational Learning Center in Thua Thien Hue Province and provide basic medical care to rural communities in the Central area of Vietnam.  All U.S.-based staff serve as unpaid volunteers, and all proceeds from this show will go directly to our Children\'s Shelter.</p>";
	
	/* s += "<p>Two little girls were about to be sold into Laos in February of this year.  We intervened in time and took them to our children's shelter.  They are now well cared for by our devoted house mothers and enjoy going to school along with their other adopted brothers and sisters.  Three weeks ago, we took in a boy who was severely mentally and physically abused by his mentally disabled sister to the point that he had to wander the streets to escape the beatings.  Last September, we opened our door to 10 children who suffered all kind of tragedies in life.  Their stories would bring tears to your eyes.</p>";
	s += "<h2>A Dollar A Child:</h2>";
	s += "<p>All of this started in the wake of the 1999 great flood in Central Vietnam, when a group of local San Jose volunteers decided to establish a shelter for children whose parents did not survive the natural disaster.  Since then, the shelter has become a great haven for orphans and disadvantaged children who seek for a better life.  Thanks to your continuing support, we now raise a family of 43 happy and beautiful children.  For $1 a day, you can give love, care, and education to one of our children.</p>";  
	s += "<p>Our work does not stop at the children's shelter.  With the generous help from East Meets West Foundation, we have finished building a vocational training center designed to take in more disadvantaged children--those who have parents but suffer extreme poverty.  This is our effort to reduce the number of children who would otherwise become prey to human traffickers.  For $100, you can help a child become self-sufficient and stay out of the risk of human trafficking.</p>";
	s += "<h2>A Dollar A Patient or Sponsor A Village:</h2>";
	s += "<p>Not only we help the children in Thua Thien Hue, but we also extend our care to children in other more remote areas such as A Luoi, Huong Tra, Phu Loc, Huong Thuy, Quang Dien, Phong Dien, Phu Van, Boat Villages, etc.  Every month we send a mobile medical clinic to rural places in the needy areas of Central Vietnam.  Our team normally is comprised of volunteered doctors, nurses, and medical students from different nations.  We provide free medical check ups, medications, vaccinations, as well as screening forchildren with serious medical conditions.  For those who need further medical attention, we refer them to Hue Hospital and pay for part of their medical costs and traveling expenses.  People from those villages we stopped by anxiously wait for our return.  They gather in flocks since very early morning waiting every time we return.  We serve from 350 to 500 people on each trip.  For only $350, you can sponsor one of these trips and help hundreds of people.</p>";
	s += "<h2>Project Hope:</h2>";
	s += "<p>We also help children who need open-heart surgery.  Currently, we have 5 children who are waiting on the list.  We work with East Meets West Foundation to help these children.  For $1,000, you will give one of these children a new chance to life.  Please see their profiles attached.</p>";
	s += "<p>Central Vietnam is very vulnerable to natural disasters.  Last year, Typhoon Xangsane literally left thousand of families without a roof over their heads.  We responded in time to provide them with roof replacement materials and blankets to help them rebuild their homes immediately.</p>";
	s += "<p>Who are we?  We are just like you.  The Friends of Hue Foundation (www.friendsofhue.org) is comprised of individuals who care.  We come from different walks of life.  We are students, professors, engineers, artists, lawyers, social workers, business owners, busy moms, etc.  Please join us and make a difference in someone's life.</p>";
	s += "<p>Please become a sponsor for one of the following:</p>";
	s += "<p><ul class='normallist'><li>	A child in our children's shelter: $365 per child per year</li>";
	s += "<li>	Our Vocational Training program: $100 per child to complete the program</li>";
	s += "<li>	Our mobile medical clinic: $350 to sponsor a village</li>";
	s += "<li>	A child in need of open heart surgery: $1000 to save one child</li>";
	s += "<li>	Our natural disaster emergency fund: $100 per family</li></ul></p>";
	s += "<p>On behalf of the recipients of your sponsorship, we sincerely thank you.</p>";*/
	return s;
}}; 

var $FHFtyphoonXangsane = {toString: function(){
	site.adjustFonts();
	var s = "";
	s += "<br>";
	s += "<div style='float:left;margin:16px 8px 0px 0px;'><img src='images/new/typhoon_relief1.jpg' border='0'></div>";
	s += "<p>On the 11th of October,2006, FHF organized the distribution of 1,280 cement-metal sheets (worth $2,000US) for 64 families with collapsed houses in villages of LocVinh (14 families), Loc Binh (10 families), LocTien (10 families), LocDien (10 families), LocAn (10 families) and LangCo (10 families), each in the  PhuLoc District of Thua Thien Hue Province. Each family received 20 pieces of cement-metal sheet (worth 500.000dvn=$31.44US per family) to repair their houses. Before carrying out the program, FHF consulted with the local People's Committees of 6 communes and Thua Thien Hue's Red Cross in order to select the 64 families, out of a total of 603 suffering severe home damage, to assist.  Selection was based on financial need. </p> ";
	s += "<div style='float:right;margin:8px 0px 8px 8px;'><img src='images/new/typhoon_relief2.jpg' border='0'></div>";
 	s += "<p>After finishing the distribution, the assisted villagers and the local authorities from the six communes thanked us for the timely support of FHF.  Our assistance enables the villagers in rebuilding their houses and returning to a stable life.</p> ";
	s += "<p><a href='http://hue.vietnamnet.vn/hue24h/2006/10/164531/' target='_blank'>T? ch?c Friends of Hue Foundation h? tr? 1.280 t?m l?p xi mang cho ngu?i dân ?nh hu?ng do bão l?t</a></p> ";
 	s += "<div style='clear:both;'></div>";
 	s += "<p style='font-size:9px;text-align:center;color:#999999;'>- 10/15/2006 -</p>";

	return s;
}};

var $FHFdonorlist = {toString: function(){
	site.adjustFonts();
	var s = "";
	s += "<br>";
	s += "<table width='500px' style='font-size: .7em;'>";
	s += "<tr bgcolor='#F5F5F5'>";
	s += "<th>Date</th><th>Donor</th><th>Event Donation</th><th>Sponsorship</th>";
	s += "</tr>";
	
	var donorlist = donorarray();

  for (i in donorlist)
    {
    var bgcolor;
   	if ((i%2) == 0)
  		 bgcolor = "#FFFFFF";
  	else
  		 bgcolor = "#F5F5F5";
  	var donorentry = donorlist[i].split("#");
      s += "<tr bgcolor=" + bgcolor + ">";
  	for (j in donorentry)
  	{
  		s += "<td>" + donorentry[j] + "</td>";
  	}
      s += "</tr>";
    }
  
  s += "</table>";

	return s;
}};

function donorarray() {
  var donorcontent = 
"\
4/18/2006	#	Lieu Thi Dang	#	$200 	#	$350 	|	\
4/21/2006	#	Renaud Guillemot	#		#	$335 	|	\
4/21/2006	#	Applied Material employee (Anonymous)	#	$300 	#		|	\
4/21/2006	#	Applied Mat. company matching	#	$300 	#		|	\
4/25/2006	#	ToNhu thi Do	#		#	$350 	|	\
4/25/2006	#	Justin Gaynor	#	$80 	#	$350 	|	\
4/28/2006	#	Donald J. Link (Skirtplus Corp.)	#		#	$350 	|	\
4/28/2006	#	Mark B. Vecker (Skirtplus Corp.)	#		#	$350 	|	\
4/28/2006	#	Philip Tran & Lauren Hoang	#	$100 	#		|	\
5/1/2006	#	Mai Bui	#	$100 	#		|	\
5/1/2006	#	Craig & Marie Lebrun Hosoda	#	$50 	#	$350 	|	\
5/1/2006	#	Thai Tran (Café Via He)	#		#	$350 	|	\
5/1/2006	#	April (Hui) Zhu	#		#	$350 	|	\
5/1/2006	#	Huong van Nguyen	#	$50 	#		|	\
5/2/2006	#	Donald and Carole Flaxman	#	$250 	#		|	\
5/9/2006	#	Huan Nguyen	#		#	$700 	|	\
5/9/2006	#	Rosalie Hunt	#	$100 	#		|	\
5/9/2006	#	Hang Bourque	#	$200 	#		|	\
5/10/2006	#	Huu Dinh Nguyen	#		#	$350 	|	\
5/11/2006	#	Hung Nguyen	#	$25 	#		|	\
5/12/2006	#	Stephanie Teeters	#	$25 	#		|	\
5/15/2006	#	Ton That Luan	#		#		|	\
5/16/2006	#	Tuan Tran	#		#	$350 	|	\
5/16/2006	#	Global Supply Co.	#	$150 	#	$350 	|	\
5/16/2006	#	Dan Do	#		#	$350 	|	\
5/16/2006	#	Jenny Do	#		#	$350 	|	\
6/19/2006	#	Dr. James Freeman	#		#	$350 	|	\
5/20/2006	#	Van Van Nguyen	#		#	$350 	|	\
5/22/2006	#	Sandy Dinh & Barry Concklin	#		#	$350 	|	\
6/22/2006	#	Kim Dinh	#		#	$350 	|	\
5/24/2006	#	John Anner	#		#	$350 	|	\
5/20/2006	#	Andrew Nguyen	#		#	$350 	|	\
5/20/2006	#	L/O Bernard Bray	#		#	$350 	|	\
6/7/2006	#	Christina Tuyet Nguyen	#		#	$350 	|	\
	#	Kha Nguyen	#		#	$350 	|	\
5/20/2005	#	County Supervisor Pete McHugh	#		#	$350 	|	\
5/20/2005	#	L/O Doan, Nguyen & Do	#		#	$350 	|	\
5/20/2005	#	Hanna Bui-Eve	#	$250 	#		|	\
5/24/2006	#	Quyen Vuong	#	$200 	#		|	\
5/18/2006	#	Asian American Women's Alliance	#	$200 	#		|	\
5/17/2006	#	Anonymous 	#	$10 	#		|	\
5/20/2006	#	Memarie Asso. Inc	#		#	$700 	|	\
5/20/2006	#	Saratoga Construction, Inc.	#		#	$700 	|	\
5/20/2006	#	Triera R. & David Holley	#	$250 	#		|	\
5/20/2006	#	Phuc H. Tran 	#	$150 	#	$350 	|	\
5/20/2006	#	Nha Magazine	#	$100 	#		|	\
5/20/2006	#	Arthur Bao & Tracie Nguyen	#		#	$700 	|	\
5/20/2006	#	Linda Tsoi	#	$200 	#		|	\
5/20/2006	#	Nhien Thien Luong	#	$250 	#		|	\
5/20/2006	#	Linh Cam Nguyen	#	$300 	#		|	\
5/20/2006	#	QuynhHoa Tran & William Stelma	#		#	$350 	|	\
5/20/2006	#	Thu Thi Nguyen	#	$50 	#		|	\
5/20/2006	#	Anonymous 	#	$70 	#		|	\
5/20/2006	#	Philip Tran	#	$10 	#		|	\
5/20/2006	#	Teresa Vu	#	$50 	#		|	\
5/20/2006	#	Marie Nhan Hoang	#	$200 	#		|	\
5/20/2006	#	Elizabeth Jiang 	#	$1.00 	#		|	\
5/20/2006	#	Lien Huong Cao	#	$25.00 	#		|	\
5/20/2006	#	Courtney Chalupa	#		#		|	\
6/2/2006	#	Trung Lam	#		#	$350 	|	\
5/24/2006	#	Dr. Vincent Do	#		#	$350 	|	\
5/20/2006	#	Dr. Meza	#		#	$350 	|	\
5/24/2006	#	Dr. Thinh Nguyen	#		#	$350 	|	\
6/19/2006	#	Hung Tran	#		#	$350 	|	\
5/22/2006	#	Doan-Trang Tran	#		#	$350 	|	\
5/23/2006	#	Meena My-Nga	#		#	$350 	|	\
5/18/2006	#	Anonymous 	#	$10 	#		|	\
5/30/2006	#	Thomas Le Nhu	#	$100 	#		|	\
6/7/2006	#	Doan Tu Huyen - Thanh Tri	#	$30 	#		|	\
6/7/2006	#	Westman Association	#		#	$350 	|	\
6/7/2006	#	Khanh Nguyen c/o Christine Lebrun	#	$40 	#		|	\
6/16/2006	#	National Semiconductor Company	#		#	$350 	|	\
5/12/2006	#	Debbie & Bob Holl	#	$24.25 	#		|	\
5/7/2006	#	Catherine Dunham	#	$24.25 	#		|	\
5/10/2006	#	Vanessa Thien	#	$9.70 	#		|	\
5/12/2006	#	Debbie & Bob Holl	#	$24.25 	#		|	\
";
  var donorlist = new Array();
  donorlist = donorcontent.split("|");
  return donorlist;
}

var $FHFnewletter = {toString: function(){
	site.adjustFonts();
	var s = "";
	s += "<br>";
	s += "<p>In Colorado, cats may not venture outdoors at night unless equipped with taillights.  Creatures from outer space are legally prohibited from parking their rockets in French vineyards.  Anyone tethering their camel to a parking meter in Virginia may expect a ticket, even if they insert the proper change.  And do not, dear reader, attempt to sell cabbages in New Jersey on a Sunday, for this has been forbidden by statute. </p> ";
 	s += "<p>In these and more serious matters, life may seem random, inexplicable and beyond our control.  Every day, the newspapers and news programs remind us of the terrible struggles humankind faces, and the various ways that people are suffering.  None of us are happy about this, but how can an ordinary citizen be expected to solve the problems within their neighborhood, let alone across the globe? </p> ";
 	s += "<p>Some opt for total immersion:  trekking through jungles with medicine pouches, setting up clean water supplies in refugee camps, and hounding large foundations for much-needed funds.  At the opposite end of the spectrum, one might be tempted to withdraw into a small self-contained world, waiting (and waiting) for things to improve before coming out again. </p> ";
 	s += "<p>We would like to offer an alternative.  </p>";
 	s += "<p>The Friends of Hue Foundation is a small nonprofit organization with an all-volunteer staff in the U.S.  Our primary job is maintaining an orphanage near Hue, in the central area of Vietnam.  Our group was established in the year 2000, after devastating floods in 1999 left a large number of people homeless, and many children without parents.  Ours is a small, friendly group with a strong sense of focus.  Like everyone else, we know that we cannot solve the world’s problems, but we are remarkably effective in providing better lives for thirty-one children, providing them regular meals, a safe haven and education. </p> ";
 	s += "<p>If you feel an urge to help others but have never quite figured out how, please contact us at info@friendsofhue.org or (408) 455-0175 to ask about volunteer opportunities.  We look forward to hearing from you. </p> ";

	return s;
}};

var $FHFsales = {toString: function(){
	site.adjustFonts();
	var s = "";
	s += "<br>";
/*	s += "<img src='images/new/white_bag_250.jpg' style='float:left;margin:0 0 0 25px;' alt='white canvas bag' onclick='imagePopup(&quot;images/new/white_bag_600.jpg&quot;);'>";
	s += "<img src='images/new/white_logo_250.jpg' style='float:right;margin:31px 25px 0 0;' alt='logo on white bag' onclick='imagePopup(&quot;images/new/white_logo_800.jpg&quot;);'>";
*/	s += "<img src='images/new/white_bag_250.jpg' style='float:left;margin:0 0 0 25px;' alt='white canvas bag'>";
	s += "<img src='images/new/white_logo_250.jpg' style='float:right;margin:31px 25px 0 0;' alt='logo on white bag'>";
	s += "<h4 style='clear:both;'><br>White canvas bag: $15</h4>";
	s += "<br>";
/*	s += "<img src='images/new/black_bag_250.jpg' style='float:left;margin:0 0 0 25px;' alt='black canvas bag' onclick='imagePopup(&quot;images/new/black_bag_600.jpg&quot;);'>";
	s += "<img src='images/new/black_logo_250.jpg' style='float:right;margin:31px 25px 0 0;' alt='logo on black bag' onclick='imagePopup(&quot;images/new/black_logo_800.jpg&quot;);'>";
*/	s += "<img src='images/new/black_bag_250.jpg' style='float:left;margin:0 0 0 25px;' alt='black canvas bag'>";
	s += "<img src='images/new/black_logo_250.jpg' style='float:right;margin:31px 25px 0 0;' alt='logo on black bag'>";
	s += "<h4 style='clear:both;'><br>Black canvas bag: $20</h4>";
 	s += "<p>To purchase these bags please <a href='https://secure.groundspring.org/dn/index.php?aid=6955'>click here.</a></p>";

	return s;
}};

site.adjustFonts = function(){
	try {
		if (window.navigator.userAgent.match("Linux")) {
			document.body.style.font = "menu";
		}
	}
	catch(error){
	}
}

function dynamicImage(newinner, newouter) {
	var innerId='inner-image';
	var outerId='outer-image';
	var oldimage=document.getElementById(innerId);
	if(!oldimage){return;}
	oldimage.style.backgroundImage= "url(images/" + newinner + ")" ;
	var oldimage=document.getElementById(outerId);
	if(!oldimage){return;}
	oldimage.style.backgroundImage = "url(images/" + newouter + ")" ;
	return;
}

function dynamicText(newtext) {
	var textId='main-text';
	var oldtext=document.getElementById(textId);
	if(!oldtext){return;}
	oldtext.innerHTML=newtext;
	return;
}

function setLetter() 
{
	var text_node = document.createElement('div');
 	var text_array = new Array();
 	text_array[0] = "In Colorado, cats may not venture outdoors at night unless equipped with taillights.  Creatures from outer space are legally prohibited from parking their rockets in French vineyards.  Anyone tethering their camel to a parking meter in Virginia may expect a ticket, even if they insert the proper change.  And do not, dear reader, attempt to sell cabbages in New Jersey on a Sunday, for this has been forbidden by statute.  ";
 	text_array[1] = "In these and more serious matters, life may seem random, inexplicable and beyond our control.  Every day, the newspapers and news programs remind us of the terrible struggles humankind faces, and the various ways that people are suffering.  None of us are happy about this, but how can an ordinary citizen be expected to solve the problems within their neighborhood, let alone across the globe?  ";
 	text_array[2] = "Some opt for total immersion:  trekking through jungles with medicine pouches, setting up clean water supplies in refugee camps, and hounding large foundations for much-needed funds.  At the opposite end of the spectrum, one might be tempted to withdraw into a small self-contained world, waiting (and waiting) for things to improve before coming out again.  ";
 	text_array[3] = "We would like to offer an alternative.  ";
 	text_array[4] = "The Friends of Hue Foundation is a small nonprofit organization with an all-volunteer staff in the U.S.  Our primary job is maintaining an orphanage near Hue, in the central area of Vietnam.  Our group was established in the year 2000, after devastating floods in 1999 left a large number of people homeless, and many children without parents.  Ours is a small, friendly group with a strong sense of focus.  Like everyone else, we know that we cannot solve the world’s problems, but we are remarkably effective in providing better lives for forty-two children, providing them regular meals, a safe haven and education.  ";
 	text_array[5] = "If you feel an urge to help others but have never quite figured out how, please contact us at info@friendsofhue.org or (408) 455-0175 to ask about volunteer opportunities.  We look forward to hearing from you.  ";
	for (var i=0;i<text_array.length;i++) {
			var np=document.createElement('p');
			np.appendChild(document.createTextNode(text_array[i]));
			text_node.appendChild(np);
	}
	dynText(text_node);	
	return false; 
}

function setOverseas() 
{
	var text_node = document.createElement('div');
 	var text_array = new Array();
 	text_array[0] = "The Director";
	text_array[1] = "Friends of Hué Foundation";
	text_array[2] = "PO Box 51154";
	text_array[3] = "San Jose";
	text_array[4] = "CA 95151";
	text_array[5] = "USA";
	var nheader = document.createElement('p');
	text_node.appendChild(nheader);
	for (var i=0;i<text_array.length;i++) {
			nheader.appendChild(document.createTextNode(text_array[i]));
			nheader.appendChild(document.createElement('br'));
	}
	var text_title = "Report on the Friends of Hué Foundation Mobile Clinic";
	var ntitle=document.createElement('h2');
	ntitle.appendChild(document.createTextNode(text_title));
	text_node.appendChild(ntitle);

	text_array = new Array();
 	text_array[0] = "Dear Sir/Madam, ";
	text_array[1] = "On Saturday 14 January, we had the privilege of accompanying the Mobile Clinic medics on their visit to Vinhha commune - It is 45 Km far from the centre of Hue city toward the South-East and this  is one of  the poor communes of PhuVang District of ThuaThienHue Province with the population of 10.153. The main activities are a rice planing, pigs and poultry breeding and water products catching, the living condition of the people there is very difficult due to the harsh weather: floods and drought occured yearly. Never having participated in such a clinic before, we were not sure what to expect. We were pleased to witness an efficient and effective program, and we are eager to share some of our observations with you.";
 	text_array[2] = "At six o’clock on Saturday morning, we boarded a mini-bus filled with doctors and other volunteers. Each of the participants had generously donated their time to provide consultations to villagers who would otherwise have scant access to medical assistance. For a village that has no permanent hospital, a visit from the Mobile Clinic is invaluable. Indeed, the greatest logistical obstacle we faced upon arrival was ensuring that the patients entered the room in an orderly fashion. When one only has access to such a clinic once a year, it’s understandable to want to be first in line!";
 	text_array[3] = "After obtaining a prescription from a doctor, the patients collected their medication from a room adjoining the consultation room. The medicines distributed covered a broad range of medication that could be administered without the requirement of hospital conditions: multivitamins, B Comlex C, Calci D, Amoxillin, Erythromycin, Paracetamol, Nifedipin, Antibio, Pyrantel,..ect.";
 	text_array[4] = "Although we only spent one day at the Mobile Clinic, it is clear from our observations that the service it provides is simply invaluable. On that Saturday alone, two patients were diagnosed with heart disease, and have since been transported to Hué hospital for treatment. Their cases alone demonstrate the enormous difference the clinic can make to the health of the people it visits. The villagers certainly acknowledged the importance of our presence, and expressed their gratitude by treating us to a delicious banquet after work.";
 	text_array[5] = "We warmly commend you on your generous support for this extremely worthwhile program. More broadly, we would like to thank you for your overall ongoing contribution to the people of Hué, encompassing not only the Mobile Clinic but also Xuan Phu Orphanage, at which we are working. It is inspiring to witness first-hand the wonderful work that is made possible through generous non-government organisations such as yourselves.";
 	text_array[6] = "Please do not hesitate to contact us if you have any further queries. We would be delighted to share more of our experiences.";
 	text_array[7] = "Kind regards,";
 	text_array[8] = "Jade Campbell, Christine Ernst, Elissa Leske and Micaela Rosberg";
	text_array[9] = "Teachers at Xuan Phu Orphanage, working through the Global Volunteer Network";
	for (var i=0;i<text_array.length;i++) {
			var np = document.createElement('p');
			if (i==8){
				np.appendChild(document.createTextNode(text_array[i]));
        np.appendChild(document.createElement('br'));
				i++;
				np.appendChild(document.createTextNode(text_array[i]));
  			text_node.appendChild(np);
			}
			else {
  			np.appendChild(document.createTextNode(text_array[i]));
  			text_node.appendChild(np);
			}
	}

	dynText(text_node);	

	return false; 
}

function dynText(text_node) 
{
	var textId='main-text';
	var oldtext=document.getElementById(textId);
	if(!oldtext){return;}
//	AddCss();
	var newtext=document.createElement('div');
	oldtext.parentNode.insertBefore(newtext,oldtext);
	oldtext.parentNode.removeChild(oldtext);
	newtext.appendChild(text_node);
	newtext.id=textId;
	newtext.style.display='block';
	newtext.style.padding='0.5em 0 0 0';
	return false;
}
