/*
 * #nav高さ調整
 -------------------------------------*/

$(window).load(function(){
	var navHeight = $('#main').height()+$('#infoBox').height();
	$('#nav').height(navHeight);
});

/*
 * メニュースクロール
 -------------------------------------*/
$(function(){
	$('#nav').children().wrapAll($('<div id="navInner"></div>'));
	$('#navInner').css('position','relative').scrollFollow({
		delay:100,
		speed: 300,
		easing:'easeInOutQuart'
	});
});


/*
 * infoBtn設定
 -------------------------------------*/
$(function(){
	var topPath = $('#nav h2 a').attr('href').substring(0,$('#nav h2 a').attr('href').lastIndexOf('/')+1);

	//詳細ボタン
	//$('#info').prepend('<span class="entryBtn"><a href="' + topPath + 'entry/index.html" target="_blank" class="subW"><img src="' + topPath + 'common/imgs/infoBtn02.gif" class="btn" /></a></span>');
	//$('#info .entryBtn').css('top',50).css('left',310);

	//予約ボタン
	$('#info').prepend('<span class="reserveBtn"><a href="https://www.proud-web.jp/module/oubo/input.xphp?formID=305" target="_blank" class="subW"><img src="' + topPath + 'common/imgs/infoBtn03.gif" class="btn" /></a></span>');
	$('#info .reserveBtn').css('top',95).css('left',435);

	//価格表ボタン
	//$('#info').prepend('<span class="priceBtn"><a href="' + topPath + 'roomplan/pricelist/index.html" target="_blank" class="subW"><img src="' + topPath + 'common/imgs/infoBtn04.gif" class="btn" /></a></span>');
	//$('#info .priceBtn').css('top',145).css('left',430);

	//マンション購入講座ボタン
	//$('#info').prepend('<span class="kouzaBtn"><a href="' + topPath + 'event/index.html" target="_blank" class="subW_event"><img src="' + topPath + 'common/imgs/infoBtn01.gif" class="btn" /></a></span>');
	//$('#info .kouzaBtn').css('top',178).css('left',300);

	//VOICEボタン
	$('#info').prepend('<span class="voiceBtn"><a href="http://www.proud-web.jp/city-ikebukuro-honcho/voice/index.html" target="_blank" class="subW"><img src="' + topPath + 'common/imgs/voiceBnr.gif" class="btn" /></a></span>');
	$('#info .voiceBtn').css('top',170).css('left',375);



});

/*
 * 別windowサイズ定義
 -------------------------------------*/
$(function(){
	$('a.subW_notes').subwin({width:400,height:280});
	$('a.subW_event').subwin({width:700,height:510});
});



