function member() {

////////////////////////////////////////////////////////////
//会員登録初期表示
	$(".elasetext").mousedown(function() {
		if (this.value == this.defaultValue) this.value = "";
		$(this).css('color', '#333');
	});

}


function bkn_sclfollow() {

////////////////////////////////////////////////////////////
//検索結果一覧、物件詳細ボタンスクロール
$('#alldetail').scrollFollow();
if (! $.browser.safari) {
	$('#page_top img, #page_top2 img').click(function () {
		$(this).blur();
		$('html,body').animate({ scrollTop: 0 }, 'fast');
		return false;
	});
}
}


function bkn_search() {

////////////////////////////////////////////////////////////
//ページ上部へ移動
if (! $.browser.safari) {
	$('#page_top img, #page_top2 img').click(function () {
		$(this).blur();
		$('html,body').animate({ scrollTop: 0 }, 'fast');
		return false;
	});
}
//ページ下部へ移動
if (! $.browser.safari) {
	$('.img_link').click(function () {
		$(this).blur();
		$('html,body').animate({ scrollTop: document.body.offsetHeight }, 'fast');
		return false;
	});
}

////////////////////////////////////////////////////////////
//写真背景色変更
$(".view_pic li").mouseover(function() {
	$(this).css('background', '#fee2e2');
	$(this).mouseout(function() {
		$(this).css('background', '#fff');
		});
});

////////////////////////////////////////////////////////////
//広告作成フェードイン・フェードアウト
$(".pop_link").click(function() {
	$(this).nextAll(".poplist").fadeIn('nomal');
	$(".pop_close").click(function() {
		$(this).parents(".poplist").fadeOut('nomal');
	});
});

}


////////////////////////////////////////////////////////////
//ロールオーバー
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}
if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}

