<!-- ASP Script version 2.01 New Generations, Prepared by Xell  -->
// JScript File

function acrd() {
this._width = "100%"
this._height = "100%"
this._class = ""
this._acrdBaslikHoverCss = ""
this._acrdBaslikClickCss = ""
this._acrdItemHoverCss = ""
this._ID
this._trHeightClose = 100
this._trHeightOpen = 0




this._active
this._parent
this._onlyOne = true
this.name = ""
this._veri = new Array(100)
for (var i=0;i<=100;i++) {
	this._veri[i]=new Array()
}


this.openClose = openClose
this.hazirlan = hazirlan
this._open = _open
this._close = _close
}
function _close(){
deneme._trHeightClose -= 9
document.all["acrdTr" + deneme._ID].height = deneme._trHeightClose + "%"
if (deneme._trHeightClose<8) {
	clearInterval(acrdTimerID)
	document.all["acrdTr" + deneme._ID].style.display = "none"
	document.all["acrdTr" + deneme._ID].height = "100%"
	document.all["acrdImg" + deneme._ID].src = "../images/arti.gif"
	deneme._trHeightClose = 100
}
}

function _open() {

deneme._trHeightOpen += 10
document.all["acrdTr" + deneme._ID].height = deneme._trHeightOpen + "%"
	document.all["acrdTr" + deneme._ID].style.display = ""
if (deneme._trHeightOpen>91) {
	clearInterval(acrdTimerID)
	document.all["acrdTr" + deneme._ID].height = "100%"
	document.all["acrdImg" + deneme._ID].src = "../images/eksi.gif"
	deneme._trHeightOpen = 0
}
}
function openClose(nesne) {

//alert(document.all["acrdImg" + nesne].src)
//alert(this._active + " " + nesne)
	if (this._onlyOne) {


		for (var i=0;i<this._veri.length;i++) {
			if (this._veri[i][0]!=undefined) {
				//alert(i + " " + nesne)
				if (nesne==i) {
					if (document.all["acrdTr" + i].style.display=="") {
						this._ID = i
// sonraki iki						acrdTimerID = setInterval("this._close()",10)
						document.all["acrdTr" + i].style.display = "none"
						document.all["acrdImg" + i].src = "../images/arti.gif"
					}
					else {
						this._ID = i
//	sonraki iki					acrdTimerID = setInterval("this._open()",10)
						document.all["acrdTr" + i].style.display = ""
						document.all["acrdImg" + i].src = "../images/eksi.gif"
						//alert(i)
					}
					
				}
				else {
				//alert("else")
//					this._ID = i
//					acrdTimerID = setInterval("this._close()",10)
					document.all["acrdTr" + i].style.display = "none"
					document.all["acrdImg" + i].src = "../images/arti.gif"
				}
			}
		}
	} 
	else {
		if (document.all["acrdTr" + nesne].style.display=="") {
			this._ID = nesne
//sonraki iki			acrdTimerID = setInterval("this._close()",10)
			document.all["acrdTr" + nesne].style.display = "none"
			document.all["acrdImg" + nesne].src = "../images/arti.gif"
		}
		else {
			this._ID = nesne
// sonraki iki 			acrdTimerID = setInterval("this._open()",10)
			document.all["acrdTr" + nesne].style.display = ""
			document.all["acrdImg" + nesne].src = "../images/eksi.gif"
		}
	}

}


function hazirlan() {
var html = ""

html += "<table class='"+ this._class + "' id='acrdTable' border='0' cellspacing='0' cellpadding='0' width='"+ this._width +"' height='"+ this._height +"'>"

for (var i=0;i<this._veri.length;i++) {
	if (this._veri[i].length!=0) {
		html += '<tr onclick="'
		if (this._veri[i][0][0]) html += this._veri[i][0][1] + "; "
		html += this.name +'.openClose(\''+ i +'\');" style="cursor:hand">'
		html += "<td onmousedown='this.style.cssText=\""+ this._acrdBaslikClickCss  +"\"' onmouseover='this.style.cssText=\""+ this._acrdBaslikHoverCss +"\"' onmouseout='this.style.cssText=\"\"' id='acrdBaslik'>"
		html += "<img id='acrdImg"+i+"' border='0' src='../images/arti.gif' > "
		html += this._veri[i][0][0]
		html += "</td></tr>"
		html += "<tr id='acrdTr"+i+"' height='100%' style='display: none; '>"
		html += "<td style='cursor:hand;'>"

		if (this._veri[i].length>0) {
			html += "<div id='acrdDiv' style='border-style:solid; border-width:0px; height:100%; overflow: auto'>"
			html += "<table id='acrdAltTable' border='0' cellspacing='0' cellpadding='0'  width='100%'>"
			for (var j=1;j<this._veri[i].length;j++) {
				html += '<tr onclick="'
				html += this._veri[i][j][1]  //"window.open('deneme.asp','_self');" //this._veri[i][j][1] 
				html += '" >'

					html += "<td onmouseover='this.style.cssText=\""+ this._acrdItemHoverCss +"\"' onmouseout='this.style.cssText=\"\"'>"
					html += "<li type='circle'>" + this._veri[i][j][0]
					html += "</td>"
				html += "</tr>"
			}
			html += "</table></div>"
		}
					
		html += "</td></tr>"

	}
}

html += "<tr><td height='100%' ></td></tr>"
html += "</table>"
//alert(html)
this._parent.innerHTML = html
}


