

function fadeIn(objId, opacity) { if (document.getElementById) { obj = document.getElementById(objId); if (opacity <= 100) { setOpacity(obj, opacity); opacity += 10; window.setTimeout("fadeIn('" + objId + "'," + opacity + ")", 0.1); } } }
var obw = 0; var dheg = 0; function fadewidth(objId, opacity, heg) { if (document.getElementById) { obj = document.getElementById(objId); if (obw <= opacity) { obw += 1; obj.style.width = obw; window.setTimeout("fadewidth('" + objId + "',500)", 2); } else { if (dheg <= heg) { dheg += 1; obj.style.width = dheg; window.setTimeout("fadewidth('" + objId + "',200)", 2); } } } }
var hegd = 0; function heightboyut(objId, heg) { if (document.getElementById) { obj = document.getElementById(objId); if (hegd <= heg) { hegd += 1; obj.style.height = dheg + '%'; window.setTimeout("heightboyut('" + objId + "',200)", 2); } } }
function setOpacity(obj, opacity) { opacity = (opacity == 100) ? 99.999 : opacity; obj.style.filter = "alpha(opacity:" + opacity + ")"; obj.style.KHTMLOpacity = opacity / 100; obj.style.MozOpacity = opacity / 100; obj.style.opacity = opacity / 100; }
 


function AHR() {
    var obje; var browser = navigator.appName; if (browser == "Microsoft Internet Explorer") {
        try
{ obje = new ActiveXObject("Microsoft.XMLHTTP"); }
        catch (e)
{ obje = new ActiveXObject('Msxml2.XMLHTTP'); } 
    } else { obje = new XMLHttpRequest(); }
    return obje;
}
var xmlHttp = AHR(); function AjaxModul(hedef_url, hedef_parametre, hedefLayer) {
    try {
        if (hedef_parametre == 'keepcontent')
        { KeepContent = document.getElementById(hedefLayer).innerHTML }
        else { KeepContent = "" }
        hedefID = hedefLayer; var x = hedef_parametre.split('&'); var kaynak = ""; var j, y; for (j = 0; j <= x.length - 1; j++)
        { y = x[j].split('='); kaynak = kaynak + y[0] + '=' + escape(y[1]) + '&'; }
        xmlHttp.open("POST", hedef_url, true); xmlHttp.setRequestHeader('If-Modified-Since', 'Wed, 31 Dec 1980 00:00:00 GMT'); xmlHttp.setRequestHeader('Expires', 'Wed, 31 Dec 1980 00:00:00 GMT'); xmlHttp.setRequestHeader('Cache-Control', 'no-cache'); xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlHttp.setRequestHeader('Content-length', kaynak.length); xmlHttp.setRequestHeader('Connection', 'close'); xmlHttp.onreadystatechange = ResultAjaxModul; xmlHttp.send(kaynak);
    }
    catch (e)
{ document.getElementById('loading').style.display = "none"; xmlHttp.send(hedef_parametre); } 
}
function ResultAjaxModul() {
    if ((xmlHttp.readyState == 0) || (xmlHttp.readyState == 1) || (xmlHttp.readyState == 2) || (xmlHttp.readyState == 3)) {
        document.getElementById('loading').style.display = "block"; if (document.documentElement)
        { document.getElementById('loading').style.left = tempX; document.getElementById('loading').style.top = tempY; } 
    }
    if (xmlHttp.readyState == 4) {
        document.getElementById('loading').style.display = "none"; if ((xmlHttp.responseText) !== "") {
            document.getElementById(hedefID).innerHTML = KeepContent + xmlHttp.responseText
            KeepContent = ""
        } else { } 
    } 
}
function zimbirtiModul(SubmitMethod, dataURL, paramURL, Title, containerID, containerClass) {
    try { document.getElementById(containerID).innerHTML = '<img src=images/ajax_loader.gif>'; } catch (e) { }
    var ml = new zimbirti(SubmitMethod, dataURL, paramURL, Title, containerID, containerClass); ml.load();
}
function zimbirti(SubmitMethod, dataURL, paramURL, Title, containerID, containerClass) {
    if (SubmitMethod != undefined)
    { this._SubmitMethod = SubmitMethod; }
    if (dataURL != undefined)
    { this._dataURL = dataURL; }
    if (paramURL != undefined)
    { this._ParamURL = paramURL; }
    if (Title != undefined)
    { this._Title = Title; }
    if (containerID != undefined)
    { this._containerID = containerID; }
    if (containerClass != undefined)
    { this._containerClass = containerClass; } 
}
zimbirti.prototype._SubmitMethod = "POST"; zimbirti.prototype._Title = ""; zimbirti.prototype._request = undefined; zimbirti.prototype._containerID = "container"; zimbirti.prototype._containerClass = "ml_container"; zimbirti.prototype.load = function ()
{ document.getElementById('loading').style.display = "block"; this._request = this._getXMLHTTPRequest(); var _this = this; this._request.onreadystatechange = function () { _this._onData() }; this._request.open(this._generateSubmitMethod(), this._generateDataUrl(), true); this._request.setRequestHeader('If-Modified-Since', 'Wed, 31 Dec 1980 00:00:00 GMT'); this._request.setRequestHeader('Expires', 'Wed, 31 Dec 1980 00:00:00 GMT'); this._request.setRequestHeader('Cache-Control', 'no-cache'); this._request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); this._request.setRequestHeader('Content-length', this._generateParamURL().length); this._request.setRequestHeader('Connection', 'close'); this._request.send(this._generateParamURL()); }


zimbirti.prototype._render = function (title) {
    var content = document.getElementById(this._containerID); try { content.innerHTML = title; }

    catch (e) { } 
}
zimbirti.prototype._generateSubmitMethod = function ()
{ return this._SubmitMethod; }
zimbirti.prototype._generateDataUrl = function ()
{ return this._dataURL; }
zimbirti.prototype._generateParamURL = function ()
{ return this._ParamURL; }
zimbirti.prototype._onData = function () {
    if (this._request.readyState == 4) {
        if (this._request.status == "200") {
            document.getElementById('loading').style.display = "none"; this._render(this._request.responseText); if (this.onDraw != undefined)
            { this.onDraw(); } 
        }
        else {
            if (this.onError != undefined)
            { this.onError({ status: this_request.status, statusText: this._request.statusText }); } 
        }
        delete this._request;
    } else
    { document.getElementById('loading').style.display = "block"; } 
}
zimbirti.prototype._getXMLHTTPRequest = function () {
    var xmlHttp; try
{ xmlHttp = new ActiveXObject("Msxml2.XMLHttp"); }
    catch (e) {
        try
{ xmlHttp = new ActiveXObject("Microsoft.XMLHttp"); }
        catch (e2)
{ } 
    }
    if (xmlHttp == undefined && (typeof XMLHttpRequest != 'undefined'))
    { xmlHttp = new XMLHttpRequest(); }
    return xmlHttp;
}
