
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 openwin (url,name,w,h) {
w = window.open(url,name,"width="+w+",height="+h+",left=0,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,favorites=no,resizable=yes");w.focus();
}

function winOpen(url,w,h) {
var winFig;
var width = parseInt(w);
var height = parseInt(h);

st = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrolbars=no,resizable=no,";
winFig = window.open("", "OpenWin", st+"width="+width+",height="+height);

winFig.document.open();
winFig.document.writeln("<html>");
winFig.document.writeln("<head><title>image window</title></head>");
winFig.document.writeln('<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">');
winFig.document.writeln('<a href="javascript:void(0);" onClick="self.window.close()"><img src="'+url+'" border="0" /></a>');
winFig.document.writeln("</body>");
winFig.document.writeln("</html>");
winFig.document.close();

var Win = navigator.userAgent.indexOf("Win") != -1 ? true : false;
var Mac = navigator.userAgent.indexOf("Mac") != -1 ? true : false;

if(Win) {
if(navigator.userAgent.indexOf("Gecko")!=-1){
winFig.location.reload();
}
}
}







