// supergt.net news page script

// News List Form
function newslist_form() {
	document.write('<FORM METHOD="POST">');
	document.write('<Input Type="hidden" Name="ListN" Value="10">');
	document.write('<Input Type="hidden" Name="LastDate" Value="30">');
	document.write('<Input Type="hidden" Name="LastDate_en" Value="60"></form>');
	}


// Image Loader
function setImage(iUrl)
	{
		if (document.images) {
		lImg = new Image();
		lImg.src = iUrl;
		return lImg;
		}
	}


// Top Image
function newstop_image() {
//	document.write('<iframe src="http:\/\/supergt.net\/supergt\/sgt_topmov.htm" title="topmov_f" name="topmov_f" width="400" height="130" border="0" frameborder="0" framespacing="0" scrolling="no"><\/iframe>');
	document.write('<iframe src="http:\/\/supergt.net\/supergt\/sgt_topmov.htm" title="topmov_f" name="topmov_f" width="400" height="136" border="0" frameborder="0" framespacing="0" scrolling="no"><\/iframe>');
	}

function newstop_imageen() {
//	document.write('<iframe src="http:\/\/supergt.net\/supergt\/sgt_topmov_en.htm" title="topmov_f" name="topmov_f" width="400" height="130" border="0" frameborder="0" framespacing="0" scrolling="no"><\/iframe>');
	document.write('<iframe src="http:\/\/supergt.net\/supergt\/sgt_topmov_en.htm" title="topmov_f" name="topmov_f" width="400" height="136" border="0" frameborder="0" framespacing="0" scrolling="no"><\/iframe>');
	}



// Series Partner
function newstop_partner() {
	var part_fn = 'sgt_partners'

//	document.write('<iframe src="http:\/\/supergt.net\/supergt\/' + part_fn + '.htm" title="spartner_f" name="spartner_f" width="208" height="130" ');
	document.write('<iframe src="http:\/\/supergt.net\/supergt\/' + part_fn + '.htm" title="spartner_f" name="spartner_f" width="208" height="136" ');
	document.write('border="0" frameborder="0" framespacing="0" scrolling="no"><\/iframe>');
	}


function __newstop_partner() {
	var p_start = "25 Jul 2008 22:00:00 GMT";
	var part_fn = 'sgt_partners'

	var now_d = new Date();
	var prt_d = new Date(p_start);

	if( prt_d < now_d ){
		var part_fn = 'sgt_partners08'
	}

	document.write('<iframe src="http:\/\/supergt.net\/supergt\/' + part_fn + '.htm" title="spartner_f" name="spartner_f" width="208" height="136" ');
	document.write('border="0" frameborder="0" framespacing="0" scrolling="no"><\/iframe>');
	}


function newstop_partneren() {
	newstop_partner();
	}




// TOP NEWS IMAGES
function sload_img() {

	img = new Array()
	img[0] = setImage("http://www.supergt.net/images/news_top/tn_headline.gif");
	img[1] = setImage("http://www.supergt.net/images/news_top/tn_infor.gif");
	img[2] = setImage("http://www.supergt.net/images/news_top/nt_sgt.gif");
	img[3] = setImage("http://www.supergt.net/images/news_top/nt_sgt2.gif");
	img[4] = setImage("http://www.supergt.net/images/news_top/nt_fforum.gif");
	img[5] = setImage("http://www.supergt.net/images/news_top/nt_fforum2.gif");
	img[6] = setImage("http://www.supergt.net/images/news_top/nt_gtmem.gif");
	img[7] = setImage("http://www.supergt.net/images/news_top/nt_gtmem2.gif");
	img[8] = setImage("http://www.supergt.net/images/news_top/nt_press.gif");
	img[9] = setImage("http://www.supergt.net/images/news_top/nt_press2.gif");
	img[10]= setImage("http://www.supergt.net/images/news_top/nt_onair.gif");
	img[11]= setImage("http://www.supergt.net/images/news_top/nt_onair2.gif");
	img[12]= setImage("http://www.supergt.net/images/news_top/nt_event.gif");
	img[13]= setImage("http://www.supergt.net/images/news_top/nt_event2.gif");
	img[14]= setImage("http://www.supergt.net/images/news_top/nt_dayrepo.gif");
	img[15]= setImage("http://www.supergt.net/images/news_top/nt_dayrepo2.gif");
	img[16]= setImage("http://www.supergt.net/images/news_top/nt_team.gif");
	img[17]= setImage("http://www.supergt.net/images/news_top/nt_team2.gif");
	img[18]= setImage("http://www.supergt.net/images/news_top/nt_goods.gif");
	img[19]= setImage("http://www.supergt.net/images/news_top/nt_goods2.gif");
}

function gload_img() {
	img = new Array()
	img[0] = setImage("http://supergt.net/images/news_img/sgtnews_t.gif");
	img[1] = setImage("http://supergt.net/images/items/back_fff.gif");
	img[2] = setImage("http://supergt.net/images/items/back_ccc.gif");
	img[3] = setImage("http://supergt.net/images/items/back_ff0.gif");
	img[4] = setImage("http://supergt.net/images/items/dotar_l_666.gif");
	img[5] = setImage("http://supergt.net/images/items/dotar_l_c00.gif");
	img[6] = setImage("http://supergt.net/images/items/dotar_l_f30.gif");
	img[7] = setImage("http://supergt.net/images/items/dotar_r_666.gif");
	img[8] = setImage("http://supergt.net/images/items/dotar_r_c00.gif");
	img[9] = setImage("http://supergt.net/images/items/dotar_r_f30.gif");

	document.sgtnews_t.src = img[0].src;
	
}


// RollOver Image
function ro_img(n,s) {
	var ni;
	var ns = n.name;
	if ( s == 1 ) {
		ni = "http://supergt.net/images/news_top/" + ns + "2.gif";
		n.src = ni;
		}
	else if ( s == 0 ) {
		ni = "http://supergt.net/images/news_top/" + ns + ".gif";
		n.src = ni;
		}
	else return;
}


// table height
function tableHite(){
//	if(document.getElementById && (document.compatMode=='CSS1Compat')){
//		h = document.documentElement.clientHeight;
//		document.getElementById("bodytable").style.height=h;
//		}
	if (document.all && document.getElementById && (navigator.userAgent.indexOf("Win") > -1)) {
		h = document.body.clientHeight;
		document.all('bodytable').style.height=h;
		}
//	else if(document.getElementById){
//		h = document.body.clientHeight;
//		document.getElementById("bodytable").style.height=h;
//		}
}



// Info Banner
function info_bann() {
}



// Undernews Navi

function topnews_unavi() {
	document.write('<span>');
//	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http:\/\/supergt.net\/info\/sgt_sitemap.htm" title="サイトマップ">サイトマップ</a>');
	document.write('<a href="http:\/\/ww2.supergt.net\/netclub\/desk_policy.shtm" target="_self" title="プライバシーポリシー">プライバシーポリシー<\/a>');
	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http:\/\/ww2.supergt.net\/netclub\/index.htm" target="_self" title="SUPERGT.net 会員デスク">会員デスク<\/a>');
	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http:\/\/ww2.supergt.net\/netclub\/desk_faq.shtm#faq04" target="_self" title="SUPERGT.net へのリンクについて">リンクについて<\/a>');
//	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http:\/\/ww2.supergt.net\/media\/media_main.htm" target="sgt_main" title="報道関係者用ページ">メディア<\/a>');
//	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http:\/\/ww2.supergt.net\/gta\/gta_main.htm" target="sgt_main" title="GTA/エントラント用ページ">GTA<\/a>');
	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http:\/\/ww2.supergt.net\/gta\/gta_main2.htm" target="_parent" title="株式会社GTアソシエイション">株式会社GTアソシエイション<\/a>');
//	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http:\/\/ww2.supergt.net\/gta\/partnership.htm" target="_self" title="パートナーシップのご案内">パートナーシップのご案内<\/a>');
//	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http:\/\/supergt.net\/en\/" target="_top" title="English Page">English<\/a>');
//	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a class="tlink" href="http:\/\/supergt.net/" target="_top">SUPERGT.net<\/a>');
	document.write('</span>');
}

function topnews_unavien() {
	document.write('<span>');
//	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http:\/\/supergt.net\/info\/sgt_sitemap.htm">sitemap<\/a>');
	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http:\/\/supergt.net\/gta\/company\/index_e.htm" target="_self" title="Company Information">GTA Co.,Ltd<\/a>');
	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http:\/\/ww2.supergt.net\/media\/media_main_en.htm" target="sgt_main" title="Media Room">Media Room<\/a>');
	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http:\/\/supergt.net\/jp\/" target="_top" title="Japanese Page">Japanese<\/a>');
	document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a class="tlink" href="http:\/\/supergt.net\/" target="_top">SUPERGT.net<\/a><\/span>');
}


// Footer

function topnews_footer() {
	document.write('<span class="footj">Copyright &copy;2009 SUPERGT.net All rights reserved. ');
	document.write('No reproduction or republication without written permission.<br \/>');
	document.write('本サイトで使用している文章・画像等の無断での複製・転載を禁止します。<br \/><\/span>');
}

function topnews_footeren() {
	document.write('<span class="foote">Copyright &copy;2009 SUPERGT.net All rights reserved. ');
	document.write('No reproduction or republication without written permission.<\/span>');
}


function newsg_ftback__() {
//	document.write('<a id="news_foot_back" href="javascript:history.back()" onmouseover="document.backp.src=\'http://supergt.net/images/items/back_fff.gif\'" ');
//	document.write('onmouseout="document.backp.src=\'http://supergt.net/images/items/back_ccc.gif\'">');
//	document.write('<img name="backp" src="http://supergt.net/images/items/back_ccc.gif" border="0" alt="BACK"></a>');
}



function goBackp() {
	history.back();
}

function newsg_ftback() {
	document.write('<a id="news_foot_back" href="javascript:goBackp()" title="BACK">&lt; BACK<\/a>');
	document.write('<a id="news_foot_logo" href="http:\/\/supergt.net\/" target="_top" title="SUPERGT.net">SUPERGT.net<\/a>');
}




// RollOver Arrows
function ro_dar(n,s) {
	var na = "http://supergt.net/images/items/dotar_r_" + s + ".gif";
	n.src = na;
}

function ro_dal(n,s) {
	var na = "http://supergt.net/images/items/dotar_l_" + s + ".gif";
	n.src = na;
}



// onresize (Win IE)
function ieresize(){
	tableHt();
}





// 100 RACES PROJECT
function open100site(u) {
	var tUrl = 'http://supergt.net/supergt/special/100races/' + u;
	nWin = window.open(tUrl,'r100','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,favorites=no,resizable=yes,width=800,height=500,innerWidth=800,innerHeight=500');
}

function opencafe() {
	var tUrl = 'http://supergt.net/cafe/';
	nWin = window.open(tUrl,'r100','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,favorites=no,resizable=yes,width=800,height=500,innerWidth=800,innerHeight=500');
}









// TOPPAGE RIGHT-SIDE BANNER
function show_topbanner() {
	document.write('<div id=\"right_column\">');
	adspace_sgt003();
	document.write('<\/div>');
}


function show_topbanner2() {
	document.write('<div id=\"right_column\">');
	adspace_sgt002();
	document.write('<\/div>');
}


function gtaArray(anam, aurl, aimga, aimgb, asta, aend)
{
	this.adname = anam;// バナー名
	this.adurls = aurl;// リンク先URL
	this.adimga = aimga;// バナー画像1
	this.adimgb = aimgb;// バナー画像2
	this.adstat = new Date(asta);// 画像変更開始日時
	this.adends = new Date(aend);// 画像変更終了日時
	return this;
}


function adspace_sgt001() {
	var a1_name = "SUPER GT Official Mobile Site";
	var a1_urls = "http://ww2.supergt.net/gtcgi/prg/NList02.dll/Code?No=NS012117&amp;List=13";
	var a1_imga = "mobile_120a.gif";
	var a1_imgb = "mobile_120b.gif";
	var a1_star = "17 Apr 2009 23:20:00 GMT"; // 2009-04-18 08:20(GMT+9)
	var a1_ends = "19 Apr 2009 08:00:00 GMT"; // 2009-04-19 17:00(GMT+9)

	var a1_data = new gtaArray(a1_name, a1_urls, a1_imga, a1_imgb, a1_star, a1_ends);

	var ts = this;
	ts.adname = a1_data.adname;// バナー名
	ts.adurls = a1_data.adurls;// リンク先URL
	ts.adimga = a1_data.adimga;// バナー画像1
	ts.adimgb = a1_data.adimgb;// バナー画像2
	ts.adstat = a1_data.adstat;// 掲載開始日時
	ts.adends = a1_data.adends;// 掲載終了日時

	var mobimg = a1_imga;
	var anow = new Date();

	if( ts.adstat > anow ){ mobimg = a1_imga; }
	else if( ts.adends > anow ){ mobimg = a1_imgb; }
	else { mobimg = a1_imga; }

		document.write('<div id=\"sgt_banns\">');
		document.write('<div><a href="' + a1_urls + '" target="sgt_body"><img src="http:\/\/supergt.net\/images\/banner\/' + mobimg + '" \/><\/a><\/div>');	// SGT Mobile Site
//		document.write('<div><a href="http:\/\/ww2.supergt.net\/netclub\/regist_melmaga.shtm" target="sgt_body"><img src="http:\/\/supergt.net\/images\/banner\/melmaga_120.png" alt="Melmaga" \/><\/div>');	// Mail Magazine
		document.write('<div><a href="http:\/\/supergt.net\/shop\/" target="_top"><img src="http:\/\/supergt.net\/images\/banner\/shop_120.png" \/><\/a><br \/><\/div>');	// SGT SHOP
		document.write('<\/div>');
}





function adspace_sgt002___() {
	var a1_name = "SUPER GT Official Mobile Site";
	var a1_urls = "http://ww2.supergt.net/gtcgi/prg/NList02.dll/Code?No=NS012117&amp;List=13";
	var a1_imga = "http://supergt.net/images/banner/mobile_120a_ifrm.htm";
	var a1_imgb = "http://supergt.net/images/banner/mobile_gtoto_ifrm.htm";
	var a1_imgs = "http://supergt.net/images/banner/mobile_lap_ifrm.htm";
	var a2_imga = "http://supergt.net/images/banner/mobile_camo_ifrm.htm";
	var a2_imgs = "http://supergt.net/images/banner/mobile_cam_ifrm.htm";
	var a3_imgs = "http://supergt.net/images/banner/kidskart_ifrm.htm";
	var a1_prom = "16 Oct 2009 00:00:00 GMT"; // 2009-10-16 09:00(GMT+9)
	var a1_star = "16 Oct 2009 23:00:00 GMT"; // 2009-10-17 08:00(GMT+9)
	var a1_ends = "18 Oct 2009 09:00:00 GMT"; // 2009-10-18 18:00(GMT+9)

	adprom = new Date(a1_prom);// 掲載開始日時
	adstat = new Date(a1_star);// 掲載開始日時
	adends = new Date(a1_ends);// 掲載終了日時


	var eventd = 0;
	var anow = new Date();

	if( adprom > anow ){ eventd = 0; }
	else if( adstat > anow ){ eventd = 2; }
	else if( adends > anow ){ eventd = 1; }
	else { eventd = 0; }

		document.write('<div id=\"sgt_banns\">');
	if(eventd == 0) {
		document.write('<div class="adspace01"><iframe src=\"' + a1_imga + '\" width=\"120\" height=\"170\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Site
	}
	if(eventd == 1) {	// イベント中
		document.write('<div class="adspace02"><iframe src=\"' + a1_imgs + '\" width=\"120\" height=\"170\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Lap
		document.write('<div class="adspace03"><iframe src=\"' + a2_imgs + '\" width=\"120\" height=\"80\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Cam
	}
	if(eventd == 2) {	// 直前プロモ
		document.write('<div class="adspace02"><iframe src=\"' + a1_imgb + '\" width=\"120\" height=\"170\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Gtoto
		document.write('<div class="adspace03"><iframe src=\"' + a2_imga + '\" width=\"120\" height=\"80\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Cam Sample
	}

		document.write('<div><a href="http:\/\/ww2.supergt.net\/netclub\/terms_melmaga.shtm" target="sgt_body"><img src="http:\/\/supergt.net\/images\/banner\/melmaga_120.png" alt="Melmaga" \/><\/div>');	// Mail Magazine
		document.write('<div><a href="http:\/\/supergt.net\/shop\/" target="_top"><img src="http:\/\/supergt.net\/images\/banner\/shop_120.png" \/><\/a><br \/><\/div>');	// SGT SHOP
//		document.write('<div class="adspace04"><iframe src=\"' + a3_imgs + '\" width=\"120\" height=\"146\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\" allowTransparency=\"true\">\n<\/iframe><\/div>');	// KIDSKART
//		document.write('<div><a href="http:\/\/supergt.net\/supergt\/news\/2009n\/news090825.htm" target="sgt_body"><img src="http:\/\/supergt.net\/images\/banner\/sgt_mms0906.gif" \/><\/a><br \/><\/div>');	// Rd6 Messages
		document.write('<\/div>');
}




function adspace_sgt002() {
	var a1_imga = "http://supergt.net/images/banner/mobile_120a_ifrm.htm";	// Mobile Std
	var a1_imgb = "http://supergt.net/images/banner/mobile_gtoto_ifrm.htm";	// Mobile Gtoto受付中
	var a1_imgs = "http://supergt.net/images/banner/mobile_lap_ifrm.htm";	// Mobile Lap配信中
	var a2_imga = "http://supergt.net/images/banner/mobile_camo_ifrm.htm";	// Live Camera Demo
	var a2_imgs = "http://supergt.net/images/banner/mobile_cam_ifrm.htm";	// Live Camera ON
	var a3_imgs = "http://supergt.net/images/banner/kidskart_ifrm.htm";	// Kids Kart
	var a4_imga = "http://supergt.net/images/adbanners/ad_msf05_ifrm.htm";	// MSF
	var a1_prom = "30 Oct 2009 02:00:00 GMT"; // 2009-10-30 11:00(GMT+9)	::	Livecamera Demo
	var a1_sgtt = "30 Oct 2009 02:00:00 GMT"; // 2009-10-30 11:00(GMT+9)	::	Gtoto Start
	var a1_star = "7 Nov 2009 00:00:00 GMT"; // 2009-11-07 09:00(GMT+9)	::	Lap & Livecamera Start
	var a1_egtt = "7 Nov 2009 14:59:00 GMT"; // 2009-11-07 23:59(GMT+9)	::	Gtoto End
	var a1_ends = "8 Nov 2009 09:00:00 GMT"; // 2009-11-08 18:00(GMT+9)	::	Lap & Livecamera End

	adprom = new Date(a1_prom);// Live Camera Demo 掲載開始日時
	adsgtt = new Date(a1_sgtt);// Gtoto 掲載開始日時
	adstat = new Date(a1_star);// Livecamera&Lap配信 掲載開始日時
	adegtt = new Date(a1_egtt);// Gtoto 掲載終了日時
	adends = new Date(a1_ends);// Livecamera&Lap配信 掲載終了日時


	var eventd = 0;
	var anow = new Date();

	if( adprom > anow ){ eventd = 0; }
	else if( adsgtt > anow ){ eventd = 4; }
	else if( adstat > anow ){ eventd = 3; }
	else if( adegtt > anow ){ eventd = 2; }
	else if( adends > anow ){ eventd = 1; }
	else { eventd = 0; }

		document.write('<div id=\"sgt_banns\">');

	if(eventd == 0) {
		document.write('<div class="adspace01"><iframe src=\"' + a1_imga + '\" width=\"120\" height=\"170\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Site Std
	}
	if(eventd == 1) {	// イベント中 RA Lap & Live Camera
		document.write('<div class="adspace02"><iframe src=\"' + a1_imgs + '\" width=\"120\" height=\"170\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Lap
		document.write('<div class="adspace03"><iframe src=\"' + a2_imgs + '\" width=\"120\" height=\"80\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Cam
	}
	if(eventd == 2) {	// イベント中 QF Lap & Live Camera & Gtoto
	//	document.write('<div class="adspace02"><iframe src=\"' + a1_imgs + '\" width=\"120\" height=\"170\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Lap
		document.write('<div class="adspace02"><iframe src=\"' + a1_imgb + '\" width=\"120\" height=\"175\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Gtoto
		document.write('<div class="adspace03"><iframe src=\"' + a2_imgs + '\" width=\"120\" height=\"80\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Cam
	}
	if(eventd == 3) {	// Live Camera Demo & Gtoto
		document.write('<div class="adspace02"><iframe src=\"' + a1_imgb + '\" width=\"120\" height=\"175\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Gtoto
		document.write('<div class="adspace03"><iframe src=\"' + a2_imga + '\" width=\"120\" height=\"77\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Cam Demo
	}
	if(eventd == 4) {	// Live Camera Demo
		document.write('<div class="adspace01"><iframe src=\"' + a1_imga + '\" width=\"120\" height=\"170\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Site Std
		document.write('<div class="adspace03"><iframe src=\"' + a2_imga + '\" width=\"120\" height=\"77\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Cam Demo
	}

//		document.write('<div class="adspace04"><iframe src=\"' + a3_imgs + '\" width=\"120\" height=\"146\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\" allowTransparency=\"true\">\n<\/iframe><\/div>');	// KIDSKART
//		document.write('<div class="adspace05"><iframe src=\"' + a4_imga + '\" width=\"120\" height=\"240\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>'); // MSF
		document.write('<div><a href="http:\/\/ww2.supergt.net\/netclub\/terms_melmaga.shtm" target="sgt_body"><img src="http:\/\/supergt.net\/images\/banner\/melmaga_120.png" alt="Melmaga" \/><\/div>');	// Mail Magazine

//		document.write('<div><a href="http:\/\/supergt.net\/supergt\/news\/2009n\/news090825.htm" target="sgt_body"><img src="http:\/\/supergt.net\/images\/banner\/sgt_mms0906.gif" \/><\/a><br \/><\/div>');	// Rd6 Messages

		document.write('<\/div>');
}





function adspace_sgt003() {
	var a1_imga = "http://supergt.net/images/banner/mobile_120a_ifrm.htm";	// Mobile Std
	var a1_imgb = "http://supergt.net/images/banner/mobile_verup.htm";	// Mobile Ver Up
	var a2_imgs = "http://supergt.net/sp/marrowdonorprogram/sgt_mdp_ifrm.htm";	// Marrow Donor

	var a1_star = "12 Mar 2010 03:00:00 GMT"; // 2010-03-12 12:00(GMT+9)	::	Marrow Donor Start
	var a1_ends = "01 Dec 2010 15:00:00 GMT"; // 2010-12-01 24:00(GMT+9)	::	Marrow Donor End

	adstat = new Date(a1_star);// Marrow Donor 掲載開始日時
	adends = new Date(a1_ends);// Marrow Donor 掲載終了日時


	var eventd = 0;
	var anow = new Date();

	if( adstat > anow ){ eventd = 0; }
	else if( adends > anow ){ eventd = 1; }
	else { eventd = 0; }

		document.write('<div id=\"sgt_banns\">');

	if(eventd == 0) {
		document.write('<div class="adspace01"><iframe src=\"' + a1_imga + '\" width=\"120\" height=\"170\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Site Std
	}
	if(eventd == 1) {	// Marrow Donor
		document.write('<div class="adspace03"><iframe src=\"' + a2_imgs + '\" width=\"120\" height=\"120\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Marrow Donor
//		document.write('<div class="adspace01"><iframe src=\"' + a1_imga + '\" width=\"120\" height=\"170\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Site Std
		document.write('<div class="adspace01"><iframe src=\"' + a1_imgb + '\" width=\"120\" height=\"180\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// Mobile Ver Up
	}


//		document.write('<div class="adspace04"><iframe src=\"' + a3_imgs + '\" width=\"120\" height=\"146\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\" allowTransparency=\"true\">\n<\/iframe><\/div>');	// KIDSKART
//		document.write('<div class="adspace05"><iframe src=\"' + a4_imga + '\" width=\"120\" height=\"240\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>'); // MSF
		document.write('<div><a href="http:\/\/ww2.supergt.net\/netclub\/terms_melmaga.shtm" target="sgt_body"><img src="http:\/\/supergt.net\/images\/banner\/melmaga_120.png" alt="Melmaga" \/><\/div>');	// Mail Magazine

//		document.write('<div><a href="http:\/\/supergt.net\/supergt\/news\/2009n\/news090825.htm" target="sgt_body"><img src="http:\/\/supergt.net\/images\/banner\/sgt_mms0906.gif" \/><\/a><br \/><\/div>');	// Rd6 Messages

		document.write('<\/div>');
}





function adspace_live() {
	var a1_name = "SUPER GT Official Mobile Site";
	var a1_urls = "http://ww2.supergt.net/gtcgi/prg/NList02.dll/Code?No=NS012117&amp;List=13";

	var a1_imgs = "http://supergt.net/images/banner/mobile_lap_ifrm.htm";
	var a2_imgs = "http://supergt.net/images/banner/mobile_cam_ifrm.htm";


		document.write('<div class="adspace02"><iframe src=\"' + a1_imgs + '\" width=\"120\" height=\"170\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div><br \/>');	// SGT Mobile Site Flash
		document.write('<div class="adspace03"><iframe src=\"' + a2_imgs + '\" width=\"120\" height=\"80\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe><\/div>');	// SGT Mobile Cam
}



function adsArray(anam, aurl, aimg, asta, aend)
{
	this.adname = anam;// バナー名
	this.adurls = aurl;// リンク先URL
	this.adimgs = aimg;// バナー画像
	this.adstat = new Date(asta);// 掲載開始日時
	this.adends = new Date(aend);// 掲載終了日時
	return this;
}


function adspace_top001() {
	var a1_name = "SUPER GT Official Mobile Site";
	var a1_urls = "http://ww2.supergt.net/gtcgi/prg/NList02.dll/Code?No=NS012117&amp;List=13";
	var a1_imgs = "sgt_mobile5.gif";
	var a1_star = "1 Mar 2009 00:00:00 GMT"; // 2009-03-01 09:00(GMT+9)
	var a1_ends = "1 Mar 2010 00:00:00 GMT"; // 2010-03-01 09:00(GMT+9)

	var a1_data = new adsArray(a1_name, a1_urls, a1_imgs, a1_star, a1_ends);

	var ts = this;
	ts.adname = a1_data.adname;// バナー名
	ts.adurls = a1_data.adurls;// リンク先URL
	ts.adimgs = a1_data.adimgs;// バナー画像
	ts.adstat = a1_data.adstat;// 掲載開始日時
	ts.adends = a1_data.adends;// 掲載終了日時

	var anow = new Date();

	if( ts.adstat > anow ){return;}
	else if( ts.adends > anow ){
		document.write('<div id=\"right_column\">');
		document.write('<div><a href="' + a1_urls + '" target="sgt_body"><img src="http:\/\/supergt.net\/images\/adbanners\/' + a1_imgs + '" alt="' + a1_name + '" \/><\/a><\/div>');
		document.write('<\/div>');
	}
	else {return;}
}




function adspace_top002() {
	var a1_name = "アド・ネットワークス株式会社";
	var a1_urls = "http://";
	var a1_imgs = "http://supergt.net/images/adbanners/ad_adntwks_ifrm.htm";
	var a1_star = "2 Feb 2009 02:00:00 GMT"; // 2009-02-02 11:00(GMT+9)
	var a1_ends = "28 Feb 2009 14:59:59 GMT"; // 2009-03-01 00:00(GMT+9)

	var a1_data = new adsArray(a1_name, a1_urls, a1_imgs, a1_star, a1_ends);

	var ts = this;
	ts.adname = a1_data.adname;// バナー名
	ts.adurls = a1_data.adurls;// リンク先URL
	ts.adimgs = a1_data.adimgs;// バナー画像
	ts.adstat = a1_data.adstat;// 掲載開始日時
	ts.adends = a1_data.adends;// 掲載終了日時

	var anow = new Date();

	if( ts.adstat > anow ){return;}
	else if( ts.adends > anow ){
		document.write('<div id=\"right_column\">');
//		document.write('<scr'+'ipt type=\"text\/javascript\">sr_adspace_id=4926207;\r\nsr_adspace_width=160;\r\nsr_adspace_height=600;\r\nsr_adspace_type=\"graphic\";\r\nsr_ad_new_window = true;<\/scr'+'ipt>\r\n');
//		document.write('<scr'+'ipt type=\"text\/javascript\" src=\"http:\/\/ad.afy11.net\/srad.js?azId=4926207\"><\/scr'+'ipt>\r\n');
		document.write('<iframe src=\"' + a1_imgs + '\" width=\"160\" height=\"600\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe>');
		document.write('<\/div>');
	}
	else {return;}
}




function adfrm_a001() {
	var a1_name = "モータースポーツ・ネットワーク";
	var a1_urls = "http://";
	var a1_imgs = "http://supergt.net/images/adbanners/ad_admsnetwork.htm";
	var a1_star = "6 Jul 2009 00:00:00 GMT"; // 2009-07-06 09:00(GMT+9)
	var a1_ends = "31 Aug 2009 14:59:59 GMT"; // 2009-09-01 00:00(GMT+9)

	var a1_data = new adsArray(a1_name, a1_urls, a1_imgs, a1_star, a1_ends);

	var ts = this;
	ts.adname = a1_data.adname;// バナー名
	ts.adurls = a1_data.adurls;// リンク先URL
	ts.adimgs = a1_data.adimgs;// バナー画像
	ts.adstat = a1_data.adstat;// 掲載開始日時
	ts.adends = a1_data.adends;// 掲載終了日時

	var anow = new Date();

	if( ts.adstat > anow ){return;}
	else if( ts.adends > anow ){
		document.write('<div id=\"ad_300_250\">');
		document.write('<iframe src=\"' + a1_imgs + '\" width=\"300\" height=\"250\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\">\n<\/iframe>');
		document.write('<\/div>');
	}
	else {return;}
}







