
var f_0 = '<table id="feature" align="center"><tr><td align="center"><a href="/strategy/adoption.php"><h2>Usage of open source technologies is growing<\/h2><\/a><\/td><\/tr><tr><td align="center"><a href="/strategy/adoption.php"><center><img src="/images/adoption_small.png" /><\/center><\/a><\/td><\/tr><tr><td align="center"><a href="/strategy/adoption.php"><h3 style="font-size: 12px;">Learn how OpenCrowd Adoption Strategy can help you benefit from this trend ...<\/h3><\/a><\/td><\/tr><\/table>';
var f_1 = '<table id="feature"><tr><td colspan="2" height="10"><\/td><\/tr><tr><td><a href="/development/custom.php"><h2>Build custom applications faster using open source technologies<\/h2><\/a><\/td><td><a href="/development/custom.php"><img src="/images/development_small_rounded.gif" /><\/a><\/td><\/tr><tr><td colspan="2"><a href="/development/custom.php"><h3>Learn how OpenCrowd can build your application using existing projects...<\/h3><\/a><\/td><\/tr><\/table>';
var f_2 = '<table id="feature" align="center"><tr><td><a href="/strategy/governance.php"><h2>The stages of open source adoption in an enterprise<\/h2><\/a><\/td><\/tr><tr>  <td><center><a href="/strategy/governance.php"><img src="/images/governance_small_rounded.gif" /><\/a><\/center><\/td><\/tr><tr><td><a href="/strategy/governance.php"><h3>Learn how OpenCrowd Governance Services can help you manage your adoption...<\/h3><\/a><\/td><\/tr><\/table>';
var f_3 = '<table id="feature"><tr><td><a href="/strategy/scorecard.php"><h2>Are open source technologies ready for adoption in your enterprise?<\/h2><br \/><h3>Download an OpenCrowd Scorecard to learn more...<\/h3><\/a><\/td><td><a href="/strategy/scorecard.php"><img src="/images/scorecard_bar_graph.gif" /><\/a><\/td><\/tr><\/table>';
var feature_num = 3;

// preload the other 3 images
var image1 = new Image();
image1.src = "/images/adoption_small.png";
var image2 = new Image();
image2.src = "/images/development_small_rounded.gif";
var image3 = new Image();
image3.src = "/images/governance_small_rounded.gif";

function change_feature(div_id) {
    document.getElementById(div_id).innerHTML = eval('f_'+feature_num);
}

function feature_rotate(div_id, where) {
  feature_num = feature_num + where;
  if (feature_num == 4) feature_num = 0;
  if (feature_num < 0) feature_num = 3;

  if (document.getElementById) {
    change_feature(div_id);
  }
}