function RunFlash()
{
document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'")
document.write(" codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab'")
document.write("       width=840 height=300>")
document.write("<param name=movie value='main.swf'>")
document.write("<param name=quality value=high>")
document.write("<embed src='main.swf' quality=high  ")
document.write("       width=840 height=300")
document.write("       type='application/x-shockwave-flash' ")
document.write("pluginspage='http://www.macromedia.com/go/getflashplayer'>")
document.write("</embed>")
document.write("</object>")
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

url = 'http://www.maxauto.co.jp/'; // アドレス
name = 'MAX AUTO';         // 登録する時の名前
function bookMark() {
  window.external.addFavorite(url,name);
}

function OpenKInfo(){
  URL="http://car.webplus.ne.jp/URL_Trans_K.asp?id=4140&mCorp=MAX%81%40AUTO&mTo=info%40maxauto%2Eco%2Ejp&mTel=06%2D6472%2D6666&mFlg=0";
  OPT="width=668,height=420"
  Win = window.open(URL,"TransURL",OPT)
}
function OpenMAP(){
  url = 'http://car.webplus.ne.jp/map.asp?ad=%91%E5%8D%E3%95%7B%90%BC%97%84%90%EC%8B%E6%95%9F%92%AC%82R%81%7C%82S%81%7C%82P%82P&ms=MAX%81%40AUTO&tm=metallic07&bg=C0C0C0&nx=487613.070857144&ny=124923.253666666';
  ww = kl_screenwidth();
  hh = kl_screenheight();
  ww = (ww - 420) / 2;
  hh = (hh - 460) / 2;
  window.open(url,'Map_Maint','width=420,height=460,left='+ww+',top='+hh);
}
function kl_screenwidth(avail){
  if(!self["screen"]) return 0;
  if(avail) return (screen.availWidth ? screen.availWidth : 0);
  return screen.width ? screen.width : 0;
}
function kl_screenheight(avail){
  if(!self["screen"]) return 0;
  if(avail) return (screen.availHeight ? screen.availHeight : 0);
  return screen.height ? screen.height : 0;
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
