defaultvalue = " キーワードを入力";

function onTextBlur(obj) {
  if(obj.value=="") {
    obj.style.color = "#CCCCCC";
    obj.value = defaultvalue;
  }
}

function onTextFocus(obj) {
  obj.style.color = "#666666";
  if(obj.value==defaultvalue) {
    obj.value = "";
  }
}

function indexload() {
  obj = document.getElementById("regular_items");
  obj = obj.getElementsByTagName("ul");
  obj = obj[0].getElementsByTagName("li");
  for(i=0;i<obj.length;i++) {
    li = obj[i];
    // ブラウザによって処理を変更
    if(userSystem.browserShortName=="ie" && userSystem.browserVersion == "7.0") {
      li.setAttribute("onclick", new Function('return onProductClick(this)'));
      li.setAttribute("onmouseover", new Function('return onProductOver(this)'));
      li.setAttribute("onmouseout", new Function('return onProductOut(this)'))
    } else {
      li.setAttribute("onclick", 'return onProductClick(this)');
      li.setAttribute("onmouseover", 'return onProductOver(this)');
      li.setAttribute("onmouseout", 'return onProductOut(this)')
    }
  }
  obj = document.getElementById("reco_contents");
  obj = obj.getElementsByTagName("li");
  for(i=0;i<obj.length;i++) {
    li = obj[i];
    // ブラウザによって処理を変更
    if(userSystem.browserShortName=="ie" && userSystem.browserVersion == "7.0") {
      li.setAttribute("onclick", new Function('return onProductClick(this)'));
    } else {
      li.setAttribute("onclick", 'return onProductClick(this)');
    }
  }
}

function onProductClick(obj) {
  obj = obj.getElementsByTagName("a")[0];
  location.href = obj.href;
}

function onProductOver(obj) {
  obj.style.backgroundPosition = "0 -300px";
  document.body.style.cursor = "pointer";
}

function onProductOut(obj) {
  obj.style.backgroundPosition = "0 0";
  document.body.style.cursor = "default";
}
