// rollover
var changedImg;
function EImgChg(flag)
{	
	source=event.srcElement;
	if (source.name == "")
	{ return false;	}

	if(changedImg == source.name)
	return;

	else if (document.images && source.tagName=="IMG")	{
			imgElement = source.name;
			imgPath = source.src;

			imgPathLen = imgPath.length;
			imgPathFlag = imgPath.lastIndexOf("/");
			imgName = imgPath.substring(0,imgPathFlag+1);

			document.images[imgElement].src = imgName + imgElement + "_" + flag + ".gif";
	}
}

// Popup 
function pop_sn(url,w,h,n) {
	l = (screen.width) ?	(screen.width-w) / 2	: 0;
	t = (screen.height) ?	(screen.height-h) / 2 : 0;	
	var opt='top='+t+',left='+l+',width='+w+',height='+h;
	opt=opt+',toolbar=no,status=no,directories=no,scrollbars='+n+',location=no,resizable=no,menubar=no';
	window.open(url,'',opt);
}

function pop_sy(url,w,h,n) {
	l = (screen.width) ?	(screen.width-w) / 2	: 0;
	t = (screen.height) ?	(screen.height-h) / 2 : 0;	
	var opt='top='+t+',left='+l+',width='+w+',height='+h;
	opt=opt+',toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=no,menubar=no';
	window.open(url,'',opt);
}
