/*
 * 静的ページドキュメントローダー
 *
 * Load Examples
 *
 * <div id="topic">
 *   <script language="javascript" type="text/javascript">
 *     show_topic();
 *   </script>
 * </div>
 */

/**
 * 得点ポイントボタンを返します。
 */
function point_form(product_cd){
  new Ajax.Updater({success: 'point'+ product_cd}, '/static_support/point_form',
  { method: 'get',
    asynchronous: true,
    evalScripts: true,
    requestHeaders: ['If-Modified-Since','Wed, 15 Nov 1995 00:00:00 GMT'],
    parameters: 'product_cd=' + product_cd
  });
  return false;
}

/**
 * 新着情報(トピック)を返します。
 */
function show_topic(){
  new Ajax.Updater({success: 'topic'}, '/static_support/show_topic',
  { method: 'get',
    asynchronous: true,
    evalScripts: true,
    requestHeaders: ['If-Modified-Since','Wed, 15 Nov 1995 00:00:00 GMT']
  });
  return false;
}

/**
 * ヘッドラインを返します。
 */
function show_headline(){
  new Ajax.Updater({success: 'markeenaka'}, '/static_support/show_headline',
  { method: 'get',
    asynchronous: true,
    evalScripts: true,
    requestHeaders: ['If-Modified-Since','Wed, 15 Nov 1995 00:00:00 GMT']
  });
  return false;
}

/**
 * お知らせ・更新情報を返します。
 */
function show_topic_detail(){
  new Ajax.Updater({success: 'topic_detail'}, '/static_support/show_topic_detail',
  { method: 'get',
    asynchronous: true,
    evalScripts: true,
    requestHeaders: ['If-Modified-Since','Wed, 15 Nov 1995 00:00:00 GMT']
  });
  return false;
}

/**
 * ヘッドカートを返します
 */
function show_headcart(){
  new Ajax.Updater({success: 'headcart'}, '/static_support/show_headcart',
  { method: 'get',
    asynchronous: true,
    evalScripts: true,
    requestHeaders: ['If-Modified-Since','Wed, 15 Nov 1995 00:00:00 GMT']
  });
  return false;
}

/**
 * ログイン状態を返します。
 */
function login_form(){
  new Ajax.Updater({success: 'login_info'}, '/static_support/login_form',
  { method: 'get',
    asynchronous: true,
    evalScripts: true,
    requestHeaders: ['If-Modified-Since','Wed, 15 Nov 1995 00:00:00 GMT']
  });
  return false;
}



