
function article() {
}

article.prototype.xlayout = function() {
var ot = '';
//ot += '<div style="position:absolute">';
ot += '<style>\
	.galBtn {\
	background-color:transparent;\
	position:absolute;\
	font-size:20px;\
	z-index:11;\
	cursor:pointer;\
	}\
	</style>';
ot += myBox.top('articleWindow','white');
ot += '<div title="close" class="galBtn" id="articleHide" onclick="myArticle.hide()"><img title="close" src="'+om+'/img/close15.png" width="15" height="15" border="0" onmouseover="myBox.mouseOn(this)" onmouseout="myBox.mouseOff(this)"></div>';
ot += '<div id="articleInner"></div>';
ot += myBox.end('white');
ot += '\
	<div id="btnPreload" style="width:0;height:0;overflow:hidden;visibility:hidden;">\
	<img alt="" src="'+om+'/img/close15on.png" />\
	</div>\
	';
//ot += '</div>';
document.write(ot);
}

article.prototype.show = function() {
	myBox.hazeOn();
	if (!this.layout) {
		this.layout = document.getElementById('articleLayout');
		this.layout2 = document.getElementById('articleInner');
		this.layout2.innerHTML = this.layout.innerHTML;
	}
	var sc = myBox.getScroll();
	var el = myBox.showById('articleWindow',5,sc[1]+5);
	if (el) {
		el.placeGadget('articleHide',20,20);
	}
}

article.prototype.hide = function() {
	myBox.hazeOff();
	myBox.hideById('articleWindow');
}

if (window.myAll) {
	article.prototype.xlayout();
	window.myArticle = new article();
	if (window.dbg) dbg.trace("sucessfully loaded lib.article.js");
}

