/* class definition */
/********************/
	function cPortfolioDialog(argDialogObjectID, argDialogTitleID, argDialogContentID, argDialogObjectResetID) // everything in this space is private and only accessible in the HelloWorld block
	{
		this.dialog; // define some private variables
		this.strDialogObjectID = argDialogObjectID;
		this.strDialogTitleID = argDialogTitleID;
		this.strDialogContentID = argDialogContentID;
		this.strDialogObjectResetID = argDialogObjectResetID;
	}
	
	
	cPortfolioDialog.prototype.showDialog = function(argWidth, argHeight)
	{
		this.dialog = false;
		this.dialog = new Ext.BasicDialog(this.strDialogObjectID, 
				{ 
						autoTabs:false,
						width:argWidth,
						height:argHeight,
						shadow:true,
						minWidth:argWidth,
						minHeight:argHeight,
						modal: true,
						draggable: false,
						proxyDrag: false,
						collapsible: false,
						resizable: false
				});
		this.dialog.show();
	}
	
	cPortfolioDialog.prototype.closeDialog = function()
	{
		this.dialog.hide();
	}
	
	cPortfolioDialog.prototype.setDialogTitle = function(argTitle)
	{
		document.getElementById(this.strDialogTitleID).innerHTML = argTitle;
	}
	
	cPortfolioDialog.prototype.setDialogContent = function(argContent)
	{
		document.getElementById(this.strDialogContentID).innerHTML = argContent;
	}
	
	
	cPortfolioDialog.prototype.resetPortfolioItemDialogStructure = function(argHTMLStructure)
	{
		document.getElementById(this.strDialogObjectResetID).innerHTML = argHTMLStructure;
	}
    
	
/* object instances */	
/********************/
	oDialogLinks	= new cPortfolioDialog("dialog_links", "dialog_links_title", "dialog_links_content", "reset_dialog_links");

/* section defined functions */
/*****************************/


// using onDocumentReady instead of window.onload initializes the application
// when the DOM is ready, without waiting for images and other resources to load
//Ext.onReady(HelloWorld.init, HelloWorld, true);
