///////////////////////////////////////////////////////////////////////////////
//                              Rotating Photos                              //
///////////////////////////////////////////////////////////////////////////////

// put images to preload in this array
   var imgAr = new Array();
   imgAr[0]="random/chemical/chemical.jpg"
imgAr[1]="random/petroleum/petrol_drilling.jpg"
imgAr[2]="random/080910/topnews1.jpg"
imgAr[3]="random/080415/topnews1.jpg"
imgAr[4]="/news/090622/topnews1.jpg"

if (document.images) {
   var pic = new Array();
   for (var i=0; i<imgAr.length; i++) {
      pic[i] = new Image(320,247); // width, height
      pic[i].src =  imgAr[i];
   }
}

   var intId;
   var num = 0;            // global to track current image, and get its url

function rotateImg() {
   if (num < pic.length-1)
      num++;
   else
 num =0;
   //document.pict.src = pic[num].src;

			switch (num){


	case 0 :
document.pict.src = pic[num].src;
document.getElementById('myText').innerHTML=
'<fieldset class="darkTop_field">' +
'<legend class="darkTop_field_legend"><font size="-1">' +
'Chemical Engineering</font></legend>' +
'<h3>What is Chemical Engineering?</h3>' +
'<p>Chemical Engineering involves application of ' +
'Scientific disciplines, particularly chemisty, ' +
'physics and mathematics, to converting raw ' +
'materials or chemicals into more useful or ' +
'valuable forms.</p>'+
'<a href="http://wwweng.uwyo.edu/chemical/frontpage/chemical/chemical.html">' +
'<b>[Chemical Engineering]</b></a>' +
'<br><a href="http://wwweng.uwyo.edu/chemical/frontpage/petroleum/petrol.html">' +
'<b>[Petroleum Engineering]</b></a>' +
'</fieldset>';
	break;

   	case 1 :
document.pict.src = pic[num].src;
document.getElementById('myText').innerHTML=
'<fieldset class="darkTop_field">' +
'<legend class="darkTop_field_legend"><font size="-1">' +
'Petroleum Engineering</font></legend>' +
'<h3>What is Petroleum Engineering?</h3>' +
'<p>Petroleum engineering is an increasingly technical profession that is involved in the exploration and production of petroleum and natural gas from hydrocarbon deposits that are usually burried deep beneath the earths surface.</p>' +
'<a href="http://wwweng.uwyo.edu/chemical/frontpage/petroleum/petrol.html">' +
'<b>[Petroleum Engineering]</b></a>' +
'<br><a href="http://wweng.uwyo.edu/chemical/frontpage/chemical/chemical.html">' +
'<b>[Chemical Engineering]</b></a>' +
'</fieldset>';
	break;

   	case 2 :
document.pict.src = pic[num].src;
document.getElementById('myText').innerHTML=
'<fieldset class="darkTop_field">' +
'<legend class="darkTop_field_legend"><font size="-1">' +
'Anadarko Gift</font></legend>' +
'<h3>Anadarko Gift</h3>' +
'<p>The University of Wyoming today announced a $1.5 million gift from the Anadarko Foundation creating the Anadarko Petroleum Corporation Energy Resource Recovery Program Endowment.</p><br><a href="random/080910/">[more]</a>' +
'</fieldset>';
	break;
				
	case 3 :
document.pict.src = pic[num].src;
document.getElementById('myText').innerHTML=
'<fieldset class="darkTop_field">' +
'<legend class="darkTop_field_legend"><font size="-1">' +
'EnCana Gift</font></legend>' +
'<h3>EnCana Gift</h3>' +
'<p>EnCana funds $2 Million gift for petroleum laboratory at the University of Wyoming.  Assistant Professor M. Piri has ben the driving force to establish this lab.</p>' +
'<a href="/chemical/frontpage/080415/">[more]</a>' +
'</fieldset>';
	break;

	case 4 :
document.pict.src = pic[num].src;
document.getElementById('myText').innerHTML=
'<fieldset class="darkTop_field">' +
'<legend class="darkTop_field_legend"><font size="-1">' +
'Gas-Hydrate Inhibitors</font></legend>' +
'<h3>New Hydrate Inhibitors</h3>' +
'<p>Assistant Professor Hertanto Adidharma discovered a new class of gas-hydrate inhibitors that acts as both thermodynamic and kinetic inhibitor.  UW graduate student Chongwei Xiao contributed to this project</p>' +
'<a href="/news/090622">[more]</a>';
	break;
}
   intId = setTimeout('rotateImg()', 5500);
}
		
///////////////////////////////////////////////////////////////////////////////
//                              Random Rotating Photos on Load               //
///////////////////////////////////////////////////////////////////////////////

var names=new Array()
names[0]= -1
names[1]= 0
names[2]= 1
names[3]= 2
names[4]= 3

num=names[Math.floor(Math.random()*names.length)]
//use=names[4]

switch (num){

   case -1 :
document.write(
'<img align="left" name="pict" src="/news/090622/topnews1.jpg" alt="Top News" border="0" height="247" width="320" style="padding: 5px 5px 5px 5px;" />'
+'<div id="myText"><fieldset class="darkTop_field"><legend class="darkTop_field_legend">'
+'<font size="-1">Gas-Hydrate Inhibitors</font>'
+'</legend>'
+'<h3>New Gas-Hydrate Inhibitors</h3>'
+'<p>Assistant Professor Hertanto Adidharma discovered a new class of gas-hydrate inhibitors that acts as both thermodynamic and kinetic inhibitor.  UW graduate student Chongwei Xiao contributed to this project</p><br>' +
'<a href="/news/090622/">[more]</a></fieldset></div>');
      break;

   case 0 :
document.write(
'<img align="left" name="pict" src="random/chemical/chemical.jpg" alt="Chemical Engineering" border="0" height="247" width="320" style="padding: 5px 5px 5px 5px;" />'
+'<div id="myText"><fieldset class="darkTop_field"><legend class="darkTop_field_legend">'
+'<font size="-1">Chemical Engineering</font>'
+'</legend>'
+'<h3>What is Chemical Engineering?</h3>'
+'<p>Chemical Engineering involves application of ' +
'Scientific disciplines, particularly chemisty,' +
'physics and mathematics, to converting raw ' +
'materials or chemicals into more useful or ' +
'valuable forms.</p>' +
'<a href="http://wwweng.uwyo.edu/chemical/frontpage/chemical/chemical.html">' +
'<b>[Chemical Engineering]</b></a>' +
'<br><a href="http://wwweng.uwyo.edu/chemical/frontpage/petroleum/petrol.html">' +
'<b>[Petroleum Engineering]</b></a></fieldset></div>');
      break;

   case 1 :
document.write(
'<img align="left" name="pict" src="random/petroleum/petrol_drilling.jpg" alt="Petroleum Engineering" border="0" height="247" width="320" style="padding: 5px 5px 5px 5px;" />'
+'<div id="myText"><fieldset class="darkTop_field"><legend class="darkTop_field_legend">'
+'<font size="-1">Petroleum Engineering</font>'
+'</legend>'
+'<h3>What is Petroleum Engineering?</h3>'
+'<p>Petroleum engineering is an increasingly technical profession that is involved in the exploration and production of petroleum and natural gass from hydrocarbon deposits that are usually burried deep beneath the earths surface.</p>' +
'<a href="http://wwweng.uwyo.edu/chemical/frontpage/petroleum/petrol.html">' +
'<b>[Petroleum Engineering]</b></a>' +
'<br><a href="http://wweng.uwyo.edu/chemical/frontpage/chemical/chemical.html">' +
'<b>[Chemical Engineering]</b></a></fieldset></div>');
      break;
	  
	  
   case 2 :
document.write(
'<img align="left" name="pict" src="random/080910/topnews1.jpg" alt="Top News" border="0" height="247" width="320" style="padding: 5px 5px 5px 5px;" />'
+'<div id="myText"><fieldset class="darkTop_field"><legend class="darkTop_field_legend">'
+'<font size="-1">Anadarko Gift</font>'
+'</legend>'
+'<h3>Anadarko Gift</h3>'
+'<p>The University of Wyoming today announced a $1.5 million gift from the Anadarko Foundation creating the Anadarko Petroleum Corporation Energy Resource Recovery Program Endowment.</p><br><a href="random/080910/">[more]</a></fieldset></div>');
      break;

	case 3:
document.write(
'<img align="left" name="pict" src="random/080415/topnews1.jpg" alt="Top News" border="0" height="247" width="320" style="padding: 5px 5px 5px 5px;" />'
+'<div id="myText"><fieldset class="darkTop_field"><legend class="darkTop_field_legend">'
+'<font size="-1">EnCana Gift</font>'
+'</legend>'
+'<h3>EnCana Gift</h3>'
+'<p>EnCana funds $2 Million gift for petroleum laboratory at the University of Wyoming.  Assistant Professor M. Piri has ben the driving force to establish this lab.</p>' +
'<a href="/chemical/frontpage/080415/">[more]</a></fieldset></div>');
     break;

}


//QuoteLine//


var QuoteLine = new Array()
QuoteLine[0] = "Engineering classes at UW average 25 students. Upper division classes (those for juniors and seniors) average fewer than 22 students.";
QuoteLine[1] = "The Chemical and Petroleum Engineering Department at UW offers options in biochemical and environmental engineering in addition to the traditional chemical and petroleum engineering programs.";
QuoteLine[2] = "The average ACT composite score for entering freshmen in engineering at UW is over 25.";
QuoteLine[3] = "Most engineering programs in the College are accredited by the Engineering Accreditation Commission of ABET.  Petroleum Engineering will be accredited in 2009.";
QuoteLine[4] = "Student members of Tau Beta Pi, the national engineering honorary, provide free tutoring services on a wide variety of engineering topics to all engineering students.";
QuoteLine[5] = "The International Engineering Club along with Engineers without Borders is designed to facilitate those students interested in study abroad, international internships, or international service.";
QuoteLine[6] = "American Institute of Chemical Engineers (AIChe) Student Chapter recently won design competition at regional conference, & finished 9th among 29 entries in the national Chem-E Car competition.";
QuoteLine[7] = "Engineering faculty at the University of Wyoming maintain an open door policy making them extremely accessible to students.";
QuoteLine[8] = "Nearly all of UW undergraduate engineering courses are taught by full time, tenure track faculty or practicing professionals.";
QuoteLine[9] = "The American Institute of Chemical Engineers (AIChE) has named chemical engineering professor Maciej Radosz as one of its eight new fellows.";
QuoteLine[10] = "Norm Morrow, Chemical and Petroleum professor is a member of the National Academy of Engineering.";
QuoteLine[11] = "UW engineering seniors consistently perform far above the national average on the Fundamentals of Engineering Exam. Approximately 80% of UW seniors pass this exam on the first try, compared to about 70% nationally.";
QuoteLine[12] = "Two UW dormitory floors with computing laboratories  house approximately 100 engineering students.";
QuoteLine[13] = "Our students obtain an excellent background in engineering sciences, combined with significant hands-on laboratory and design experiences. The small size of the College and excellent student/faculty ratio (which ranks us 4th among the top public engineering schools in the country) allows excellent opportunity for undergraduate involvement in research.";
QuoteLine[14] = "The College has 300 personal computers and workstations (1 computer for every 5 students) that are accessible to undergraduate students.";
QuoteLine[15] = "Wireless access to the internet is available in all student areas in the Engineering building.";

