var pics = new Array();
var alts = new Array();
var caps = new Array();
var link = new Array();


pics.push("macc1year");
alts.push("COB");
caps.push("<p>The MAcc is a graduate degree designed to prepare students for the accounting profession and specifically for a public accounting career track.<br /><a href=\"http://www.isu.edu/cob/maccfaq.shtml\">Learn More</a></p>");
link.push("http://www.isu.edu/cob/maccfaq.shtml");

pics.push("business-crossroads");
alts.push("COB");
caps.push("<p>Our professors come from around the country and around the globe to share their exceptional experiences with COB students.<br /><a href=\"http://www.isu.edu/cob/pdf/doctoral-qualified-faculty.pdf\">Learn More</a></p>");
link.push("http://www.isu.edu/cob/pdf/doctoral-qualified-faculty.pdf");

pics.push("class_challenge");
alts.push("COB");
caps.push("<p>Accounting Classes from 1965-2011 are competing to raise money for an endowed accounting professorship.  Click <a href=\"http://www.isu.edu/cob/classchallenge.shtml\">here</a> to learn more.</p>");
link.push("http://www.isu.edu/cob/classchallenge.shtml");

pics.push("AACSB");
alts.push("COB");
caps.push("<p>\"It's rewarding to see that the preeminent accreditation body recognizes the value of what we're doing.\" - Kregg Aytes, Interim Dean of the College of Business.<br /><a href=\"http://www.isu.edu/cob/press.shtml\">Learn More</a></p>");
link.push("http://www.isu.edu/cob/press.shtml");

pics.push("facebook");
alts.push("COB");
caps.push("<p><a href=\"http://www.facebook.com/idahostatecob\">Don't miss out on job postings, scholarship opportunities, and networking events - join us on Facebook.</p>");
link.push("http://www.facebook.com/idahostatecob");

pics.push("fallbulletin");
alts.push("COB");
caps.push("<p>Please let us know if you would like to receive the Bulletin via email. Send your request to Ann at <a href=\"mailto:swanann@isu.edu\">swanann@isu.edu</a> <br /><a href=\"http://www.isu.edu/cob/pdf/BusinessBulletinFall2011.pdf\">Read the latest issue.</a></p>");
link.push("http://www.isu.edu/cob/pdf/BusinessBulletinFall2011.pdf");

/*
pics.push("study-on");
alts.push("COB");
caps.push("<p>\"The students provided well organized, professional work.\"  Craig Remund, Site Manager ON Semiconductor, Inc.</p>");
link.push("http://www.isu.edu/cob/pdf/Bengal%20Solutions%20Case%20-%20ON%20Semiconductor2.pdf");

pics.push("NIATEC");
alts.push("COB");
caps.push("<p>The SFS program provides scholarship funding in exchange for service as an information assurance professional at a Federal agency. Contact <a href=\"mailto:raygreg@niatec.isu.edu\">Greg Ray</a></p>");
link.push("http://www.isu.edu/cob");

pics.push("opal-gem");
alts.push("COB");
caps.push("<p>\"The ISU business students are quick and bright\" - Frank Farnsworth, Owner of Idaho Opal and Gem</p>");
link.push("http://www.isu.edu/cob/pdf/Bengal%20Solutions%20Case%20-%20Idaho%20Opal%20and%20Gem.pdf");

pics.push("Fellows11");
alts.push("COB");
caps.push("<p>The Fellows represent the very best undergraduate business majors based on three dimensions: academics, leadership, and attitude.  There are over 1,300 business majors at ISU.  The nine students chosen this year for the Fellows program represent the best one percent of business undergraduates. For information about the Fellows program, contact Dr. Steve Byers at <a href=\"mailto:byerstev@isu.edu\">byerstev@isu.edu</a></p>");
link.push("http://www.isu.edu/cob");

pics.push("holidays");
alts.push("COB");
caps.push("<p>The COB wishes you and your family a peaceful holiday season.</p>");
link.push("http://www.isu.edu/cob");

pics.push("basketball");
alts.push("Pre-Game Celebration");
caps.push("<p>SAVE THE DATE!<br />Monday, December 5th, you are invited to the Pre-Game Celebration: 3:30 – 6:30 p.m. at Stonehouse, 665 Park Blvd., Boise featuring Head Basketball Coach Joe O’Brien and College of Business Dean Kregg Aytes. The Bengals take on the Broncos at 7:00 P.M in the Boise Taco Bell Arena. For more information contact Bernard Goodwin at (208)339-2464 or <a href=\"mailto:goodbern@isu.edu\">goodbern@isu.edu</a>.</p>");
link.push("http://www.isu.edu/cob");

pics.push("ibloy-nom");
alts.push("COB");
caps.push("<p>Nominations open for <strong>\"Idaho Business Leader of the Year.\"</strong>  For a direct link to information and the application, visit: <a href=\"http://www.isuakpsi.com\">http://www.isuakpsi.com</a>  or contact Shawn Kelsch, 2012 Idaho Business Leader of the Year chairperson, at (208) 282-4245 or by e-mail at <a href=\"mailto:kelssha2@isu.edu\">kelssha2@isu.edu</a></p>");
link.push("http://www.isuakpsi.com");

pics.push("Career-Fair");
alts.push("COB");
caps.push("<p>A great opportunity for all business students to meet potential employers including:  Melaleuca, Allstate, Premier Technology, and Wells Fargo</p>");
link.push("http://www.isu.edu/cob");

pics.push("tax-ad");
alts.push("Tax Institute");
caps.push("<p> This year's Tax Institute includes a day dedicated to Governmental Accounting and features a legislative tax outlook from Sen. Brent Hill, President Pro-Tem of the  Idaho State Senate.  <br /><a href=\"http://www.isu.edu/cob/pdf/53rdTaxInstituteBrochure.pdf\">Download registration form</a>. <br />For more information contact Beverly Shappart at 208-282-3585 or <a href=\"mailto:shapbeve@isu.edu\">shapbeve@isu.edu</a>.</p>");
link.push("http://www.isu.edu/cob/pdf/53rdTaxInstituteBrochure.pdf");

pics.push("LakeCDA1");
alts.push("COB");
caps.push("<p>Idaho State is one of the 2011 hosts of the The Western Association of Collegiate Schools of Business (WACSB) Annual Regional Meeting in Coeur d'Alene.</p>");
link.push("http://www.isu.edu/cob/WACSB2011/");

pics.push("pokapalooza");
alts.push("pokapalooza");
caps.push("<p>The ISU Marketing Association presents Pokapalooza!  A dance-a-rock-a-cut-a-loose-a-thon. Saturday on the Quad from after the game until 10:00p.m. Contact <a href=\"mailto:gunttyso@isu.edu\">gunttyso@isu.edu</a> for more information.</p>");
link.push("http://www.isu.edu/cob/classchallenge.shtml");

pics.push("firms");
alts.push("COB");
caps.push("<p>\Events are Free to Students<br />Meet the Firms:  SUB Wood River Room<br />Symposium: Stephens Performing Arts Center, RSVP to Beverly at 282-3585</p>");
link.push("#");

pics.push("impact");
alts.push("COB");
caps.push("<p><a href=\"http://isu.edu/cob/bengalsolutions.shtml\">Bengal Solutions</a> is the consulting arm of the College of Business.  The Idaho State University <a href=\"pdf/economic-impact.pdf\">economic impact study</a> is an example of the amazing work Bengal Solutions continues to produce. For a copy of the complete study, email <a href=\"mailto:swanann@isu.edu\">swanann@isu.edu</a>.</p>");
link.push("pdf/economic-impact.pdf");

pics.push("Case-Study-Premier");
alts.push("COB");
caps.push("<p>\"The issues we ask them to tackle are not easy....\" - Stephen Marshburn, Premier Technology</p>");
link.push("http://isu.edu/cob/pdf/Bengal%20Solutions%20Case%20-%20Premier%20Technology.pdf");

pics.push("SeattleEvent2011");
alts.push("COB");
caps.push("<p><strong>Puget Sound Alumni</strong><br />Summer Reception<br />September 15, 2011<br />Click <a href=\"pdf/Seattle-Invitation.pdf\">here</a> for your invitation.</p>");
link.push("http://isu.edu/cob/pdf/Seattle-Invitation.pdf");

pics.push("Be-an-Accountant");
alts.push("COB");
caps.push("<p>Boring, stuffy, number crunchers?  Hardly. For information about graduate and undergraduate accounting programs, contact Brigit Christensen at <a href=\"mailto:macc@isu.edu\">macc@isu.edu</a>.</p>"); 
link.push("#");

pics.push("NIATEC");
alts.push("COB");
caps.push("<p>The SFS program provides scholarship funding in exchange for service as an information assurance professional at a Federal agency.<br />Contact Greg Ray<br /><a href=\"mailto:raygreg@niatec.isu.edu\">raygreg@niatec.isu.edu</a></p>");
link.push("http://security.isu.edu/sfs/scholarship.htm");

pics.push("bengalsolutions_cob");
alts.push("COB");
caps.push("<p><strong>Bengal Solutions</strong><br /><a href=\"bengalsolutions.shtml\">Bengal Solutions</a> offers consulting services to local businesses. It is a vehicle for ISU College of Business’ mission to stimulate economic growth in southeast Idaho.</p>"); 
link.push("bengalsolutions.shtml");

pics.push("summer-school");
alts.push("COB");
caps.push("<p>Make the COB part of your summer! <a href=\"http://www.isu.edu/cob/summer-courses.shtml\">See summer courses</a></p>");
link.push("http://www.isu.edu/cob/summer-courses.shtml");

pics.push("macc1year");
alts.push("COB");
caps.push("<p>Earn a Master of Accounting in only one year!  Contact <a href=\"mailto:petesam@isu.edu\">petesam@isu.edu</a> for information.</p>");
link.push("#");

pics.push("graduation");
alts.push("COB");
caps.push("<p>The College welcomes alumni, family and friends to graduation and post-graduation activities. Contact <a href=\"mailto:hooksusa@isu.edu\">hooksusa@isu.edu</a> for information.</p>");
link.push("#");

pics.push("larissa_kimball");
alts.push("COB");
caps.push("<p>\"My experience here has been so rewarding, and I am thankful for all the wonderful people in this community that care so much for the university and its students....\" - Larissa Kimball</p>");
link.push("#");

pics.push("ibloy_2011");
alts.push("COB");
caps.push("<p>Congratulations to Charley Jones, 2011 Idaho Business Leader of the Year</p>");
link.push("http://www.isuakpsi.com/");

pics.push("sunvalley");
alts.push("COB");
caps.push("<p>The College of Business is exploring whether it can offer its <a href=\"pdf/PresentationSV4-8-10.pdf\">MBA program in Sun Valley</a> to serve individuals in south-central Idaho</p>");
link.push("pdf/PresentationSV4-8-10.pdf");

pics.push("beyourself");
alts.push("COB");
caps.push("<p>Boring, stuffy, number crunchers?  Hardly.<br />For information on our Accounting progam click <a href=\"http://isu.edu/cob/departments.shtml\">here</a> or email Dr. Picard at <a href=\"mailto:picarobe@isu.edu\">picarobe@isu.edu</a></p>");
link.push("http://isu.edu/cob/departments.shtml");

pics.push("mba1year");
alts.push("COB");
caps.push("<p>ISU and BYU-I students can earn an MBA in only one year!  Contact <a href=\"mailto:petesam@isu.edu\">petesam@isu.edu</a> for information.</p>");
link.push("#");

pics.push("findyourplace_cob");
alts.push("COB");
caps.push("<p><strong>Find Your Place...</strong><br />Find your place in the economic landscape with a <a href=\"mba.shtml\">Master of Business Administration</a>.  Choose from emphases in Accounting, Marketing, Computer Information Systems, Management, Health Care Administration, or Finance.</p>");
link.push("mba.shtml");

pics.push("fellows");
alts.push("COB");
caps.push("<p>The College of Business Fellows represent the very best undergraduate business majors based on three dimensions: academics, leadership, and attitude.</p>");
link.push("#");

pics.push("mba_payandeh");
alts.push("COB");
caps.push("<p>Click <a href=\"mba.shtml\">here</a> for more information on MBA and graduate programs.</p>"); 
link.push("mba.shtml");

pics.push("IBLOY");
alts.push("COB");
caps.push("<p>Idaho Business Leader of the Year Nominations are due November 12th. <a href=\"http://www.isuakpsi.com\">Information and nomination form</a>.</p>");
link.push("http://www.isuakpsi.com");

pics.push("tax_ad");
alts.push("COB");
caps.push("<p>The Idaho State Tax Institute is celebrating its 51st year of service to accounting and legal professionals. The institute is widely respected for its leadership in providing high quality continuing education at the lowest possible cost. The conference is in Pocatello on November 4th and 5th. <a href=\"pdf/Tax Institute.pdf\">Download the registration form</a>.</p>");
link.push("pdf/Tax Institute.pdf");

pics.push("naba_cob");
alts.push("COB");
caps.push("<p><strong>Native American Business Administration</strong><br /><a href=\"pdf/NativeAmericanBusinessAdministrationProgram.pdf\">The Native American Business Administration program</a> is the only program of its kind in the U.S. to incorporate a Native American business curriculum into an AACSB-accredited B.B.A. program.</p>"); 
link.push("pdf/NativeAmericanBusinessAdministrationProgram.pdf");

pics.push("pokapalooza_cob");
alts.push("COB");
caps.push("<p><strong>Pokapalooza</strong><br />The ISU Marketing Association stages \"Pokapalooza\" each fall.  Local bands rock and roll for prizes, and money raised helps finance conference travel for marketing students.</p>");
link.push("studentorg.shtml");

*/




var total = pics.length;
var current;
var setIntervalID;

$(document).ready(function() {
	$.each(pics, function(i, pic) {
		$("<a>").text(i+1).attr({
			href: "#",
			rel: pic
		}).appendTo("#splashnav ul").wrap("<li></li>").click( function() {
			clearInterval(setIntervalID);
			$("<img>").attr({
				src: "http://www.isu.edu/cob/images/" + $(this).attr("rel") + ".jpg"
			}).replaceAll("#splash dt a").wrap("<a href=\""+link[i]+"\"></a>");
			$("<dd>").html(caps[i]).attr({
				id: "announcements"
			}).replaceAll("#splash dd#announcements");
			$("#splash dt img").css({opacity: 0.0}).animate({opacity: 1.0}, 1000);
			$("#splash dd#announcements").css({opacity: 0.0}).animate({opacity: 1.0}, 1000);
			return false;
		});
	});
	slideshow();
});

function slideshow() {
	//var randnum = Math.random();
	//current = Math.round((total - 1) * randnum);
	current = 0;
	$("<img>").attr({
		src: "http://www.isu.edu/cob/images/" + pics[current] + ".jpg"
	}).replaceAll("#splash dt a").wrap("<a href=\""+link[current]+"\"></a>");
	$("<dd>").html(caps[current]).attr({
		id: "announcements"
	}).replaceAll("#splash dd#announcements");
	$("#splash dt img").css({opacity: 0.0}).animate({opacity: 1.0}, 500);
	$("#splash dd#announcements").css({opacity: 0.0}).animate({opacity: 1.0}, 500);
	
	setIntervalID = setInterval('nextslide()', 7000);
}

function nextslide() {
	current++;
	if(current >= total) {
		current = 0;
	}
	$("<img>").attr({
		src: "http://www.isu.edu/cob/images/" + pics[current] + ".jpg"
	}).replaceAll("#splash dt a").wrap("<a href=\""+link[current]+"\"></a>");
	$("<dd>").html(caps[current]).attr({
		id: "announcements"
	}).replaceAll("#splash dd#announcements");
	$("#splash dt img").css({opacity: 0.0}).animate({opacity: 1.0}, 1000);
	$("#splash dd#announcements").css({opacity: 0.0}).animate({opacity: 1.0}, 1000);
}
