//========================================================================//
// アサヒビール スクリプト                                                //
//========================================================================//

function ASAHIBEER_isUnicodeBrouser()
{
   var result = 0 - 0;
   var brouserUserAgent = new String( navigator.userAgent );
   if ( brouserUserAgent.indexOf( "MSIE" ) != -1 && brouserUserAgent.indexOf( "4.5" ) != -1 && brouserUserAgent.indexOf( "Mac" ) != -1 )
      result = 1 - 0;
   return result;
}

function ASAHIBEER_isMozilla3Brouser()
{
   var result = 0 - 0;
   var brouserUserAgent = new String( navigator.userAgent );
   if ( brouserUserAgent.indexOf( "Mozilla/3" ) != -1 )
      result = 1 - 0;
   return result;
}

var GLOBAL_ASAHIBEER_popupWindow = null;
function ASAHIBEER_popupWindowOpen( url, width, height )
{
   if ( url.indexOf( "http://" ) == -1 )
   {
      url = ASAHIBEER_hrefRoot + url;
   }

   //width  = 278;
   // var height = 520;

   if ( GLOBAL_ASAHIBEER_popupWindow )
   {
      if ( GLOBAL_ASAHIBEER_popupWindow.closed == false )
      {
         GLOBAL_ASAHIBEER_popupWindow.close();
      }
   }
   var attrib = "width=" + width + ",height=" + height + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no";
   while ( GLOBAL_ASAHIBEER_popupWindow == null || GLOBAL_ASAHIBEER_popupWindow.closed == true )
   {
      GLOBAL_ASAHIBEER_popupWindow = open( url, "POPUP_WINDOW", attrib );
   }
}

function ASAHIBEER_openerHref( url )
{
   if ( url.indexOf( "http://" ) == -1 )
      url = ASAHIBEER_hrefRoot + url;
   opener.top.location.href = url;
   self.close();
}

function ASAHIBEER_pageHref( url )
{
   if ( url.indexOf( "http://" ) == -1 )
      url = ASAHIBEER_hrefRoot + url;
   top.location.href = url;
}

//------------------------------------------------------------------------//
// ウインドウサイズの差異を取得                                           //
//------------------------------------------------------------------------//
function ASAHIBEER_getWidthDef()
{
   var width = 760;
   var current_width = 0;
   if ( is_ie() || is_gecko() )
      current_width = document.body.clientWidth;
   else
      current_width = innerWidth;
   var def = ( current_width - width ) / 2;
   if ( def <= 0 ) def = 0;
   return Math.round( def );
}

//========================================================================//
// マクロメディア ビヘイビアスクリプト                                    //
//========================================================================//

function MM_swapImgRestore_v3()
{
  var i, x, a = document.MM_sr;
  for(i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++)
  {
     x.src=x.oSrc;
  }
}

function MM_preloadImages_v3()
{
  var d = document;
  if(d.images)
  {
     if(!d.MM_p)
     {
        d.MM_p=new Array();
     }
     var i, j = d.MM_p.length, a = MM_preloadImages_v3.arguments;
     for(i = 0; i < a.length; i++)
     {
        if (a[i].indexOf("#") != 0)
        {
           d.MM_p[j] = new Image;
           d.MM_p[j++].src = a[i];
        }
     }
  }
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// 公開・確認サイト間URLマッピングフレームワーク

var ASAHIBEER_locationHref = new String(location.href);
var ASAHIBEER_hrefRoot = "http://www.asahibeer.co.jp/";
var ASAHIBEER_imageRoot = "http://www.asahibeer.co.jp/";
if (ASAHIBEER_locationHref.indexOf("/pre_open/asahibeer") != -1)
{
   ASAHIBEER_hrefRoot = "/pre_open/asahibeer/";
   ASAHIBEER_imageRoot = "/pre_open/asahibeer/";
}
else if (ASAHIBEER_locationHref.indexOf("http://sub.asahibeer.co.jp") != -1)
{
   ASAHIBEER_hrefRoot = "http://sub.asahibeer.co.jp/";
   ASAHIBEER_imageRoot = "http://sub.asahibeer.co.jp/";
}

//========================================================================//
// キャンペーン応募フォーム　ポップアップウィンドウ                       //
//========================================================================//
var win;
function popupwindow( url )
{
	if( url != "" ) {
		win = window.open(url,"popupwindow","status=1,resizable=1,scrollbars=1,toolbar=0,directories=0,scrolling=1,menubar=0,location=1,width=740,height=700,")
		win.focus();
	}
}


//========================================================================//
// wine.comポップアップ                                                   //
//========================================================================//
function subWin1(a){
sub1=window.open(a,"sub","status=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=700,height=620")
sub1.focus();
}

//========================================================================//
// バージョン判別                                                         //
//========================================================================//
function is_major() { return parseInt( navigator.appVersion ) }
function is_minor() { return parseFloat( navigator.appVersion ) }
//========================================================================//
// ブラウザ                                                               //
//========================================================================//
// インターネットエクスプローラ系                                         //
//------------------------------------------------------------------------//
function is_ie()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "msie" ) != -1 ) && ( agt.indexOf( "opera" ) == -1 ) );
}
function is_ie3() { return ( is_ie() && ( is_major() < 4 ) ) }
function is_ie4()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( is_ie() && ( is_major() == 4 ) && ( agt.indexOf( "msie 4" ) != -1 ) );
}
function is_ie4up() { return ( is_ie() && ( is_major() >= 4 ) ) }
function is_ie5()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( is_ie() && ( is_major() == 4 ) && ( agt.indexOf( "msie 5.0" ) != -1 ) );
}
function is_ie5_5()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( is_ie() && ( is_major() == 4 ) && ( agt.indexOf( "msie 5.5" ) != -1 ) );
}
function is_ie5up()   { return ( is_ie() && !is_ie3() && !is_ie4()  ) }
function is_ie5_5up() { return ( is_ie() && !is_ie3() && !is_ie4() && !is_ie5() ) }
function is_ie6()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( is_ie() && ( is_major() == 4 ) && ( agt.indexOf( "msie 6." ) != -1 ) );
}
function is_ie6up() { return ( is_ie() && !is_ie3() && !is_ie4() && !is_ie5() && !is_ie5_5() ) }
//------------------------------------------------------------------------//
// ネットスケープ系                                                       //
//------------------------------------------------------------------------//
function is_nav()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( 'mozilla' ) != -1 ) && ( agt.indexOf( 'spoofer' ) == -1 )
             && ( agt.indexOf( 'compatible' ) == -1 ) && ( agt.indexOf( 'opera' ) == -1 )
             && ( agt.indexOf( 'webtv' ) == -1 ) && ( agt.indexOf( 'hotjava' ) == -1 ) );
}
function is_nav2()   { return ( is_nav() && ( is_major() == 2 ) ) }
function is_nav3()   { return ( is_nav() && ( is_major() == 3 ) ) }
function is_nav4()   { return ( is_nav() && ( is_major() == 4 ) ) }
function is_nav4up() { return ( is_nav() && ( is_major() >= 4) ) }
function is_navonly()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( is_nav() && ( ( agt.indexOf( ";nav" ) != -1) || ( agt.indexOf( "; nav" ) != -1 ) ) );
}
function is_nav6()   { return ( is_nav() && ( is_major() == 5 ) ) }
function is_nav6up() { return ( is_nav() && ( is_major() >= 5 ) ) }
function is_gecko()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( 'gecko' ) != -1 );
}
//------------------------------------------------------------------------//
// AOL系                                                                  //
// 既知のバグ: AOL4 では IE3 が組み込まれている場合や最初に開かれた       //
// ブラウザウィンドウである場合には false を返します。であるから、        //
// is_aol, is_aol3,is_aol4 は 100% 信頼できるものではありません。         //
//------------------------------------------------------------------------//
function is_aol()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "aol" ) != -1 );
}
function is_aol3() { return ( is_aol() && is_ie3() ) }
function is_aol4() { return ( is_aol() && is_ie4() ) }
function is_aol5()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "aol 5" ) != -1 );
}
function is_aol6()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "aol 6" ) != -1 );
}
//------------------------------------------------------------------------//
// オペラ系                                                               //
//------------------------------------------------------------------------//
function is_opera()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "opera" ) != -1 );
}
function is_opera2()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf("opera 2") != -1 || agt.indexOf( "opera/2" ) != -1);
}
function is_opera3()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf("opera 3") != -1 || agt.indexOf( "opera/3" ) != -1);
}
function is_opera4()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf("opera 4") != -1 || agt.indexOf( "opera/4" ) != -1);
}
function is_opera5()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf("opera 5") != -1 || agt.indexOf( "opera/5" ) != -1);
}
function is_opera5up() { return ( is_opera() && !is_opera2() && !is_opera3() && !is_opera4() ) }
//------------------------------------------------------------------------//
// その他                                                                 //
//------------------------------------------------------------------------//
function is_webtv()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "webtv" ) != -1);
}
function is_TVNavigator()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "navio" ) != -1 ) || ( agt.indexOf( "navio_aoltv" ) != -1) );
}
function is_AOLTV() { return is_TVNavigator() }
function is_hotjava()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "hotjava" ) != -1 );
}
function is_hotjava3()   { return ( is_hotjava() && ( is_major() == 3 ) ) }
function is_hotjava3up() { return ( is_hotjava() && ( is_major() >= 3 ) ) }
function subWin1(a){
sub1=window.open(a,"sub","status=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=700,height=620")
sub1.focus();
}
//========================================================================//
// ジャバスクリプトのバージョン                                           //
//========================================================================//
function is_js()
{
   var is_js;
   if ( is_nav2() || is_ie3() ) is_js = 1.0;
   else if ( is_nav3() )        is_js = 1.1;
   else if ( is_opera5up() )    is_js = 1.3;
   else if ( is_opera() )       is_js = 1.1;
   else if ( ( is_nav4() && ( is_minor() <= 4.05 ) ) || is_ie4() ) is_js = 1.2;
   else if ( ( is_nav4() && ( is_minor() >  4.05 ) ) || is_ie5() ) is_js = 1.3;
   else if ( is_hotjava3up() ) is_js = 1.4;
   else if ( is_nav6() || is_gecko() ) is_js = 1.5;
   // 注: 将来的には、新しいバージョンのJSが出たらこのコードを更新します。
   // 今のところ、将来のバージョンの Nav や IE が"少なくとも" JS 1.x 互換
   // であることを示します。JS バージョン互換のチェックには常に > や >=
   // を使用するようにしてください。
   else if ( is_nav6up() ) is_js = 1.5;
   // 注: マックでの ie5up は 1.4
   else if ( is_ie5up() ) is_js = 1.3
   // HACK: 他のブラウザは分かりません。JS バージョンチェックは > や>= で。
   else is_js = 0.0;
   if ( is_mac() && is_ie5up() ) is_js = 1.4;
   return is_js;
}
//========================================================================//
// プラットフォーム                                                       //
//========================================================================//
// WINDOWS                                                                //
//------------------------------------------------------------------------//
function is_win()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "win" ) != -1 ) || ( agt.indexOf( "16bit" ) != -1 ) );
}
// 注: Opera 3.0 では Win32 環境全てでユーザエージェント文字列に "Windows 95/NT4"
// が含まれており、Win95 と WinNT の区別が出来ません。
function is_win95()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "win95" ) != -1 ) || ( agt.indexOf( "windows 95" ) != -1 ) );
}
// 16 bit バージョンと思われる。
function is_win16()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "win16" )          != -1 ) ||
            ( agt.indexOf( "16bit" )          != -1 ) ||
            ( agt.indexOf( "windows 3.1" )    != -1 ) ||
            ( agt.indexOf( "windows 16-bit" ) != -1 ) );
}
function is_win31()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "windows 3.1" )    != -1 ) ||
            ( agt.indexOf( "win16" )          != -1 ) ||
            ( agt.indexOf( "windows 16-bit" ) != -1 ) );
}
function is_winme()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "win 9x 4.90" ) != -1 ) );
}
function is_win2k()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "windows nt 5.0" ) != -1 ) );
}
function is_winxp()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "windows nt 5.1" ) != -1 ) );
}
// 注: Win98 の信頼できる判断法は存在しないようです。次のようだから:
//      - Nav4.x 以前ではユーザエージェントで "Windows" だけしか得られない。
//      - Win98 上の Mercury では 32 bit バージョンは "Win98" を返すが、
//        16 bit バージョンは "Win95" を返す。
function is_win98()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "win98" ) != -1 ) || ( agt.indexOf( "windows 98" ) != -1 ) );
}
function is_winnt()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "winnt" ) != -1 ) || ( agt.indexOf( "windows nt" ) != -1 ) );
}
function is_win32()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( is_win95() || is_winnt() || is_win98 ||
            ( ( is_major() >= 4 ) && ( navigator.platform == "Win32" ) ) ||
            ( agt.indexOf( "win32" ) != -1 ) || ( agt.indexOf( "32bit" ) != -1 ) );
}
//------------------------------------------------------------------------//
// MACINTOSH                                                              //
//------------------------------------------------------------------------//
function is_mac()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "mac" ) != -1 );
}
function is_mac68k()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( is_mac() && ( ( agt.indexOf( "68k" ) != -1 ) ||
            ( agt.indexOf( "68000" ) != -1 ) ) );
}
function is_macpcc()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( is_mac() && ( ( agt.indexOf( "ppc" ) != -1 ) || ( agt.indexOf( "powerpc" ) != -1 ) ) );
}
//------------------------------------------------------------------------//
// OS2                                                                    //
//------------------------------------------------------------------------//
function is_os2()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "os/2" ) != -1 ) ||
            ( navigator.appVersion.indexOf( "OS/2" ) != -1) ||
            ( agt.indexOf( "ibm-webexplorer" ) != -1 ) );
}
//------------------------------------------------------------------------//
// LINUX                                                                  //
//------------------------------------------------------------------------//
function is_linux()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "linux" ) != -1 );
}
//------------------------------------------------------------------------//
// UNIX( SUN )                                                            //
//------------------------------------------------------------------------//
function is_sun()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "sunos" ) != -1 );
}
function is_sun4()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "sunos 4" ) != -1 );
}
function is_sun5()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "sunos 5" ) != -1 );
}
function is_suni86()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( is_sun() && ( agt.indexOf( "i86" ) != -1 ) );
}
//------------------------------------------------------------------------//
// UNIX( SGI )                                                            //
//------------------------------------------------------------------------//
function is_irix()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "irix" ) != -1 );
}
function is_irix5()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "irix 5" ) != -1 );
}
function is_irix6()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "irix 6" ) !=-1 ) || ( agt.indexOf( "irix6" ) !=-1 ) );
}
//------------------------------------------------------------------------//
// UNIX( HP-UX )                                                          //
//------------------------------------------------------------------------//
function is_hpux()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "hp-ux" ) != -1 );
}
function is_hpux9()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( is_hpux() && ( agt.indexOf( "09." ) != -1 ) );
}
function is_hpux10()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( is_hpux() && ( agt.indexOf( "10." ) != -1 ) );
}
//------------------------------------------------------------------------//
// UNIX( IBM-AIX )                                                        //
//------------------------------------------------------------------------//
function is_aix()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "aix" ) != -1 );
}
function is_aix1()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "aix 1" ) != -1 );
}
function is_aix2()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "aix 2" ) != -1 );
}
function is_aix3()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "aix 3" ) != -1 );
}
function is_aix4()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "aix 4" ) != -1 );
}
//------------------------------------------------------------------------//
// UNIXその他                                                             //
//------------------------------------------------------------------------//
function is_sco()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "sco" ) != -1 ) || ( agt.indexOf( "unix_sv" ) != -1 );
}
function is_unixware()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "unix_system_v" ) != -1 );
}
function is_mpras()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "ncr" ) != -1 );
}
function is_reliant()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "reliantunix" ) != -1 );
}
function is_dec()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "dec" )       != -1 ) || ( agt.indexOf( "osf1" )         != -1) ||
            ( agt.indexOf( "dec_alpha" ) != -1 ) || ( agt.indexOf( "alphaserver" )  != -1) ||
            ( agt.indexOf( "ultrix" )    != -1 ) || ( agt.indexOf( "alphastation" ) != -1 ) );
}
function is_sinix()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "sinix" ) != -1 );
}
function is_freebsd()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "freebsd" ) != -1 );
}
function is_bsd()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( agt.indexOf( "bsd" ) != -1 );
}
function is_unix()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "x11" ) != -1 ) || is_sun() || is_irix() || is_hpux() ||
              is_sco() || is_unixware() || is_mpras() || is_reliant() ||
              is_dec() || is_sinix() || is_aix() || is_linux() || is_bsd() || is_freebsd() );
}
function is_vms()
{
   var agt = navigator.userAgent.toLowerCase();
   return ( ( agt.indexOf( "vax" ) != -1 ) || ( agt.indexOf( "openvms" ) != -1 ) );
}


//------------------------------------------------------------------------//
// フッタ用 a:hover指定                                                    //
//------------------------------------------------------------------------//
		function foothover(arg){
			arg.style.color="#DD0000";
		}
		function footout(arg){
			arg.style.color="#1A3181";
		}
		
//------------------------------------------------------------------------//
// ポップアップウインドウ用                                               //
//------------------------------------------------------------------------//

var win;
function pop_w400_h480( url )
{
	if( url != "" ) {
		win = window.open(url,"pop_w400_h480","status=1,resizable=1,scrollbars=1,toolbar=0,directories=0,scrolling=1,menubar=0,location=1,width=400,height=480,")
		win.focus();
	}
}
function pop_w400_h500( url )
{
	if( url != "" ) {
		win = window.open(url,"pop_w400_h500","status=0,resizable=1,scrollbars=1,toolbar=0,directories=0,menubar=0,location=1,width=400,height=500,")
		win.focus();
	}
}
function pop_w700_h500( url )
{
	if( url != "" ) {
		win = window.open(url,"pop_w700_h500","status=1,resizable=1,scrollbars=1,toolbar=0,menubar=0,location=1,width=700,height=500,")
		win.focus();
	}
}
function pop_w700_h530( url )
{
	if( url != "" ) {
		win = window.open(url,"pop_w700_h530","status=1,resizable=1,scrollbars=1,toolbar=0,menubar=0,location=1,width=700,height=530,")
		win.focus();
	}
}
function pop_w740_h700( url )
{
	if( url != "" ) {
		win = window.open(url,"pop_w740_h700","status=1,resizable=1,scrollbars=1,toolbar=0,directories=0,scrolling=1,menubar=0,location=1,width=740,height=700,")
		win.focus();
	}
}
function pop_w900_h500( url )
{
	if( url != "" ) {
		win = window.open(url,"pop_w900_h500","status=1,resizable=1,scrollbars=1,toolbar=0,menubar=0,location=1,width=900,height=500,")
		win.focus();
	}
}



//------------------------------------------------------------------------//
// ブライトコーブ動画ポップアップウインドウ用　4種類                                               //
//------------------------------------------------------------------------//

var win;
function movie_pop_tab( url )
{
	if( url != "" ) {
		win = window.open(url,"movie_pop_tab","status=0,resizable=0,scrollbars=0,toolbar=0,directories=0,scrolling=0,menubar=0,location=0,width=966,height=546,")
		win.focus();
	}
}
function movie_pop_compact_tab( url )
{
	if( url != "" ) {
		win = window.open(url,"movie_pop_compact_tab","status=0,resizable=0,scrollbars=0,toolbar=0,directories=0,scrolling=0,menubar=0,location=0,width=798,height=503,")
		win.focus();
	}
}
function movie_pop_single( url )
{
	if( url != "" ) {
		win = window.open(url,"movie_pop_single","status=0,resizable=0,scrollbars=0,toolbar=0,directories=0,scrolling=0,menubar=0,location=0,width=492,height=490,")
		win.focus();
	}
}

function movie_pop_wide( url )
{
	if( url != "" ) {
		win = window.open(url,"movie_pop_single","status=0,resizable=0,scrollbars=0,toolbar=0,directories=0,scrolling=0,menubar=0,location=0,width=650,height=630,")
		win.focus();
	}
}


//------------------------------------------------------------------------//
// J-stream CM Script                                                    //
//------------------------------------------------------------------------//
function SWindow(Aurl,Aname,Awidth,Aheight,Atoolbar,Alocation,Astatus,Ascroll,Amenu,Aresize){
	Astr = "width=" + Awidth;
	Astr+= ",height=" + Aheight;
	if(Atoolbar)Astr+= ",toolbar";
	if(Alocation)Astr+= ",location";
	if(Astatus)Astr+= ",status";
	if(Ascroll)Astr+= ",scrollbars";
	if(Amenu)Astr+= ",menubar";
	if(Aresize)Astr+= ",resizable";
	window.open(Aurl,Aname,Astr);
}

//------------------------------------------------------------------------//
// ファビコン設置（現在は不使用）                                         //
//------------------------------------------------------------------------//
//document.write('<link rel="shortcut icon" href="/favicon.ico">');

//------------------------------------------------------------------------//
// ファビコン振り分け                                    //
//------------------------------------------------------------------------//
 
 if(window.location.pathname.indexOf("/enjoy/wine/") != -1){ // 文字列に「/enjoy/wine/」が含まれている場合
 	document.write('<link rel="shortcut icon" href="/favicon/wine_favicon.ico">');
 }
 else{ // 通常URLの場合はデフォルト表示
 	document.write('<link rel="shortcut icon" href="/favicon/favicon.ico">');
 }
//------------------------------------------------------------------------//
