function swImg(obj,overOut){
	obj.src = overOut;
}
function swImg2(obj,overOut,chgCursor){
	obj.style.cursor = "hand";
	obj.style.backgroundImage = "url(" + overOut + ")";
}

//--------------------------------------------
//[機能]引数に指定した要素の背景画像を変更する
//[引数]要素のid属性の値
//--------------------------------------------
function setBackgroundImage(strElementId){
	var objElement;
	var aryImage = new Array("header_img01.jpg", "header_img02.jpg", "header_img03.jpg", "header_img04.jpg");
	var lngIndex;
	
	try{
		objElement = document.getElementById(strElementId);
		
		//乱数を取得し、0から3の整数にする
		lngIndex = Math.floor(Math.random() * 100) % aryImage.length;
		
		//背景を設定
		objElement.style.backgroundImage = "url(" + "../images/" + aryImage[lngIndex] + ")";
	}
	catch(e){}
}

//最新のページへ移動
function jumpLatestPage(){
	var strPathName = location.pathname;
	var strLatestPagePath = "/main/Guide.do?page=new_products_201009"; //最新のページへのリンク
	
	if(strPathName.indexOf("main")<=0)
		strLatestPagePath = "../../" + strLatestPagePath;
	
	document.location.href = strLatestPagePath;
}
