/* フラッシュ書き出し関数 */
function _flash(_width,_height,_url) {
	_flashSource
	= '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + _width + '" height="' + _height + '">' + "\n"
	+ '<param name="allowScriptAccess" value="sameDomain">' + "\n"
	+ '<param name="movie" value="' + _url + '">' + "\n"
	+ '<param name="quality" value="high">' + "\n"
	+ '<embed src="' + _url + '" quality="high" width="' + _width + '" height="' + _height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">' + "\n"
	+ '</object>' + "\n"; // + '</xmp>';
	
	document.write(_flashSource);
}

/* 背景透過フラッシュ書き出し関数 */
function _transparentFlash(_width,_height,_url) {
	_flashSource
	= '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + _width + '" height="' + _height + '" id="zenkoku_map" align="middle">' + "\n"
	+ '<param name="allowScriptAccess" value="sameDomain" />' + "\n"
	+ '<param name="movie" value="' + _url + '" />' + "\n"
	+ '<param name="quality" value="high" />' + "\n"
	+ '<param name="wmode" value="transparent" />' + "\n"
	+ '<param name="bgcolor" value="#ffffff" />' + "\n"
	+ '<embed src="' + _url + '" quality="high" wmode="transparent" bgcolor="#ffffff" width="' + _width + '" height="' + _height + '" name="zenkoku_map" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' + "\n"
	+ '</object>';
	
	document.write(_flashSource);
}

/* クリックランキング タブ切り替え */
function rankingSwich(mode) {
	document.getElementById('ranking0girl').style.display = 'none';
	document.getElementById('ranking0shop').style.display = 'none';
	document.getElementById('ranking0'+mode).style.display = 'block';
}

/*** 通常：【 CAST一覧からの詳細ウインドウを固定サイズで開く 】 ***/
function _WindowOpen(url,name) {
	window.open('/index.php/module/Count/action/Step/ranking/1/cast_id/'+url,name,'resizable=yes,scrollbars=yes,width=790,height=915');
}

function _cabible() {
	x=(screen.availWidth/2)-300;
	y=(screen.availHeight/2)-250;
	window.open('http://nightstyle.jp/index.php?module=Banner&action=Step&banner_id=9766','cabible','location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=500,left='+x+',top='+y);
}

/*  */
function _bannerSource(_w,_h,_type) {
	document.getElementById('bannerSource').value =
	'<a href="http://nightstyle.jp/"><img src="http://www.nightstyle.jp/img/banner/banner_'+_w+'x'+_h+'_0'+_type+'.gif" width="'+_w+'" height="'+_h+'" alt="キャバクラ満載！ナイトスタイル"></a>';
}

