$(function() {

   $('a.LBox').lightBox();
   $("ul.jqGalScroll").jqGalScroll({height:268,width:400,ease:'easeInOutCubic',speed:1000});
   $("ul.submenu").hide();

   $("span.Stoptitle").hover(function(){
   
   // 対象オブジェクトに入った
   $(this).addClass("hover").removeClass("Stoptitle");
   }, function(){
   // 対象オブジェクトから抜けた
      $(this).addClass("Stoptitle").removeClass("hover");  
      }).click(function(){
      $(this).next().toggle();
     });
});

window.onload = function (){
   var node_a = document.getElementsByTagName('a');
   for (var i in node_a) {
      if(node_a[i].className == 'popup'){
         node_a[i].onclick = function() {
            return winOpen(this.href, this.rel)
         };
      }
   }
} ;
function winOpen(url, rel) {
   var split = rel.split(',') ;
   window.open(
      url,'popup','width='+ split[0] +',height='+ split[1] +',
      toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
return false;
};
