/* function Rollover with jQuery
--------------------------------------------------------------- */
function initRollOverImages() {
	var image_cache = new Object();
		$("a.rollover img, input.rollover, a img.rollover").each(function(i) {
		var imgsrc = this.src;
		var dot = this.src.lastIndexOf('.');
		var imgsrc_on = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
		image_cache[this.src] = new Image();
		image_cache[this.src].src = imgsrc_on;
		$(this).hover(
		function() { this.src = imgsrc_on; }, // onmouseover
		function() { this.src = imgsrc; }); // onmouseout
	});
}

$(document).ready(initRollOverImages);





/* function modalwindow window
--------------------------------------------------------------- */

window.onload = function() {
		var anotherwindow = document.getElementsByTagName('a');
		for (var i=0;i<anotherwindow.length;i++) {
			if (anotherwindow[i].getAttribute('idName') == 'modalwindow' || anotherwindow[i].getAttribute('id') == 'modalwindow') {
				anotherwindow[i].onclick = function () {
				return winopen(this.href)
				}
			}
		}
	};
	function winopen(url) {
		window.open(url,'modalwindow','width=1010,height=850,scrollbars=yes,location=yes,menubar=yes'); //横幅744px、縦幅650px、スクロール有、リサイズ有
		return false;
	};



/* function adjustIE
--------------------------------------------------------------- */
$(function() {
	$('div.section:last')
	.css('margin-bottom','0px')
})


