// JavaScript Document

/*Multi image slideshow script- by javascriptkit.com
Visit JavaScript Kit (http://javascriptkit.com) for script
Credit must stay intact for use*/

//#1 SPECIFY number of slideshows
var number_of_slideshows=1

//#2 SPECIFY interval between slide (2000=2 seconds)
var interval=6000

//#3 SHOULD each slide be linked to a unique URL?
var linked=1

var slideshows=new Array(number_of_slideshows)
for (i=0; i <number_of_slideshows; i++)
slideshows[i]=new Array()

//#4 SPECIFY image paths of 1st slideshow


slideshows[0][0]='images/EducatorsDay10.jpg'
slideshows[0][1]='images/SpringGame10.jpg'
slideshows[0][2]='images/Pushwriting.jpg'
slideshows[0][3]='images/MasterofTrans.jpg'
slideshows[0][4]='images/GMATMobile.jpg'
slideshows[0][5]='images/virtualtour.jpg'
//slideshows[0][8]='images/H1N1flu.jpg'


//slideshows[0][6]='images/TLMP09b.jpg'
//slideshows[0][6]='images/WashingtonMonthly3.jpg'
//slideshows[0][7]='images/usNews.jpg'



/* --
//SPECIFY image paths of 2nd slideshow (remove if number_of_slides less than 2)
slideshows[0][0]='images/test8.jpg'
slideshows[0][1]='images/Gifford.jpg'
slideshows[0][2]='images/Student_Circle2.jpg'
slideshows[0][3]='images/test12.jpg'
slideshows[0][4]='images/test1.jpg'



//SPECIFY image paths of 3rd slideshow (remove if number_of_slides less than 3)
slideshows[2][0]='boat1.gif'
slideshows[2][1]='boat2.gif'
slideshows[2][2]='boat3.gif'

//EXTEND THIS ARRAY if more than 3 slide shows
-- */

/*-- This where you add the ALT tags for the images --*/
var slideALT=new Array(number_of_slideshows)
for (i=0; i <number_of_slideshows; i++)
slideALT[i]=new Array()



slideALT[0][0]='Educators Day'
slideALT[0][1]='Spring Football Game'
slideALT[0][2]='Push Writing'
slideALT[0][3]='The Master of Science in Transportation (MST) Program at SC State University has eight Graduate Research Assistant positions available immediately'
slideALT[0][4]='The GMAT Mobile Test Center is Coming'
slideALT[0][5]='Virtual Tour'
//slideALT[0][8]='Information on the H1N1 flu'


//slideALT[0][6]='Continuing To Make History SC State University receives a $13 million grant '
//slideALT[0][6]='SC State Earns Top Spot in Washington Monthly College & University Rankings '
//slideALT[0][7]='SC State excels as one of the leading HBCUs in America'






/*--Remove the below portion if "var linked" above is set to 0 --*/

var slidelinks=new Array(number_of_slideshows)
for (i=0; i <number_of_slideshows; i++)
slidelinks[i]=new Array()

//#5 SPECIFY urls of 1st slideshow

slidelinks[0][0]='http://www.scsu.edu/event_details.aspx?event_id=520'
slidelinks[0][1]=''
slidelinks[0][2]='http://www.scsu.edu/news_article.aspx?news_id=929'
slidelinks[0][3]='http://www.scsu.edu/news_article.aspx?news_id=917'
slidelinks[0][4]='http://www.scsu.edu/event_details.aspx?event_id=497'
slidelinks[0][5]='http://www.scsu.edu/campus_tour.cfm'
//slidelinks[0][8]='http://www.scsu.edu/2009h1n1.aspx'


//slidelinks[0][6]='mms://webcast.scsu.edu/webcast/tlmp0.wmv'
//slidelinks[0][4]='http://www.scsu.edu/news_article.aspx?news_id=837'
//slidelinks[0][5]='http://www.scsu.edu/news_article.aspx?news_id=831'




/*--

//SPECIFY urls of 2nd slideshow (remove if number_of_slides=1)
slidelinks[1][0]='http://www.scsu.edu'
slidelinks[1][1]='http://www.scsu.edu'
slidelinks[1][2]='http://www.scsu.edu'
slidelinks[1][3]='http://www.scsu.edu'



//SPECIFY urls of 3rd slideshow (remove if number_of_slides less than 3)
slidelinks[2][0]='http://mysite.com/boat1.htm'
slidelinks[2][1]='http://mysite.com/boat2.htm'
slidelinks[2][2]='http://mysite.com/boat3.htm'

-- */

function clickredir(){
window.location=slidelinks[maininc][subinc]
}

/*-- END removal ---------------------------------- */

var maininc=0
var subinc=0

if (linked)
document.write('<a href="javascript:clickredir()"><img src="'+slideshows[0][0]+'" name="multislide" border=0 alt="'+slideALT[0][0]+'"></a>')
else
document.write('<img src="'+slideshows[0][0]+'" name="multislide">')

function slideit(){
subinc= (subinc<slideshows[maininc].length-1)? subinc+1: 0
document.images.multislide.src=slideshows[maininc][subinc]
}

function setslide(which){
clearInterval(runit)
maininc=which
subinc=0
runit=setInterval("slideit()",interval)
}

runit=setInterval("slideit()",interval)

