	getBrowser();
	var Wide_Skyscraper = 0;
	var Ad = 0;
	var amazon_type = "";
	var amazon_req  = "";
	var amazon_mode = "";
	var amazon_l    = "";

// ―――――――――――――――――――――――――――――――――――――――――――――
function getBrowser(){
	ua = new Object();
	var useragent = navigator.userAgent;

	// ▽ Opera ==> ua.Opera
	if ( useragent.match( /Opera[\/\s](\d+\.\d+)/ ) && RegExp.$1 >= 6 ){ ua.Opera = RegExp.$1; return true; }

	// ▽ Internet Explorer ==> ua.InternetExplorer
	if ( useragent.match( /MSIE (\d+\.\d+);/ ) && RegExp.$1 >= 5 ){ ua.InternetExplorer = RegExp.$1; return true; }

	// ▽ Netscape6 ==> ua.Netscape
	if ( useragent.match( /Netscape6\/(\d+\.\d+)/ ) ){ ua.Netscape = RegExp.$1; return true; }

	// ▽ Mozilla ==> ua.Mozilla
	if ( useragent.match( /^Mozilla\/5\.0.+rv:(\d+\.\d+).+Gecko/ ) && RegExp.$1 >= 1 ){ ua.Mozilla = RegExp.$1; return true; }

	ua.other = 1; return false; 
}
// ―――――――――――――――――――――――――――――――――――――――――――――
function GetCondition(){
	if( ua.InternetExplorer ){
		var width = document.body.clientWidth;
	} else {
		var width = window.innerWidth;
	}

	if( width > 820 ){ Wide_Skyscraper = 1; }
}
// ―――――――――――――――――――――――――――――――――――――――――――――
function HeadSelectNavi( form , select ) {
	url = select.options[select.selectedIndex].value;
	if (url != "-"){ location.href = "http://www.movies.ne.jp/" + url; }
}
// ―――――――――――――――――――――――――――――――――――――――――――――
function HeadTable(){
	if( Wide_Skyscraper ){
		document.write( '<TABLE WIDTH="790" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD WIDTH="250">' );
	} else {
		document.write( '<TABLE WIDTH="610" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD WIDTH="250">' );
	}
}
// ―――――――――――――――――――――――――――――――――――――――――――――
// Skyscraper
function Wide_Skyscraper_Start( type , req , mode , l ){
	if( Wide_Skyscraper ){
		document.write( '<TABLE WIDTH="790" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="center"><TR><TD WIDTH="630" VALIGN="top">' );
	}

	if( req && req.match( /,/ ) ){
		req_array = req.split( "," );
		req = req_array[ Math.floor( Math.random() * ( req_array.length ) ) ];
	}

	amazon_type = ( type ) ? type : "browse";
	amazon_req  = ( req  ) ? req  : "562016";
	amazon_mode = ( mode ) ? mode : "dvd";
	amazon_l    = ( l )    ? l    : "bn1";

}
function Wide_Skyscraper_End(){
	if( Wide_Skyscraper ){
		document.write( '</TD><TD WIDTH="160" VALIGN="top">' );
		if( Ad ){
			document.write( '　' );  // 2回目以降
		} else {
			var src = "http://rcm-jp.amazon.co.jp/e/cm?t=moviesnejp-22&p=14&o=9&l=" + amazon_l + "&" + amazon_type + "=" + amazon_req + "&mode=" + amazon_mode + "-jp&f=ifr";
//			var src = "http://rcm-jp.amazon.co.jp/e/cm?t=moviesnejp-22&p=14&o=9&l=st1&" + amazon_type + "=" + amazon_req + "&mode=" + amazon_mode + "-jp&f=ifr";

			document.write( '<iframe scrolling="no" frameborder="0" width="160" height="600" src="' + src + '">' );
			document.write( '	<table border="0" cellpadding="0" cellspacing="0" width="160" height="600">' );
			document.write( '	<tr><td>' );
			document.write( '		<map name="boxmap14">' );
			document.write( '			<area shape="rect" coords="25,588,134,600" href="http://rcm-jp.amazon.co.jp/e/cm/privacy-policy.html?o=9" alt="プライバシー ポリシー">' );
			document.write( '			<area coords="0,0,10000,10000" href="http://www.amazon.co.jp/exec/obidos/redirect?tag=moviesnejp-22&path=tg/browse/-/489986">' );
			document.write( '		</map>' );
			document.write( '		<img src="http://rcm-images.amazon.com/images/G/09/extranet/associates/amzn_recommends/xproduct-skyscrapper160x600.gif" width="160" height="600" border="0" usemap="#boxmap14">' );
			document.write( '	</td></tr>' );
			document.write( '	</table>' );
			document.write( '</iframe>' );
			Ad = 1;
		}
		document.write( '</TD></TR></TABLE>' );
	}
}
// ―――――――――――――――――――――――――――――――――――――――――――――
function Dialog_Check(){
	var mes = "キャンセルしますか？";
	if ( !window.confirm( mes ) ){ event.returnValue = false; }
}


