function IMG (_id,_out, _over, _alt, _class, _click) {
	this.ID  = (_id)?_id:"";
	this.out   = (_out)?_out:"";
	this.over  = (_over)?_over:"";
	this.alt   = (_alt)?_alt:"";
	this.Class = (_class)?_class:"";
	this.Click = (_click)?_click:"";
	this.Convert = function () {
		return "<img id=\"" + this.ID + "\" src=\"" + this.out + "\" alt=\"" + this.alt + "\" title=\"" + this.alt + "\"" +
			((this.Class)?" class=\"" + this.Class + "\"":"") +
			((this.over!='')?" onmouseover=\"setImg (this, '" + this.over + "', '" + this.alt + "');\"":"") +
			((this.over!='')?" onmouseout=\"setImg (this, '" + this.out + "');\"":"") +
			((this.Click)?" onclick=\"" + this.Click + "\"" : "" )+
			"/>";
	}
}
function IMGLIST () {
	this.IMGS = new Array();
	this.Add = function (ID, _out, _over, _alt, _class, _click) {
		this.IMGS[ ID ] = new IMG (ID, _out, _over, _alt, _class, _click );
	}
	this.Get = function ( ID ) {
		document.write( this.IMGS[ ID ].Convert() );
	}
}
var IL = new IMGLIST ();
function setImg (_img, _src, _text) {
	_img.src = _src;
	if (document.getElementById('messageDiv'))
		document.getElementById('messageDiv').innerHTML = ((typeof(_text)=="undefined")?"":_text);
}
function HREF( adres, target ) {
	if (navigator.appVersion.indexOf('MSIE')>=0) {//İnternet explorerda click methodu çalıştırılabilirken bu yöntem kullanılmakta
		var LINK = getElement('idHREF');
		if (!LINK) {
			document.body.innerHTML += "<a id='idHREF'></a>";
			LINK = getElement('idHREF');
		}
		LINK.setAttribute('target', target);
		LINK.setAttribute('href', adres);
		if (typeof(LINK.click)!="undefined") LINK.click();
	}
	else //Firefox'ta çalışmamaktadır. Bu yüzdende firefox'da bu yöntem kullanılmaktadır
		 // ve firefox bir a elementinin click özelliğini desteklemediği için target parametresi çalışmamaktadır.
		window.location.href = adres;
}