/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/** 会員専用ページと新規会員登録ボタンをロードします。 */
function show_welcome(){
  new Ajax.Updater('welcome', '/static_support/show_welcome',
  { method: 'get',
    evalScripts: true,
    requestHeaders: ['If-Modified-Since','Wed, 15 Nov 1995 00:00:00 GMT']
  });
}


/**
 * ステージ毎の料金を返します。
 */
function show_price(seq, item_code){
  new Ajax.Updater(seq, '/static_support/show_price',
  { method: 'get',
    evalScripts: true,
    requestHeaders: ['If-Modified-Since','Wed, 15 Nov 1995 00:00:00 GMT'],
    parameters:'item_code='+ item_code
  });
}


/**
 * 新着情報(トピック)を返します。
 */
function show_topic(){
  new Ajax.Updater('topic', '/static_support/show_topic',
  { method: 'get',
    evalScripts: true,
    requestHeaders: ['If-Modified-Since','Wed, 15 Nov 1995 00:00:00 GMT']
  });
}

/**
 * アクセス情報を取り込みます。
 */
function add_access_info(){
  new Ajax.Request('/static_support/add_access_info',
  { method: 'get',
    evalScripts: true,
    requestHeaders: ['If-Modified-Since','Wed, 15 Nov 1995 00:00:00 GMT'],
    parameters:'url='+ encodeURIComponent(document.URL) + '&referrer=' + encodeURIComponent(document.referrer)
  });
}

