$(function(){
	//ページスクローラー
	$("a[href*='#']").easingScroll({
		easing: "easeOutExpo",
		duration: "400"
	});
	//チンクラボーード
	$("#Board ol").cycle({
		fx:"scrollLeft",
  	easing: "easeOutExpo",
		timeout: 5000
	});
	//a要素の外包divにリンクを設定
	$(".WeeklyRecommend, .NewArrival, #SaerchCategory li, .ShopInfo, .Staff, .Category").click(function(){
		window.location=$(this).find("a").attr("href");
		return false;
		});
	
	$("#Keyvisual").cycle({
		fx:"scrollHorz",
    easing:'easeOutExpo', 
		timeout: 5000,
		pager:"#KeyvisualNav",
		pagerAnchorBuilder: function(idx, slide) { 
        return "#KeyvisualNav li:eq(" + idx + ") a"; 
    } 
	});
	
	$("#FloorPlanFig").cycle({
		fx:"scrollHorz",
    easing:'easeOutExpo', 
		timeout: 5000,
		pager:"#FloorPlanNav",
		pagerAnchorBuilder: function(idx, slide) { 
        return "#FloorPlanNav li:eq(" + idx + ") a"; 
    } 
	});
	
  $('#Snap li a').lightBox();
	
	$('#Profile #Img p').cycle({
		fx:'scrollLeft',
    easing:'easeOutExpo', 
		timeout: 5000
	});
	//画像ギャラリー
	$("#shop-img li a").click(function(){
			$("#shop-img p img").before("<img src='"+$(this).attr("href")+"' alt='' width='340' height='340'>");
			$("#shop-img p img:last").fadeOut("fast",function(){
					$(this).remove()
			});
			return false;
	});
	
	$("#FreeRent, #map-img a, #map-link a, #area-img a, #twitter, #twitter-frame, #NewTopic p a, .thumb-latest, .thumb-first, .thumb-outline, #shop-img, #shop-link a, #staff-link a, #VacancyList li, #Map, #Snap li, #ShopImg, #ShopMore a, .StaffThumbnail, .block, #WeeklyRecommend, #WeeklyRecommendTop").corner("5px");
	
	$("#summer").corner("5px");
	
	$("#staff .thumb-outline, #shop #staff a, .StaffThumbnail, #StaffList li a, #staff li a").click(function(){
		$.modal('<iframe src="'+$(this).attr("href")+'" style="width:888px;height:630px;">', {
			containerCss:{
				width:"888px",
				height:"630px"
			},
			overlayClose:true
		});
	return false;
	});
})
