// Function to apply "hover" class to Quick Links menu on hover. So popup works in IE6.

//// Use this one if jQuery is being loaded anyway...
/* $(document).ready(function() {
  // Dynamically add sfhover class to make suckerfish menus work
  $('li#reedNav_quickLinks').hover(function() { $(this).addClass('hover') },
                        function() { $(this).removeClass('hover') });
})*/
//// Non-jQuery version...
quicklinksHover = function() {
    var quicklinksEl = document.getElementById("reedNav_quickLinks")
    quicklinksEl.onmouseover=function() {
        this.className+=" hover";
    }
    quicklinksEl.onmouseout=function() {
        this.className=this.className.replace(new RegExp(" hover\\b"), "");
    }
}
if (window.attachEvent) window.attachEvent("onload", quicklinksHover);
// End hover function.

//Random feature
function makeArray(len) {
for (var i = 0; i < len; i++) this[i] = null;
this.length = len;
    }
featureRandom = new makeArray(4);
featureRandom[0] = "<p><a href='http://www.reed.edu/reed_magazine/march2012/articles/features/morris/morris.html'><img src='assets_home/images/magazine/homeMag_mar12_1.jpg' alt='Reed Magazine cover' width='144' height='148' border='0'></a></p><p class='featureText'>Breaking the Chain. Can a mathematical model slow the spread of AIDS? Find out in <a href='http://www.reed.edu/reed_magazine/index.html'><em>Reed</em></a> magazine.</p>"

featureRandom[1] = "<p><a href='http://www.reed.edu/reed_magazine/march2012/articles/features/veselka/veselka.html'><img src='assets_home/images/magazine/homeMag_mar12_2.jpg' alt='Vanessa Veselka' width='144' height='148' border='0'></a></p><p class='featureText'>Road Warrior. Read about the career of novelist Vanessa Vesekla &rsquo;10  in <a href='http://www.reed.edu/reed_magazine/index.html'><em>Reed</em></a> magazine.</p>"

featureRandom[2] = "<p><a href='http://www.reed.edu/reed_magazine/march2012/articles/features/makley/makley.html'><img src='assets_home/images/magazine/homeMag_mar12_3.jpg' alt='Tibet night photo' width='144' height='148' border='0'></a></p><p class='featureText'>Turmoil in Tibet. Read about the work of anthro prof. Charlene Makley in <a href='http://www.reed.edu/reed_magazine/index.html'><em>Reed</em></a> magazine.</p>"

featureRandom[3] = "<p><a href='http://www.reed.edu/reed_magazine/march2012/articles/features/bragdon.html'><img src='assets_home/images/magazine/homeMag_mar12_4.jpg' alt='David Bragdon on Brooklyn Bridge' width='144' height='148' border='0'></a></p><p class='featureText'>Mastro of Chaos. Meet NYC&rsquo;s master planner, David Bragdon MALS &rsquo;10 in <a href='http://www.reed.edu/reed_magazine/index.html'><em>Reed</em></a> magazine.</p>"

function rand(n) {
seed = (0x015a4e35 * seed) % 0x7fffffff;
return (seed >> 16) % n;
    }
        
var now = new Date()
var seed = now.getTime() % 0xffffffff
//End random feature
