/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
try {
	document.execCommand('BackgroundImageCache',false,true);
} catch(e) {}

	var preLoadFlag = "false";

	function preLoadImg(URL){
		

		arrImgList = new Array (
			URL+"gnavi_apparel.gif",URL+"gnavi_apparel_on.gif",
			URL+"gnavi_books.gif",URL+"gnavi_books_on.gif",
			URL+"gnavi_cd.gif",URL+"gnavi_cd_on.gif",
			URL+"gnavi_dvd.gif",URL+"gnavi_dvd_on.gif",
			URL+"gnavi_goods.gif",URL+"gnavi_goods_on.gif",
			URL+"gnavi_vhs.gif",URL+"gnavi_vhs_on.gif",	
			URL+"nav_g_anime.gif",URL+"nav_g_anime_o.gif",	
			URL+"nav_g_animo.gif",URL+"nav_g_animo_o.gif",	
			URL+"nav_g_movie.gif",URL+"nav_g_movie_o.gif",	
			URL+"nav_g_shop.gif",URL+"nav_g_shop_o.gif",	
			URL+"ico_tab_title.gif",
			URL+"bg_tab01.gif",
			URL+"bg_tab02.gif",
			URL+"bg_tab03.gif",
			URL+"bg_tab04.gif",
			URL+"bg_tab05.gif",
			URL+"bg_tab06.gif",
			URL+"bg_tab07.gif",
			URL+"bg_tab08.gif",
			URL+"bg_tab09.gif"
		);
		arrPreLoad = new Array();
		for (i in arrImgList) {
			arrPreLoad[i] = new Image();
			arrPreLoad[i].src = arrImgList[i];
		}
		preLoadFlag = "true";
	}

	function chgImgSp(fileName,img){
			img.src = fileName;
	}
	
	function chgImg(fileName,imgName){
			document.images[imgName].src = fileName;
	}
	
	function chgImgImageSubmit(fileName,imgObj){
	imgObj.src = fileName;
	}
	
	// サブナビの表示切替
	function naviStyleChange(ids, bcColor, color){
		document.getElementById(ids).style.backgroundColor = bcColor;
	}	


	
