<!--
//フラッシュをJava経由で読み込むスクリプト
function showFlash(url,width,height){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+url+'">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'">');
	document.write('</embed>');
	document.write('</object>');
}

//バナーイメージ(又はフラッシュ)を定義
var bnrimage = new Array(
	
	'<a href="http://www.titan-happy.jp/pcontents/historical/" target="_blank" title="爆笑問題の日本史原論"><img src="images/top/historical_bnr.gif" width="172" height="49" border="0" alt="爆笑問題の日本史原論&#13;&#10;あの日本史原論がネット配信！"></a>',
	'<a href="http://www.titan-happy.jp/pcontents/neco/" target="_blank" title="ネコロジスト田中"><img src="images/top/neco_bnr.gif" width="172" height="49" border="0" alt="ネコロジスト田中&#13;&#10;田中の猫脈をフルに生かした描写"></a>',
//	'<a href="http://www.titan-happy.jp/pcontents/nagai/" target="_blank" title="月刊長井自身"><img src="images/top/nagai_bnr.gif" width="172" height="49" border="0" alt="月刊長井自身&#13;&#10;とっておきのネタを動画でお届け"></a>',
//	'<a href="http://www.titan-happy.jp/pcontents/taro_club/" target="_blank" title="太郎倶楽部"><img src="images/top/taro_club_bnr.gif" width="172" height="49" border="0" alt="太郎倶楽部&#13;&#10;かわいいお猿さんのフォト日記！"></a>',
//	'<a href="http://www.titan-happy.jp/pcontents/hagiwara/" target="_blank" title="ハギのまんま"><img src="images/top/hagiwara_bnr.gif" width="172" height="49" border="0" alt="ハギのまんま&#13;&#10;移植な芸人ハギワラマサヒトの対談"></a>',
//	'<a href="http://www.titan-happy.jp/pcontents/mitsuyo_beauty/" target="_blank" title="太田光代のBeauty Study"><img src="images/top/mitsuyo_beauty_bnr.gif" width="172" height="49" border="0" alt="太田光代のBeauty Study&#13;&#10;女性に役立つ美容健康法対談！"></a>',
//	'<a href="http://www.titan-happy.jp/pcontents/game_factory/" target="_blank" title="ガラクタコージョーのゲーム工場"><img src="images/top/game_factory_bnr.gif" width="172" height="49" border="0" alt="ガラクタコージョーのゲーム工場&#13;&#10;サクッと遊べるライトゲーム"></a>',
//	'<a href="http://www.titan-happy.jp/pcontents/baseball/" target="_blank" title="田中裕二の野球部"><img src="images/top/tanaka_baseball_bnr.jpg" width="172" height="49" border="0" alt="田中裕二の野球部&#13;&#10;無料公開！"></a>');
	'<a href="http://www.titan-happy.jp/pcontents/ticket/" target="_blank" title="TITANLIVEチケット予約"><img src="images/top/ticket_bnr.jpg" width="172" height="49" border="0" alt="TITANLIVEチケット予約"></a>');


//フラッシュをバナーに組み込む場合は最上段のshowFlash関数を利用します。
//記述方法は下記の通り。※scriptタグの多重定義のみ気をつけてください。
//	'<scr'+'ipt language="javascript" type="text/javascript">showFlash("flashname.swf","width","height");</scr'+'ipt>',

//バナーの数を調べます。
var figure = bnrimage.length;

for (i=0; i<100; i++) //　100はシャッフルする回数
{
	n1 = Math.floor(Math.random() * figure);
	n2 = Math.floor(Math.random() * figure);
	n = bnrimage[n1];
	
	bnrimage[n1] = bnrimage[n2];
	bnrimage[n2] = n;
}

//バナーイメージを呼び出す関数
function putbnrimage(cnt){
	document.write(bnrimage[cnt]);
}


//-->
