//clear search
function clear_search(s) {
  if (s.defaultValue==s.value || s.value=='Search Site') s.value = ""
}


function hide_collapse(parent_elemt){

    var item = document.getElementById(parent_elemt);
    if (item.style.display == 'none'){
        item.style.display = 'block';
    }else{
        item.style.display = 'none';
    }
}

function expand_it(){

    var lists = document.getElementsByTagName('UL');
    for (var i = 0; i < lists.length; i++) {
        if (lists[i].style.display == 'none'){
            lists[i].style.display = 'block';
        }
    }

}
function collapse_it(){

    var lists = document.getElementsByTagName('UL');
    for (var i = 0; i < lists.length; i++) {
        if (lists[i].style.display == 'block'){
            lists[i].style.display = 'none';
        }
    }

}


//2009 - Landing Rotating images. 
var landingrotatingmiddle = new Array(10);
landingrotatingmiddle[0]='';
landingrotatingmiddle[1]='<img src="http://business.wfu.edu/images/rotate/rotating_landing_middle_01.jpg" alt="Wake Forest University - Schools of Business" width="488" height="240" border="0">';
landingrotatingmiddle[2]='<img src="http://business.wfu.edu/images/rotate/rotating_landing_middle_02.jpg" alt="Wake Forest University - Schools of Business" width="488" height="240" border="0">';
landingrotatingmiddle[3]='<img src="http://business.wfu.edu/images/rotate/rotating_landing_middle_03.jpg" alt="Wake Forest University - Schools of Business" width="488" height="240" border="0">';
landingrotatingmiddle[4]='<img src="http://business.wfu.edu/images/rotate/rotating_landing_middle_04.jpg" alt="Wake Forest University - Schools of Business" width="488" height="240" border="0">';
landingrotatingmiddle[5]='<img src="http://business.wfu.edu/images/rotate/rotating_landing_middle_05.jpg" alt="Wake Forest University - Schools of Business" width="488" height="240" border="0">';
landingrotatingmiddle[6]='<img src="http://business.wfu.edu/images/rotate/rotating_landing_middle_06.jpg" alt="Wake Forest University - Schools of Business" width="488" height="240" border="0">';
landingrotatingmiddle[7]='<img src="http://business.wfu.edu/images/rotate/rotating_landing_middle_07.jpg" alt="Wake Forest University - Schools of Business" width="488" height="240" border="0">';
landingrotatingmiddle[8]='<img src="http://business.wfu.edu/images/rotate/rotating_landing_middle_08.jpg" alt="Wake Forest University - Schools of Business" width="488" height="240" border="0">';
landingrotatingmiddle[9]='<img src="http://business.wfu.edu/images/rotate/rotating_landing_middle_09.jpg" alt="Wake Forest University - Schools of Business" width="488" height="240" border="0">';
landingrotatingmiddle[10]='<img src="http://business.wfu.edu/images/rotate/rotating_landing_middle_10.jpg" alt="Wake Forest University - Schools of Business" width="488" height="240" border="0">';



//randomly select & display photos:
function rand_order(num_strings) {
spkr = 0;
var headPic = 1;
var order_value = -1;
	while ( (order_value < 1) || (order_value > num_strings) || (isNaN(order_value)) ) {
		order_value = parseInt(Math.random() * (num_strings + 1));
	}

return order_value;
}





//2009 threecolumnRotating Rotating images. 
var threecolumn2009Rotating = new Array(10);
threecolumn2009Rotating[0]='';
threecolumn2009Rotating[1]='<img src="http://business.wfu.edu/images/rotate/rotating_3Col_01.jpg" alt="Wake Forest University - Schools of Business" width="488" height="80" border="0">';
threecolumn2009Rotating[2]='<img src="http://business.wfu.edu/images/rotate/rotating_3Col_02.jpg" alt="Wake Forest University - Schools of Business" width="488" height="80" border="0">';
threecolumn2009Rotating[3]='<img src="http://business.wfu.edu/images/rotate/rotating_3Col_03.jpg" alt="Wake Forest University - Schools of Business" width="488" height="80" border="0">';
threecolumn2009Rotating[4]='<img src="http://business.wfu.edu/images/rotate/rotating_3Col_04.jpg" alt="Wake Forest University - Schools of Business" width="488" height="80" border="0">';
threecolumn2009Rotating[5]='<img src="http://business.wfu.edu/images/rotate/rotating_3Col_05.jpg" alt="Wake Forest University - Schools of Business" width="488" height="80" border="0">';
threecolumn2009Rotating[6]='<img src="http://business.wfu.edu/images/rotate/rotating_3Col_06.jpg" alt="Wake Forest University - Schools of Business" width="488" height="80" border="0">';
threecolumn2009Rotating[7]='<img src="http://business.wfu.edu/images/rotate/rotating_3Col_01.jpg" alt="Wake Forest University - Schools of Business" width="488" height="80" border="0">';
threecolumn2009Rotating[8]='<img src="http://business.wfu.edu/images/rotate/rotating_3Col_02.jpg" alt="Wake Forest University - Schools of Business" width="488" height="80" border="0">';
threecolumn2009Rotating[9]='<img src="http://business.wfu.edu/images/rotate/rotating_3Col_03.jpg" alt="Wake Forest University - Schools of Business" width="488" height="80" border="0">';
threecolumn2009Rotating[10]='<img src="http://business.wfu.edu/images/rotate/rotating_3Col_04.jpg" alt="Wake Forest University - Schools of Business" width="488" height="80" border="0">';

//randomly select & display photos:
function rand_order(num_strings) {
spkr = 0;
var headPic = 1;
var order_value = -1;
	while ( (order_value < 1) || (order_value > num_strings) || (isNaN(order_value)) ) {
		order_value = parseInt(Math.random() * (num_strings + 1));
	}

return order_value;
}




//2009 twocolumnRotating Rotating images. 
var twocolumn2009Rotating = new Array(8);
twocolumn2009Rotating[0]='';
twocolumn2009Rotating[1]='<img src="http://business.wfu.edu/images/rotate/rotating_2col_01.jpg" alt="Wake Forest University - Schools of Business" width="688" height="70" border="0">';
twocolumn2009Rotating[2]='<img src="http://business.wfu.edu/images/rotate/rotating_2col_02.jpg" alt="Wake Forest University - Schools of Business" width="688" height="70" border="0">';
twocolumn2009Rotating[3]='<img src="http://business.wfu.edu/images/rotate/rotating_2col_03.jpg" alt="Wake Forest University - Schools of Business" width="688" height="70" border="0">';
twocolumn2009Rotating[4]='<img src="http://business.wfu.edu/images/rotate/rotating_2col_04.jpg" alt="Wake Forest University - Schools of Business" width="688" height="70" border="0">';
twocolumn2009Rotating[5]='<img src="http://business.wfu.edu/images/rotate/rotating_2col_05.jpg" alt="Wake Forest University - Schools of Business" width="688" height="70" border="0">';
twocolumn2009Rotating[6]='<img src="http://business.wfu.edu/images/rotate/rotating_2col_06.jpg" alt="Wake Forest University - Schools of Business" width="688" height="70" border="0">';
twocolumn2009Rotating[7]='<img src="http://business.wfu.edu/images/rotate/rotating_2col_01.jpg" alt="Wake Forest University - Schools of Business" width="688" height="70" border="0">';
twocolumn2009Rotating[8]='<img src="http://business.wfu.edu/images/rotate/rotating_2col_02.jpg" alt="Wake Forest University - Schools of Business" width="688" height="70" border="0">';

//randomly select & display photos:
function rand_order(num_strings) {
spkr = 0;
var headPic = 1;
var order_value = -1;
	while ( (order_value < 1) || (order_value > num_strings) || (isNaN(order_value)) ) {
		order_value = parseInt(Math.random() * (num_strings + 1));
	}

return order_value;
}

//Spotlight: Alumni. 
var SpotlightAlumni = new Array(12);
SpotlightAlumni[0]='';
SpotlightAlumni[1]='<a href="http://business.wfu.edu/default.aspx?id=325"><img src="http://business.wfu.edu/images/rotate/Spot_Alumni_briggs.gif" alt="Alumni Spotlight" width="262" height="120" border="0"></a>';
SpotlightAlumni[2]='<a href="http://business.wfu.edu/default.aspx?id=325"><img src="http://business.wfu.edu/images/rotate/Spot_Alumni_austin.gif" alt="Alumni Spotlight" width="262" height="120" border="0"></a>';
SpotlightAlumni[3]='<a href="http://business.wfu.edu/default.aspx?id=325"><img src="http://business.wfu.edu/images/rotate/Spot_Alumni_horton.gif" alt="Alumni Spotlight" width="262" height="120" border="0"></a>';
SpotlightAlumni[4]='<a href="http://business.wfu.edu/default.aspx?id=325"><img src="http://business.wfu.edu/images/rotate/Spot_Alumni_stone.gif" alt="Alumni Spotlight" width="262" height="120" border="0"></a>';
SpotlightAlumni[5]='<a href="http://business.wfu.edu/default.aspx?id=325"><img src="http://business.wfu.edu/images/rotate/Spot_Alumni_wilborne.gif" alt="Alumni Spotlight" width="262" height="120" border="0"></a>';
SpotlightAlumni[6]='<a href="http://business.wfu.edu/default.aspx?id=325"><img src="http://business.wfu.edu/images/rotate/Spot_Alumni_amy_desiree.gif" alt="Alumni Spotlight" width="262" height="120" border="0"></a>';
SpotlightAlumni[7]='<a href="http://business.wfu.edu/default.aspx?id=325"><img src="http://business.wfu.edu/images/rotate/Spot_Alumni_johnson.gif" alt="Alumni Spotlight" width="262" height="120" border="0"></a>';
SpotlightAlumni[8]='<a href="http://business.wfu.edu/default.aspx?id=325"><img src="http://business.wfu.edu/images/rotate/Spot_Alumni_herring.gif" alt="Alumni Spotlight" width="262" height="120" border="0"></a>';
SpotlightAlumni[9]='<a href="http://business.wfu.edu/default.aspx?id=325"><img src="http://business.wfu.edu/images/rotate/Spot_Alumni_cheek.gif" alt="Alumni Spotlight" width="262" height="120" border="0"></a>';
SpotlightAlumni[10]='<a href="http://business.wfu.edu/default.aspx?id=325"><img src="http://business.wfu.edu/images/rotate/Spot_Alumni_hunt.gif" alt="Alumni Spotlight" width="262" height="120" border="0"></a>';
SpotlightAlumni[11]='<a href="http://business.wfu.edu/default.aspx?id=325"><img src="http://business.wfu.edu/images/rotate/Spot_Alumni_vanemburgh.gif" alt="Alumni Spotlight" width="262" height="120" border="0"></a>';
SpotlightAlumni[12]='<a href="http://business.wfu.edu/default.aspx?id=325"><img src="http://business.wfu.edu/images/rotate/Spot_Alumni_amy_desiree.gif" alt="Alumni Spotlight" width="262" height="120" border="0"></a>';

//randomly select & display photos:
function rand_order(num_strings) {
spkr = 0;
var headPic = 1;
var order_value = -1;
	while ( (order_value < 1) || (order_value > num_strings) || (isNaN(order_value)) ) {
		order_value = parseInt(Math.random() * (num_strings + 1));
	}

return order_value;
}

//Spotlight: Faculty. 
var SpotlightFaculty = new Array();
SpotlightFaculty[0]='';
SpotlightFaculty[1]='<a href="http://business.wfu.edu/default.aspx?id=326"><img src="http://business.wfu.edu/images/rotate/Spot_Faculty_boone.gif" alt="Faculty Spotlight" width="262" height="120" border="0"></a>';
SpotlightFaculty[2]='<a href="http://business.wfu.edu/default.aspx?id=326"><img src="http://business.wfu.edu/images/rotate/Spot_Faculty_cotter.gif" alt="Faculty Spotlight" width="262" height="120" border="0"></a>';
SpotlightFaculty[3]='<a href="http://business.wfu.edu/default.aspx?id=326"><img src="http://business.wfu.edu/images/rotate/Spot_Faculty_west.gif" alt="Faculty Spotlight" width="262" height="120" border="0"></a>';
SpotlightFaculty[4]='<a href="http://business.wfu.edu/default.aspx?id=326"><img src="http://business.wfu.edu/images/rotate/Spot_Faculty_hinson.gif" alt="Faculty Spotlight" width="262" height="120" border="0"></a>';
SpotlightFaculty[5]='<a href="http://business.wfu.edu/default.aspx?id=326"><img src="http://business.wfu.edu/images/rotate/Spot_Faculty_iacovou.gif" alt="Faculty Spotlight" width="262" height="120" border="0"></a>';
SpotlightFaculty[6]='<a href="http://business.wfu.edu/default.aspx?id=326"><img src="http://business.wfu.edu/images/rotate/Spot_Faculty_raheja.gif" alt="Faculty Spotlight" width="262" height="120" border="0"></a>';
SpotlightFaculty[7]='<a href="http://business.wfu.edu/default.aspx?id=326"><img src="http://business.wfu.edu/images/rotate/Spot_Faculty_roehm.gif" alt="Faculty Spotlight" width="262" height="120" border="0"></a>';
SpotlightFaculty[8]='<a href="http://business.wfu.edu/default.aspx?id=326"><img src="http://business.wfu.edu/images/rotate/Spot_Faculty_roehm.gif" alt="Faculty Spotlight" width="262" height="120" border="0"></a>';


//randomly select & display photos:
function rand_order(num_strings) {
spkr = 0;
var headPic = 1;
var order_value = -1;
	while ( (order_value < 1) || (order_value > num_strings) || (isNaN(order_value)) ) {
		order_value = parseInt(Math.random() * (num_strings + 1));
	}

return order_value;
}


//Spotlight: Student. 
var SpotlightStudent = new Array(10);
SpotlightStudent[0]='';
SpotlightStudent[1]='<a href="http://business.wfu.edu/default.aspx?id=324"><img src="http://business.wfu.edu/images/rotate/Spot_Student_Council.gif" alt="Student Spotlight" width="262" height="120" border="0"></a>';
SpotlightStudent[2]='<a href="http://business.wfu.edu/default.aspx?id=324"><img src="http://business.wfu.edu/images/rotate/Spot_Student_Espinoza.gif" alt="Student Spotlight" width="262" height="120" border="0"></a>';
SpotlightStudent[3]='<a href="http://business.wfu.edu/default.aspx?id=324"><img src="http://business.wfu.edu/images/rotate/Spot_Student_Hardin.gif" alt="Student Spotlight" width="262" height="120" border="0"></a>';
SpotlightStudent[4]='<a href="http://business.wfu.edu/default.aspx?id=324"><img src="http://business.wfu.edu/images/rotate/Spot_Student_Haynes.gif" alt="Student Spotlight" width="262" height="120" border="0"></a>';
SpotlightStudent[5]='<a href="http://business.wfu.edu/default.aspx?id=324"><img src="http://business.wfu.edu/images/rotate/Spot_Student_Hough.gif" alt="Student Spotlight" width="262" height="120" border="0"></a>';
SpotlightStudent[6]='<a href="http://business.wfu.edu/default.aspx?id=324"><img src="http://business.wfu.edu/images/rotate/Spot_Student_jankelowitz.gif" alt="Student Spotlight" width="262" height="120" border="0"></a>';
SpotlightStudent[7]='<a href="http://business.wfu.edu/default.aspx?id=324"><img src="http://business.wfu.edu/images/rotate/Spot_Student_Lewis.gif" alt="Student Spotlight" width="262" height="120" border="0"></a>';
SpotlightStudent[8]='<a href="http://business.wfu.edu/default.aspx?id=324"><img src="http://business.wfu.edu/images/rotate/Spot_Student_Parry.gif" alt="Student Spotlight" width="262" height="120" border="0"></a>';
SpotlightStudent[9]='<a href="http://business.wfu.edu/default.aspx?id=324"><img src="http://business.wfu.edu/images/rotate/Spot_Student_Vechery.gif" alt="Student Spotlight" width="262" height="120" border="0"></a>';
SpotlightStudent[10]='<a href="http://business.wfu.edu/default.aspx?id=324"><img src="http://business.wfu.edu/images/rotate/Spot_Student_wales.gif" alt="Student Spotlight" width="262" height="120" border="0"></a>';


//randomly select & display photos:
function rand_order(num_strings) {
spkr = 0;
var headPic = 1;
var order_value = -1;
	while ( (order_value < 1) || (order_value > num_strings) || (isNaN(order_value)) ) {
		order_value = parseInt(Math.random() * (num_strings + 1));
	}

return order_value;
}

