// Wプレゼントウィンドウオープン
	function OpenPresent(i,j) {
		window.open(i,j,"width=453,height=330,scrollbars=no");
	}

// バナー処理・フェードイン・フェードアウト
$(function(){
	if ($.browser.msie && $.browser.version < 7){
		$("#banner").css("margin-left","600px");
		$(window).resize(function(){
			$("#banner").css("margin-left","600px");
		});
		$(window).scroll(function(){
			$("#banner").css("margin-left","600px");
		});
	} else {
		$("#banner").css("left",$(".base").offset().left+600);
		$(window).resize(function(){
			$("#banner").css("left",$(".base").offset().left+600-$(window).scrollLeft());
		});
		$(window).scroll(function(){
			$("#banner").css("left",$(".base").offset().left+600-$(window).scrollLeft());
		});
	}
	$("#close_banner img").click(function(){
			$("#banner").fadeOut("normal");
	});
});

// 画像スワップ・ウィンドウオープン
	function ChangeImage(a,b) {
		$("#type_view img").attr("src","../../img/madori_img00_"+b+".gif");
		$("#"+a+"type_button img").attr("src","../../img/madori_img01_"+b+".gif");
	}
	function ReturnImage() {
		$("#type_view img").attr("src","../../img/madori_img00_00.gif");
		$("#atype_button img,#btype_button img,#ctype_button img,#dtype_button img,#etype_button img").attr("src","../../img/madori_img01_00.gif");
	}
	function OpenType(a,b) {
		window.open(a,b,"width=600,height=700");
	}
	
// 決済シミュレーションウィンドウオープン
	function OpenSimulation(i,j) {
		window.open(i,j,"width=980,height=925,scrollbars=yes");
	}
	
// 間取りウィンドウオープン
	function ChangeImage(i) {
		$("#type_view img").attr("src","../image/floorplan_"+i+".gif");
		$("#type_"+i+" img").attr("src","../image/button_"+i+"_on.gif");
	}
	function ReturnImage(i) {
		$("#type_view img").attr("src","../image/floorplan.gif");
		$("#type_"+i+" img").attr("src","../image/button_"+i+".gif");
	}
	function OpenType(i,j) {
		window.open(i,j,"width=700,height=900,scrollbars=yes");
	}
