$title[0] = '';
$story[0] = '';
$title[1] = 'Did you know...';
$story[1] = 'The Equestrian program features a 300 acre state of the art equestrian center, and has fielded regional and national championship teams with IHSA, USEF, NCHJA, IDA';
$title[2] = 'Did you know...';
$story[2] = 'St. Andrews students have experienced internships with IBM, Nickelodeon, United Nations, NASA, Disney World, Wells Fargo, and Easter Seals to name a few.';
$title[3] = 'Did you know...';
$story[3] = 'The St. Andrews Pipe Band is one of the university\'s most visible organizations and has become one of the top competing pipe bands in the southern United States.';
$title[4] = 'In their own words...';
$story[4] = '"My time here has instilled within me a special kind of character, one that only comes as a result of a community geared toward opening your mind... not just filling your mind with more information."
- Blair Garnett, Class of \'10, from NC
';
$title[5] = 'Did you know...';
$story[5] = 'Academic programs offered range from Business, Sports Studies, Biology, and Forensics to Creative Writing, Psychology, Education or Philosophy as well as Pre-Professional Programs.';
$title[6] = 'In their own words...';
$story[6] = '"Living on campus is a life experience I have learned so much from. We eat together, watch TV together, study together, and do absolutely nothing together. When I go home for breaks, it's like I'm leaving my second family!"
- Jess Cutler, Class of \'10, from FL
';
$title[7] = 'Did you know...';
$story[7] = 'With St. Andrews\' study abroad programs, you can live in a 14th Century castle in the Italian Alps, attend the University of Cuenca in Ecuador, experience Chinese language and culture at Capital Normal University in Beijing, China, as well as many other opportunities.';
$title[8] = 'In their own words...';
$story[8] = '"As a first generation Latin American, it was different coming here, but I soon realized that I could just be me. St. Andrews is a school for people who like small classes and a close community."
- Anthony Fernandez, Class of \'10
';
$quotefact = rand(1,8);
$imglist='';
//$img_folder is the variable that holds the path to the banner images. Mine is images/tutorials/
// see that you don't forget about the "/" at the end
if($dv_usepath != ''){
$img_folder = "/var/www/html/new_img/subpage_img_" . $dv_usepath . "/";
$img_folder2 = "/new_img/subpage_img_" . $dv_usepath . "/";
}else{
$img_folder = "/var/www/html/new_img/subpage_img/";
$img_folder2 = "/new_img/subpage_img/";
}
if($dv_useimage != ''){
$image = $dv_useimage;
}else{
mt_srand((double)microtime()*1000);
//use the directory class
$imgs = dir($img_folder);
//read all files from the directory, checks if are images and ads them to a list (see below how to display flash banners)
while ($file = $imgs->read()) {
if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
$imglist .= "$file ";
} closedir($imgs->handle);
//put all images into an array
$imglist = explode(" ", $imglist);
$no = sizeof($imglist)-2;
//generate a random number between 0 and the number of images
$random = mt_rand(0, $no);
$image = $imglist[$random];
//display image
//echo '

';
}
?>