// -------------------------------------------------------- //
// Random Rotation for Highlights and Features //
// -------------------------------------------------------- //
var rndHlt = Math.floor(Math.random() * 1);var rndFtrTop = Math.floor(Math.random() * 1);var rndFtrBottom = Math.floor(Math.random() * 1);var rndFtrTechFac = Math.floor(Math.random() * 6);var rndFtrTechStd = Math.floor(Math.random() * 6);var rndFtrTechAlm = Math.floor(Math.random() * 5);var rndFtrTechAll = Math.floor(Math.random() * 6);
function GetHighlight()
{
                
            var allImages = new Array();
            var allIDs = new Array();
            var allLinks = new Array();
            var allTitles = new Array();                 
                allImages[0] = '/portal/content/highlights/img/b_1229542397.jpg';
                allLinks[0] = 'http://uscnews.sc.edu/2008/08222008-ADMN262.html';
                allIDs[0] = '101';
                allTitles[0] = 'U.S. News Rankings: Top 10 Most Promising'; 
    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_1239727810.jpg';
                allLinks[0] = 'http://www.sc.edu/impact';
                allTitles[0] = 'Impact'; 
    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(); 
                allImages[0] = '/portal/content/rotatingfeature/img/m_1239137833.jpg';
                allLinks[0] = 'http://www.sc.edu/focuscarolina';
                allTitles[0] = 'Focus Carolina'; 
    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_1137593826.jpg';
                allLinks[2] = 'http://uts.sc.edu/network/wireless.shtml';
                allTitles[2] = 'Go Wireless @ USC'; 
                allImages[3] = '/portal/content/rotatingfeatureTechnology/img/m_1137601371.jpg';
                allLinks[3] = 'http://www.uts.sc.edu/getconnected.shtml';
                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] = 'http://www.uts.sc.edu/support/helpdesk.shtml';
                allTitles[5] = '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_1137593826.jpg';
                allLinks[2] = 'http://uts.sc.edu/network/wireless.shtml';
                allTitles[2] = 'Go Wireless @ USC'; 
                allImages[3] = '/portal/content/rotatingfeatureTechnology/img/m_1137601371.jpg';
                allLinks[3] = 'http://www.uts.sc.edu/getconnected.shtml';
                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] = 'http://www.uts.sc.edu/support/helpdesk.shtml';
                allTitles[5] = '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_1137601371.jpg';
                allLinks[2] = 'http://www.uts.sc.edu/getconnected.shtml';
                allTitles[2] = 'Accessing USC Network'; 
                allImages[3] = '/portal/content/rotatingfeatureTechnology/img/m_1137593917.jpg';
                allLinks[3] = 'http://uts.sc.edu/itbulletin/';
                allTitles[3] = 'IT Bulletin'; 
                allImages[4] = '/portal/content/rotatingfeatureTechnology/img/m_1137593947.jpg';
                allLinks[4] = 'http://www.uts.sc.edu/support/helpdesk.shtml';
                allTitles[4] = '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_1137593826.jpg';
                allLinks[2] = 'http://uts.sc.edu/network/wireless.shtml';
                allTitles[2] = 'Go Wireless @ USC'; 
                allImages[3] = '/portal/content/rotatingfeatureTechnology/img/m_1137601371.jpg';
                allLinks[3] = 'http://www.uts.sc.edu/getconnected.shtml';
                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] = 'http://www.uts.sc.edu/support/helpdesk.shtml';
                allTitles[5] = '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>");
        }
    }
}



