
/* rollover */
var imgTop = new Array();
var mapimgTop = new Array();

for( i = 0 ; i < 24 ; i++ ){
	imgTop[i] = new Image();
}
for( i = 0 ; i < 14 ; i++ ){
	mapimgTop[i] = new Image();
}

imgTop[0].src = directory + "images/index_renew0907/btn_index_kakaku_3000_off.gif";
imgTop[1].src = directory + "images/index_renew0907/btn_index_kakaku_3000_on.gif";
imgTop[2].src = directory + "images/index_renew0907/btn_index_kakaku_30013500_off.gif";
imgTop[3].src = directory + "images/index_renew0907/btn_index_kakaku_30013500_on.gif";
imgTop[4].src = directory + "images/index_renew0907/btn_index_kakaku_35014000_off.gif";
imgTop[5].src = directory + "images/index_renew0907/btn_index_kakaku_35014000_on.gif";
imgTop[6].src = directory + "images/index_renew0907/btn_index_kakaku_40014500_off.gif";
imgTop[7].src = directory + "images/index_renew0907/btn_index_kakaku_40014500_on.gif";
imgTop[8].src = directory + "images/index_renew0907/btn_index_kakaku_45015000_off.gif";
imgTop[9].src = directory + "images/index_renew0907/btn_index_kakaku_45015000_on.gif";
imgTop[10].src = directory + "images/index_renew0907/btn_index_kakaku_5001_off.gif";
imgTop[11].src = directory + "images/index_renew0907/btn_index_kakaku_5001_on.gif";
imgTop[12].src = directory + "images/index_renew0907/btn_index_kakaku_simulation_off.gif";
imgTop[13].src = directory + "images/index_renew0907/btn_index_kakaku_simulation_on.gif";
imgTop[14].src = directory + "images/index_renew0907/btn_index_kenchikuchu_off.jpg";
imgTop[15].src = directory + "images/index_renew0907/btn_index_kenchikuchu_on.jpg";
imgTop[16].src = directory + "images/index_renew0907/btn_index_bunjojirei_off.jpg";
imgTop[17].src = directory + "images/index_renew0907/btn_index_bunjojirei_on.jpg";
imgTop[18].src = directory + "images/index_renew0907/btn_index_chumonjirei_off.jpg";
imgTop[19].src = directory + "images/index_renew0907/btn_index_chumonjirei_on.jpg";
imgTop[20].src = directory + "images/index_renew0907/btn_index_modelhouse_off.jpg";
imgTop[21].src = directory + "images/index_renew0907/btn_index_modelhouse_on.jpg";
imgTop[22].src = directory + "images/index_renew0907/btn_index_estate_off.gif";
imgTop[23].src = directory + "images/index_renew0907/btn_index_estate_on.gif";


mapimgTop[0].src = directory + "images/index_renew0907/p_index_area_off.gif";
mapimgTop[1].src = directory + "images/index_renew0907/p_index_area_on_01.gif";
mapimgTop[2].src = directory + "images/index_renew0907/p_index_area_on_02.gif";
mapimgTop[3].src = directory + "images/index_renew0907/p_index_area_on_03.gif";
mapimgTop[4].src = directory + "images/index_renew0907/p_index_area_on_04.gif";
mapimgTop[5].src = directory + "images/index_renew0907/p_index_area_on_05.gif";
mapimgTop[6].src = directory + "images/index_renew0907/p_index_area_on_06.gif";
mapimgTop[7].src = directory + "images/index_renew0907/p_index_area_off.gif";

mapimgTop[8].src = directory + "images/index_renew0907/p_index_area_on_08.gif";
mapimgTop[9].src = directory + "images/index_renew0907/p_index_area_on_09.gif";
mapimgTop[10].src = directory + "images/index_renew0907/p_index_area_on_10.gif";
mapimgTop[11].src = directory + "images/index_renew0907/p_index_area_on_11.gif";
mapimgTop[12].src = directory + "images/index_renew0907/p_index_area_on_12.gif";
mapimgTop[13].src = directory + "images/index_renew0907/p_index_area_on_13.gif";



function rollovertop(dim,cnt){
	document.images[dim].src = imgTop[cnt].src;
}

function areamaptop(dim,cnt){
	document.images[dim].src = mapimgTop[cnt].src;
}


// #require mootools.js
if (window.addEvent) {

// Expand Link at Showcase
window.addEvent('domready', function () {
	$$('.idx_contents_kodate').each(function (subcontent) {
		subcontent.addEvent('mouseenter', function () {
			subcontent.addClass('hover2');
		}).addEvent('mouseleave', function () {
			subcontent.removeClass('hover2');
		});
		var link = subcontent.getElement('a');
		if (link) {
			link.addEvent('click', function (evt) {
				evt.stopPropagation();
			});
			subcontent.addEvent('click', function () {
				if (link.target && link.target != "_self") {
					window.open(link.href, link.target);
				} else {
					window.location.href = link.href;
				}
			}).setStyle('cursor', 'pointer');
		}
	});
	$$('.idx_contents_modelhouse').each(function (subcontent) {
		subcontent.addEvent('mouseenter', function () {
			subcontent.addClass('hover');
		}).addEvent('mouseleave', function () {
			subcontent.removeClass('hover');
		});
		var link = subcontent.getElement('a');
		if (link) {
			link.addEvent('click', function (evt) {
				evt.stopPropagation();
			});
			subcontent.addEvent('click', function () {
				if (link.target && link.target != "_self") {
					window.open(link.href, link.target);
				} else {
					window.location.href = link.href;
				}
			}).setStyle('cursor', 'pointer');
		}
	});
	$$('.idx_contents_estate').each(function (subcontent) {
		subcontent.addEvent('mouseenter', function () {
			subcontent.addClass('hover');
		}).addEvent('mouseleave', function () {
			subcontent.removeClass('hover');
		});
		var link = subcontent.getElement('a');
		if (link) {
			link.addEvent('click', function (evt) {
				evt.stopPropagation();
			});
			subcontent.addEvent('click', function () {
				if (link.target && link.target != "_self") {
					window.open(link.href, link.target);
				} else {
					window.location.href = link.href;
				}
			}).setStyle('cursor', 'pointer');
		}
	});
});

}



