function Resim (_small, _big) {
	this.small = _small?_small:'';
	this.big   = _big?_big:'';
	this.Export = function (){
		if (this.small==''||this.small==null||this.big==''||this.big==null)return "";
		return "<td class=\"vitrin_bg\" height=\"120\" align=\"center\" valign=\"middle\"><img src='UPLOAD/EMLAK/" + this.small + "' alt='Sultan Emlak' title='Sultan Emlak' onmouseover='ResimGoster(this, \"" + this.big + "\");' onmouseout='ResimGizle();'/></td>";
	}
}
function ResimList(){
	this.Items = new Array ();
	
	this.Add = function (_small, _big){
		if (_small==''||_small==null||_big==''||_big==null) return ;
			this.Items[this.Items.length] = new Resim (_small, _big);
	}
	this.Export = function () {
		var writeText = "<table cellpadding=\"3\" cellspacing=\"0\" width=\"317\" border=\"0\">";
		for ( _i in this.Items ) {
			if (_i>0&&_i%2==0)writeText += "<tr>";
			writeText += this.Items[ _i ].Export ();
			if (_i>0&&_i%2==1)writeText += "</tr>";
		}
		writeText += "</tr></table>";
		document.write (writeText);
	}
}
function ResimGizle () {
	var imgDiv = document.getElementById('imgDiv');
	with(imgDiv.style){
		visibilty = 'hidden';
		display = 'none';
		position = 'absolute';
	 }
}
function ResimGoster (_obj, _resim) {
	var imgDiv = document.getElementById('imgDiv');
	 with(imgDiv.style){
		visibilty = 'visible';
		display = 'inline';
		position = 'absolute';
	 }
	var _P = getCoor (_obj);
	document.getElementById ('img').src = 'UPLOAD/EMLAK/' + _resim;

	 
}
function Coor (_X, _Y){
	this.X = _X;
	this.Y = _Y;
}
function getCoor (obj) {
	if (typeof(obj)=="string")
		obj = document.getElementById(obj);
	if (!obj) return (new Coor(0, 0));
	try {
		var Left=obj.offsetLeft, Top=obj.offsetTop;
		var Parent = obj.offsetParent;
		while (Parent != null){
			Left += Parent.offsetLeft;
			Top  += Parent.offsetTop ;
			Parent = Parent.offsetParent;
		}
	}
	catch(Hata) {return (new Coor(0, 0));}
	return (new Coor(Left, Top));
}
var RL = new ResimList();
