// -------------------------------------------------------- //
// Random Rotation for Highlights and Features //
// -------------------------------------------------------- //
var rndHlt = Math.floor(Math.random() * 6);var rndFtrTop = Math.floor(Math.random() * 8);var rndFtrBottom = -1;var rndFtrTechFac = Math.floor(Math.random() * 7);var rndFtrTechStd = Math.floor(Math.random() * 7);var rndFtrTechAlm = Math.floor(Math.random() * 6);var rndFtrTechAll = Math.floor(Math.random() * 7);
function GetHighlight()
{
                
            var allImages = new Array();
            var allIDs = new Array();
            var allLinks = new Array();
            var allTitles = new Array();                 
                allImages[0] = '/images/main_page/biomed.jpg';
                allLinks[0] = '/biomed/intro.html';
                allIDs[0] = '3';
                allTitles[0] = 'Biomedical Engineering';                 
                allImages[1] = '/images/main_page/chemeng1.jpg';
                allLinks[1] = '/chemeng/intro.html';
                allIDs[1] = '6';
                allTitles[1] = 'Chemical Engineering';                 
                allImages[2] = '/images/main_page/civenviron.jpg';
                allLinks[2] = '/civenviron/intro.html';
                allIDs[2] = '8';
                allTitles[2] = 'Civil and Environmental Engineering';                 
                allImages[3] = '/images/main_page/compsci.jpg';
                allLinks[3] = '/compsci/intro.html';
                allIDs[3] = '9';
                allTitles[3] = 'Computer Science and Engineering';                 
                allImages[4] = '/images/main_page/electeng.jpg';
                allLinks[4] = '/electeng/intro.html';
                allIDs[4] = '10';
                allTitles[4] = 'Electrical Engineering';                 
                allImages[5] = '/images/main_page/mecheng.jpg';
                allLinks[5] = '/mecheng/intro.html';
                allIDs[5] = '17';
                allTitles[5] = 'Mechanical Engineering';                 
    if (rndHlt > -1)
    {
        document.write("<div id=\"banner\">");

        if (allLinks[rndHlt] == "")
        {
            document.write("<div onclick=\"location.href='/highlights/item.php?hid=" + allIDs[rndHlt] + "'\" class=\"show\" title=\"" + allTitles[rndHlt] + "\" style=\"cursor: pointer; cursor: hand; background: url(" + allImages[rndHlt] + ") top left no-repeat;\">");
            //REMOVED 09.14.06 Eric
            //document.write("<h2>Welcome</h2>");
        }
        else
            document.write("<div onclick=\"location.href='" + allLinks[rndHlt] + "'\" class=\"show\" title=\"" + allTitles[rndHlt] + "\" style=\"cursor: pointer; cursor: hand; background: url(" + allImages[rndHlt] + ") top left no-repeat;\">");

        document.write("</div>");
        document.write("</div>");
    }
}

function GetFeatureTop()
{
    
            var allImages = new Array();
            var allLinks = new Array();
            var allTitles = new Array(); 
                allImages[0] = '/portal/content/rotatingfeature/img/m_1131042916.gif';
                allLinks[0] = 'http://schc.sc.edu/';
                allTitles[0] = 'South Carolina Honors College'; 
                allImages[1] = '/portal/content/rotatingfeature/img/m_1131053001.gif';
                allLinks[1] = 'http://www.sc.edu/usctimes/articles/2006-08/rankings.html';
                allTitles[1] = 'U.S. News rankings'; 
                allImages[2] = '/portal/content/rotatingfeature/img/m_1132670900.jpg';
                allLinks[2] = 'http://www.sc.edu/words/item.php?wid=23';
                allTitles[2] = 'Magellan Scholar'; 
                allImages[3] = '/portal/content/rotatingfeature/img/m_1138120605.jpg';
                allLinks[3] = 'http://www.sc.edu/words/item.php?wid=26';
                allTitles[3] = 'Kiplinger\'s'; 
                allImages[4] = '/portal/content/rotatingfeature/img/m_1143727799.jpg';
                allLinks[4] = 'http://www.sc.edu/words/item.php?wid=27';
                allTitles[4] = 'Carnegie Foundation'; 
                allImages[5] = '/portal/content/rotatingfeature/img/m_1159985903.jpg';
                allLinks[5] = 'http://www.sc.edu/familyfund/index.html';
                allTitles[5] = 'Family Fund'; 
                allImages[6] = '/portal/content/rotatingfeature/img/m_1163194784.jpg';
                allLinks[6] = 'http://directory.carolinaalumni.org/incircle.asp?goto_url=http://incircle.gamecocknetwork.org/c/';
                allTitles[6] = 'Gamecock Alumni Network'; 
                allImages[7] = '/portal/content/rotatingfeature/img/m_1163714432.jpg';
                allLinks[7] = 'http://uscnews.sc.edu/ADMN_Web067.html';
                allTitles[7] = 'Wall Street Journal'; 
    if (rndFtrTop > -1)
    {
        document.write("<div class=\"item\">");
        document.write("<div class=\"show\">");
        document.write("<a href=\"" + allLinks[rndFtrTop] + "\" target=\"_blank\">");
        document.write("<img src=\"" + allImages[rndFtrTop] + "\" alt=\"" + allTitles[rndFtrTop] + "\" class=\"side\" />");
        document.write("</a>");
        document.write("</div>");
        document.write("</div>");
    }
}

function GetFeatureBottom()
{
    
            var allImages = new Array();
            var allLinks = new Array();
            var allTitles = new Array(); 
    if (rndFtrBottom > -1)
    {
        document.write("<div class=\"item\">");
        document.write("<div class=\"show\">");
        document.write("<a href=\"" + allLinks[rndFtrBottom] + "\" target=\"_blank\">");
        document.write("<img src=\"" + allImages[rndFtrBottom] + "\" alt=\"" + allTitles[rndFtrBottom] + "\" class=\"side\" />");
        document.write("</a>");
        document.write("</div>");
        document.write("</div>");
    }
}

function GetTechnology(TYPE)
{
    if (TYPE == "Faculty")
    {
        
            var allImages = new Array();
            var allLinks = new Array();
            var allTitles = new Array(); 
                allImages[0] = '/portal/content/rotatingfeatureTechnology/img/m_1137593706.jpg';
                allLinks[0] = 'http://www.sc.edu/studentIT/';
                allTitles[0] = 'Student IT'; 
                allImages[1] = '/portal/content/rotatingfeatureTechnology/img/m_1137601341.jpg';
                allLinks[1] = 'http://uts.sc.edu/computerpurchase/';
                allTitles[1] = 'Do you need a computer?'; 
                allImages[2] = '/portal/content/rotatingfeatureTechnology/img/m_1137593792.jpg';
                allLinks[2] = 'https://helpdesk.uts.sc.edu/survey.asp';
                allTitles[2] = 'Online Survey'; 
                allImages[3] = '/portal/content/rotatingfeatureTechnology/img/m_1137593826.jpg';
                allLinks[3] = 'http://uts.sc.edu/wireless';
                allTitles[3] = 'Go Wireless @ USC'; 
                allImages[4] = '/portal/content/rotatingfeatureTechnology/img/m_1137601371.jpg';
                allLinks[4] = 'http://uts.sc.edu/connected/';
                allTitles[4] = 'Accessing USC Network'; 
                allImages[5] = '/portal/content/rotatingfeatureTechnology/img/m_1137593917.jpg';
                allLinks[5] = 'http://uts.sc.edu/itbulletin/';
                allTitles[5] = 'IT Bulletin'; 
                allImages[6] = '/portal/content/rotatingfeatureTechnology/img/m_1137593947.jpg';
                allLinks[6] = 'https://helpdesk.uts.sc.edu';
                allTitles[6] = 'UTS Help Desk'; 
        if (rndFtrTechFac > -1)
        {
            document.write("<div id=\"banner\">");
            document.write("<div onclick=\"location.href='" + allLinks[rndFtrTechFac] + "'\" class=\"show\" title=\"" + allTitles[rndFtrTechFac] + "\" style=\"cursor: pointer; cursor: hand; background: url(" + allImages[rndFtrTechFac] + ") top left no-repeat;\">");
            document.write("</div>");
            document.write("</div>");
        }
    }
    else if (TYPE == "Students")
    {
        
            var allImages = new Array();
            var allLinks = new Array();
            var allTitles = new Array(); 
                allImages[0] = '/portal/content/rotatingfeatureTechnology/img/m_1137593706.jpg';
                allLinks[0] = 'http://www.sc.edu/studentIT/';
                allTitles[0] = 'Student IT'; 
                allImages[1] = '/portal/content/rotatingfeatureTechnology/img/m_1137601341.jpg';
                allLinks[1] = 'http://uts.sc.edu/computerpurchase/';
                allTitles[1] = 'Do you need a computer?'; 
                allImages[2] = '/portal/content/rotatingfeatureTechnology/img/m_1137593792.jpg';
                allLinks[2] = 'https://helpdesk.uts.sc.edu/survey.asp';
                allTitles[2] = 'Online Survey'; 
                allImages[3] = '/portal/content/rotatingfeatureTechnology/img/m_1137593826.jpg';
                allLinks[3] = 'http://uts.sc.edu/wireless';
                allTitles[3] = 'Go Wireless @ USC'; 
                allImages[4] = '/portal/content/rotatingfeatureTechnology/img/m_1137601371.jpg';
                allLinks[4] = 'http://uts.sc.edu/connected/';
                allTitles[4] = 'Accessing USC Network'; 
                allImages[5] = '/portal/content/rotatingfeatureTechnology/img/m_1137593917.jpg';
                allLinks[5] = 'http://uts.sc.edu/itbulletin/';
                allTitles[5] = 'IT Bulletin'; 
                allImages[6] = '/portal/content/rotatingfeatureTechnology/img/m_1137593947.jpg';
                allLinks[6] = 'https://helpdesk.uts.sc.edu';
                allTitles[6] = 'UTS Help Desk'; 
        if (rndFtrTechStd > -1)
        {
            document.write("<div id=\"banner\">");
            document.write("<div onclick=\"location.href='" + allLinks[rndFtrTechStd] + "'\" class=\"show\" title=\"" + allTitles[rndFtrTechStd] + "\" style=\"cursor: pointer; cursor: hand; background: url(" + allImages[rndFtrTechStd] + ") top left no-repeat;\">");
            document.write("</div>");
            document.write("</div>");
        }
    }
    else if (TYPE == "Alumni")
    {
        
            var allImages = new Array();
            var allLinks = new Array();
            var allTitles = new Array(); 
                allImages[0] = '/portal/content/rotatingfeatureTechnology/img/m_1137593706.jpg';
                allLinks[0] = 'http://www.sc.edu/studentIT/';
                allTitles[0] = 'Student IT'; 
                allImages[1] = '/portal/content/rotatingfeatureTechnology/img/m_1137601341.jpg';
                allLinks[1] = 'http://uts.sc.edu/computerpurchase/';
                allTitles[1] = 'Do you need a computer?'; 
                allImages[2] = '/portal/content/rotatingfeatureTechnology/img/m_1137593792.jpg';
                allLinks[2] = 'https://helpdesk.uts.sc.edu/survey.asp';
                allTitles[2] = 'Online Survey'; 
                allImages[3] = '/portal/content/rotatingfeatureTechnology/img/m_1137601371.jpg';
                allLinks[3] = 'http://uts.sc.edu/connected/';
                allTitles[3] = 'Accessing USC Network'; 
                allImages[4] = '/portal/content/rotatingfeatureTechnology/img/m_1137593917.jpg';
                allLinks[4] = 'http://uts.sc.edu/itbulletin/';
                allTitles[4] = 'IT Bulletin'; 
                allImages[5] = '/portal/content/rotatingfeatureTechnology/img/m_1137593947.jpg';
                allLinks[5] = 'https://helpdesk.uts.sc.edu';
                allTitles[5] = 'UTS Help Desk'; 
        if (rndFtrTechAlm > -1)
        {
            document.write("<div id=\"banner\">");
            document.write("<div onclick=\"location.href='" + allLinks[rndFtrTechAlm] + "'\" class=\"show\" title=\"" + allTitles[rndFtrTechAlm] + "\" style=\"cursor: pointer; cursor: hand; background: url(" + allImages[rndFtrTechAlm] + ") top left no-repeat;\">");
            document.write("</div>");
            document.write("</div>");
        }
    }
    else
    {
        
            var allImages = new Array();
            var allLinks = new Array();
            var allTitles = new Array(); 
                allImages[0] = '/portal/content/rotatingfeatureTechnology/img/m_1137593706.jpg';
                allLinks[0] = 'http://www.sc.edu/studentIT/';
                allTitles[0] = 'Student IT'; 
                allImages[1] = '/portal/content/rotatingfeatureTechnology/img/m_1137601341.jpg';
                allLinks[1] = 'http://uts.sc.edu/computerpurchase/';
                allTitles[1] = 'Do you need a computer?'; 
                allImages[2] = '/portal/content/rotatingfeatureTechnology/img/m_1137593792.jpg';
                allLinks[2] = 'https://helpdesk.uts.sc.edu/survey.asp';
                allTitles[2] = 'Online Survey'; 
                allImages[3] = '/portal/content/rotatingfeatureTechnology/img/m_1137593826.jpg';
                allLinks[3] = 'http://uts.sc.edu/wireless';
                allTitles[3] = 'Go Wireless @ USC'; 
                allImages[4] = '/portal/content/rotatingfeatureTechnology/img/m_1137601371.jpg';
                allLinks[4] = 'http://uts.sc.edu/connected/';
                allTitles[4] = 'Accessing USC Network'; 
                allImages[5] = '/portal/content/rotatingfeatureTechnology/img/m_1137593917.jpg';
                allLinks[5] = 'http://uts.sc.edu/itbulletin/';
                allTitles[5] = 'IT Bulletin'; 
                allImages[6] = '/portal/content/rotatingfeatureTechnology/img/m_1137593947.jpg';
                allLinks[6] = 'https://helpdesk.uts.sc.edu';
                allTitles[6] = 'UTS Help Desk'; 
        if (rndFtrTechAll > -1)
        {
            document.write("<div id=\"banner\">");
            document.write("<div onclick=\"location.href='" + allLinks[rndFtrTechAll] + "'\" class=\"show\" title=\"" + allTitles[rndFtrTechAll] + "\" style=\"cursor: pointer; cursor: hand; background: url(" + allImages[rndFtrTechAll] + ") top left no-repeat;\">");
            document.write("</div>");
            document.write("</div>");
        }
    }
}



