jQuery(document).ready(function($){

// 外部リンクを自動的に別ウィンドウで表示
$("a[href^='http:']").not("[href*='www.sod.co.jp']").attr('target','_blank');
$("a[href^='https:']").not("[href*='www.sod.co.jp']").attr('target','_blank');
$("#menu-item-10692 a").attr("target","_blank");

// おっぱいカレンダーのポップアップ
$('#calendar a.popup').openwin({
option: {
width: 800,
height: 470,
top: false,
left: false,
menubar: "no",
toolbar: "no",
location: "no",
status: "no",
resizable: "no",
scrollbars: "no",
directories: "no",
titlebar: "yes",
fullscreen: "no"
},
target: "_blank",
blur: false,
focus: false
});

// バナー1のタイトル
var adv1Title = $("#adv1 .widget_sp_image-image-link").children("img").attr("alt");
$("#adv1").children(".box").append('<h3>' + adv1Title + '</h3>');

// バナー2のタイトル
var adv2Title = $("#adv2 .widget_sp_image-image-link").children("img").attr("alt");
$("#adv2").children(".box").append('<h3>' + adv2Title + '</h3>');

// バナー3のタイトル
var adv3Title = $("#adv3 .widget_sp_image-image-link").children("img").attr("alt");
$("#adv3").children(".box").append('<h3>' + adv3Title + '</h3>');

// バナー4のタイトル
var adv4Title = $("#adv4 .widget_sp_image-image-link").children("img").attr("alt");
$("#adv4").children(".box").append('<h3>' + adv4Title + '</h3>');

// オークションの金額
var auctionPrice = $("#auction .widget_sp_image-image-link").children("img").attr("alt");
$("#auction").children(".box").append('<span class="price">' + auctionPrice + '</span>');

// リンクスクローラー
$.fn.hoverscroll.params = $.extend($.fn.hoverscroll.params, {
vertical: true,
width: 205,
height: 500,
arrows: false
});
$('#linkScroller').hoverscroll();
$('.thumbs a').click(function(){
var thumbIndex = $('.thumbs a').index(this);
slider.goToSlide(thumbIndex);
$('.thumbs a').removeClass('pager-active');
$(this).addClass('pager-active');
return false;
});
$('.thumbs a:first').addClass('pager-active');

// 今月のイチオシスライダー
$('#slider2').bxSlider({
mode: 'fade',
controls: false,
auto: true,
speed: 2000,
pause: 6000
});

});
