// JavaScript Document

// Revolving images
var theImages = new Array()

theImages[0] = 'imgs/img_1.gif'
theImages[1] = 'imgs/img_2.gif'
theImages[2] = 'imgs/img_3.gif'
theImages[3] = 'imgs/img_4.gif'
theImages[4] = 'imgs/img_5.gif'
theImages[5] = 'imgs/img_6.gif'
theImages[6] = 'imgs/img_7.gif'
theImages[7] = 'imgs/img_8.gif'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
	document.write('<img src="'+theImages[whichImage]+'">');
}

// Navigate to linked resources
function go(){
location=document.drop.example.
options[document.drop.example.selectedIndex].value
}

var Quotation=new Array() // do not change this!

// Set up the quotations to be shown, below.
// To add more quotations, continue with the
// pattern, adding to the array.  Remember
// to increment the Quotation[x] index!

Quotation[0] = "Counseling was really a great action on my part.  I do feel better about myself and feel that when the sessions are over I will be on a higher, more positive level than before.";
Quotation[1] = "Very good help when I needed it most!";
Quotation[2] = "I appreciate the services for students of color.";
Quotation[3] = "It was nice to have a place I could come to talk without fear of judgment and to sort out personal issues by talking through them.";
Quotation[4] = "It\'s great to have this service on campus!";
Quotation[5] = "The service has helped me through a very difficult time and I wouldn\'t be as happy as I am now without counseling.  Thank you!";
Quotation[6] = "Great service!  So thankful this is provided by the University!";
Quotation[7] = "It has made a great difference!  Thanks!";

// ======================================
// Do not change anything below this line
// ======================================
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation(){document.write("<p><q>" + Quotation[whichQuotation] + "</q></p>");}


function popUp(URL) {
day = new Date();
id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=350,left = 312,top = 209');");

}