window.onload=autoPOP;

function autoPOP()
{
var x = document.getElementsByTagName('a');
for (var i=0;i<x.length;i++)
{
if (x[i].getAttribute('className') == 'popup' || x[i].getAttribute('class') == 'popup')
{
x[i].onclick = function () {
return winOpen(this.href)
}
x[i].title += '別窓で開きます';
}
}
};

function winOpen(url) {
window.open(
url,
'popup'
);

return false;
};


/* =add 20091130 --------------------------*/
function MM_showHideLayers() { //v9.0
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3)
	with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) {
		v=args[i+2];
		if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
		obj.visibility=v;
	}
}
