Event.observe(window, 'load', pagetopEffect, false);

function pagetopEffect() {
	var boxNodes = document.getElementsByClassName('pagetop_box');
	for (var i = 0, len = boxNodes.length; i < len; i++) {
		var btnNode = boxNodes[i].getElementsByTagName('A')[0];
		if (btnNode) {
			btnNode.removeAttribute('href');
			btnNode.onclick = function() {
				new Effect.ScrollTo('pagetop', {duration: 0.3});
			}
		}
	}
}

function scrEffect(obj, id) {
	obj.removeAttribute('href');
	new Effect.ScrollTo(id, {duration: 0.3});
}


function windowOpen(ww,wh,murl) {
	winType = "width=" + ww + ",height=" + wh + ",top=10,left=10,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no" ;
	wo = window.open(murl,'map',winType);
	wo.focus();
}
function windowOpenNoResize(ww,wh,murl) {
	winType = "width=" + ww + ",height=" + wh + ",top=10,left=10,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no" ;
	wo = window.open(murl,'map',winType);
	wo.focus();
}
function openerWin(url) {
	window.opener.location.href = url;
	window.opener.focus();
}
