
//windowオープン
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

//imageプリロード
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];}}
}

//meイメージ入れ替え
function cngimg(n){
	var imgsrc = document.images[n].src;
	var ext = imgsrc.substring(imgsrc.lastIndexOf("."), imgsrc.length);
	
	if(imgsrc.indexOf("-on") < 0){
		document.images[n].src=imgsrc.substring(0,imgsrc.length-ext.length) + "-on" + ext;
	}
	else{
		document.images[n].src=imgsrc.substring(0,imgsrc.length-ext.length-3) + ext;
	}
}

//画像入れ替え
function _HpbImgSwap(imgName, imgSrc)
{
  var appVer=parseInt(navigator.appVersion);
  var isNC=false,isN6=false,isIE=false;
  if (document.all && appVer >= 4) isIE=true; else
    if (document.getElementById && appVer > 4) isN6=true; else
      if (document.layers && appVer >= 4) isNC=true;
  if (isNC||isN6||isIE)
  {
    if (document.images)
    {
      var img = document.images[imgName];
      if (!img) img = _HpbImgFind(document, imgName);
      if (img) img.src = imgSrc;
    }
  }
}


//確認メッセージ表示
function chk_confirm_(){ 
	if(window.confirm("よろしいですか？")){
	return true;
	} 
	else{
	return false;
	} 
} 



//FLASH表示
function run_flash_top(){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="730" height="270">');
	document.write('<param name=movie value="img/flash/top.swf">');
	document.write('<param name="play" value="true">');
	document.write('<param name="loop" value="false">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="wmode" value="transparent"/>');
	document.write('<embed src="img/flash/top.swf" width="730" height="270" type="application/x-shockwave-flash">');
	document.write('</object>');
}

//FLASH表示
function run_flash_shopping(){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="500" height="100">');
	document.write('<param name=movie value="img/flash/shopping.swf">');
	document.write('<param name="play" value="true">');
	document.write('<param name="loop" value="false">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="wmode" value="transparent"/>');
	document.write('<embed src="img/flash/shopping.swf" width="500" height="100" type="application/x-shockwave-flash">');
	document.write('</object>');
}

//FLASH表示
function run_flash_shopping_banner(){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="226" height="100">');
	document.write('<param name=movie value="img/flash/shopping_banner.swf">');
	document.write('<param name="play" value="true">');
	document.write('<param name="loop" value="false">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="wmode" value="transparent"/>');
	document.write('<embed src="img/flash/shopping_banner.swf" width="226" height="100" type="application/x-shockwave-flash">');
	document.write('</object>');
}




