/* Popups v3.0 - ./popup_doc.js for docs */
var popup = {

	w:600,
	h:400,

	Go:function(url, e)
	{
		var options = 'scrollbars=1,resizable,width='+popup.w+',height='+popup.h;

		window.open(url, 'popup', options);
		stopDef(e);
	},

	Init:function()
	{
		var links = gTag(document, 'a');

		for(i = 0, j = links.length; i < j; i++)
		{
			if(links[i].rel && links[i].rel == 'external')
			{

				addEvent(links[i], 'click', function(e){return (popup.Go(this.href, e));});
			}
		}
	}
}

addEvent(window, 'load', popup.Init);
