<!-- Begin
var timeDelay = 3; // change delay time in seconds
var Pix = new Array
("/upload/images/Racetrack _Button.jpg" 
,"/upload/images/CommunityCollege-web-button.jpg" 
,"/upload/images/IceCreamTruck-button.jpg" 
,"/upload/images/PacMan-button.jpg" 
,"/upload/images/GetAhead-button.jpg" 
,"/upload/images/MBAThumbnail-button.jpg" 

);
var linkText = new Array
("/Videos/racetrack.html"
,"/Videos/phonebooth.html"
,"/Videos/grad.html"
,"/Videos/piechart.html"
,"/Videos/getahead.html"
,"/Videos/mba.html"

);

var linkWords = new Array
("Race Track"
,"Community College"
,"Marketing"
,"Pie Chart"
,"Get Ahead"
,"MBA"

);




var howMany = Pix.length;
//var howMany2 = linkText.length;
timeDelay *= 1000;
var PicCurrentNum = 0;
var LinkCurrentNum = 0;
var PicCurrent = new Image();
PicCurrent.src = Pix[PicCurrentNum];
//document.getElementById("link1").href = linkText[LinkCurrentNum];
//document.getElementById("mainlink").href = linkText[LinkCurrentNum];


function startPix() 
{
	setInterval("slideshow()", timeDelay);
}

function slideshow() 
{
	PicCurrentNum++;
	if (PicCurrentNum == howMany) 
	{
		PicCurrentNum = 0;
	}
	var randomnumber=Math.floor(Math.random()*6)
	//PicCurrent.src = Pix[PicCurrentNum];
	PicCurrent.src = Pix[randomnumber];
	//PicCurrent.src = Pix[PicCurrentNum];
	document["ChangingPix"].src = PicCurrent.src;
	document.getElementById("link1").href = linkText[randomnumber];
	document.getElementById("mainlink").href = linkText[randomnumber];
	document.getElementById("mainlink").innerHTML = '';
	document.getElementById("mainlink").appendChild(document.createTextNode(linkWords[randomnumber]));
	
	
}
//  End -->



// Flag for whether or not to automatically call the print function
var gAutoPrint = true;

var printReadyElem;

printableIframeID = "iframe";

function printSpecial(print_id, design_id)
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';
		
		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
			{
				html += headTags[0].innerHTML;
			}
		}
		html += '\n</HE' + 'AD>\n<BODY style=\"background-color: #FFFFFF; background-image: none; text-align:left;\">\n<p><img src="/images/design' + design_id + '/logo_small.jpg"><hr size="1" color="#CCCCCC">\n';

		if (document.getElementById(printableIframeID) != null)
		{
		    printReadyElem = document.getElementById(printableIframeID).contentWindow.document.body;
		}
		else
		{
		    printReadyElem = document.getElementById(print_id);
		}

		if (printReadyElem != null)
		{
			html += printReadyElem.innerHTML;
			html += '\n</p>';
		}
		else
		{
			alert("Could not find the printable section");
			return;
		}	
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
				
		var printWin = window.open("","printSpecial","height=500,width=600,screenX=0,left=0,screenY=0,top=0,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
		{		
			printWin.print();
		}
	}
	else
	{
		alert("Sorry, the print feature is only available in modern browsers.");
	}
}