// top_index_images
$(document).ready(function() {
	$('#slider').nivoSlider({
		effect:'random', 
		slices:15,
		animSpeed:600,
		pauseTime:4500,
		directionNav:true,
		directionNavHide:true
	});
});

// slider
$(function(){
     $(".open").click(function(){
      $("#Details").slideToggle("slow");
     });
});
 
  // Linkopen
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// link img
$(document).ready( function(){
      $("#container a img").hover(function(){ $(this).fadeTo("fast", 0.8); },
         function(){ 
           $(this).fadeTo("fast", 2.0); }); });
             $(document).ready( function(){
             $(".bnrArea a img").hover(function(){ 
           $(this).fadeTo("fast", 0.6); },function(){ 
         $(this).fadeTo("fast", 1.0); 
      }); 
 });

 // tooltip
		$(document).ready(function(){
			$('.tTip').betterTooltip({speed: 150, delay: 300});
});

 // new mark
function new_mark(y, m, d, cl) {
  keep_day = 14; // この日数表示されます
  old_day = new Date(y + "/" + m + "/" +d);
  new_day = new Date();
  d =(new_day - old_day) / (1000 * 24 * 3600);
 
  if(d <= keep_day) {
  if(cl == "new") document.write('<img src="http://www.higashihokkaido.com/images/new.png" width="31" heigth="11" alt="newマーク" />'); // Newマーク
  }
}
