//ロールオーバーの画像の入れ替え

function RollOver (obj,val) {
  obj.src = val;
}

//blockの表示・非表示

var linkbox01_flag = -1;
var linkbox02_flag = -1;
var linkbox03_flag = -1;
var linkbox04_flag = 1;
var linkbox05_flag = 1;

function LinkClick (obj) {
	//リンク01
	if(obj == "link_wrap01"){
		if(linkbox01_flag == 1){
document.getElementById(obj).style.display = "block";
document.getElementById("link_title01").src = "/img/top/link_title01_on.gif";
		}else if(linkbox01_flag == -1){
document.getElementById(obj).style.display = "none";
document.getElementById("link_title01").src = "/img/top/link_title01_off.gif";
		}
		linkbox01_flag *= -1;
	}
	//リンク02
	if(obj == "link_wrap02"){
		if(linkbox02_flag == 1){
			document.getElementById(obj).style.display = "block";
                        document.getElementById("link_title02").src = "/img/top/link_title02_on.gif";
		}else if(linkbox02_flag == -1){
			document.getElementById(obj).style.display = "none";
                        document.getElementById("link_title02").src = "/img/top/link_title02_off.gif";
		}
		linkbox02_flag *= -1;
	}
	
	//リンク03
	if(obj == "link_wrap03"){
		if(linkbox03_flag == 1){
			document.getElementById(obj).style.display = "block";
                        document.getElementById("link_title03").src = "/img/top/link_title03_on.gif";
		}else if(linkbox03_flag == -1){
			document.getElementById(obj).style.display = "none";
                        document.getElementById("link_title03").src = "/img/top/link_title03_off.gif";
		}
		linkbox03_flag *= -1;
	}
	
	//リンク04
	if(obj == "link_wrap04"){
		if(linkbox04_flag == 1){
			document.getElementById(obj).style.display = "block";
                        document.getElementById("link_title04").src = "/img/top/link_title04_on.gif";
		}else if(linkbox04_flag == -1){
			document.getElementById(obj).style.display = "none";
                        document.getElementById("link_title04").src = "/img/top/link_title04_off.gif";
		}
		linkbox04_flag *= -1;
	}
	
	//リンク05
	if(obj == "link_wrap05"){
		if(linkbox05_flag == 1){
			document.getElementById(obj).style.display = "block";
                        document.getElementById("link_title05").src = "/img/top/link_title05_on.gif";
		}else if(linkbox05_flag == -1){
			document.getElementById(obj).style.display = "none";
                        document.getElementById("link_title05").src = "/img/top/link_title05_off.gif";
		}
		linkbox05_flag *= -1;
	}
}

function What_img(no){

  if(no == "no1") {
   /* display */
  document.getElementById("event").style.display = "none";
  document.getElementById("seminar").style.display = "none";
  document.getElementById("media").style.display = "none";
  document.getElementById("recruit").style.display = "none";
  document.getElementById("support").style.display = "none";
  document.getElementById("other").style.display = "none";
  document.getElementById("all").style.display = "block";
  }
  if(no == "no2") {
   /* display */
  document.getElementById("event").style.display = "block";
  document.getElementById("seminar").style.display = "none";
  document.getElementById("media").style.display = "none";
  document.getElementById("recruit").style.display = "none";
  document.getElementById("support").style.display = "none";
  document.getElementById("other").style.display = "none";
  document.getElementById("all").style.display = "none";
  }
  if(no == "no3") {
   /* display */
  document.getElementById("event").style.display = "none";
  document.getElementById("seminar").style.display = "block";
  document.getElementById("media").style.display = "none";
  document.getElementById("recruit").style.display = "none";
  document.getElementById("support").style.display = "none";
  document.getElementById("other").style.display = "none";
  document.getElementById("all").style.display = "none";
  }
  if(no == "no4") {
   /* display */
  document.getElementById("event").style.display = "none";
  document.getElementById("seminar").style.display = "none";
  document.getElementById("media").style.display = "block";
  document.getElementById("recruit").style.display = "none";
  document.getElementById("support").style.display = "none";
  document.getElementById("other").style.display = "none";
  document.getElementById("all").style.display = "none";
  }
  if(no == "no5") {
   /* display */
  document.getElementById("event").style.display = "none";
  document.getElementById("seminar").style.display = "none";
  document.getElementById("media").style.display = "none";
  document.getElementById("recruit").style.display = "block";
  document.getElementById("support").style.display = "none";
  document.getElementById("other").style.display = "none";
  document.getElementById("all").style.display = "none";
  }
  if(no == "no6") {
   /* display */
  document.getElementById("event").style.display = "none";
  document.getElementById("seminar").style.display = "none";
  document.getElementById("media").style.display = "none";
  document.getElementById("recruit").style.display = "none";
  document.getElementById("support").style.display = "block";
  document.getElementById("other").style.display = "none";
  document.getElementById("all").style.display = "none";
  }
  if(no == "no7") {
   /* display */
  document.getElementById("event").style.display = "none";
  document.getElementById("seminar").style.display = "none";
  document.getElementById("media").style.display = "none";
  document.getElementById("recruit").style.display = "none";
  document.getElementById("support").style.display = "none";
  document.getElementById("other").style.display = "block";
  document.getElementById("all").style.display = "none";
  }
}

function random(){
 var ary = new Array();
 var tag = "";
 var co = 17;
 var bgd = new Array(
 


"<a href='http://www.ibarakinoie.com/' target='blank'>(株)茨城県南木造住宅センター</a>",

"<a href='http://www.ousia-tsukuba.com' target='blank'>（株）ウーシア</a>",

"<a href='http://1st.geocities.jp/nao_denim/' target='blank'>内呂建築設計事務所</a>",

"(株)エイ・ビー・エス",

"<a href='http://www.kasumi.co.jp/' target='blank'>(株)カスミ</a>",

"<a href='http://www.kirin.co.jp/ibaraki/' target='blank'>キリンビール(株) 茨城支社</a>",

"<a href='http://www.accs.or.jp' target='blank'>(財)研究学園都市コミュニティケーブルサービス</a>",

"<a href='http://www.housing-messe.com/tsukuba.html' target='blank'>(株)サンフジ企画</a>",

"重兵衛（株）",

"<a href='http://www.100-tree.com ' target='blank'>NPO法人つくばアーバンガーデニング</a>",

"<a href='http://www.kanko-tkb.net/inaka/' target='blank'>つくば・いなか体験応援隊</a>",

"<a href='http://www.science-academy.jp/' target='blank'>つくばサイエンス・アカデミー</a>",

"<a href='http://www.kinoieclub.com/' target='blank'>「つくばスタイル」木の家クラブ事務局</a>",

"<a href='http://tsud.jp/' target='blank'>筑波都市整備(株)</a>",

"<a href='http://www.press10.co.jp/' target='blank'>(株)プレステン</a>",

"<a href='http://www.fujihatsuga.com/index.html' target='blank'>ヘルシアプラス(株)</a>",

"<a href='http://www.habita.home-rebuild.co.jp' target='blank'>(株)ホーム・リビルド</a>",



 "(株)茨城県南木造住宅センター"
 );
var body = new Array(
 

'地域の特性を最大限に生かし、地元の材料、地元の技術、地元の気候や暮らしにあった住宅をおすすめしていま...',


'ダイバーシテイ（多様性）を基軸とした（株）ウーシアは食料品のマーケティング、食育事業等を進めています...',


'エコでコストを第一に設計しています。健康的な仕上、収納率の高くカッコいい家・なんとなくいい家・リフォ...',


'コピー、青焼・第二原図＆プリントアウト・印刷を取扱い、目的に応じた製本加工をご提案いたします。CAD...',


'毎日の食卓を豊かに彩る食の専門店として、安全・安心にこだわったなっとくの商品を１円でもお安くご提供い...',


'取手に工場を構える地元茨城の企業として「茨城のうまいもの、楽しいときにはいつもそばにキリンビール！」...',


'つくばのケーブルテレビ＆インターネット＆電話。１本のケーブルで３つのサービスをご提供しています。放送...',


'つくばハウジングパークは北関東最大級の総合住宅展示場です。緑豊かなつくば市をイメージした場内は季節の...',


'茨城県南部の事業用不動産を中心に業務を行っています。事業拡大で建築資材置場を探している！大型トラック...',


'まちを、市民の手で、楽しく（T）、美しく（U）、元気に（G）を合言葉に、松見公園やメディカルセンター...',


'野菜や果物の収穫体験、稲刈りなどの農作業体験、みそ作りなどの加工体験など、様々な農業体験を通じて、都...',


'（財）茨城県科学技術振興財団つくばサイエンス・アカデミー（通称ＳＡＴ：Science Academy...',


'家づくりでも、いいものを選ぶための知識と選択肢を得てもらうために、各分野からプロフェッショナルが集ま...',


'当社は、茨城県南地域において、TXつくば駅前の「つくばクレオスクエア」、竜ヶ崎ニュータウンの「サプラ...',


'グルメを中心に幅広いショップ情報を掲載した、フリーペーパー「生活情報紙プレステン」。オールカラーで、...',


'みらいのあられ ４０ｇ プレーン味：塩味：チリ味：梅味：カレー味安心な国内産原料１００％にこだわる貴...',


'ＭＩＳＡＷＡint.㈱の「200年住宅ＨＡＢＩＴＡ」に加盟し、住宅を販売しています。ＨＡＢＩＴＡは強...',

 '地域の特性を最大限に生かし、地元の材料、地元の技術、地元の気候や暮らしにあった住宅をおすすめしています。<br />地域に育った木を、地域で有効に使う。<br />環境にも人にもやさしい暮らしをしませんか。<br />「いいもの」は良い。<br /><a href="http://www.ibarakinoie.com/" target="_blank">http://www.ibarakinoie.com/</a> '
 );

var imgarry  = new Array(




"<a href='http://www.ibarakinoie.com/' target='blank'><img src='http://tsukuba-style.jp/recruit/img/top/top_no_image.gif' width='91' height='17' alt='' /></a>"


,

"<a href='http://www.ousia-tsukuba.com' target='blank'><img src='http://tsukuba-style.jp/recruit/U-sia-top.jpg' width='101' height='66' alt='' /></a>"


,

"<a href='http://1st.geocities.jp/nao_denim/' target='blank'><img src='http://tsukuba-style.jp/recruit/img/top/top_uchiro.jpg.jpg' width='114' height='66' alt='' /></a>"


,


"<img src='http://tsukuba-style.jp/recruit/img/top/top_abs.gif' width='114' height='25' alt='' />"


,

"<a href='http://www.kasumi.co.jp/' target='blank'><img src='http://tsukuba-style.jp/recruit/img/top/top_50th_banner.jpg' width='66' height='66' alt='' /></a>"


,

"<a href='http://www.kirin.co.jp/ibaraki/' target='blank'><img src='http://tsukuba-style.jp/recruit/img/top/top_kirin.gif' width='45' height='66' alt='' /></a>"


,

"<a href='http://www.accs.or.jp' target='blank'><img src='http://tsukuba-style.jp/recruit/img/top/top_accs.gif' width='114' height='49' alt='' /></a>"


,

"<a href='http://www.housing-messe.com/tsukuba.html' target='blank'><img src='http://tsukuba-style.jp/recruit/img/top/top_housing.gif' width='114' height='46' alt='' /></a>"


,


"<img src='http://tsukuba-style.jp/recruit/img/top/juubei1.gif' width='114' height='66' alt='' />"


,

"<a href='http://www.100-tree.com ' target='blank'><img src='http://tsukuba-style.jp/recruit/img/top/top_tug-banner.gif' width='114' height='29' alt='' /></a>"


,

"<a href='http://www.kanko-tkb.net/inaka/' target='blank'><img src='http://tsukuba-style.jp/recruit/img/top/top_inaka.jpg' width='114' height='66' alt='' /></a>"


,

"<a href='http://www.science-academy.jp/' target='blank'><img src='http://tsukuba-style.jp/recruit/img/top/top_science.gif' width='84' height='58' alt='' /></a>"


,

"<a href='http://www.kinoieclub.com/' target='blank'><img src='http://tsukuba-style.jp/recruit/img/top/top_no_image.gif' width='91' height='17' alt='' /></a>"


,

"<a href='http://tsud.jp/' target='blank'><img src='http://tsukuba-style.jp/recruit/img/link/top_tsud.gif' width='60' height='64' alt='' /></a>"


,

"<a href='http://www.press10.co.jp/' target='blank'><img src='http://tsukuba-style.jp/recruit/img/top/top_press10.gif' width='114' height='23' alt='' /></a>"


,

"<a href='http://www.fujihatsuga.com/index.html' target='blank'><img src='http://tsukuba-style.jp/recruit/img/link/top_healthya.jpg' width='82' height='66' alt='' /></a>"


,

"<a href='http://www.habita.home-rebuild.co.jp' target='blank'><img src='http://tsukuba-style.jp/recruit/img/top/top_home-rebuild.jpg' width='114' height='40' alt='' /></a>"


,




"<img src='http://tsukuba-style.jp/recruit/img/top/top_no_image.gif' width='91' height='17' alt='' />"


 );

 bgd.pop();
 body.pop();
 imgarry.pop();
 var Rnd = Math.floor(Math.random ( ) * co);
 ary[0] = Rnd;
 for(var i = 1; i<8;i++){
 do {
    Rnd = Math.floor(Math.random ( ) * co);
 } while (ary[0] == Rnd || ary[1] == Rnd || ary[2] == Rnd || ary[3] == Rnd || ary[4] == Rnd || ary[5] == Rnd || ary[6] == Rnd);
 ary.push(Rnd);


tag += '<td valign="top" width="136" align="center">';
tag += '<table width="116" border="0" cellspacing="0" cellpadding="0">';
tag += '<tr>';
tag += '<td align="center" valign="middle" class="link_photo">' + imgarry[ary[i]] + '</td>';
tag += '</tr>';
tag += '<tr>';
tag += '<td valign="top" class="link_txt01" align="center">' + bgd[ary[i]] + '</td>';
tag += '</tr>';
tag += '<tr>';
tag += '<td class="link_txt02" align="left">'+ body[ary[i]] +'</td>';
tag += '</tr>';
tag += '</table>';
tag += '</td>';
 }
 document.write(tag);
}

