// JavaScript Document

var Modal = Class.create();

Modal.prototype = {

	initialize: function(id,wid,ht,startId,isClosable,url,content,isAjax,windowTitle) {
			windowTitle = "<b>"+windowTitle+"</b>";
			if(isAjax) {
				this.dialog = Dialog.info({url: ""+url, options: {method: 'get',evalScripts:true}}, 
						 {width:wid, height: ht, className: "alphacube", closable: isClosable, title:windowTitle})    
			} else {
				this.dialog = Dialog.info(content, 
						 {width:wid, height:ht, className: "alphacube", closable: isClosable, title:windowTitle})    
			}
	},

	show : function() {
		this.dialog.show($(this.startId).dom);
	},
	
	close : function() {
		this.dialog.hide();
	}

};