jQuery.noConflict();

jQuery(function(){
 //Accordion
 jQuery('.toggle').hover(function(){
  jQuery(this).addClass('arrOver');
 },function(){
  jQuery(this).removeClass('arrOver');
 });
 //Png
 //jQuery('img[@src$=".png"]').pngfix();
 //Link
 jQuery('a[@href^="http://"],a[@href^="https://"],a[@href$=".pdf"]').not('[@href^="https://ssl.biz-support.jp/kbinfo/cgi-bin/form.cgi"]').click(function(){
	 window.open(this.href,'');
	 return false;
	});
});

preloadImages=[];
function preloadImage(url){
 var p=preloadImages;
 var l=p.length;
 p[l]=new Image();
 p[l].src=url;
}
for(var i=1;i<7;i++){
 preloadImage('/common/arr'+i+'o.jpg');
 preloadImage('/common/arr'+i+'a.jpg');
}

function naviThis(n,m){
 var mId='#navi'+n+'s #nv'+n+'s'+m+' a';
 var y;
 if(m<2)y='-166px 0';
 else if(m<3)y='-166px -24px';
 else if(m<4)y='-166px -48px';
 else if(m<5)y='-166px -72px';
 else if(m<6)y='-166px -96px';
 else if(m<7)y='-166px -120px';
 else if(m<8)y='-166px -144px';
 else if(m<9)y='-166px -168px';
 else y='-166px -192px';
 jQuery(mId).css('backgroundPosition',y);
}

function flat(Path,n,m){
 var sets=[],temp=[];
 jQuery(Path).each(function(i){
  temp.push(this);
  if(i%n==m){
   sets.push(temp);
   temp=[];
  }
 });
 if(temp.length) sets.push(temp);
 jQuery.each(sets,function(){
  jQuery(this).flatHeights();
 });
}

function wOpen(path){
 education=window.open(path+'case/index.html','education','width=665,height=530,resizable=yes,status=yes,scrollbars=yes');
 education.window.focus();
}

function chParent(Path){
 if ((navigator.userAgent.indexOf("Mac") > -1)){
  if (window.opener){//Open
   window.opener.location.href=Path;
  }
  else{//Close
   window.open(Path,"");
  }
 }else{
  if (!window.opener.closed){//Open
   window.opener.location.href=Path;
  }
  else{//Close
   window.open(Path,"");
  }
 }
}

function ancJump(){
 if(document.URL.indexOf('#') != -1){
  var anc=document.URL.split('#');
  window.location='#'+anc[1];
 }
}