$(document).ready(function() {

    var testFileNames = new Array(
    'http://www.uti.edu/Portals/0/images/circle_VURVQuinVahldick.gif',
    'http://www.uti.edu/Portals/0/images/circle_VURVKarenHaro.gif',
    'http://www.uti.edu/Portals/0/images/circle_VURVJohnDodson.gif',
    'http://www.uti.edu/Portals/0/images/circle_VURVJasenTaylor.gif',
    'http://www.uti.edu/Portals/0/images/circle_VURVDanielHernandez.gif',
    'http://www.uti.edu/Portals/0/images/circle_VURVCrisSantaCroce.gif',
    'http://www.uti.edu/Portals/0/images/circle_VURVBobDrapp.gif'
	);

    var testNames = new Array(
    'Quin Vahldick',
    'Karen Haro',
    'John Dodson',
    'Jasen Taylor',
    'Daniel Hernandez',
    'Cris Santa Croce',
    'Bob Drapp'	
    );

    var testURLs = new Array(
    'http://www.uti.edu/tabid/1299/Default.aspx',
    'http://www.uti.edu/tabid/1300/Default.aspx',
    'http://www.uti.edu/tabid/1301/Default.aspx',
    'http://www.uti.edu/tabid/1302/Default.aspx',
    'http://www.uti.edu/tabid/1303/Default.aspx',
    'http://www.uti.edu/tabid/1304/Default.aspx',
    'http://www.uti.edu/tabid/1305/Default.aspx'	
    );

    var testText = new Array(
    'I was completely blown away by it and I\'m like Wow! Where do I sign up? This place is outstanding as far as I\'m concerned. This is the best job I\'ve ever had. It\'s also the longest job I\'ve ever had.',
    'I can\'t work for a company unless I\'m passionate and truly believe in the product that I\'m speaking about. I love what I do. I\'m very passionate about working with students. There\'s no feeling like watching them graduate.',
    'I see kids living their dream every day. We\'re in the dream business. We\'re in the education business. We teach kids to have the skills to work on the automobiles and race cars because it\'s their dream.',
	'I\'ve learned being here. I\'ve learned a lot about engines. I\'ve learned a lot about chassis being here. And I worked on race teams for 13 years! It\'s crazy what you can learn here.',
	'I am passionate about what I do here at UTI. I think it\'s a growing passion. Every time I see a student change or a life change it really comes back and hits you on the head and says you\'re doing a good thing.',
	'I was really attracted to UTI because they are a great organization in the fact that they take good care of their people and they really are focused on the student. When you think about what we\'re offering, we\'re training these kids to have a future.',
	'MMI is a place where I have the ability to use all of my knowledge and experience that I\'ve gained over the years to help other people just getting started in this business. And I feel like I\'m giving a lot back to the industry.'
    );

    var test1Index = Math.floor(Math.random() * testFileNames.length);

    var test2Index;

    do

    { test2Index = Math.floor(Math.random() * testFileNames.length); }

    while (test2Index == test1Index)

    var test3Index;

    do

    { test3Index = Math.floor(Math.random() * testFileNames.length); }

    while (test3Index == test1Index || test3Index == test2Index)

    document.getElementById('AutoRotationLeft').innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td class="P_Intro"><a href="' + testURLs[test1Index] + '" ><img class="P_Intro_Image" style="margin-bottom:30px" src="' + testFileNames[test1Index] + '" align="left" border="0"></a><span class="P_IntroTitle">' + testNames[test1Index] + '</span> <div class="P_IntroContent">' + testText[test1Index] + '<div class="P_Intro_icon"><a href="' + testURLs[test1Index] + '" ><img class="Button_PlayVideo" src="http://www.uti.edu/portals/0/siteimages/button_playvideo.gif"></a></div></div></td></tr></tbody></table>';

    document.getElementById('AutoRotationCenter').innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td class="P_IntroMid"><a href="' + testURLs[test2Index] + '" ><img class="P_Intro_Image" style="margin-bottom:30px" src="' + testFileNames[test2Index] + '" align="left" border="0"></a><span class="P_IntroTitle">' + testNames[test2Index] + '</span> <div class="P_IntroContent">' + testText[test2Index] + '<div class="P_Intro_icon"><a href="' + testURLs[test2Index] + '" ><img class="Button_PlayVideo" src="http://www.uti.edu/portals/0/siteimages/button_playvideo.gif"></a></div></div></td></tr></tbody></table>';

    document.getElementById('AutoRotationRight').innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td class="P_IntroLast"><a href="' + testURLs[test3Index] + '" ><img class="P_Intro_Image" style="margin-bottom:30px" src="' + testFileNames[test3Index] + '" align="left" border="0"></a><span class="P_IntroTitle">' + testNames[test3Index] + '</span> <div class="P_IntroContent">' + testText[test3Index] + '<div class="P_Intro_icon"><a href="' + testURLs[test3Index] + '" ><img class="Button_PlayVideo" src="http://www.uti.edu/portals/0/siteimages/button_playvideo.gif"></a></div></div></td></tr></tbody></table>';


});