// JavaScript Document
//slideshow script: slideshow_portfolio_ads
//simple, arrows go to next or previous image
//see original full script from calss I took in
//disk0/Users/nicholson26/Documents/deskTopStuff/
//webDevelopment/CISW310

	if(document.images)
	
	{
	
	nextBlue = new Image();
	nextRed = new Image();
	previousBlue = new Image();
	previousRed = new Image();
	
	nextBlue.src= "images/r_arrow.gif";
	nextRed.src= "images/r_arrow.gif";
	previousBlue.src= "images/l_arrow.gif";
	previousRed.src= "images/l_arrow.gif";
	
	}
	
	else
	
	{
	
	nextBlue = "";
	nextRed = "";
	previousBlue = "";
	previousRed = "";
	document.next = ""
	document.previous = "";
	
	}
	


	var myAds = new Array("images/logo_identity/lido.gif","images/logo_identity/atherton.gif", "images/logo_identity/bh_logo.gif", "images/logo_identity/puw_logo.gif", "images/logo_identity/sm.gif",  "images/logo_identity/pardent.gif", "images/logo_identity/wwd.gif", "images/logo_identity/gcd.gif", "images/logo_identity/sfg_logo.gif",  "images/logo_identity/ct_logo.gif", "images/logo_identity/kai_logo.gif", "images/logo_identity/ltc_logo.gif", "images/logo_identity/rm_logo.gif", "images/logo_identity/siv_logo.gif", "images/logo_identity/ts_logo.gif", "images/logo_identity/fitk_logo.gif"); 
	
	var num = 0;
	
	var imgCt = myAds.length -1;
	
	function chgSlide(direction)
	
	{
		if(document.images)
		
		{
		
		num = num + direction;
			
			if(num>imgCt)
			
			{
				
				num = 0
			
			}
			
			if (num<0)
			
			{
				
				num = imgCt;
			
			}
		
		document.myPictures.src=myAds[num]
		
		}
	
	}