function verification() {}
verification.prototype = {
	div: null,
	container: null,
	table: null,
	timeout: null,
	build: function() {
		var div = document.createElement("div");
		div.innerHTML = "<table cellspacing='0' cellpadding='0' id='note' border='0'></table>";
		div.style.width = "400px";
		div.style.position = "absolute";
		div.style.filter = "alpha(Opacity=0)";
		div.style.opacity = "0";
		div.style.MozOpacity = "0";
		div.style.zIndex = 15;
		this.table = div;
		// setting table attrinutes
		var table = div.childNodes[0];
		table.insertRow(0);
		table.insertRow(1);
		table.insertRow(2);
		for (var i=0;i<3;i++) {
			for (var k=0;k<3;k++) {
				table.rows[i].insertCell(k);
				table.rows[i].cells[k].style.padding = "0px";
				table.rows[i].cells[k].style.margin = "0px";
			}
		}// all cells are inserted
		i=null;k=null; // clearing variables
		table.rows[0].cells[0].className = "note_c_up";
		table.rows[0].cells[0].innerHTML="<img src='images/up_top_left.gif' width='4' height='4' style='vertical-align:bottom !important;' alt='' />"; // image in the left top corner
		table.rows[0].cells[1].className = "note_c_up";
		table.rows[0].cells[1].innerHTML = "<img src='images/top3.gif' width='159' height='4' style='vertical-align:bottom !important;' alt='' />";
		table.rows[0].cells[2].className = "note_c_up";
		table.rows[0].cells[2].innerHTML="<img src='images/up_top_right.gif' width='4' height='4' style='vertical-align:bottom;' alt='' />";
		// first line is finished;
		table.rows[1].cells[0].innerHTML = table.rows[1].cells[2].innerHTML = "&nbsp;";
		this.container = table.rows[1].cells[1];
		this.container.setAttribute("id","note_content");
		// 2nd line building finished;
		table.rows[2].cells[0].className = "note_c_do";
		table.rows[2].cells[2].className = "note_c_do";
		table.rows[2].cells[1].setAttribute("id","note_bot");
		table.rows[2].cells[0].innerHTML="<img src='images/up_bot_left.gif' width='4' height='4' style='vertical-align:top;' alt='' />";
		table.rows[2].cells[1].innerHTML="&nbsp;";
		table.rows[2].cells[2].innerHTML="<img src='images/up_bot_right.gif' width='4' style='vertical-align:top;' height='4' alt='' />";
		document.body.appendChild(div);
		// done;
	},
	setContent: function(html) {
		this.container.innerHTML = html;
	},
	setXY: function(x, y) {
		var strX = new String(), strY = new String();
		strX = x+"px";
		strY = y+"px";
		this.table.style.left = strX;
		this.table.style.top = strY;
		strX = null;
		strY = null;
	},
	hide: function() {
		this.table.style.visibility = "hidden";
		this.table.style.filter = "alpha(Opacity=0)";
		this.table.style.opacity = "0";
		this.table.style.mozOpacity = 0;
	},
	incOpacity: function(opacity) {
		this.table.style.filter = "alpha(Opacity="+opacity+")";
		if (opacity<10) opacity="0"+opacity;
		this.table.style.opacity = "0."+opacity;
		this.table.style.mozOpacity = "0."+opacity;
		if (opacity < 98) {
			opacity+=2;
			window.setTimeout("m.incOpacity("+opacity+")",1);
		}
	},
	show: function() {
		this.incOpacity(0);
	}
};
var m = new verification();

