//div要素をリンク
$(function(){$('.other_movieList div').biggerlink();});

//スライドショー
$(document).ready(function() {$('#slider').s3Slider({timeOut: 4000});});

//開閉ボックス
$(document).ready(function() {$("li#openBox_1").hover(function(){$(this).css("cursor","pointer");},function(){$(this).css("cursor","default");});$("div#openBox_1_block").css("display","none");$("li#openBox_1").click(function(){$("div#openBox_1_block").slideToggle("normal");});});
$(document).ready(function() {$("li#openBox_2").hover(function(){$(this).css("cursor","pointer");},function(){$(this).css("cursor","default");});$("div#openBox_2_block").css("display","none");$("li#openBox_2").click(function(){$("div#openBox_2_block").slideToggle("normal");});});
$(document).ready(function() {$("li#openBox_3").hover(function(){$(this).css("cursor","pointer");},function(){$(this).css("cursor","default");});$("div#openBox_3_block").css("display","none");$("li#openBox_3").click(function(){$("div#openBox_3_block").slideToggle("normal");});});

//ブックマーク
function addBookmark(title,url) {
  if (window.sidebar) {
    window.sidebar.addPanel(title, url,"");
  } else if( document.all ) {
    window.external.AddFavorite( url, title);
  } else if( window.opera && window.print ) {
    return true;
  }
}

//日付表示
function getTime(){
  today = new Date();
  year = today.getYear();
  month = today.getMonth()+1;
  date = today.getDate();
  youbi = today.getDay();
  hours = today.getHours();
  if(hours < 10) hours="0" + hours;
  if (hours == 24) hours="00";
  minutes = today.getMinutes();
  if(minutes < 10) minutes="0" + minutes;
  day = new Array("日","月","火","水","木","金","土");
  //時刻表示
  str=month+"月"+date+"日 "+"("+day[youbi]+") "+hours+"："+minutes;
  document.getElementById("show_time").innerHTML=str;
}
setInterval('getTime()',1000);


/*プラン診断と体験ツアーポップアップスクリプト*/

window.name="hikari_main";
function planWin() { 
maxWin = window.open("http://www.hikaritv.net/services/plancounseling/index.html","plancounseling","left=0,top=0,scrollbars=0,resizable=no");
maxWin.moveTo(0,0);
maxWin.resizeTo(850,750);
}

function exptWin() { 
maxWin = window.open("http://www.hikaritv.net/services/exptour/index.html","exptWin","left=0,top=0,scrollbars=1,resizable=yes");
maxWin.moveTo(0,0);
maxWin.resizeTo(1270,870);
}

//角まる
window.onload = function()
  {
      settings = {
          tl: { radius: 20 },
          tr: { radius: 20 },
          bl: { radius: 20 },
          br: { radius: 20 },
          antiAlias: true,
          autoPad: true,
          validTags: ["div"]
      }
      var myBoxObject = new curvyCorners(settings, "moreContentBlock");
      myBoxObject.applyCornersToAll();
  }