//
// check if flash should be shown or not
//

var doflash = false;

var player = new MM_FlashInfo();
if (player.installed) {
  if (player.version && player.version >= 8) { // NEEDS FLASH VERSION 8 OR GREATER
    doflash = true;
  }
}

//
// write HTML for flash movie or HTML alternative
//

function writeflash() {
  if (doflash) {
    document.write("<div id='divflash'>");
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='homeflash' width='649' height='439'>");
    document.write("<param name='movie' value='libgiving.swf?linkurl=opportunities/index.html' /><param name='play' value='true' /><param name='loop' value='false' /><param name='quality' value='high' /><param name='menu' value='false' /><param name='bgcolor' value='#939598' />");
    document.write("<embed src='libgiving.swf?linkurl=opportunities/index.html' play='true' loop='false' quality='high' menu='false' bgcolor='#939598' swLiveConnect='false' width='649' height='439' name='homeflash' type='application/x-shockwave-flash'>");
    document.write("</embed></object></div>");
  }
  else {
    document.writeln("<div id='divflash'><a href='opportunities/index.html'><img src='img/home/flashalt.gif' width='649' height='514' border='0' alt='As society spins out trillions of gigabytes of data every day, the MIT Libraries are finding new ways to save our most important data, forever. We're redefining how the world will store and work with information. We're a partner in research and a destination for community living and learning. We're guardians of the past, but champions of the future: a future in which knowledge is never lost, information is open to everyone and community reaches around the world. Join us on our journey. Find out more...' title='' /></a></div>");
  }
}

