//Investment page MAC fix
function load_investment()
{
    var q_clear = document.getElementById('Q_clear');
    var browser=navigator.userAgent; 
  
    if ((browser.indexOf('Safari') > -1 ) || ((browser.indexOf('Firefox') > -1) && (browser.indexOf('Macintosh') > -1) ))
    {
        q_clear.style.height = '620px  !important';
    }
}

//Home page Quote
function load_home()
{
  var browser=navigator.userAgent; 
  if (browser.indexOf('Opera') > -1)
  {
    document.getElementById('mainQuote').style.fontSize = '23px'
  }
  fade(0, 0, true);
}

/* 
  1a Studio 3.26.2008: added search_set and search_reset
  Fix for preventing key press on search box
*/

var search_event = false;

function search_set()
{
  search_event = true;
}

function search_reset()
{
  search_event = false;
}

//end 1a Studio fix


// KEY PRESS code by pixelworthy
document.onkeydown=keypressed;

function keypressed() 
{
/*
  if (!search_event)
  {
    alert("Keyboard is prevented for protection of copyrighted logos.");
  }
*/
}


// RIGHT CLICK code by pixelworthy
// 1a Studio 3.26.2008 comment: this only works in IE - client opt no fix 

var message="Right-click is prevented for protection of copyrighted logos.";

function click(e) {
/*
  if (document.all) {
    if (event.button == 2) {
      alert(message);
      return false;
    }
  }
  
  if (document.layers) {
    if (e.which == 3) {
      alert(message);
      return false;
    }
  }
*/
}

if (document.layers) {
  document.captureEvents(Event.MOUSEDOWN);
}

document.onmousedown=click;