// ニュースリリース
newsDate = new Array (); // ニュース日付
newsBody = new Array (); // ニュース本文
/*
編集方法
newsDate[n] と newsBody[n] が対となる
nには0から順番に数字をふっていく
nの数に制限はないが3〜5件程度が目安
*/

newsDate[0] = "2009.12.24";
newsBody[0] = "<a href=\"/sol/contents/corporate/pr/2009/122401.html\">株式会社メイツ・株式会社メイツ北海道・株式会社メイツ東海・株式会社メイツ京都・株式会社メイツ大阪・株式会社メイツ九州の株式取得（子会社化）に関するお知らせ</a>"
newsDate[1] = "2009.11.20";
newsBody[1] = "<a href=\"/sol/contents/corporate/pr/2009/112001.html\">株式会社キャリアメイツ事業終了のお知らせ</a>"

// FLASH
function AddFlash() {
    var arg = window.location.search;
    mf = arg.substring (1);
    if (mf == "skip=1") {
        AddHtml ();
    } else {
    var movie = "/sol/contents/global/top/top.swf";
    var width = "752";
    var height = "411";
    var val = "noval";
    var color = "ffffff";
    var menu = "false";
    var quality = "high";
    var loop = "false";
    var id = "gtop";
    var align = "middle";
    if (val == "val") {
      var loc = window.location;
      var xml = "";
      var val = "NowURL=" + loc + "&XMLFile=" + xml;
  }
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
  document.write('codebase="https://active.macromedia.com/flash2/cabs/swflash.cab#version=6,0,0,0" ');
  document.write('width="'+width+'" ');
  document.write('height="'+height+'" ');
  document.write('id="'+id+'" ');
  document.write('align="'+align+'">\n');
  if(val == "novals"){
    document.write('<param name="movie" value="'+movie+'" />\n');


  }else{
    document.write('<param name="movie" value="'+movie+'?'+val+'" />\n');
    document.write('<param name="FlashVars" VALUE="'+val+'" />\n');
  }
  document.write('<param name="menu" value="'+menu+'" />\n');
  document.write('<param name="quality" value="'+quality+'" />\n');
  document.write('<param name="loop" value="'+loop+'" />\n');
  document.write('<param name="bgcolor" value="#'+color+'" />\n');
  document.write('<embed ');
  if(val == "novals"){
    document.write('src="'+movie+'" ');
  }else{
    document.write('src="'+movie+'?'+val+'" ');
    document.write('FlashVars="'+val+'" ');
  }
  document.write('menu="'+menu+'" ');
  document.write('quality="'+quality+'" ');
  document.write('loop="'+loop+'" ');
  document.write('bgcolor="#'+color+'" ');
  document.write('width="'+width+'" ');
  document.write('height="'+height+'" ');
  document.write('name="'+id+'" ');
  document.write('align="'+align+'" ');
  document.write('type="application/x-shockwave-flash" ');
  document.write('pluginspage="https://www.macromedia.com/go/getflashplayer" />\n');
  document.write('</object>\n');
  }
}

// HTML
//updated RMC
function AddHtml () {
    document.write ("<div class=\"mb5px\"><img src=\"/sol/contents/img/global/top.jpg\" width=\"752\" height=\"280\" alt=\"誰もが活き活きと仕事をしている、人も企業も輝いている、そんな世の中づくりのお手伝いをしたい。人と企業の新たな就業機会を創りだし、社会に貢献していきたい･･･私たちはリクルートスタッフィングです。\"></div>");
    document.write ("<div class=\"newsArea\">");
    document.write ("<table width=\"752\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
    document.write ("<tr>");
    document.write ("<td width=\"110\" valign=\"top\" align=\"center\" class=\"newsTitle\"><img src=\"/sol/contents/img/global/newsrelease.gif\" width=\"104\" height=\"18\" alt=\"ニュースリリース\"></td>")
    document.write ("<td width=\"65\" valign=\"top\" class=\"pl10px pt5px\"><p class=\"fs10\">" + newsDate[0] + "&nbsp;<img src=\"/sol/contents/img/global/newsreleaseArrow.gif\" width=\"12\" height=\"12\" alt=\"\" class=\"valignMiddle\"></p></td>");
    document.write ("<td width=\"572\" valign=\"top\" class=\"pt5px\"><p class=\"fs10\">" + newsBody[0] + "</p></td>");
    document.write ("</tr>");
    var i = 1;
    while (newsDate[i]) {
        document.write ("<tr>");
        document.write ("<td  class=\"newsTitle\"><p class=\"fs10\">&nbsp;</p></td>");
        document.write ("<td valign=\"top\" class=\"pl10px\"><p class=\"fs10\">" + newsDate[i] + "&nbsp;<img src=\"/sol/contents/img/global/newsreleaseArrow.gif\" width=\"12\" height=\"12\" alt=\"\" class=\"valignMiddle\"></p></td>");
        document.write ("<td valign=\"top\"><p class=\"fs10\">" + newsBody[i] + "</p></td>");
        document.write ("</tr>");
        i++;
    }
    document.write ("</table>");
    document.write ("</div>");
}

