﻿			var image = new Array();			image[0] = "images/featured/1118-valerie.jpg";			image[1] = "images/featured/1118-balloons.jpg";			image[2] = "images/featured/1102-hubbard.jpg";			image[3] = "images/featured/1015-flu.jpg";			image[4] = "images/featured/1007-Target.jpg";			image[5] = "images/featured/1015-choir.jpg";						var section = new Array();			section[0] = "CAMPUS";			section[1] = "SCENE";			section[2] = "CAMPUS";			section[3] = "CITY";			section[4] = "CITY";			section[5] = "SCENE";						var caption = new Array();			caption[0] = "Professor publishes book highlighting role of women in medieval times";			caption[1] = "Get schooled in parade ballon wrangling";			caption[2] = "The unsettling side of anatomy";			caption[3] = "Two types of flu vaccine offered";			caption[4] = "Target is back in town";			caption[5] = "University chorus and concert choir gave strong performances";						var URI = new Array();			URI[0] = "article/9209/";			URI[1] = "article/9179/";			URI[2] = "article/8884/";			URI[3] = "article/8541/";			URI[4] = "article/8412/";			URI[5] = "article/8558/";																		var currentPosition = 0; 			var images = new Array();			var divs = new Array();				var preload = new Array();			for(var i = 0; i < image.length; i++) {				preload[i] = new Image();				preload[i].src = image[i];				images[i] = "<p class=\"section\"><a href=" + URI[i] + ">" + section[i] + " &raquo;</a></p><a href=" + URI[i] + "><img src=" + image[i] + " alt=\"\" /></a><p class=\"section\"><a href=" + URI[i] + ">" + caption[i] + "</p></a>";			}			divs[0] = "imageOne";			divs[1] = "imageTwo";			divs[2] = "imageThree";			function shiftLeft() {				currentPosition--;				checkArrows();				if(currentPosition == 0) {					for(var i = 0; i < 3; i++) {						document.getElementById(divs[i]).innerHTML = images[0 + i];					}					document.getElementById("shiftLeft").innerHTML = "";				}				else {						for(var i = 2; i > -1; i--) {						document.getElementById(divs[i]).innerHTML = images[currentPosition + i];					}				}			}			function shiftRight() {				currentPosition++;				checkArrows();				if((currentPosition + 2) == (images.length - 1)) {					var x = 0;					for(var i = 2; i > -1; i--) {						document.getElementById(divs[i]).innerHTML = images[(images.length - 1) - x];						x++					}					document.getElementById("shiftRight").innerHTML = "";				}				else {					for(var i = 0; i < 3; i++) {						document.getElementById(divs[i]).innerHTML = images[currentPosition + i];					}					}						}			function loader() {				checkArrows();				for(var i = currentPosition; i < (currentPosition + 3); i++) {					document.getElementById(divs[i - currentPosition]).innerHTML = images[i];				}			}			function checkArrows() {				if(currentPosition > 0) {					document.getElementById("shiftLeft").innerHTML = "<a href=\"javascript:shiftLeft();\" onclick=\"shiftLeft();\">&laquo;</a>";				}				if((currentPosition + 2) < (images.length - 1)) {					document.getElementById("shiftRight").innerHTML = "<a href=\"javascript:shiftRight();\" onclick=\"shiftRight();\">&raquo;</a>";				}			}