/* SVN Version 329 */


/*************************************************************/
/* community tab configuration                                  */
/*************************************************************/
var curDescriptionItem;
var timerInterval = 8000;     // timer interval in millisecond (Ex: 2000 => 2seconds). this value must be divisible by two
var textAnimInterval = 4000;  // this value must be half of timerInterval  (Ex: timerInterval=2000, textAnimInterval must be 1000)         
         
function getLinksArray()
{
    var linksArray = new Array();
            
    linksArray[0] = "http://www.wpi.edu/campuslife/index.html";
    linksArray[1] = "http://users.wpi.edu/~theatre/";
    linksArray[2] = "http://wpi.prestosports.com/landing/index/";
    linksArray[3] = "http://www.wpi.edu/Admin/SAO/Service/index.html";
    linksArray[4] = "http://www.wpi.edu/academics/Depts/HUA/Music/index.html";
    linksArray[5] = "http://www.wpi.edu/about/visitors/worcester.html";
            
    return linksArray;
}
        
/**
 * returns an array of strings for display while user navigate through images
 */
function getDescriptionArray()
{
    var descrArray = new Array();
    descrArray[0] = "<h1>Life on Campus</h1><p>The WPI campus is a vibrant, energetic place.  The Campus Center is where much of the action begins. This gathering place includes dining facilities, mail services, the bookstore, a game room, and lounges.</p><p>Students can blow off steam at the athletic facilities in Harrington Auditorium, jog a few laps around the outdoor track, or catch a football game on Alumni Field. At the end of the day, students can retire to one of our state-of-the-art residence halls, or catch a free movie or concert on campus.</p>";
    
    descrArray[1] = "<h1>Theatre</h1><p>Theatre is one of the most popular activities on WPI's campus. You might find a computer science major starring in a Greek drama, or a varsity athlete directing a play at WPI's state-of-the-art Little Theatre. </p><p>Whether you want to get involved a lot or a little; whether you want academic credit or a rewarding pastime; whether you've had years of training or have never set foot on a stage, there's a role for you at WPI. It's just waiting for you to step forward and embrace it.</p>";
    
    descrArray[2] = "<h1>Athletics</h1><p>Sports plays a big part in life at WPI. Whether varsity athletics, club sports, intramurals, or phys ed classes, there are many ways to get involved. We've had great success in NCAA Division III competition through the years, including some national championships. </p><p>At WPI, students learn to transfer the skills they gain on the field - teamwork, communication, leadership - into the classroom, resulting in many accolades for our student-athletes each year.</p>";
    
    descrArray[3] = "<h1>Community Service</h1><p>Community service is a vital part of the WPI experience. Last year, our students performed over 23,000 hours of service. </p><p>At WPI, you'll have a chance to contribute your time and talents in a variety of ways. Work in a food pantry; tutor a child; work with animal-welfare organizations; or help clean up local parks. WPI's Community Service Center will help you tailor a service opportunity that best meets your specific talents and interests. At WPI, we're here to help.</p>";
    
    descrArray[4] = "<h1>Music</h1><p>At WPI, we are keenly aware of the importance of the arts and humanities in the academic and personal lives of students. That's why music at WPI is available as a project subject, a major, a minor - or purely for enjoyment.  Classes in music theory, history, and technology are available to all students. </p><p>More than 100 performances are presented each year by WPI's 13 music ensembles. Many of these groups have toured in the Unites States, Europe, and Africa.</p>";
    
    descrArray[5] = "<h1>Life in Worcester</h1><p>With 13 colleges and universities, Worcester is a great college city. It's not only a fantastic place to go to college, it's also a great place to live and work. Worcester was recently selected as the 9th \"<a href=\"http://www.forbes.com/2009/04/01/cities-city-ten-lifestyle-real-estate-livable-cities_slide_8.html?thisSpeed=30000\">Most Livable City in America</a>\" by Forbes.com.</p><p>With world-class art and history museums, professional sports affiliates, outstanding music facilities, a variety of restaurants, and a wide array of outdoor activities, Worcester is a hidden jewel in central Massachusetts.</p>";
                    
    return descrArray;
}
        
/**
 * returns an array of strings for cycle through on a timer if there is no user interaction
 */
function getAnimateDescArray()
{
    var descrAnimArray = new Array();

      descrAnimArray[0] = "<h1>A Sense of Community - Without a Sense of Conformity</h1><p>WPI is alive with activity. With nearly 200 extracurricular activities including music, theatre, fraternities and sororities, 20 varsity sports teams, and more than 30 club and intramural sports, it's easy to choose your own path. With all these opportunities, no two students at WPI have the same experience.</p>";
      descrAnimArray[1] = "<h1>A Sense of Community - Without a Sense of Conformity</h1><p>WPI is alive with activity. With nearly 200 extracurricular activities including music, theatre, fraternities and sororities, 20 varsity sports teams, and more than 30 club and intramural sports, it's easy to choose your own path. With all these opportunities, no two students at WPI have the same experience.</p>";
      descrAnimArray[2] = "<h1>A Sense of Community - Without a Sense of Conformity</h1><p>WPI is alive with activity. With nearly 200 extracurricular activities including music, theatre, fraternities and sororities, 20 varsity sports teams, and more than 30 club and intramural sports, it's easy to choose your own path. With all these opportunities, no two students at WPI have the same experience.</p>";
      descrAnimArray[3] = "<h1>A Sense of Community - Without a Sense of Conformity</h1><p>WPI is alive with activity. With nearly 200 extracurricular activities including music, theatre, fraternities and sororities, 20 varsity sports teams, and more than 30 club and intramural sports, it's easy to choose your own path. With all these opportunities, no two students at WPI have the same experience.</p>";
      descrAnimArray[4] = "<h1>A Sense of Community - Without a Sense of Conformity</h1><p>WPI is alive with activity. With nearly 200 extracurricular activities including music, theatre, fraternities and sororities, 20 varsity sports teams, and more than 30 club and intramural sports, it's easy to choose your own path. With all these opportunities, no two students at WPI have the same experience.</p>";
      descrAnimArray[5] = "<h1>A Sense of Community - Without a Sense of Conformity</h1><p>WPI is alive with activity. With nearly 200 extracurricular activities including music, theatre, fraternities and sororities, 20 varsity sports teams, and more than 30 club and intramural sports, it's easy to choose your own path. With all these opportunities, no two students at WPI have the same experience.</p>";
            
//    descrAnimArray[0] = "";
    
//    descrAnimArray[1] = "";
    
//    descrAnimArray[2] = "";
     
//    descrAnimArray[3] = "";
      
//    descrAnimArray[4] = "";
    
//    descrAnimArray[5] = "";
                    
    return descrAnimArray;
}
/*************************************************************/
/* wpi difference tab configuration                             */
/*************************************************************/
var wd_top = 0;  var wd_bottom = 110;
var wd_image_width                      = 230;
var wd_left                  = 30;
var wd_image_holder_width       = 500;
var person     = new Array();
person[0]    = "Lily Clark";
person[1]    = "Kyle Miller and Kristen Billiar";
person[2]    = "Jill Rulfs";
person[3]    = "Nick Pelletier";
var person_desc = new Array();
person_desc[0]    = "At WPI, Lily Clark has pursued her passions for music and the environment with equal enthusiasm and equal success. Science and the humanities; studying and performing. For Lily, the key is keeping things in balance.";
person_desc[1]    = "For his IQP (Interactive Qualifying Project), Kyle Miller helped develop a plan for saving Venice's threatened outdoor art. Biomedical engineering professor Kristen Billiar was his advisor.";
person_desc[2]    = "For Professor Jill Rulfs, directing research on a possible link between phytoestrogens and breast cancer is a chance to help students appreciate the rewards of making a difference in people's lives.";
person_desc[3]    = "For his IQP (Interactive Qualifying Project), Nick Pelletier helped pave the way for rapid bus transit in South Africa. His MQP (Major Qualifying Project) led to a new product to treat hip dysplasia in dogs.";
var read_more_lnk     = new Array();
read_more_lnk[0]     = "http://www.wpi.edu/about/balance.html";
read_more_lnk[1]     = "http://www.wpi.edu/about/art-venice.html";
read_more_lnk[2]     = "http://www.wpi.edu/about/sharing-research.html";
read_more_lnk[3]     = "http://www.wpi.edu/about/two-continents.html";

// position top of wpi difference images in pixels
var person_image_top    = new Array();
person_image_top[0]             =  -15;
person_image_top[1]             =  -23;
person_image_top[2]             =  130;
person_image_top[3]             =  110;
       
// position left of wpi difference images in pixels
var person_image_left = new Array();
person_image_left[0]    =  42;
person_image_left[1]    =  56;
person_image_left[2]    =  -335;
person_image_left[3]    =  -340;
       
// z-index of wpi wpi difference images
var person_image_zidx = new Array();
person_image_zidx[0]    = 2;
person_image_zidx[1]    = 1;
person_image_zidx[2]    = 3;
person_image_zidx[3]    = 4;

var person_image     = new Array();
person_image[0]      = "http://www.wpi.edu/Images/template/features/difference1.png";
person_image[1]      = "http://www.wpi.edu/Images/template/features/difference4.png";
person_image[2]      = "http://www.wpi.edu/Images/template/features/difference3.png";
person_image[3]      = "http://www.wpi.edu/Images/template/features/difference2.png";
var flash_video     = new Array();
flash_video[0]      = 'homepage/difference-clark';
flash_video[1]      = 'homepage/difference-venice';
flash_video[2]      = 'homepage/difference-rulfs';
flash_video[3]      = 'homepage/difference-pelletier';
var profession     = new Array();
profession[0]      = 'Music, Nature, and Life in Balance';
profession[1]      = 'Helping Save Public Art in Venice';
profession[2]      = 'Sharing a Passion for Research';
profession[3]      = 'Making a Difference on Two Continents';
/*************************************************************/
/* alumni friends tab configuration                             */
/*************************************************************/
var data = new Array();
data[0] = "Gordon Deanship in Engineering";
data[1] = "First Schwaber Professor Installed";
data[2] = "Championing the Next Generation";
data[3] = "The Dolan Challenge";
var datafull = new Array();
datafull[0] = "<h1>Gordon Deanship in Engineering</h1><p>At a time of unprecedented demand for leadership in engineering education and training, Bernard M. Gordon has established the Bernard M. Gordon Deanship in Engineering at WPI. <a href='http://www.wpi.edu/Admin/Alumni/News/gordondean.html'>Read More...</a></p>";
datafull[1] = "<h1>First Schwaber Professor Installed</h1><p>Nationally recognized teacher and scholar Jeanine Plummer has been named the first Alena and David M. Schwaber '65 Professor of Environmental Engineering. The new professorship was made possible by a generous gift from Alena and David Schwaber <a href='http://www.wpi.edu/Admin/Alumni/News/plummer.html'>Read More...</a></p>";
datafull[2] = "<h1>Championing the Next Generation</h1><p>Thanks to a gift of more than $500,000, Edna and Doug Noiles '44 are extending the reach of WPI's K-12 programs. <a href='http://www.wpi.edu/Admin/Alumni/News/noiles.html'>Read More...</a></p>";
datafull[3] = "<h1>The Dolan Challenge</h1><p>Mike Dolan '75, a WPI trustee, is taking a leadership role in building a culture of annual giving at WPI, especially among the university's youngest alumni. <a href='http://www.wpi.edu/Admin/Alumni/News/mjdchallenge.html'>Read More...</a></p>";

var imagelarge = new Array();
imagelarge[0]  =  "http://www.wpi.edu/Images/template/features/alumni1a.jpg";
imagelarge[1]  =  "http://www.wpi.edu/Images/template/features/alumni2a.jpg";
imagelarge[2]  =  "http://www.wpi.edu/Images/template/features/alumni3a.jpg";
imagelarge[3]  =  "http://www.wpi.edu/Images/template/features/alumni4a.jpg";