function PageLoad() {
if (document.getElementById('date')) 
  document.getElementById('date').innerHTML=todaysDate();
 
if (document.getElementById('SlideShow1')) {
  runSlideShow(0);
  }
}

function pwd() {
 var password = prompt("Enter password","");
 if (password == "sbg") {
 alert("Password accepted! Loading page...");
 document.getElementById('photolink').href="photos.htm"

 //document.write("<p>This is where you put your html code.</p>");
 //document.write("<p>It is a little annoying having to put ");
 //document.write("all your code in the WRITE ");
 //document.write("tags, but it is free and doesn't require ");
 //document.write("a special server.</p>");
}

else {
alert("" +password+ " is an Invalid Password! Access denied...");
//document.write("<p><b>You have entered an invalid password. ");
//document.write("Access to the document is denied.</b></p>");
document.getElementById('photolink').href="homesbg.htm"

}
//alert(document.getElementById('photolink').href)
}

function todaysDate() {
// Get current date
var now = new Date();

// List the days
var days = new Array('Sunday','Monday','Tuesday','Wednesday',
                      'Thursday','Friday','Saturday');

// List the months
var months = new Array('January','February','March','April',
                         'May','June','July','August','September',
                            'October','November','December');

// What day number is it
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

// Convert year to four figure format
function y2k(number){return (number < 1000) ? number + 1900 : number;}

// Join it all together
today =  days[now.getDay()] + " " +
              date + " " +
               months[now.getMonth()] + ", " +
                (y2k(now.getYear())) ;

// write it to the page
//document.write("Todays date is " +today+ ".");
return today;
}

    
function showNameText(id) {
text="";

YehText = "<strong>Emily Yeh</strong> received her PhD from the Energy and Resources Group at UC Berkeley in 2003 and is currently Assistant Professor of Geography at CU.  Her research focuses on conflicts over access to natural resources; the cultural politics and political economy of development and resource management in the context of global change; the relationship between nature and nationalism; and the emergence of environmentalism in Tibetan areas of China.  Her work has appeared in journals including Development and Change, Environment and Planning A, Society and Space, and Annals of the Association of American Geographers. She regularly teaches classes on Environment and Culture, Geography of China, Environment and Development in China, and political ecology.";

BooneText = "<strong>Randall Boone</strong> is a wildlife ecologist and Research Scientist at the Natural Resource Ecology Laboratory, Colorado State University.  His research is diverse, but often entails animal movement and habitat selection in semi-arid and arid areas.  On this project, he is doing agent-based household and ecosystem modeling for the study sites.";

KabzungText = "<strong>Ga re rang (kabzung)</strong> is a graduate student, enrolled in August 2007, in the geography Department, CU at Boulder. Currently he is working on the PhD program in the major of human geography with particular interest in pastoral development in Tibet."

KabzungAddress = "Ga er rang (Kabzung)<br> Ga.fnu@colorado.edu<br> yakserser1@163.com<br> yakserser1@yahoo.com<br> Mailing address:<br> 4605 Moorhead Ave, <br>Boulder Colorado, 80305 <br>Phone: 303 499 1327"

YontenNyimaText = "<strong>YontenNyima</strong> is from Nagchu in central Tibet and currently doing his PhD program with a focus on development and environmental issues in pastoral Tibet at the Department of Geography at University of Colorado at Boulder."

KathyText = "<strong>Kathleen Galvin</strong> is a senior research scientist at the Natural Resource Ecology Laboratory and is Chair and professor in the Department of Anthropology at Colorado State University.  Her research interests include human-environment interactions, human adaptability and vulnerability, human dimensions of global environmental change, household economics, and diet and nutritional status in pastoral populations.  Her most extensive international work has been done in Africa and Central Asia.";

KathyInfo = "Professor and Chair, Department of Anthropology Co-Director, Institute for Society, Landscape and Ecosystem Change Senior Research Scientist, Natural Resource Ecology LaboratoryWebsite: http://www.nrel.colostate.edu/people/people.php?Main_ID=185";

KellyText = "<strong>Kelly Hopping</strong> will be investigating ecosystem responses to climate and land use changes on the Tibetan Plateau.  This project integrates her interests in alpine and semi-arid regions, plant ecophysiology, and issues concerning the wellbeing of social-environmental systems.  Kelly earned BA's in Biology and Philosophy from the University of Montana, where she focused on the ecological and ethical implications of the built environment and worked for three years on a study of resource dynamics and seed production in whitebark pine.";

JuliaText ="<strong>Julia Klein</strong> is an Assistant Professor at Colorado State University.  She received her PhD from the University of California, Berkeley in 2003 and was a NOAA Postdoctoral Fellow in Climate and Global Change from 2004-2005.  Dr. Klein has been studying interactions among climate change, pastoral land use, and ecosystems on the Tibetan Plateau for the past decade.";


if (id=="Yeh") {
 text = YehText;
 pic = "emily.jpg";
 }
else if (id=="Boone") {
 text = BooneText;
 pic = "rbb.jpg";
 }
else if (id=="Kabzung") {
 text = KabzungText; 
 pic = "kabzung.jpg";
 }
else if (id=="YontenNyima") {
 text = YontenNyimaText;
 pic = "yontennyima.jpg";
 }
else if (id=="Kathy") {
 text = KathyText;
 pic = "kathy.jpg";
 }
 else if (id=="Kelly") {
 text = KellyText;
 pic = "kelly.jpg";
 }
 else if (id=="Julia") {
 text = JuliaText;
 pic = "julia.jpg";
 }
else
 text = "";
 
if (document.getElementById('h1').value)
 document.getElementById(document.getElementById('h1').value).className = 'unfocused';

document.getElementById('divNameText').innerHTML=text;
document.getElementById('imgName').src="images/"+pic;

document.getElementById('h1').value = id;
document.getElementById(id).className = 'focused';

}

   

