/***********************************************
* Simple Controls Gallery- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
* http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm
* http://www.dynamicdrive.com/dynamicindex4/simplegallery_suppliment.htm
***********************************************/

var promotionbox=new simpleGallery({
	wrapperid: "promotion", //ID of main gallery container,
	dimensions: [375, 180], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
	imagearray: [
["/division/dit/images/simple-gallery/image-17.jpg", "http://www.csu.edu.au/division/dit/environ-sustainability?utm_source=dit-environ&utm_medium=animated-button&utm_campaign=dit-homepage-promotions", "", {alt:"", title:""}],			
			
["/division/dit/images/simple-gallery/image-26.jpg", "http://www.csu.edu.au/division/dit/projects/ip-telephony?utm_source=ip-telephony&utm_medium=animated-button&utm_campaign=dit-homepage-promotions", "", {alt:"", title:""}],	
["/division/dit/images/simple-gallery/image-27.jpg", "http://www.csu.edu.au/division/dit/staff/training/self-help/index.htm?utm_source=print-double-sided&utm_medium=animated-button&utm_campaign=dit-homepage-promotions", "", {alt:"", title:""}],
["/division/dit/images/simple-gallery/image-25.jpg", "http://www.csu.edu.au/division/dit/staff/training/adobe/acrobat?utm_source=adobe-acrobat&utm_medium=animated-button&utm_campaign=dit-homepage-promotions", "", {alt:"", title:""}],
["/division/dit/images/simple-gallery/image-21.jpg", "http://www.csu.edu.au/division/dit/forms/ideas/?utm_source=dit-idea&utm_medium=animated-button&utm_campaign=dit-homepage-promotions", "", {alt:"", title:""}],
["/division/dit/images/simple-gallery/image-24.jpg", "http://au.movember.com/?utm_source=movember&utm_medium=animated-button&utm_campaign=dit-homepage-promotions", "", {alt:"", title:""}],
["/division/dit/images/simple-gallery/image-23.jpg", "http://www.dell.com.au/csu?utm_source=benefits-dell&utm_medium=animated-button&utm_campaign=dit-homepage-promotions", "", {alt:"", title:""}],
["/division/dit/images/simple-gallery/image-22.jpg", "http://www.csu.edu.au/division/dit/eal/?utm_source=dit-eal&utm_medium=animated-button&utm_campaign=dit-homepage-promotions", "", {alt:"", title:""}],


["/division/dit/images/simple-gallery/image-19.jpg", "http://www.csu.edu.au/division/dit/services/faqs/?utm_source=dit-faqs&utm_medium=animated-button&utm_campaign=dit-homepage-promotions", "", {alt:"", title:""}],	

["/division/dit/images/simple-gallery/image-15.jpg", "http://www.csu.edu.au/division/dit/benefits?utm_source=laptopgrant&utm_medium=animated-button&utm_campaign=dit-homepage-promotions", "", {alt:"", title:""}],	

["/division/dit/images/simple-gallery/image-13.jpg", "https://online.csu.edu.au/division/dit/software?utm_source=software&utm_medium=animated-button&utm_campaign=dit-homepage-promotions", "", {alt:"", title:""}]




],
	defaultattr: {alt:"",title:""}, //alt and title for images without a specified alt/title. Required.
	autoplay: true,
	persist: false,
	pause: 3000, //pause between slides (milliseconds)
	fadeduration: 700, //transition duration (milliseconds)
	oninit:function(){ //event that fires when gallery has initialized/ ready to run
	},
	onslide:function(curslide, i){ //event that fires after each slide is shown
		//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
		//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
	}
})

/***********************************************
Change classname of tabs to active/inactive
***********************************************/

function toggle(linkObj)
{
	var node = linkObj; //start
	while (node && node.nodeName.toUpperCase() != 'UL') //node exists, isn't UL
		node = node.parentNode; //go up
	var tabs = node.getElementsByTagName('a'), //got it, get collection
	tab,
	t = 0;
	while (tab = tabs[t++])
		if (tab == linkObj)
			tab.className = 'active';
		else tab.className = 'inactive';
	return false;
}

