function showHeadBanner() {

	document.write('<a href="http://www.orionbeer.co.jp/brand/specialx/jikkan.html"><img src="/images/header/banner2.jpg" alt="めくって当たる！スペシャルエックス本格辛口実感キャンペーン！" border="0" /></a>');
}

function showSearchInput() {
	var str = '';	
	if (checkAgent('Safari')) {
		str = '<input type="search" size="15" name="query" class="inputtext" maxlength="15" value="">';
	} else {
		str = '<input type="text" size="15" name="query" class="inputtext" maxlength="15" value="">';
	}
	document.write(str);
}

function checkAgent(uname) {
	
	if (navigator.userAgent.indexOf(uname) != -1) {
		return true;
	} else {
		return false;	
	}
	
}

function showFooter() {

	var str = '';
	str += '<img src="/images/common/mainFooter.jpg" width="840" height="90" border="0" usemap="#Map" />';
	str += '<map name="Map" id="Map">';
	str += '  <area shape="rect" coords="750,5,838,23" href="javascript:pageTopScroll();" alt="このページのトップへ" />';
	str += '  <area shape="rect" coords="80,7,143,20" href="http://www.orionbeer.co.jp/utility/query.html" alt="お問い合わせ" />';
	str += '  <area shape="rect" coords="155,7,271,20" href="http://www.orionbeer.co.jp/utility/about.html" alt="サイトご利用にあたって" />';
	str += '  <area shape="rect" coords="280,7,383,20" href="http://www.orionbeer.co.jp/utility/privacy.html" alt="プライバシーポリシー" />';
	str += '  <area shape="rect" coords="394,7,458,21" href="http://www.orionbeer.co.jp/utility/sitemap.html" alt="サイトマップ" />';
	str += '<area shape="rect" coords="0,6,63,20" href="http://www.orionbeer.co.jp/utility/history/index.html" alt="お知らせ一覧" />';
	str += '</map>';
	
	document.write(str);
}


function showCommentFlash(bid) {

	var str = '';
	str += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ";
	str += "codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' ";
	str += "width='430' height='200'>";
	str += "<param name='movie' value='comment.swf' />";
	str += "<param name='loop' value='false' /> ";
	str += "<param name='menu' value='false' /> ";
	str += "<param name='quality' value='high' /> ";
	str += "<param name='bgcolor' value='#ffffff' /> ";
	str += "<param name='FlashVars' value='bid=" + bid + "' />";
	str += "<embed src='comment.swf' FlashVars='bid=" + bid + "' loop='False' menu='false' quality='high' bgcolor='#ffffff'";
	str += "width='430' height='200'";
	str += "type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer'></embed>";
	str += "</object>";
	document.write(str);
}

function showFlash(fname, fwidth, fheight, fbgcolor) {
	
	var str = '';
	str += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ";
	str += "codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' ";
	str += "width='" + fwidth + "' height='" + fheight + "'>";
	str += "<param name='movie' value='" + fname + "' />";
	str += "<param name='loop' value='false' /> ";
	str += "<param name='menu' value='false' /> ";
	str += "<param name='quality' value='high' /> ";
	str += "<param name='bgcolor' value='" + fbgcolor + "' /> ";
	str += "<embed src='" + fname + "' loop='False' menu='false' quality='high' bgcolor='" + fbgcolor + "'";
	str += "width='" + fwidth + "' height='" + fheight + "'";
	str += "type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer'></embed>";
	str += "</object>";
	document.write(str);

}

function showFlash_transparent(fname, fwidth, fheight) {
	
	var str = '';
	str += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ";
	str += "codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' ";
	str += "width='" + fwidth + "' height='" + fheight + "'>";
	str += "<param name='movie' value='" + fname + "' />";
	str += "<param name='loop' value='false' /> ";
	str += "<param name='menu' value='false' /> ";
	str += "<param name='wmode' value='transparent' />";
	str += "<param name='quality' value='high' /> ";
	str += "<embed src='" + fname + "' loop='False' menu='false' quality='high' wmode='transparent'";
	str += "width='" + fwidth + "' height='" + fheight + "'";
	str += "type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer'></embed>";
	str += "</object>";
	document.write(str);

}

function showCMFlash(videoname) {

	var str = '';
	str += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ";
	str += "codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' ";
	str += "width='320' height='280'>";
	str += "<param name='movie' value='/orionclub/cm/cm.swf' />";
	str += "<param name='loop' value='false' /> ";
	str += "<param name='menu' value='false' /> ";
	str += "<param name='quality' value='high' /> ";
	str += "<param name='bgcolor' value='#ffffd3' /> ";
	str += "<param name='FlashVars' value='videoname=" + videoname + "' />";
	str += "<embed src='/orionclub/cm/cm.swf' bgcolor='#ffffd3' FlashVars='videoname=" + videoname + "' loop='False' menu='false' quality='high'";
	str += "width='320' height='280'";
	str += "type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer'></embed>";
	str += "</object>";
	
	document.write(str);
}



function showPathBox() {
	
	var fpath = new Array();
	
	fpath['brand']        = '<a href="http://www.orionbeer.co.jp/brand/index.html">商品ラインアップ</a>';
	fpath['draft']        = '<a href="http://www.orionbeer.co.jp/brand/draft/index.html">オリオンドラフト</a>';
	fpath['superdry']     = '<a href="http://www.orionbeer.co.jp/brand/superdry/index.html">スーパードライ</a>';
	fpath['mugi']         = '<a href="http://www.orionbeer.co.jp/brand/mugi/index.html">麦職人</a>';
	fpath['zerolife']       = '<a href="http://www.orionbeer.co.jp/brand/zerolife/index.html">ゼロライフ</a>';
	fpath['specialx']      = '<a href="http://www.orionbeer.co.jp/brand/specialx/index.html">オリオンスペシャルエックス</a>';
	fpath['southernstar'] = '<a href="http://www.orionbeer.co.jp/brand/southernstar/index.html">サザンスター</a>';
	fpath['aqua']         = '<a href="http://www.orionbeer.co.jp/brand/aqua/index.html">アクアビート</a>';
	fpath['soft']         = '<a href="http://www.orionbeer.co.jp/brand/soft/index.html">ソフトドリンク</a>';
	fpath['supplement']  = '<a href="http://www.orionbeer.co.jp/brand/supplement/index.html">オリオンビール酵母</a>';
	fpath['lemontea']  = '<a href="http://www.orionbeer.co.jp/brand/lemontea/index.html">レモンティー</a>';


	fpath['event']        = '<a href="http://www.orionbeer.co.jp/event/index.html">イベント・キャンペーン</a>';
	fpath['entry']           = '<a href="http://www.orionbeer.co.jp/company/index.html">企業情報</a> / <a href="http://www.orionbeer.co.jp/entry">平成２３年度新卒採用情報</a>';
	fpath['baseball_pro'] = '<a href="http://www.orionbeer.co.jp/event/baseball_pro/index.html">プロ野球春季キャンプ応援キャンペーン</a>';

	fpath['webshop']      = '<a href="https://www.orionbeer.co.jp/webshop/index/">オリオンショップ</a>';
	fpath['bar']       = '<a href="http://orionbeer.jp/umai">おいしいお店</a>';

	fpath['orionclub']   = '<a href="http://www.orionbeer.co.jp/orionclub/index.html">オリオン倶楽部</a>';

	fpath['history']    = '<a href="http://www.orionbeer.co.jp/utility/history/index.html">オリオンビールからのお知らせ</a>';
	fpath['h2009']       = '<a href="http://www.orionbeer.co.jp/news/history/2009">2009年</a>';
	fpath['h2008']       = '<a href="http://www.orionbeer.co.jp/utility/history/h2008/index.html">2008年</a>';
	fpath['h2007']       = '<a href="http://www.orionbeer.co.jp/utility/history/h2007/index.html">2007年</a>';
	fpath['h2006']       = '<a href="http://www.orionbeer.co.jp/utility/history/h2006/index.html">2006年</a>';
	fpath['h2005']       = '<a href="http://www.orionbeer.co.jp/utility/history/h2005/index.html">2005年</a>';
	fpath['h2004']       = '<a href="http://www.orionbeer.co.jp/utility/history/h2004/index.html">2004年</a>';
	fpath['h2003']       = '<a href="http://www.orionbeer.co.jp/utility/history/h2003/index.html">2003年</a>';
	fpath['h2002']       = '<a href="http://www.orionbeer.co.jp/utility/history/h2002/index.html">2002年</a>';
	fpath['h2001']       = '<a href="http://www.orionbeer.co.jp/utility/history/h2001/index.html">2001年</a>';
	fpath['h2000']       = '<a href="http://www.orionbeer.co.jp/utility/history/h2000/index.html">2000年</a>';

	fpath['recipe']    = '<a href="http://www.orionbeer.co.jp/orionclub/recipe/index.html">おいしいレシピ</a>';
	fpath['mame']      = '<a href="http://www.orionbeer.co.jp/orionclub/mame/index.html">ビール豆知識</a>';
	fpath['cm']        = '<a href="http://www.orionbeer.co.jp/orionclub/cm/index.html">オリオンCM集</a>';

	fpath['factory']   = '<a href="http://www.orionbeer.co.jp/factory/index.html">オリオンビール名護工場</a>';

	fpath['company']   = '<a href="http://www.orionbeer.co.jp/company/index.html">企業情報</a>';
	fpath['social']    = '<a href="http://www.orionbeer.co.jp/company/social/index.html">社会貢献</a>';
	fpath['sango']     = '<a href="http://www.orionbeer.co.jp/company/social/sango/index.html">チーム美らサンゴ</a>';
	fpath['tenpo']     = '<a href="http://www.orionbeer.co.jp/company/tenpo/index.html">オリオンビール販売代理店</a>';
	
	//タイトル文字の取得
	var str_title = new String(document.title);
	var title_text = str_title.split('-');
	
	//パスの取得
	var url = document.location.href;
	var dir = url.split('/');
	
	//ホームから順にパスをつくるよ
	var str = '<a href="http://www.orionbeer.co.jp/">ホーム</a>';
	
	// [0] = http: / [1] = / [2] = www.orionbeer.co.jp/ なので3からはじめるよ
	for (i = 3; i < dir.length; i++) {
		
		//ピリオドがあったらファイル名とし、最後の配列要素とみなす。リンクはつけない
		//location.hrefの最後が、'index.html'　の場合はページタイトルを表示しない
		var fname = new String(dir[i]);
		
		if (fname.indexOf('.') != -1) {
			
			str += ' / ' + title_text[0];

		} else {
		
			if (fpath[dir[i]] != undefined) {
				
				str += ' / ' + fpath[dir[i]];
			}
		}
	}
	
	document.write(str);
	return false;
	
}

function showHistoryMenu() {

	var str = '';
	var url = new String();
	var url = document.location.href;
	var dir = url.split('/');

	var menu = new Array(11);
	for (i = 0; i < menu.length; i++) {
		menu[i] = '';	
	}

	switch (dir[5]) {

		case 'h2010':
		menu[0] = 'b';
		break;

		case 'h2009':
		menu[1] = 'b';
		break;

		case 'h2008':
		menu[2] = 'b';
		break;

		case 'h2007':
		menu[3] = 'b';
		break;

		case 'h2006':
		menu[4] = 'b';
		break;
		
		case 'h2005':
		menu[5] = 'b';
		break;
		
		case 'h2004':
		menu[6] = 'b';
		break;
		
		case 'h2003':
		menu[7] = 'b';
		break;

		case 'h2002':
		menu[8] = 'b';
		break;

		case 'h2001':
		menu[9] = 'b';
		break;

		case 'h2000':
		menu[10] = 'b';
		break;

	}


	str += '<a href="http://www.orionbeer.co.jp/news/history/2010" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'history10\',\'\',\'/utility/images/history2010b.gif\',1);"><img src="/utility/images/history2010' + menu[0] + '.gif" alt="2010年度" border="0"  name="history10" id="history10" class="linkdotunderline" width="198" height="24" /></a>';

	str += '<a href="http://www.orionbeer.co.jp/news/history/2009" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'history9\',\'\',\'/utility/images/history2009b.gif\',1);"><img src="/utility/images/history2009' + menu[1] + '.gif" alt="2009年度" border="0"  name="history9" id="history9" class="linkdotunderline" width="198" height="24" /></a>';

	str += '<a href="http://www.orionbeer.co.jp/utility/history/h2008/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'history0\',\'\',\'/utility/images/history2008b.gif\',1);"><img src="/utility/images/history2008' + menu[2] + '.gif" alt="2008年度" border="0"  name="history0" id="history0" class="linkdotunderline" width="198" height="24" /></a>';

	str += '<a href="http://www.orionbeer.co.jp/utility/history/h2007/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'history1\',\'\',\'/utility/images/history2007b.gif\',1);"><img src="/utility/images/history2007' + menu[3] + '.gif" alt="2007年度" border="0"  name="history1" id="history1" class="linkdotunderline" width="198" height="24" /></a>';

	str += '<a href="http://www.orionbeer.co.jp/utility/history/h2006/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'history2\',\'\',\'/utility/images/history2006b.gif\',1);"><img src="/utility/images/history2006' + menu[4] + '.gif" alt="2006年度" border="0"  name="history2" id="history2" class="linkdotunderline" width="198" height="24" /></a>';

	str += '<a href="http://www.orionbeer.co.jp/utility/history/h2005/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'history3\',\'\',\'/utility/images/history2005b.gif\',1);"><img src="/utility/images/history2005' + menu[5] + '.gif" alt="2005年度" border="0"  name="history3" id="history3" class="linkdotunderline" width="198" height="24" /></a>';

	str += '<a href="http://www.orionbeer.co.jp/utility/history/h2004/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'history4\',\'\',\'/utility/images/history2004b.gif\',1);"><img src="/utility/images/history2004' + menu[6] + '.gif" alt="2004年度" border="0"  name="history4" id="history4" class="linkdotunderline" width="198" height="24" /></a>';

	str += '<a href="http://www.orionbeer.co.jp/utility/history/h2003/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'history5\',\'\',\'/utility/images/history2003b.gif\',1);"><img src="/utility/images/history2003' + menu[7] + '.gif" alt="2003年度" border="0"  name="history5" id="history5" class="linkdotunderline" width="198" height="24" /></a>';

	str += '<a href="http://www.orionbeer.co.jp/utility/history/h2002/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'history6\',\'\',\'/utility/images/history2002b.gif\',1);"><img src="/utility/images/history2002' + menu[8] + '.gif" alt="2002年度" border="0"  name="history6" id="history6" class="linkdotunderline" width="198" height="24" /></a>';

	str += '<a href="http://www.orionbeer.co.jp/utility/history/h2001/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'history7\',\'\',\'/utility/images/history2001b.gif\',1);"><img src="/utility/images/history2001' + menu[9] + '.gif" alt="2001年度" border="0"  name="history7" id="history7" class="linkdotunderline" width="198" height="24" /></a>';
	
	str += '<a href="http://www.orionbeer.co.jp/utility/history/h2000/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'history8\',\'\',\'/utility/images/history2000b.gif\',1);"><img src="/utility/images/history2000' + menu[10] + '.gif" alt="2000年度" border="0"  name="history8" id="history8" class="linkdotunderline" width="198" height="24" /></a>';
	
	document.write(str);		

}

function showCompanyMenu() {

	var str = '';
	var url = new String();
	var url = document.location.href;

	var menu = new Array();

	var tmp = new Object();
	tmp["title"] = '企業情報トップ';
	tmp["link"]  ='/company/index.html';
	tmp["class"] = 'menuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = 'ごあいさつ';
	tmp["link"] = '/company/greeting.html';
	tmp["class"] = 'menuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '会社概要・アクセス';
	tmp["link"] = '/company/outline.html';
	tmp["class"] = 'menuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '経営理念';
	tmp["link"] = '/company/philosophy.html';
	tmp["class"] = 'menuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '社会貢献';
	tmp["link"] = '/company/social/index.html';
	tmp["class"] = 'menuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = 'オリオン親子サイエンスツアー';
	tmp["link"] = '/company/social/science/index.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = 'チーム美らサンゴ';
	tmp["link"] = '/company/social/sango/index.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '2008サンゴフォーラム';
	tmp["link"] = '/company/social/sango/forum2008/index.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '2008年度第1回植え付け活動';
	tmp["link"] = '/company/social/sango/report0518.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '2007年度活動実績';
	tmp["link"] = '/company/social/sango/report2007.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = 'オリオンビールのあゆみ';
	tmp["link"] = '/company/history.html';
	tmp["class"] = 'menuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '会社沿革';
	tmp["link"] = '/company/history2.html';
	tmp["class"] = 'menuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '設立 ～ 昭和49年';
	tmp["link"] = '/company/history2.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '昭和50年 ～ 昭和63年';
	tmp["link"] = '/company/history3.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '平成元年 ～ 平成9年';
	tmp["link"] = '/company/history4.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '平成10年 ～ 平成19年';
	tmp["link"] = '/company/history5.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '平成20年 ～ 現在';
	tmp["link"] = '/company/history6.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '関連会社のご案内';
	tmp["link"] = '/company/related.html';
	tmp["class"] = 'menuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = 'オリオンビール販売代理店';
	tmp["link"] = '/company/tenpo/index.html';
	tmp["class"] = 'menuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '南部地区';
	tmp["link"] = '/company/tenpo/nanbu.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '中部地区';
	tmp["link"] = '/company/tenpo/cyubu.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '北部地区';
	tmp["link"] = '/company/tenpo/hokubu.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '先島地区';
	tmp["link"] = '/company/tenpo/sakishima.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '島尻郡';
	tmp["link"] = '/company/tenpo/shimajiri.html';
	tmp["class"] = 'submenuList';
	menu.push(tmp);

	var tmp = new Object();
	tmp["title"] = '適正飲酒推進のための基本方針';
	tmp["link"] = '/company/policy.html';
	tmp["class"] = 'menuList';
	menu.push(tmp);


	//現在ページをゲット
	var pos = url.indexOf("/", 24);
	var curlink = url.substr(pos);
	
	//アンカーがある場合は取り除いてファイル名だけにする
	var pos = curlink.indexOf("#");
	if (pos != -1) {
		curlink = curlink.substring(0, pos);
	}

	var dir = url.split('/');
	
	str += '<ul class="menuListBox">';
	for (i = 0; i < menu.length; i++) {
		
		if (menu[i]["link"] == curlink) {
			var st = ' style="font-weight: bold; background-color: #F2F7FD;"';
		} else {
			var st = '';	
		}
		
		//サブメニューは親ページが表示されたときだけ
		if (menu[i]["class"] == 'submenuList') {
			var dir2 = menu[i]["link"].split('/');
			
			//dir2[2] == ["link"]のサブディレクトリ名 // dir[4]はhrefのサブディレクトリ名
			var st2 = new String(dir[5]);
			var st3 = new String(dir2[3]);
			
			if (dir2[2] == dir[4] || st3.substr(0,7) == st2.substr(0,7)) {
				str += '<li ' + st + ' class="' + menu[i]["class"] + '"><a href="' + menu[i]["link"] + '">' + menu[i]["title"] + '</a>';
			}
		} else {

			str += '<li ' + st + ' class="' + menu[i]["class"] + '"><a href="' + menu[i]["link"] + '">' + menu[i]["title"] + '</a>';
		}
	}

	str +='</ul>';
	document.write(str);
}

function showHistoryBar() {

	var url = new String();
	var url = document.location.href;
	var dir = url.split('/');

	var fname = 'h' + dir[5] + '.jpg';

	document.write('<img src="/utility/images/' + dir[5] + '.jpg" border="0" alt="' + dir[5] + '年" width="639" height="30" />');

}

function showHeadMenu() {
	
	var str = '';
	var url = new String();
	var url = document.location.href;
	var dir = url.split('/');
	
	var menu = new Array(8);
	for (i = 0; i < menu.length; i++) {
		menu[i] = '1';	
	}
	
	switch (dir[3]) {

		case 'news':
		case '':
		case 'utility':
		menu[0] = '2';
		break;

		case 'brand':
		menu[1] = '2';
		break;
		
		case 'event':
		menu[2] = '2';
		break;
		
		case 'webshop':
		menu[3] = '2';
		break;
		
		case 'bar':
		menu[4] = '2';
		break;

		case 'orionclub':
		case 'blog':
		menu[5] = '2';
		break;

		case 'factory':
		menu[6] = '2';
		break;

		case 'company':
		case 'entry':
		menu[7] = '2';
		break;
	}
	
	str  = '<a href="http://www.orionbeer.co.jp/" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage(\'menu_r2_c1\',\'\',\'/images/header/menu0_2.jpg\',1);"><img name="menu_r2_c1" src="/images/header/menu0_' + menu[0] + '.jpg" width="20" height="28" border="0" id="menu_r2_c1" alt="ホーム" /></a>';

	str += '<a href="http://www.orionbeer.co.jp/brand/index.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage(\'menu_r2_c2\',\'\',\'/images/header/menu1_2.jpg\',1);"><img name="menu_r2_c2" src="/images/header/menu1_' + menu[1] + '.jpg" width="100" height="28" border="0" id="menu_r2_c2" alt="商品ラインアップ" /></a>';
	
	str += '<a href="http://www.orionbeer.co.jp/event/index.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage(\'menu_r2_c3\',\'\',\'/images/header/menu2_2.jpg\',1);"><img name="menu_r2_c3" src="/images/header/menu2_' + menu[2] + '.jpg" width="131" height="28" border="0" id="menu_r2_c3" alt="イベント・キャンペーン" /></a>';
	
	str += '<a href="https://www.orionbeer.co.jp/webshop/index/" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage(\'menu_r2_c4\',\'\',\'/images/header/menu3_2.jpg\',1);"><img name="menu_r2_c4" src="/images/header/menu3_' + menu[3] + '.jpg" width="98" height="28" border="0" id="menu_r2_c4" alt="オリオンショップ" /></a>';
	
	str += '<a href="http://orionbeer.jp/umai" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage(\'menu_r2_c5\',\'\',\'/images/header/menu4_2.jpg\',1);"><img name="menu_r2_c5" src="/images/header/menu4_' + menu[4] + '.jpg" width="82" height="28" border="0" id="menu_r2_c5" alt="おいしいお店" /></a>';
	
	str += '<a href="http://www.orionbeer.co.jp/orionclub/index.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage(\'menu_r2_c6\',\'\',\'/images/header/menu5_2.jpg\',1);"><img name="menu_r2_c6" src="/images/header/menu5_' + menu[5] + '.jpg" width="90" height="28" border="0" id="menu_r2_c6" alt="オリオン倶楽部" /></a>';
	
	str += '<a href="http://www.orionbeer.co.jp/factory/index.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage(\'menu_r2_c7\',\'\',\'/images/header/menu6_2.jpg\',1);"><img name="menu_r2_c7" src="/images/header/menu6_' + menu[6] + '.jpg" width="58" height="28" border="0" id="menu_r2_c7" alt="名護工場" /></a>';
	
	str += '<a href="http://www.orionbeer.co.jp/company/index.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage(\'menu_r2_c8\',\'\',\'/images/header/menu7_2.jpg\',1);"><img name="menu_r2_c8" src="/images/header/menu7_' + menu[7] + '.jpg" width="59" height="28" border="0" id="menu_r2_c8" alt="企業情報" /></a>';
	

	document.write(str);		
}

function showHeadLine() {
	
	var str = '';
	str += '沖縄の定番オリオンビール！サイトリニューアルしました。';
	
	//document.write(str);
	
}

function openWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function pageTopScroll() {
	var scrj = 1;
   if(navigator.appName == "Microsoft Internet Explorer" && document.compatMode == "CSS1Compat") {
      var scdist = document.body.parentNode.scrollTop;
   } else {
      var scdist = document.body.scrollTop;
   }
   if(scrj<50 && scdist) {
      scdist = (scdist>2) ? Math.ceil(scdist*.2) : 1;
      scrj++;
      scrollBy(0,-scdist);
      setTimeout("pageTopScroll()",20);
   } else {
      scrollTo(0,0);
      scrj = 1;
   }
}


/*
===========================================================
フォントサイズ変更スクリプト（タイプB）

Last Updated:08/21/2001
　　　10/23/2001最終更新版より下記のURIのみ変更

insomnia!
http://insomnia.jp/
http://insomnia.jp/workshop/
===========================================================
*/


/*
========== ::: ブラウザ判別時に使用する変数 ::: ==========
*/
uaName = navigator.userAgent;
appName = navigator.appVersion;


/*
========== ::: 初期設定 ::: ==========
*/

// 値の単位を設定（必ずダブルクオートかクオートで括る）
var fontSizeUnit = "px";

// 一回の操作で変化させる値を設定（ダブルクオートやクオートで括らない）
var perOrder = 10;

// 初期状態の値を設定（ダブルクオートやクオートで括らない）
var defaultSize = 12;

// クッキーの名前（必ずダブルクオートかクオートで括る）
var ckName = "ob";

// クッキーの有効期限（日）（ダブルクオートやクオートで括らない）
var ckDays = 2;

// クッキーのパス（必ずダブルクオートかクオートで括る。指定がいらない場合は"/"にする）
var ckPath = "/"


/*
========== :::ページ読み込み時の値を設定::: ==========
*/

// クッキー読み出し
var fsCK = GetCookie(ckName);

if ( fsCK == null ) {
  currentSize = defaultSize;      //クッキーが無ければ現在の値を初期状態の値に設定
}
else{
  currentSize = Number(fsCK);      //クッキーがあれば現在の値をクッキーの値に設定
}


/*===================================
  [関数 fscRef]
  BODY要素のイベントハンドラ"onload"ならびに関数fscから呼び出される。
  変数"currentSize"の値に従って
  オブジェクトのfontStyleプロパティを変更する
====================================*/

function fscRef(){

  // === ::: 変更を加えるオブジェクトの判定 ::: ===
  //
  //  NN4もしくはMacIE4.0の場合、エラーメッセージを回避
  if (( document.layers )||(( appName.indexOf("Mac",0) != -1 ) && ( uaName.indexOf("MSIE 4.0",0) != -1 ))){
    return false;
  }

  else if( document.body ){
  
  // オブジェクトのfontSizeプロパティを書き換える
	    document.body.style.fontSize = currentSize + fontSizeUnit;
  }
  
}

// _______________________________________ end of function fscRef() ___ 




/*===================================
  [関数 fsc]
  引数CMDに渡される値に応じて
  変更後の値を算出しクッキーに書き込む。
====================================*/

function fsc( CMD ){
	
  // 拡大：現時点の値に一回の操作で変化させる値を加えて操作後の値"newSize"に代入
  if( CMD == "larger" ){
    var newSize = 14;
    SetCookie( ckName , newSize );      //クッキー書き込み
  }

  // 縮小：現時点の値から一回の操作で変化させる値を引き操作後の値に代入
  // 現時点のサイズの値が一回の操作で変化させる値と同じならそのまま操作後の値に代入
  if( CMD == "smaller" ){
    if ( currentSize != perOrder ){
      var newSize = 10;
      SetCookie( ckName , newSize );      //クッキー書き込み
    }
    else{
      var newSize=10;
    }
  }

  // 元に戻す：操作後の値を初期値にする
  if( CMD == "default" ){
    var newSize = defaultSize;
    DeleteCookie( ckName );      //クッキー削除
  }


  // NN4もしくはMacIE4.0の場合、エラーメッセージを回避しダイアログを表示する
  // NN4用ダイアログ
  if( document.layers ){
    window.alert( "このスクリプトはNetscape Communicator4.xでは動作しません" );
    return false;
  }

  // MacIE4用ダイアログ
  else if(( appName.indexOf("Mac",0) != -1 ) && ( uaName.indexOf("MSIE 4.0",0) != -1)){
    window.alert( "Sorry! MacIE4.0 is not supported." );
    return false;
  }

  else{
  // 現在の値を操作後の値に変更
  currentSize = newSize;

  // サイズ変更関数を呼び出す
  fscRef();
  }
}

// _______________________________________ end of function fsc() ___ 


/*===================================
  [関数 SetCookie]
  クッキーに値を書き込む
====================================*/

function SetCookie(name,value){
  var dobj = new Date();
  dobj.setTime( dobj.getTime() + 24 * 60 * 60 * ckDays * 1000);
  var expiryDate = dobj.toGMTString();
  document.cookie = name + '=' + escape(value)+ ';expires=' + expiryDate + ';path=' + ckPath;
}


/*===================================
  [関数 GetCookie]
  クッキーを取得する
====================================*/
function GetCookie (name){
  var arg  = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen){
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
    return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break;
  }
   return null;
}

/*===================================
  [関数 getCookieVal]
  クッキーの値を抽出する
====================================*/
function getCookieVal (offset){
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
  endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset,endstr));
}

/*===================================
  [関数 DeleteCookie]
  クッキーを削除する
====================================*/
function DeleteCookie(name){
  if (GetCookie(name)) {
    document.cookie = name + '=' +
    '; expires=Thu, 01-Jan-70 00:00:01 GMT;path='+ckPath;
  }
}


/*
 * IE PNG Fix v1.4
 *
 * Copyright (c) 2006 Takashi Aida http://www.isella.com/aod2/
 *
 */

// IE5.5+ PNG Alpha Fix v1.0RC4
// (c) 2004-2005 Angus Turnbull http://www.twinhelix.com

// This is licensed under the CC-GNU LGPL, version 2.1 or later.
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/

if (typeof IEPNGFIX == 'undefined') {
//--============================================================================

var IEPNGFIX = {
	blank:  'http://www.orionbeer.co.jp/images/header/spacer.gif',
	filter: 'DXImageTransform.Microsoft.AlphaImageLoader',

	fixit: function (elem, src, method) {
		if (elem.filters[this.filter]) {
			var filter = elem.filters[this.filter];
			filter.enabled = true;
			filter.src = src;
			filter.sizingMethod = method;
		}
		else {
			elem.style.filter = 'progid:' + this.filter +
				'(src="' + src + '",sizingMethod="' + method + '")';
		}
	},

	fixwidth: function(elem) {
		if (elem.currentStyle.width == 'auto' &&
			elem.currentStyle.height == 'auto') {
			elem.style.width = elem.offsetWidth + 'px';
		}
	},

	fixchild: function(elem, recursive) {
		if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent)) return;

		for (var i = 0, n = elem.childNodes.length; i < n; i++) {
			var childNode = elem.childNodes[i];
			if (childNode.style) {
				if (childNode.style.position) {
					childNode.style.position = childNode.style.position;
				}
				else {
					childNode.style.position = 'relative';
				}
			}
			if (recursive && childNode.hasChildNodes()) {
				this.fixchild(childNode, recursive);
			}
		}
	},

	fix: function(elem) {
		if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent)) return;

		var bgImg =
			elem.currentStyle.backgroundImage || elem.style.backgroundImage;

		if (elem.tagName == 'IMG') {
			if ((/\.png$/i).test(elem.src)) {
				this.fixwidth(elem);
				this.fixit(elem, elem.src, 'scale');
				elem.src = this.blank;
				elem.runtimeStyle.behavior = 'none';
			}
		}
		else if (bgImg && bgImg != 'none') {
			if (bgImg.match(/^url[("']+(.*\.png)[)"']+$/i)) {
				var s = RegExp.$1;
				this.fixwidth(elem);
				elem.style.backgroundImage = 'none';
				this.fixit(elem, s, 'scale'); // crop | image | scale

				if (elem.tagName == 'A' && elem.style) {
					if (!elem.style.cursor) {
						elem.style.cursor = 'pointer';
					}
				}

				this.fixchild(elem);
				elem.runtimeStyle.behavior = 'none';
			}
		}
		elem.style.backgroundRepeat = 'repeat-y';
},

	hover: function(elem, hvImg) {
		var bgImg = elem.style.backgroundImage;

		if (!bgImg && elem.currentStyle) bgImg = elem.currentStyle.backgroundImage;

		if (elem.tagName == 'IMG' && hvImg) {
			var image = elem.src;
			elem.onmouseover = function() {
				elem.src = hvImg;
				IEPNGFIX.fix(elem);
			};
			elem.onmouseout = function() {
				elem.src = image;
				IEPNGFIX.fix(elem);
			};
		}
		else if (bgImg && bgImg != 'none' && hvImg) {
			elem.onmouseover = function() {
				elem.style.backgroundImage = 'url(' + hvImg + ')';
				IEPNGFIX.fix(elem);
			};
			elem.onmouseout = function() {
				elem.style.backgroundImage = bgImg;
				IEPNGFIX.fix(elem);
			};
		}

		IEPNGFIX.fix(elem);
	}
};

//--============================================================================
} // end if (typeof IEPNGFIX == 'undefined')



// IE5.5+ PNG Alpha Fix v2.0 Alpha: Background Tiling Support
// (c) 2008-2009 Angus Turnbull http://www.twinhelix.com

// This is licensed under the GNU LGPL, version 2.1 or later.
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/

var IEPNGFix = window.IEPNGFix || {};

IEPNGFix.tileBG = function(elm, pngSrc, ready) {
	// Params: A reference to a DOM element, the PNG src file pathname, and a
	// hidden "ready-to-run" passed when called back after image preloading.

	var data = this.data[elm.uniqueID],
		elmW = Math.max(elm.clientWidth, elm.scrollWidth),
		elmH = Math.max(elm.clientHeight, elm.scrollHeight),
		bgX = elm.currentStyle.backgroundPositionX,
		bgY = elm.currentStyle.backgroundPositionY,
		bgR = elm.currentStyle.backgroundRepeat;

	// Cache of DIVs created per element, and image preloader/data.
	if (!data.tiles) {
		data.tiles = {
			elm: elm,
			src: '',
			cache: [],
			img: new Image(),
			old: {}
		};
	}
	var tiles = data.tiles,
		pngW = tiles.img.width,
		pngH = tiles.img.height;

	if (pngSrc) {
		if (!ready && pngSrc != tiles.src) {
			// New image? Preload it with a callback to detect dimensions.
			tiles.img.onload = function() {
				this.onload = null;
				IEPNGFix.tileBG(elm, pngSrc, 1);
			};
			return tiles.img.src = pngSrc;
		}
	} else {
		// No image?
		if (tiles.src) ready = 1;
		pngW = pngH = 0;
	}
	tiles.src = pngSrc;

	if (!ready && elmW == tiles.old.w && elmH == tiles.old.h &&
		bgX == tiles.old.x && bgY == tiles.old.y && bgR == tiles.old.r) {
		return;
	}

	// Convert English and percentage positions to pixels.
	var pos = {
			top: '0%',
			left: '0%',
			center: '50%',
			bottom: '100%',
			right: '100%'
		},
		x,
		y,
		pc;
	x = pos[bgX] || bgX;
	y = pos[bgY] || bgY;
	if (pc = x.match(/(\d+)%/)) {
		x = Math.round((elmW - pngW) * (parseInt(pc[1]) / 100));
	}
	if (pc = y.match(/(\d+)%/)) {
		y = Math.round((elmH - pngH) * (parseInt(pc[1]) / 100));
	}
	x = parseInt(x);
	y = parseInt(y);

	// Handle backgroundRepeat.
	var repeatX = { 'repeat': 1, 'repeat-x': 1 }[bgR],
		repeatY = { 'repeat': 1, 'repeat-y': 1 }[bgR];
	if (repeatX) {
		x %= pngW;
		if (x > 0) x -= pngW;
	}
	if (repeatY) {
		y %= pngH;
		if (y > 0) y -= pngH;
	}

	// Go!
	this.hook.enabled = 0;
	if (!({ relative: 1, absolute: 1 }[elm.currentStyle.position])) {
		elm.style.position = 'relative';
	}
	var count = 0,
		xPos,
		maxX = repeatX ? elmW : x + 0.1,
		yPos,
		maxY = repeatY ? elmH : y + 0.1,
		d,
		s,
		isNew;
	if (pngW && pngH) {
		for (xPos = x; xPos < maxX; xPos += pngW) {
			for (yPos = y; yPos < maxY; yPos += pngH) {
				isNew = 0;
				if (!tiles.cache[count]) {
					tiles.cache[count] = document.createElement('div');
					isNew = 1;
				}
				var clipR = Math.max(0, xPos + pngW > elmW ? elmW - xPos : pngW),
					clipB = Math.max(0, yPos + pngH > elmH ? elmH - yPos : pngH);
				d = tiles.cache[count];
				s = d.style;
				s.behavior = 'none';
				s.left = (xPos - parseInt(elm.currentStyle.paddingLeft)) + 'px';
				s.top = yPos + 'px';
				s.width = clipR + 'px';
				s.height = clipB + 'px';
				s.clip = 'rect(' +
					(yPos < 0 ? 0 - yPos : 0) + 'px,' +
					clipR + 'px,' +
					clipB + 'px,' +
					(xPos < 0 ? 0 - xPos : 0) + 'px)';
				s.display = 'block';
				if (isNew) {
					s.position = 'absolute';
					s.zIndex = -999;
					if (elm.firstChild) {
						elm.insertBefore(d, elm.firstChild);
					} else {
						elm.appendChild(d);
					}
				}
				this.fix(d, pngSrc, 0);
				count++;
			}
		}
	}
	while (count < tiles.cache.length) {
		this.fix(tiles.cache[count], '', 0);
		tiles.cache[count++].style.display = 'none';
	}

	this.hook.enabled = 1;

	// Cache so updates are infrequent.
	tiles.old = {
		w: elmW,
		h: elmH,
		x: bgX,
		y: bgY,
		r: bgR
	};
};


IEPNGFix.update = function() {
	// Update all PNG backgrounds.
	for (var i in IEPNGFix.data) {
		var t = IEPNGFix.data[i].tiles;
		if (t && t.elm && t.src) {
			IEPNGFix.tileBG(t.elm, t.src);
		}
	}
};
IEPNGFix.update.timer = 0;

if (window.attachEvent && !window.opera) {
	window.attachEvent('onresize', function() {
		clearTimeout(IEPNGFix.update.timer);
		IEPNGFix.update.timer = setTimeout(IEPNGFix.update, 100);
	});
}



