baseHref = '/amexpt';

////////////////////////////////////////////////////////////////////////////////////////////
// イメージPreload Script
////////////////////////////////////////////////////////////////////////////////////////////

function doPreload()
{
 var the_images = new Array(

'' + baseHref +'/img/tab_products_f2.gif',
'' + baseHref +'/img/tab_moshikomi_f2.gif',
'' + baseHref +'/img/tab_online_f2.gif',
'' + baseHref +'/img/tab_menu_f2.gif',
'' + baseHref +'/img/tab_cd_atm_f2.gif',
'' + baseHref +'/img/btn_simu02.gif',
'' + baseHref +'/img/sidebtn_moshikomi02.gif',
'' + baseHref +'/img/smenu_b01_f2.gif',
'' + baseHref +'/img/smenu_b02_f2.gif',
'' + baseHref +'/img/smenu_b03_f2.gif',
'' + baseHref +'/img/smenu_b04_f2.gif',
'' + baseHref +'/img/smenu_b05_f2.gif',
'' + baseHref +'/img/com_ic001o.gif',
'' + baseHref +'/img/com_ic002o.gif',


'' + baseHref +'/img/common/ico_on_f2.gif',
'' + baseHref +'/img/common/b_feature02_f2.gif',
'' + baseHref +'/img/common/b_feature03_f2.gif',
'' + baseHref +'/img/common/b_feature04_f2.gif',
'' + baseHref +'/img/common/b_feature05_f2.gif',
'' + baseHref +'/img/common/b_feature01_f2.gif',

'' + baseHref +'/img/common/b05_f2.gif',
'' + baseHref +'/img/common/b07_f2.gif',
'' + baseHref +'/img/common/b08_f2.gif',

'' + baseHref +'/img/common/b_p/b_p101_f2.gif',
'' + baseHref +'/img/common/b_p/b_p102_f2.gif',
'' + baseHref +'/img/common/b_p/b_p103_f2.gif',
'' + baseHref +'/img/common/b_p/b_p104_f2.gif',
'' + baseHref +'/img/common/b_p/b_p201_f2.gif',
'' + baseHref +'/img/common/b_p/b_p202_f2.gif',
'' + baseHref +'/img/common/b_p/b_p203_f2.gif',
'' + baseHref +'/img/common/b_p/b_p204_f2.gif',
'' + baseHref +'/img/common/b_p/b_p205_f2.gif',
'' + baseHref +'/img/common/b_p/b_p206_f2.gif',
'' + baseHref +'/img/common/b_p/b_p207_f2.gif',
'' + baseHref +'/img/common/b_p/b_p301_f2.gif',
'' + baseHref +'/img/common/b_p/b_p303_f2.gif',
'' + baseHref +'/img/common/b_p/b_p304_f2.gif',
'' + baseHref +'/img/common/b_p/b_p401_f2.gif',
'' + baseHref +'/img/common/b_p/b_p402_f2.gif',
'' + baseHref +'/img/common/b_p/b_p403_f2.gif',
'' + baseHref +'/img/common/b_p/b_p404_f2.gif',
'' + baseHref +'/img/common/b_p/b_p405_f2.gif',
'' + baseHref +'/img/common/b_p/b_p406_f2.gif',
'' + baseHref +'/img/common/b_p/b_p407_f2.gif',
'' + baseHref +'/img/common/b_p/b_p409_f2.gif',

'' + baseHref +'/img/common/ico_on_f2.gif',
'' + baseHref +'/common/img/arrow_f2.gif',
'' + baseHref +'/common/img/arrow_up_f2.gif'


);
preloadImages(the_images);
}

function preloadImages(the_images_array) {

for(loop = 0; loop < the_images_array.length; loop++)
{
var an_image = new Image();
an_image.src = the_images_array[loop];
}
}





////////////////////////////////////////////////////////////////////////////////////////////
// サイドメニューScript
////////////////////////////////////////////////////////////////////////////////////////////


// サイドメニューScript
	//画像のファイル名を指定して下さい
	//(閉まっているフォルダが、folder1.gif・開いているフォルダが、folder2.gifとなります。
imagefile = new Array("' + baseHref +'/img/common/b_submenu.gif", "' + baseHref +'/img/common/b_submenu_f2.gif");
	//画像をキャッシュします
image = new Array(imagefile.length);
for(count = 0; count < (imagefile.length - 1); count++){
	image[count] = new Image();
	image[count].src = imagefile[count];
}

function ImageChange(id){
	if(window.document.images[id].src.indexOf(imagefile[0]) != -1){
		window.document.images[id].src  = imagefile[1];
	}else{
		window.document.images[id].src  = imagefile[0];
	}
}

function Display(id){
	if(document.all){
		if(document.all(id).style.display == "block"){
			document.all(id).style.display = "none";
		}else if(document.all(id).style.display == "none"){
			document.all(id).style.display = "block";
		}
	}else if(document.getElementById){
		if(document.getElementById(id).style.display == "block"){
			document.getElementById(id).style.display = "none";
		}else if(document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = "block";
		}
	}
}




////////////////////////////////////////////////////////////////////////////////////////////
// スワップイメージ＆OpenWinddow Script
////////////////////////////////////////////////////////////////////////////////////////////

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.01
  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 && d.getElementById) x=d.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 MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
