$(document).ready(function(){
			$(".boxcaption").animate({top:'241px'},{queue:false,duration:600});
			$(".boxcaption_v2").animate({top:'0px'},{queue:false,duration:600});
			
			//Vertical Sliding
			$('.item_box.slidedown').hover(function(){
				$(".cover", this).stop().animate({top:'241px'},{queue:false,duration:300});
			}, function() {
				$(".cover", this).stop().animate({top:'41px'},{queue:false,duration:600});
			});
			//Caption Sliding (Partially Hidden to Visible)
			$('.item_box.caption').hover(function(){
				$(".cover", this).stop().animate({top:'41px'},{queue:false,duration:100});
			}, function() {
				$(".cover", this).stop().animate({top:'241px'},{queue:false,duration:600});
			});
});

$(function(){
	$("li#all").addClass("crt");
	// すべて表示
    $("li#all").click(function () { 
	$("li#cat01").removeClass("crt");
	$("li#cat02").removeClass("crt");
	$("li#all").addClass("crt"); 
	$("div.caption").css("display", "none");
	$("div.slidedown").css("display", "none");
	$("div.caption").fadeIn("slow");
	$("div.caption2").fadeIn("slow");
	$("div.caption3").fadeIn("slow");
	$("div.slidedown").fadeIn("slow");
	});
});

// 画像のロールオーバー

(function() {
  if (!document.getElementsByTagName) return;

  var addEvent, switchImage, init;
  addEvent = function(obj, type, func) {
    if (obj.addEventListener) {
      obj.addEventListener(type, func, false);
    }
    else if (obj.attachEvent) {
      obj.attachEvent('on' + type, func);
    }
  };
  switchImage = function(event) {
    var img = event.target || event.srcElement;
    img.src = (img.src == img.srcOff) ? img.srcOn : img.srcOff;
  };
  init = function() {
    var imgs = document.getElementsByTagName('img');
    var loaded = {}, img;
    for (var i = 0, len = imgs.length; i < len; i++) {
      img = imgs[i];
      if ( !img.src.match(/^(.*_)off(\..*)$/) ) continue;
      img.srcOff = img.src;
      img.srcOn = RegExp.$1 + 'on' + RegExp.$2;
      addEvent(img, 'mouseover', switchImage);
      addEvent(img, 'mouseout', switchImage);
      if (loaded[img.srcOn]) continue;
      loaded[img.srcOn] = true;
      (new Image).src = img.srcOn;
    }
  };

  addEvent(window, 'load', init);
})();

//ポップアップ
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
