	var preLoadFlag = "false";

	function preLoadImg(){
		arrImgList = new Array (
			"/img/button/b_login_on.gif","/img/button/b_gift_regist_on.gif","/img/button/b_cart_on.gif","/img/button/b_cart_on.gif",
			"/img/button/b_delete_on.gif","/img/button/b_pageback_on.gif","/img/button/b_next_cart_on.gif","/img/button/b_agree_on.gif",
			"/img/button/b_login02_on.gif","/img/button/b_back_on.gif","/img/button/b_back_on.gif","/img/button/b_orderconfirm_on.gif"
		);
		arrPreLoad = new Array();
		for (i in arrImgList) {
			arrPreLoad[i] = new Image();
			arrPreLoad[i].src = arrImgList[i];
		}
		preLoadFlag = "true";
	}

	function chgImg(fileName,imgName){
		if (preLoadFlag == "true") {
			document.images[imgName].src = fileName;
		}
	}


	function chgImgImageSubmit(fileName,imgObj){
		imgObj.src = fileName;
	}

	// サブナビの表示切替
	function naviStyleChange(ids, bcColor, color){
		document.getElementById(ids).style.backgroundColor = bcColor;
	}

	// care 
	function changeFlashStatus(session_id){
        if(window.opener && !window.opener.closed){
    		if(location.protocol == "https:"){
    			window.opener.location.href="http://" + location.host + "/#updateSessionId";
    		}else if(window.opener.updateSessionId){
    			window.opener.updateSessionId(session_id);
     		}
        }
	}
	// care 
	function showFlashPage(obj_id){
        if(window.opener && !window.opener.closed){
    		if(location.protocol == "https:"){
    			window.opener.location.href="http://" + location.host + "/#showFlashPage=" + obj_id;
    		}else if(window.opener.updateSessionId){
    			window.opener.showFlashPage(obj_id);
     		}
        }
	}

	// care
	function doCareLogout(){
		(new Image()).src = "/frontparts/login_check.php?mode=logout&url=/&t=" + (new Date()).getTime();
		changeFlashStatus();
	}
