// JavaScript Document openWindows
/* Chayne Walsh : 2007 08 01 */
var OpenWindows = 
{
	init: function()
	{
		var autoResize = Core.getElementsByClass("autoResizeWindow");
		for (var i = 0; i < autoResize.length; i++)
		{
			Core.addEventListener(autoResize[i], "click", OpenWindows.onclickHandlerAutoResize);
		}
	},
	
	onclickHandlerAutoResize: function()
	{
		uploadwindow=window.open(Core.getEnv('RELATIVE_ROOT') + 'assets/scripts/popup_resize.asp?dir='+this.href.replace('#',''), 'upload', 'width=200,height=200,menubar=no,location=no,toolbar=no,status=no,resizable=yes,top=10,left=10');
		Core.preventDefault(event);
		return;	
	}
}
Core.start(OpenWindows);