// JavaScript Document

window.onload = function()
	{
		//curvyconerの設定
		settings = {
		tl: { radius: 1 }, //左上の半径
		tr: { radius: 1 }, //右上の半径
		bl: { radius: 1 }, //左下の半径
		br: { radius: 1 }, //右下の半径
		antiAlias: true, //アンチエイリアス
		autoPad: true, //オートパディング
		validTags: ["li"]
	}
		//curvyconerの設定
		var myBoxObject = new curvyCorners(settings, "curvy");
		myBoxObject.applyCornersToAll();
		
		
		//popupの設定
		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 += '別窓で開きます';
		}
	}
}

//popupの設定
function winOpen(url) {
	window.open(
		url,
		'popup',
		'width=858,height=600,scrollbars=1,resizable=1'
	);

	return false;
};


