if (document.images) browserVer = 1
else browserVer = 2;

if (browserVer == 1) 
{
  download_out = new Image(108,20);
  download_out.src="images/section/download_button.gif";
  download_over=new Image(108,20);
  download_over.src="images/section/download_button_over.gif";



  getscreensaver_out=new Image(144,27);
  getscreensaver_out.src="images/menu/menu_getscreensaver.jpg";
  getscreensaver_over=new Image(144,27);
  getscreensaver_over.src="images/menu/menu_getscreensaver_over.jpg";
  
  gethelp_out=new Image(144,27);
  gethelp_out.src="images/menu/menu_gethelp.jpg";
  gethelp_over=new Image(144,27);
  gethelp_over.src="images/menu/menu_gethelp_over.jpg";
  
  getrich_out=new Image(144,27);
  getrich_out.src="images/menu/menu_getrich.jpg";
  getrich_over=new Image(144,27);
  getrich_over.src="images/menu/menu_getrich_over.jpg";
  
  getsneakpeak_out=new Image(144,27);
  getsneakpeak_out.src="images/menu/menu_getsneakpeak.jpg";
  getsneakpeak_over=new Image(144,27);
  getsneakpeak_over.src="images/menu/menu_getsneakpeak_over.jpg";

  getcreative_out=new Image(144,27);
  getcreative_out.src="images/menu/menu_getcreative.jpg";
  getcreative_over=new Image(144,27);
  getcreative_over.src="images/menu/menu_getcreative_over.jpg";

  getlicense_out=new Image(144,27);
  getlicense_out.src="images/menu/menu_getlicense.gif";
  getlicense_over=new Image(144,27);
  getlicense_over.src="images/menu/menu_getlicense_over.gif";


  bookmark_out = new Image(146,27);
  bookmark_out.src="images/header/btn_bookmark.jpg";
  bookmark_over = new Image(146,27);
  bookmark_over.src="images/header/btn_bookmark_over.jpg";

  link_out = new Image(146,24);
  link_out.src = "images/header/btn_link.jpg";
  link_over = new Image(146,24);
  link_over.src = "images/header/btn_link_over.jpg";
}

function hlight(imgOrg,imgSwap) 
{
  if (browserVer == 1) 
  {
    document.images[imgOrg].src = eval(imgSwap + ".src");
  }
}

function addBookmark(url, title)
{
  if (!url) url = location.href;
  if (!title) title = document.title;

  //Gecko
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel
(title, url, "");
  //IE4+
  else if (typeof window.external == "object") window.external.AddFavorite(url, title);
  //Opera7+
  else if (window.opera && document.createElement)
  {
    var a = document.createElement('A');
    if (!a) return false; //IF Opera 6
    a.setAttribute('rel','sidebar');
    a.setAttribute('href',url);
    a.setAttribute('title',title);
    a.click();
  }
  else return false;

  return true;
}
