$(document).ready(function(){
  // 3つ目マージン右ゼロ
	$(".box-main li:nth-child(3)").css("margin-right", "0");
  // 2つ目マージン右ゼロ
	$('.box-works dl:odd').css('margin-right', '0');
// リスト奇数　hover
  $("ul.list-topics li:even").hover(
  function () {
    this.style.backgroundColor = "#deebf6";
  },
  function () {
    this.style.backgroundColor = "#FFF";
  }
);

// リスト偶数　hover
  $("ul.list-topics li:odd").hover(
  function () {
    this.style.backgroundColor = "#deebf6";
  },
  function () {
    this.style.backgroundColor = "#efeded";
  }
);

// 奇数行の色を設定
  $('ul.list-topics li:even').css('background-color', '#FFF');

// 偶数行の色を設定
  $('ul.list-topics li:odd').css('background-color', '#efeded');
  
// 偶数行の値を設定
  $('div.box-category li:odd').css('margin-right', '0');

    
							  });





function setRollovers() {
 var os = navigator.userAgent;
 var br = navigator.appName;
 if ((os.indexOf("mac") >= 0 && br.charAt(0)=="M") || (os.indexOf("Mac") >= 0 && br.charAt(0)=="M")) {
   } else {
    initRollovers();
   }
}
function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'over') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_on'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_on'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}


//クリックした時に点線を表示させない//
function invisibleLinkLine() {
var blur = function () { this.blur() };
for (var i = 0; i < document.links.length; i++)
document.links[i].onfocus = blur;
}



window.onload = function() {
	setRollovers();
	invisibleLinkLine();
	if(typeof(system_onload) != 'undefined') system_onload();
} 


function inq() {
	window.open("https://ssl1.itechh.ne.jp/itec/mm/inquiry/", "", "width=800,height=800,scrollbars=yes");
}
