﻿// JavaScript Document

document.open();
document.write('<link rel="shortcut icon" href="http://www.hyperdouraku.com/hyperdouraku.ico" />');
// document.write('<script type="text/javascript" src="../../js/tinyscrolling.js"></script>');
document.close();

function writeHeader(){
	document.write('<div id="gn">');
	document.write('<div class="home_btn" title="ハイパー道楽 ホームへ">');
	document.write('<a href="http://www.hyperdouraku.com"><img src="http://www.hyperdouraku.com/images/spacer.gif" alt="ハイパー道楽 ホームへ" class="topgif" width="160" height="45" border="0" /></a></div>');
	document.write('<div class="navi">');
	document.write('<ul>');
	document.write('<li><a href="http://www.hyperdouraku.com/airgun/index.html">エアガンレビュー</a></li>');
	document.write('<li><a href="http://www.hyperdouraku.com/item/index.html">ウェア・装備</a></li>');
	document.write('<li><a href="http://www.hyperdouraku.com/survivalgame/index.html">サバイバルゲーム</a></li>');
	document.write('<li><a href="http://www.hyperdouraku.com/bbs/index.html">掲示板</a></li>');
	document.write('<li><a href="http://www.hyperdouraku.com/link/index.html">リンク集</a></li>');
	document.write('<li><a href="http://www.hyperdouraku.com/sitemap.html">サイトマップ</a></li>');
	document.write('</ul>');
	document.write('</div></div>');
}

function openWindow(url,name,wide,high){
    jsWindow = window.open(url,name,"width=" + wide + ",height=" + high + ",toolbar=no,location=no,directories=no,status=yes,scrollbars=no,resizable=yes,menubar=no,titlebar=no");
    if(jsWindow.closed){}
    jsWindow.focus();
}

function writeWmp(wmvFile){
	document.write('<object id="WMP" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" width="662" height="549">');
	document.write('<param name="FileName" value="http://www.hyperdouraku.com/WMV/' + wmvFile + '">');
	document.write('<param name="AutoStart" value="true">');
	document.write('<param name="ShowControls" value="true">');
	document.write('<param name="ShowStatusBar" value="true">');
	document.write('<param name="Loop" value="false">');
	document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://www.hyperdouraku.com/WMV/' + wmvFile + '" autostart=1 showcontrols=1 showstatusbar="1" loop="0" width="662" height="549"></embed>');
	document.write('</object>');
}

function writeWmp2(wmvFile){
	document.write('<object id="WMP" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" width="662" height="549">');
	document.write('<param name="FileName" value="http://016.mediaimage.jp/hyper/' + wmvFile + '">');
	document.write('<param name="AutoStart" value="true">');
	document.write('<param name="ShowControls" value="true">');
	document.write('<param name="ShowStatusBar" value="true">');
	document.write('<param name="Loop" value="false">');
	document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://016.mediaimage.jp/hyper/' + wmvFile + '" autostart=1 showcontrols=1 showstatusbar="1" loop="0" width="662" height="549"></embed>');
	document.write('</object>');
}

function writeWmp3(wmvFile){
	document.write('<object id="WMP" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" width="662" height="469">');
	document.write('<param name="FileName" value="http://016.mediaimage.jp/hyper/' + wmvFile + '">');
	document.write('<param name="AutoStart" value="true">');
	document.write('<param name="ShowControls" value="true">');
	document.write('<param name="ShowStatusBar" value="true">');
	document.write('<param name="Loop" value="false">');
	document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://016.mediaimage.jp/hyper/' + wmvFile + '" autostart=1 showcontrols=1 showstatusbar="1" loop="0" width="662" height="469"></embed>');
	document.write('</object>');
}

function raku_search(this_f){
	org_chr=document.charset; 
	document.charset='euc-jp'; 
	this_f.submit();
	document.charset=org_chr;
	pageTracker._trackPageview('/rakuten/link2');
	return false;
}
