///////////////////////////////////////////////////////////////////////////////
//                              Rotating Photos                              //
///////////////////////////////////////////////////////////////////////////////

// put images to preload in this array
   var imgAr = new Array();
   imgAr[0]="http://www.atmos.uwyo.edu/images/Cockpit-1.jpg"
   imgAr[1]="http://www.atmos.uwyo.edu/images/fc_night_a.jpg"
   imgAr[2]="http://www.atmos.uwyo.edu/images/Sys09-burkhart.jpg"
   imgAr[3]="http://www.atmos.uwyo.edu/images/Antarc-package.jpg"
   imgAr[4]="http://www.atmos.uwyo.edu/images/Borkhuu-177.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=
				'Students have the opportunity to obtain hands-on experience with state-of-the-art atmospheric observing facilities such as the Wyoming King Air. Here, a student flies in the King Air during a project designed to allow students to participate as mission scientist.</a>';
    			  	break;

   			case 1 :
    				document.pict.src = pic[num].src;
				document.getElementById('myText').innerHTML=
				'The department this year began its 21st year in a cooperative agreement between UW and the National Science Foundation for operation of the UW King Air research aircraft as a national lower atmospheric observing facility. The UW research and transportation aircraft housed at the Donald L. Veal Research Flight Center located at Laramie`s airport.</a>';
     				break;

   			case 3 :
    				document.pict.src = pic[num].src;
				document.getElementById('myText').innerHTML=
 				'Student Wiesje Mooiweer and Research Scientist Jennifer Mercer pause on the Ross Ice Shelf in Antarctica.  Here, they are recovering an optical condensation nuclei counter which was flown to an altitude of 30Km in the stratosphere on a balloon. Projects to use this instrument to investigate the impact of tropospheric aerosol on climate and precipitation processes are funded by NSF under the direction of PI Terry Deshler.</a>';
     				break;

   			case 4 :
    				document.pict.src = pic[num].src;
				document.getElementById('myText').innerHTML=
'Professor Jeff Snider and graduate student Bujidmaa Borkhuu are seen here collaborating on a hotplate snow measurement system; one of four different snowrate instruments being compared by Bujidmaa in her studies of wintertime precipitation in the Medicine Bow Mountains.   The research work is supported by the State of Wyoming and the US Geological Survey. </a>';
     				break;

			}

   intId = setTimeout('rotateImg()', 7500);
}
		
///////////////////////////////////////////////////////////////////////////////
//                              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[1]

switch (num){
	
	case -1 :

  document.write(
'<img name="pict" src="http://www-das.uwyo.edu/images/Cockpit-1.jpg" alt="Students"  width="320" height="247" align="left" style="padding: 5px 5px 5px 5px;"/> ' +
'<table height="255px" frame="border" bordercolor="#FFFFCC" cellpadding="2px"><tr><td valign="middle">' +
'<p id="myText">' +
'Students have the opportunity to obtain hands-on experience with state-of-the-art atmospheric observing facilities such as the Wyoming King Air. Here, a student flies in the King Air during a project designed to allow students to participate as mission scientist.</p>' +
'</td></tr></table>');
      break;
  

   case 0 :

  document.write(
'<img name="pict" src="http://www.atmos.uwyo.edu/images/fc_night_a.jpg" alt="UW King Air research aircraft"  width="320" height="247" align="left" style="padding: 5px 5px 5px 5px;"/> ' +
'<table height="255px" frame="border" bordercolor="#FFFFCC" cellpadding="2px"><tr><td valign="middle">' +
'<p id="myText">' +
'The department this year began its 21st year in a cooperative agreement between UW and the National Science Foundation for operation of the UW King Air research aircraft as a national lower atmospheric observing facility. The UW research and transportation aircraft housed at the Donald L. Veal Research Flight Center located at Laramie`s airport.</p>' +
'</td></tr></table>');
      break;
	  
   case 1 :

  document.write(
'<img name="pict" src="http://www.atmos.uwyo.edu/images/Sys09-burkhart.jpg" alt="UW King Air research aircraft"  width="320" height="247" align="left" style="padding: 5px 5px 5px 5px;"/> ' +
'<table height="255px" frame="border" bordercolor="#FFFFCC" cellpadding="2px"><tr><td valign="middle">' +
'<p id="myText">' +
'The University of Wyoming King Air research aircraft, instrumented and operated by the Department of Atmospheric Science, is available to the scientific community nationally and internationally under an agreement with the National Science Foundation. The computers in the aircraft provide a highly interactive work environment--a true flying laboratory.</p>' +
'</td></tr></table>');
      break;

   case 2 :

  document.write(
'<img name="pict" src="http://www.atmos.uwyo.edu/images/Antarc-package.jpg" alt="UW King Air research aircraft"  width="320" height="247" align="left" style="padding: 5px 5px 5px 5px;"/> ' +
'<table height="255px" frame="border" bordercolor="#FFFFCC" cellpadding="2px"><tr><td valign="middle">' +
'<p id="myText">' +
' Student Wiesje Mooiweer and Research Scientist Jennifer Mercer pause on the Ross Ice Shelf in Antarctica.  Here, they are recovering an optical condensation nuclei counter which was flown to an altitude of 30Km in the stratosphere on a balloon. Projects to use this instrument to investigate the impact of tropospheric aerosol on climate and precipitation processes are funded by the NSF under the direction of PI Terry Deshler. ' +
' </p>  ' +
'</td></tr></table>');
      break;

   case 3 :

  document.write(
'<img name="pict" src="http://www.atmos.uwyo.edu/images/Borkhuu-177.jpg" alt="UW King Air research aircraft"  width="320" height="247" align="left" style="padding: 5px 5px 5px 5px;"/> ' +
'<table height="255px" frame="border" bordercolor="#FFFFCC" cellpadding="2px"><tr><td valign="middle">' +
'<p id="myText">' +
'Professor Jeff Snider and graduate student Bujidmaa Borkhuu are seen here collaborating on a hotplate snow measurement system; one of four different snowrate instruments being compared by Bujidmaa in her studies of wintertime precipitation in the Medicine Bow Mountains.   The research work is supported by the State of Wyoming and the US Geological Survey. ' +
' </p> ' +
'</td></tr></table>');
      break;

}

////// Did You Know Section//////
function die(max) {
   return Math.ceil(Math.random() * max) ;
}

function aRandom( a ) {
   cat = a[ die(a.length)-1 ];
   return cat;
}

   var QuoteLine = new Array() ;
QuoteLine[0] = "Computer scientists and database administrators are expected to be among the fastest growing occupations through 2014. -- U.S. Department of Labor, Bureau of Labor Statistics." ;
QuoteLine[1] = "Six out of ten of the Occupations with the Most New Jobs: Bachelor's Degrees published by CollegeBoard.com were computer science related. These jobs include: Computer systems analysts, Computer software engineers and Computer programmers." ;
QuoteLine[2] = "IT Career job forecast through 2016: Network Systems and Data Communictions analyst, 53% increase (262,000 jobs to 402,000), Computer Software Applications engineers, 44.6% (507,000 jobs to 733,000), Computer Systems Analyst 29% growth, Database Administrators 28.6% growth, and Software Engineers 28.2% growth. See the entire list from the Bureau of Labor Statistics. " ;
QuoteLine[3] = "U.S. High-tech employment continues to rise, with 150,000 jobs created in 2006, significantly faster then 2005 when 87,400 jobs were added. Not only do these jobs make critical contributions to the U.S. economy, but they also pay extremely well. The average tech-industry wage is 86% more than the average U.S. private sector wage. -- American Electronics Association report via Network World. " ;
QuoteLine[4] = "Database administrators and computer specialists were listed among the top 20 Fastest Growing Professional Jobs published by Fortune magazine. " ;
