var Dialog = function() {
this.shadow = null;
}
Dialog.prototype = {
createShadow : function() {
this.shadow = document.createElement('div');
this.shadow.style.height = document.body.clientHeight + 'px';
this.shadow.setAttribute('class', 'com_dialog_shadow');
document.body.appendChild(this.shadow);
},
show : function() {
if(!this.shadow)
this.createShadow();
this.shadow.style.display = "";
},
hide : function() {
this.shadow.style.display = 'none';
}
}
this.shadow = null;
}
Dialog.prototype = {
createShadow : function() {
this.shadow = document.createElement('div');
this.shadow.style.height = document.body.clientHeight + 'px';
this.shadow.setAttribute('class', 'com_dialog_shadow');
document.body.appendChild(this.shadow);
},
show : function() {
if(!this.shadow)
this.createShadow();
this.shadow.style.display = "";
},
hide : function() {
this.shadow.style.display = 'none';
}
}