/*=============================================
	もってけ！えーじゃっくす
	KAZZ-MATU.JS ver 2.086
=============================================*/
var flash_ver = 9;

/*@cc_on 
var doc = document;
eval('var document = doc');
@*/


/*--------------- [ init functions ] ---------------*/

function addLoadEvent(func)
{
  if(document.getElementById)
  {
    var oldonload = window.onload;
    if (typeof window.onload != 'function')
    {
      window.onload = func;
    }
    else
    {
      window.onload = function()
      {
        oldonload();
        func();
      }
    }
  }
}

function ZoomFlashView(filename,width,height,wmode,obj_id)
{
  var MM_contentVersion = flash_ver;
  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)
  )
  {
    try
    {
      var flashVersion = new ActiveXObject("ShockwaveFlash.ShockwaveFlash").FlashVersion();
      flashVersion = Math.floor(flashVersion / 0x10000);
    }
    catch(e)
    {
      flashVersion = MM_contentVersion;
    }
    var MM_FlashCanPlay = flashVersion >= MM_contentVersion;
  }

  if(MM_FlashCanPlay)
  {
    var obj = document.getElementById(obj_id);
    obj.style.display = 'none';
    var obj_par = obj.parentNode;
    document.write('<div id="swfobject" style="position:absolute;">\n');
    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="' + width + '" height="' + height + '" id="swf">');
    document.write(' <param name="movie" value="' + filename + '" />');
    document.write(' <param name="allowScriptAccess" value="always" />');

    if(wmode == 1)
    {
      document.write(' <param name="wmode" value="transparent" />');
    }
    document.write(' <param name="quality" value="high" />');
    if(wmode == 1)
    {
      document.write(' <embed src="' + filename + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"allowScriptAccess="always" width="' + width + ' " height="' + height + '" wmode="transparent" name="swf"></embed>');
    }
    else
    {
      document.write(' <embed src="' + filename + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowScriptAccess="always" width="' + width + ' " height="' + height + '" name="swf"></embed>');
    }
    document.write('</object>\n');
    document.write('</div>');
    obj_par.removeChild(obj);

  }
  else
  {
    document.write('<p class="error">このコンテンツをご覧になるには、<em><a href="http://www.adobe.com/shockwave/download/index.cgi?Lang=Japanese&amp;P5_Language=Japanese&amp;P1_Prod_Version=ShockwaveFlash&amp;Lang=Japanese">Adobe Flash Player ver.'+MM_contentVersion+'</a> が必要です。</em><br /><a href="http://www.adobe.com/shockwave/download/index.cgi?Lang=Japanese&amp;P5_Language=Japanese&amp;P1_Prod_Version=ShockwaveFlash&amp;Lang=Japanese"><img src="'+SitePath+'/share/images/player.png" alt="Adobe Flash Player" width="158" height="39" /></a></p>');
  }
}

function set_image(p1,p2)
{
  var inner = document.getElementById('inner');
  document.getElementById('v_img').style.display = 'none';
  document.getElementById('swfobject').style.visibility = 'visible';
  var zoom_swf = document.swf||window.swf;
  zoom_swf.setImage(p1.replace(/\|/g, '/'+'')+"/itemimage/", p2);
}

