
function Gnavi(){
document.write('<div id="mglobalnavi" class="clearfix"><ul id="opennavi">');
document.write('<li><a href="/motorsports/" title="MOTOR SPORTS TOP" class="ms"></a></li>');
document.write('<li><a href="javascript:void(0)" class="race"></a><div class="subnavi 4rin"><ul class="blue">');
document.write('<li class="top"><a href="/IRL/" title="IndyCar Series" class="irl"></a></li>');
document.write('<li><a href="/SuperGT/" title="SUPER GT" class="gt"></a></li>');
document.write('<li><a href="/FN/" title="フォーミュラ・ニッポン" class="fn"></a></li>');
document.write('<li><a href="/HFDP/" title="Hondaの人材育成" class="jinzai"></a></li>');
document.write('<li><a href="http://www.hoa.jp/" title="ワンメイクレース シビックシリーズ" class="onemake"></a></li>');
document.write('</ul></div></li>');
document.write('<li><a href="javascript:void(0)" class="road"></a><div class="subnavi 2rin"><ul>');
document.write('<li class="top"><a href="/WGP/" title="MotoGP" class="motogp"></a></li>');
document.write('<li><a href="/JRR/" title="全日本ロードレース選手権" class="jrr"></a></li>');
document.write('<li><a href="/SBK/" title="World Superbike" class="sbk"></a></li>');
document.write('<li><a href="/BSB/" title="British Superbike" class="bsb"></a></li>');
document.write('<li><a href="/Racing/race2011/8hours/" class="hours"></a></li>');
document.write('<li><a href="/JMX/" title="全日本モトクロス選手権" class="jmx"></a></li>');
document.write('<li><a href="/WMX/" title="World Motocross" class="wmx"></a></li>');
document.write('<li><a href="/WCT/" title="World Trial" class="wct"></a></li>');
document.write('<li><a href="/JTR/" title="全日本トライアル選手権" class="jtr"></a></li>');
document.write('</ul></div></li>');
document.write('<li><a href="/Racing/emc/" title="エコ マイレッジ チャレンジ" class="eco"></a></li>');
document.write('<li><a href="/Racing/KidsRider/" title="Enjoy Kids Rider" class="kids"></a></li>');
document.write('<li class="end"><img src ="/motorsports/css/2011/images/globalnavi/hondaracing.png" width="173" height="21" alt="Honda Racing" /></li>');
document.write('</ul></div>');
}


$(function(){
//readyイベントはじめ

//ここから全ページ共用

//グローバルナビ用
	$("#opennavi li").hover(
			function(){ $("div", this).fadeIn("fast"); },
			function(){ $("div", this).hide(); }
	);

//ページトップボタン用※要easingプラグイン(下で読み込み)
	$("div.page_top a").click(function () {
		$("html,body").animate({ scrollTop: 0 }, 500, "easeOutQuart");
		return false;
	});

//アーカイブ/リンク用
	$("#archivenavi li").hover(
			function(){ $("div", this).fadeIn("fast"); },
			function(){ $("div", this).hide(); }
	);

//トップページ戻りリンク変換
	if (location.href.indexOf("race2010")>0){
		var d = location.pathname.split("/")[1];
		$("a[href$='" + d + "\/']").click(function(){
			location.href = "/" + d + "/#calendar";
			return false;
		});
	}


//ここまで全ページ共用

//ここからレポート用

	$(".slideshow").cycle({ 
	    fx:     "fade", 
	    speed:   500, 
	    timeout: 5000, 
	    next:   ".slideshow", 
	    pause:   1 
	});

//ここまでレポート用

//readyイベント終わり
});




/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright c 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/

// t: current time, b: begInnIng value, c: change In value, d: duration

jQuery.extend( jQuery.easing,
{
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	}
});

/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright (c) 2001 Robert Penner
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
 */

