// Splash Screen

imgpath = "img/"


//Top menu

imgpath =  "img/menu/"

home_out = new Image;
home_up = new Image;
home_out.src = imgpath +"home.gif";
home_up.src = imgpath +"home-up.gif";

software_out = new Image;
software_up = new Image;
software_out.src = imgpath +"software.gif";
software_up.src = imgpath +"software-up.gif";

download_out = new Image;
download_up = new Image;
download_out.src = imgpath +"download.gif";
download_up.src = imgpath +"download-up.gif";

articles_out = new Image;
articles_up = new Image;
articles_out.src = imgpath +"articles.gif";
articles_up.src = imgpath +"articles-up.gif";

affiliate_out = new Image;
affiliate_up = new Image;
affiliate_out.src = imgpath +"affiliate.gif";
affiliate_up.src = imgpath +"affiliate-up.gif";

news_out = new Image;
news_up = new Image;
news_out.src = imgpath +"news.gif";
news_up.src = imgpath +"news-up.gif";


// The Function
function CI(name,img)
{
 name.src = img.src;
}


function addBookmark(url, 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;
}


function checkSoftResponseForm() {
    var error = '';
    var form = document.responseForm;

    if (form.name.value == '') {
        error += ' - enter your name\n';
    }

    if (form.text.value == '') {
        error += ' - enter your review\n';
    }

    if (form.code.value == '') {
        error += ' - enter code\n';
    }

    if (error != '') {
        alert('Errors found in Review form:\n'+error);
        return false;
    }

    return true;
}
