/*	Name:		Brauer Productions JS Page	Type:		Object	Created:	01/10/2005	Updated:	03/02/2005	Version:	2.0	Updates:	12/20/2004 (v1.0					first release into build of a website. 				03/02/2005 (v2.0)					updated init() function and bpi_init object to rely on passed parameter					settings rather than in-function defined variables. Makes it more versitile.					Also changed name from init.js to bpi_page.js.	Author:		Scott A. Ash	Copyright:	Scott Ash	Functions:	init()								.init()				This function essentially makes it so that setting menu rollovers can be done in a 				global file while the parameters are the only local pieces set in each file. For this 				object to function properly you must pass it four parameters with the call				init([a],[b],[c],[d]) where [a] represent the extension for the over state of an image.				(eg. dormant state = [imgname]_o.jpg where '_o' is the over state. The same is true 				for [b] which expects a dormant state (eg. '_d') string.								The same holds for the third paramter [c] which expects the actual image type (eg. 				jpg, gif, png, etc.,...) without the '.' which is added in the function call 				automatically.								The last paramter [d] expects an array of the image names (strings) you want to make 				swappable on the particular page from which bpi_init is being called. The images listed 				in this array must have their id and name tags set in the html code for the function 				to work.								.resize()				Calls a window resize function calculation based on the homepage design.					Uses:		sa_menu_image_swap.js, sa_window_resize.js	Required:	This object must be created in the master site script or page head script before 				being initiallized in the body "onload" attribute.					Settings:	None*/function bpi_page(){		// properties	this.menu = new sa_image_swap();	this.area = new sa_window_resize();		// methods	this.init = init;	this.resize = resize;			// constructor	function init(o,d,t,g)	{		// set image "over" state extension for menu rollover graphics		if(typeof o == 'undefined')		{			alert("ERROR!\nbpi_init.init():\nNo \"over\" state of menu rollover defined.");		}else		{			this.menu.init("over",o);		}				// set image "dormant" state extension for menu rollover graphics		if(typeof d == 'undefined')		{			alert("ERROR!\nbpi_init.init():\nNo \"dormant\" state of menu rollover defined.");		}else		{			this.menu.init("dormant",d);		}				// set image "type" extension for menu rollover graphics		if(typeof t == 'undefined')		{			alert("ERROR!\nbpi_init.init():\nNo image \"type\" for menu rollover defined.");		}else		{			this.menu.init("types",t);		}				// set image "type" extension for menu rollover graphics		if(typeof g == 'undefined')		{			alert("ERROR!\nbpi_init.init():\nNo image \"array\" for menu rollover defined.");		}else		{			// this uses sa_menu_image_swap.js file			this.menu.init("graphics",g);						// load images into object			this.menu.load_array();		}			}		function resize()	{		// this uses sa_window_resize.js file		// create instance of window resizing (used only on main welcome page)		this.area.init();				// manipulate window sizing		//alert(this.win.tell()[1]);		document.spacer.height = ((this.area.tell()[1]) - 435) * .5;	}}	