// javascript for swap images


var imgAry = new Array(
	'h2_policy_bg_f2.jpg',
	'h2_policy_f2.jpg',
	'h2_management_bg_f2.jpg',
	'h2_management_f2.jpg',
	'h2_engagement_bg_f2.jpg',
	'h2_engagement_f2.jpg',
	'h2_society_bg_f2.jpg',
	'h2_society_f2.jpg',
	'h2_env_bg_f2.jpg',
	'h2_env_f2.jpg',
	'h2_social_bg_f2.jpg',
	'h2_social_f2.jpg'
);
var imgNum = imgAry.length;
var indexImg = new Array(imgNum);
for (var i=0; i<imgNum; i++) {
	indexImg[i] = new Image();
	indexImg[i].src = 'img/2009/top/' + imgAry[i];
}


function changeImg(id,urlImg,id2,urlImg2) {
	document.getElementById(id).style.backgroundImage = 'url(img/2009/top/' + urlImg + ')';
	document.images[id2].src = 'img/2009/top/' + urlImg2;
}


function replaceImg(id,urlImg,id2,urlImg2) {
	document.getElementById(id).style.backgroundImage = 'url(img/2009/top/' + urlImg + ')';
	document.images[id2].src = 'img/2009/top/' + urlImg2;
}
