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 ROM1(){
	document.rm1.src="img/me_01.jpg";
}
function ROM1a(){
	document.rm1.src="img/mea01.jpg";
}
function ROM2(){
	document.rm2.src="img/me_02.jpg";
}
function ROM2a(){
	document.rm2.src="img/mea02.jpg";
}
function ROM3(){
	document.rm3.src="img/me_03.jpg";
}
function ROM3a(){
	document.rm3.src="img/mea03.jpg";
}
function ROM4(){
	document.rm4.src="img/me_04.jpg";
}
function ROM4a(){
	document.rm4.src="img/mea04.jpg";
}
function ROM5(){
	document.rm5.src="img/me_05.jpg";
}
function ROM5a(){
	document.rm5.src="img/mea05.jpg";
}
function ROM6(){
	document.rm6.src="img/me_06.jpg";
}
function ROM6a(){
	document.rm6.src="img/mea06.jpg";
}
function ROM7(){
	document.rm7.src="img/me_07.jpg";
}
function ROM7a(){
	document.rm7.src="img/mea07.jpg";
}
function ROM8(){
	document.rm8.src="img/me_08.jpg";
}
function ROM8a(){
	document.rm8.src="img/mea08.jpg";
}
function CON1(){
	document.con1.src="img/contact1.jpg";
}
function CON1a(){
	document.con1.src="img/contact1a.jpg";
}
function COU1(){
	document.cou1.src="img/cou_01.jpg";
}
function COU1a(){
	document.cou1.src="img/cou_01a.jpg";
}
function TOP1(){
	document.top1.src="img/top1.jpg";
}
function TOP1a(){
	document.top1.src="img/top1a.jpg";
}
function BACK1(){
	document.back1.src="img/back1.jpg";
}
function BACK1a(){
	document.back1.src="img/back1a.jpg";
}

function MORE1(){
	document.more1.src="img/more1.jpg";
}
function MORE1a(){
	document.more1.src="img/more1a.jpg";
}
function MORE2(){
	document.more2.src="img/more1.jpg";
}
function MORE2a(){
	document.more2.src="img/more1a.jpg";
}
function MORE3(){
	document.more3.src="img/more1.jpg";
}
function MORE3a(){
	document.more3.src="img/more1a.jpg";
}
function MORE4(){
	document.more4.src="img/more1.jpg";
}
function MORE4a(){
	document.more4.src="img/more1a.jpg";
}
function MORE5(){
	document.more5.src="img/more1.jpg";
}
function MORE5a(){
	document.more5.src="img/more1a.jpg";
}
function MORE6(){
	document.more6.src="img/more1.jpg";
}
function MORE6a(){
	document.more6.src="img/more1a.jpg";
}

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);
}
