
////////////////////////ポップアップウィンドウ////////////////////////
function popwin(talent) { 
	var url="talent/"+talent+"/";
	var option="scrollbars=yes,width=700,height=480";
	window.open(url,'',option);
}

function audition(url) { 
var info;
if(url!="info"){
 allurl="/form/entry/entry.cgi?"+url;
}else{
 allurl="/form/entry/newinfo.cgi"
 }
  window.open(allurl,'','scrollbars=yes,resizable=yes,width=590,height=580');
}

////////////////////////プラグインチェック////////////////////////
var MM_contentVersion = 6;

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if(plugin){
  var words = navigator.plugins["Shockwave Flash"].description.split(" ");
      for (var i = 0; i < words.length; ++i){
	      if(isNaN(parseInt(words[i])))continue;
	      var MM_PluginVersion = words[i];
      }
  var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}else if(navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0&& (navigator.appVersion.indexOf("Win") != -1)) {
			  document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
			  document.write('on error resume next \n');
			  document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
			  document.write('</SCR' + 'IPT\> \n');
}

////////////////////////Flash書き出し////////////////////////
function flash(filepath,w,h){
if( MM_FlashCanPlay ) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+MM_contentVersion+',0,0,0" width="'+w+'" height="'+h+'" align="top">');
	document.write('<param name="movie" value="'+filepath+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="loop" value="false">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="scale" value="noscale">');
	document.write('<param name="salign" value="LT">');
	document.write('<param name="bgcolor" value="#ffffff">');
	document.write('<embed src="'+filepath+'" width="'+w+'" height="'+h+'" align="top" quality="high" loop="false" menu="false" scale="noscale" salign="LT" bgcolor="#FFFFFF" pluginspage="http://www.macromedia.com/shockwave/download/download.cgi?P5_Language=Japanese&Lang=Japanese&P1_Prod_Version=ShockwaveFlash&Lang=Japanese" type="application/x-shockwave-flash"></embed>');
	document.write('</object>');
}else{
    document.write('<img src="dammy2.jpg" height="532" width="923" alt="">');
    document.write('<p>※<strong>FlashPlayerバージョン '+MM_contentVersion+'以上</strong>をインストールしてから、ご覧ください。</p>');
    document.write('<p><a href="http://www.macromedia.com/shockwave/download/download.cgi?P5_Language=Japanese&Lang=Japanese&P1_Prod_Version=ShockwaveFlash&Lang=Japanese">→インストールはこちらから</a></p>');
}
}
