function panelInit() {
	// Instantiate a Panel from markup
	lightbox = new YAHOO.widget.Panel("funstuffpanel",{
		zIndex: "100",
		width:"600px",
		height:"380px",
		visible:false,
		close:true,
		underlay:"matte",
		modal:true,
		fixedcenter:true});

	lightbox.setHeader("close");
	lightbox.render();
}


var AjaxObject = {

	handleSuccess:function(o){
		// Success handler
		lightbox.setBody(o.responseText);
		lightbox.render();
		lightbox.show();
	},

	handleFailure:function(o){
		// Failure handler
		lightbox.setBody('Error retrieving data.');
		lightbox.render();
		lightbox.show();
	},

	startRequest:function(sUrl) {
	   YAHOO.util.Connect.asyncRequest('GET', sUrl, handleFunstuff );
	}

};


var handleFunstuff = {
	success:AjaxObject.handleSuccess,
	failure:AjaxObject.handleFailure,
	scope: AjaxObject
};

YAHOO.util.Event.addListener(window, "load", panelInit);
