/**/
rollovers=function(off,on){
	img=document.getElementsByTagName("img");
	p=[];
	off_reg=new RegExp(off+"(\.[a-z]+$)","i");
	on_reg=new RegExp(on+"(\.[a-z]+$)","i");
	for(var x=0,i;i=img[x];x++){
		if(i.src.match(off_reg)){
			p[x]=new Image();
			p[x].src=i.src.replace(off_reg,on+"$1");
			i.onmouseover=function(){this.src=this.src.replace(off_reg,on+"$1");};
			i.onmouseout=function(){this.src=this.src.replace(on_reg,off+"$1");};
		};
	};
};

onload=function(){rollovers( "_d" , "_o" );}
	
	
/* 別ウィンドウ */
$(document).ready(function() {
	 
	   //外部リンクは全て別ウインドウにする場合
	   $('a[href^="http://"]').attr("target", "_blank"); 
	 
	   //rel="external" 属性を追加した場合のみ別ウインドウにする場合
	   $("a[rel='external']").click(function(){
	      this.target = "_blank";
	   });
	   
	   $('a[href^="http://www.daitohnet.co.jp"]').attr("target", "_self"); 
	   
});
	
$('a').hover(
	function(){
		$(this).css('color','red');
	},
	function(){
		$(this).css('color','black');
	}
);

