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_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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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 ImgPre()
{
  var appVer=parseInt(navigator.appVersion);
  var isNC=(document.layers && (appVer >= 4));
  var isIE=(document.all    && (appVer >= 4));
  if (isNC || isIE)
  {
    if (document.images)
    {
      var imgName = ImgPre.arguments[0];
      var cnt;
      swImg[imgName] = new Array;
      for (cnt = 1; cnt < ImgPre.arguments.length; cnt++)
      {
        swImg[imgName][ImgPre.arguments[cnt]] = new Image();
        swImg[imgName][ImgPre.arguments[cnt]].src = ImgPre.arguments[cnt];
      }
    }
  }
}
// ImgFind:
//
function ImgFind(doc, imgName)
{
  for (var i=0; i < doc.layers.length; i++)
  {
    var img = doc.layers[i].document.images[imgName];
    if (!img) img = ImgFind(doc.layers[i], imgName);
    if (img) return img;
  }
  return null;
}
// ImgSwap:
//
function ImgSwap(imgName, imgSrc)
{
  var appVer=parseInt(navigator.appVersion);
  var isNC=(document.layers && (appVer >= 4));
  var isIE=(document.all    && (appVer >= 4));
  if (isNC || isIE)
  {
    if (document.images)
    {
      var img = document.images[imgName];
      if (!img) img = ImgFind(document, imgName);
      if (img) img.src = imgSrc;
    }
  }
}

function CloseWin(){
    window.close();
}

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);
}

function ROM1()	{document.rm1.src="img/me_01.gif";}
function ROM1a(){document.rm1.src="img/mea01.gif";}
function ROM2()	{document.rm2.src="img/me_02.gif";}
function ROM2a(){document.rm2.src="img/mea02.gif";}
function ROM3()	{document.rm3.src="img/me_03.gif";}
function ROM3a(){document.rm3.src="img/mea03.gif";}
function ROM4()	{document.rm4.src="img/me_04.gif";}
function ROM4a(){document.rm4.src="img/mea04.gif";}
function ROM5()	{document.rm5.src="img/me_05.gif";}
function ROM5a(){document.rm5.src="img/mea05.gif";}
function ROM6()	{document.rm6.src="img/me_06.gif";}
function ROM6a(){document.rm6.src="img/mea06.gif";}
function ROM7()	{document.rm7.src="img/me_07.gif";}
function ROM7a(){document.rm7.src="img/mea07.gif";}
function ROM8()	{document.rm8.src="img/me_08.gif";}
function ROM8a(){document.rm8.src="img/mea08.gif";}
function ROM9()	{document.rm9.src="img/me_09.gif";}
function ROM9a(){document.rm9.src="img/mea09.gif";}

function TOP1()	{document.top1.src="img/top1.gif";}
function TOP1a(){document.top1.src="img/top1a.gif";}
function UP1()	{document.up1.src="img/up1.gif";}
function UP1a()	{document.up1.src="img/up1a.gif";}
function LIST1()	{document.list1.src="img/list1.gif";}
function LIST1a()	{document.list1.src="img/list1a.gif";}
function MAIN1()	{document.main1.src="img/main1.gif";}
function MAIN1a()	{document.main1.src="img/main1a.gif";}
function MAE1()		{document.mae1.src="img/mae1.gif";}
function MAE1a()	{document.mae1.src="img/mae1a.gif";}
function SAI1()		{document.sai1.src="img/sai1.gif";}
function SAI1a()	{document.sai1.src="img/sai1a.gif";}
function ZEN1()		{document.zen1.src="img/zen1.gif";}
function ZEN1a()	{document.zen1.src="img/zen1a.gif";}
function MORE1()	{document.more1.src="img/more1.gif";}
function MORE1a()	{document.more1.src="img/more1a.gif";}

function KO01()		{document.ko01.src="img/ko01.jpg";}
function KO01a()	{document.ko01.src="img/ko01a.jpg";}
function KO02()		{document.ko02.src="img/ko02.jpg";}
function KO02a()	{document.ko02.src="img/ko02a.jpg";}
function KO03()		{document.ko03.src="img/ko03.jpg";}
function KO03a()	{document.ko03.src="img/ko03a.jpg";}
function KO04()		{document.ko04.src="img/ko04.jpg";}
function KO04a()	{document.ko04.src="img/ko04a.jpg";}
function KO05()		{document.ko05.src="img/ko05.jpg";}
function KO05a()	{document.ko05.src="img/ko05a.jpg";}
function KO06()		{document.ko06.src="img/ko06.jpg";}
function KO06a()	{document.ko06.src="img/ko06a.jpg";}
function KO07()		{document.ko07.src="img/ko07.jpg";}
function KO07a()	{document.ko07.src="img/ko07a.jpg";}
function KO08()		{document.ko08.src="img/ko08.jpg";}
function KO08a()	{document.ko08.src="img/ko08a.jpg";}
function KO09()		{document.ko09.src="img/ko09.jpg";}
function KO09a()	{document.ko09.src="img/ko09a.jpg";}
function KO10()		{document.ko10.src="img/ko10.jpg";}
function KO10a()	{document.ko10.src="img/ko10a.jpg";}
function KO11()		{document.ko11.src="img/ko11.jpg";}
function KO11a()	{document.ko11.src="img/ko11a.jpg";}
function KO12()		{document.ko12.src="img/ko12.jpg";}
function KO12a()	{document.ko12.src="img/ko12a.jpg";}

function BACK1()	{document.back1.src="img/back1.gif";}
function BACK1a()	{document.back1.src="img/back1a.gif";}
function CLOSE1()	{document.close1.src="img/close1.gif";}
function CLOSE1a()	{document.close1.src="img/close1a.gif";}
function CON1()		{document.con1.src="img/contact1.gif";}
function CON1a()	{document.con1.src="img/contact1a.gif";}
function CS1()		{document.cs1.src="img/cs1.gif";}
function CS1a()		{document.cs1.src="img/cs1a.gif";}

