String.prototype.trim = function () { return this.replace(/^\s+|\s+$/g, ''); };
String.prototype.ltrim = function () { return this.replace(/^\s+/, ''); };
String.prototype.rtrim = function () { return this.replace(/\s+$/, ''); };
String.prototype.replaceAll = function (oldStr, newStr) {
    var str = this;
    var re = new RegExp(oldStr, 'gim');
    str = str.replace(re, newStr);
    return str;
};
String.format = function () {
    if (arguments.length == 0)
        return null;
    var str = arguments[0];
    for (var i = 1; i < arguments.length; i++) {
        var re = new RegExp('\\{' + (i - 1) + '\\}', 'gim');
        str = str.replace(re, arguments[i]);
    }
    return str;
};
var mn = mn || {};
mn.d = document;
mn.w = window;
mn.n = navigator;
mn.ua = mn.n.userAgent.toLowerCase();
mn.http = ('https:' == mn.d.location.protocol) ? 'https://' : 'http://';
mn.FloatingBannerID = 'mdnFloating';
mn.Find = function (id) { return mn.d.getElementById ? mn.d.getElementById(id) : mn.d.all(id); };
mn.CloseBanner = function (id) {
    var elm = mn.Find(id);
    if (elm != null) elm.style.visibility = 'hidden';
};
mn.FlashSupport = function () {
    var flashSupport = (navigator.mimeTypes && navigator.mimeTypes['application/x-shockwave-flash']) ? navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin ? true : false : false;
    if (!flashSupport && mn.Browser.IsIE) { flashSupport = (new ActiveXObject('ShockwaveFlash.ShockwaveFlash.7')) ? true : false; }
    return flashSupport;
};
mn.Browser = new function () {
    var brID = 1;
    this.vDeter = true; this.IsIE = false; this.IsFF = false; this.IsChrome = false; this.IsSafari = false; this.IsOpera = false; this.IsWebkit = false; this.IsOther = false;
    // Useragent RegExp
    var rmz = /(firefox)[\/\s](\d+\.\d+.\d+)/gim;
    var rmz5 = /(firefox)[\/\s](\d+\.\d)/gim;
    var rwb = /(webkit)[ \/]([\w.]+)/gim;
    var rch = /(chrome)[ \/]([\w.]+)/gim;
    var rop = /(opera)(?:.*version)?[ \/]([\w.]+)/gim;
    var rie = /(msie) ([\w.]+)/gim;
    var rsa = /(version)[ \/]([\w.]+)/gim;
    var match = rch.exec(mn.ua) || rop.exec(mn.ua) || rie.exec(mn.ua) || mn.ua.indexOf('compatible') < 0 && (rmz.exec(mn.ua) || rmz5.exec(mn.ua)) || mn.ua.indexOf('safari') < 0 && rwb.exec(mn.ua) || [];
    if (match.length == 0 && mn.ua.indexOf('safari') > 0) { /* for safari*/
        match = rsa.exec(mn.ua) || [];
        match[1] = 'safari';
    }
    var version = match[2] ? match[2].split('.')[0] : '0';
    switch (match[1]) {
        case 'msie': this.IsIE = true; brID = 2; break;
        case 'firefox': this.IsFF = true; brID = 3; break;
        case 'chrome': this.IsChrome = true; brID = 4; break;
        case 'safari': this.IsSafari = true; brID = 5; break;
        case 'opera': this.IsOpera = true; brID = 6; break;
        case 'webkit': this.IsWebkit = true; break;
        default: this.IsOther = true; this._vDeter = false; break;
    }
    return { Name: match[1] || '', FullVersion: match[2] || '0', Version: version, IsIE: this.IsIE, IsFF: this.IsFF, IsChrome: this.IsChrome, IsSafari: this.IsSafari, IsOpera: this.IsOpera, IsWebkit: this.IsWebkit, IsOther: this.IsOther,
        VersionDetermined: this.vDeter, ID: brID
    };
};
mn.Rnd = function () { return String(Math.random()).substr(2, 10); };
mn.TrackingURL = function(url) {
    if (url != null && url.length > 0) {
        url = url.replaceAll('http://', mn.http);
        url += (url.indexOf('&') > -1 ? '&' : '?') + 'DOL_chache=' + mn.Rnd();
        var trackImg = mn.d.createElement("img");
        trackImg.style.display = 'none';
        trackImg.src = url;
        mn.d.body.appendChild(trackImg);
    }
};
mn.Img = function (html, trackUrl) {
    document.write(html);
    mn.TrackingURL(trackUrl);
};
mn.Html = function (html, trackUrl) {
    document.write(html);
    mn.TrackingURL(trackUrl);
};
mn.Flash = function (strUrl, intWidth, intHeight, strNoFlash, strClick, strDestUrl, trackUrl, strMode) {
    var tmp = '';
    tmp = '<div style="position:relative;width:' + intWidth + 'px;height:' + intHeight + 'px;z-index:9">';
    if (mn.FlashSupport()) {
        var lclStrMode = (strMode == null) ? "transparent" : strMode;
        var flashSrc = strUrl + strClick + strDestUrl;
        tmp += '<object style="position:absolute;left:0px;top:0px;z-index:9;" border="0" height="' + intHeight + '" width="' + intWidth + '" align="top" id="Flash_' + flashSrc + '"';
        tmp += ' codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"';
        tmp += ' height="' + intHeight + '" width="' + intWidth + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">';
        tmp += '<param name="movie" value="' + flashSrc + '" />';
        tmp += '<param name="quality" value="high" />';
        tmp += '<param name="allowscriptaccess" value="always" />';
        tmp += '<param name="wmode" value="' + lclStrMode + '" />';
        tmp += '<embed id="embedFlash_' + flashSrc + '" ';
        tmp += ' src="' + flashSrc + '"';
        tmp += ' quality="high" wmode="' + lclStrMode + '"';
        tmp += ' style="position:relative; z-index:9;"';
        tmp += ' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"';
        tmp += ' allowscriptaccess="always"';
        tmp += ' type="application/x-shockwave-flash" width="' + intWidth + '" height="' + intHeight + '"></embed>';
        tmp += '</object>';
    }
    else {
        strClick = unescape(strClick) + escape(strDestUrl);
        tmp += '<a href="' + strClick + '" target="_blank"><img src="' + strNoFlash + '" alt="" style="border-style:none;"  width="' + intWidth + '" height="' + intHeight + '"/></a>';
    }
    tmp += '</div>';
    tmp = tmp.replaceAll('http://', mn.http);
    document.write(tmp);
    mn.TrackingURL(trackUrl);
};
mn.Rollover = function (strUrl, intWidth, intHeight, strNoFlash, strClick, strDestUrl, intMinWidth, intMinHeight, trackUrl, strMode) {
    var tmpStr = '';
    if (mn.FlashSupport()) {
        isRollOver = true;
        var lclStrMode = (strMode == null) ? 'transparent' : strMode;
        var flashSrc = strUrl + strClick + strDestUrl;
        if (!mn.Browser.IsIE) { // not ie
            if (typeof intMinWidth == "undefined" || intMinWidth == null) return;
            if (typeof intMinHeight == "undefined" || intMinHeight == null) return;
            tmpStr = "<div onmouseout=this.style.width='" + String(intMinWidth) + "px';this.style.height='" + String(intMinHeight) + "px' onmouseover=this.style.width='" + String(intWidth) + "px';this.style.height='" + String(intHeight) + "px' style='width:" + String(intMinWidth) + "px;height:" + String(intMinHeight) + "px;position:absolute;overflow:hidden;z-index:999990'>";
            tmpStr += '<object style="z-index:999990;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + String(intWidth) + '" height="' + String(intHeight) + '">';
            tmpStr += '<param name="movie" value="' + flashSrc + '" />';
            tmpStr += '<param name="quality" value="high" />';
            tmpStr += '<param name="wmode" value="' + lclStrMode + '" />';
            tmpStr += '<param name="allowscriptaccess" value="always" />';
            tmpStr += '<embed style="position:relative;z-index:999990;"';
            tmpStr += ' src="' + flashSrc + '"';
            tmpStr += ' width="' + String(intWidth) + ' " height="' + String(intHeight) + '"';
            tmpStr += ' allowScriptAccess="always" allowFullScreen="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>';
            tmpStr += "</object></div>";
            tmpStr = tmpStr.replaceAll('http://', mn.http);
            document.write(tmpStr);
            document.write("<div id='spacerForFF' style='width:" + String(intMinWidth) + "px;height:" + String(intMinHeight) + "px;z-index:0;'></div>");
        }
        else { // for ie
            var position = "";
            tmpStr = '<div id="____divRollCont" style="position:relative;top:0px;width:' + intWidth + 'px;z-index:999990">';
            tmpStr += '<object onmouseover="try{DOLBNR_hide();} catch(e) {}" onmouseout="try{DOLBNR_show();} catch(e) {}"';
            tmpStr += ' style="position:absolute;left:0px;top:0px;z-index:999990;"';
            tmpStr += ' codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"';
            tmpStr += ' width="' + intWidth + '" height="' + intHeight + '"';
            tmpStr += ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">';
            tmpStr += '<param name="movie" value="' + flashSrc + '" />';
            tmpStr += '<param name="quality" value="high" />';
            tmpStr += '<param name="wmode" value="' + lclStrMode + '" />';
            tmpStr += '<param name="allowscriptaccess" value="always" />';
            tmpStr += '<embed src="' + flashSrc + '"';
            tmpStr += ' quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"';
            tmpStr += ' type="application/x-shockwave-flash"';
            tmpStr += ' style="position:relative; z-index:999990;' + position + '"';
            tmpStr += ' wmode="' + lclStrMode + '"';
            tmpStr += ' width="' + intWidth + '" height="' + intHeight + '"';
            tmpStr += ' allowscriptaccess="always"></embed>';
            tmpStr += '</object></div>';
            tmpStr += '<div id="spacerForIE" style="width:' + String(intMinWidth) + 'px;height:' + String(intMinHeight) + 'px;z-index:0;"></div>';
            tmpStr = tmpStr.replaceAll('http://', mn.http);
            document.write(tmpStr);
        }
    }
    else {
        strClick = unescape(strClick) + escape(strDestUrl);
        tmpStr += '<a href="' + strClick + '" target="_blank"><img src="' + strNoFlash + '" alt="" style="border-style:none;"  width="' + intMinWidth + '" height="' + intMinHeight + '"/></a>';
        tmpStr = tmpStr.replaceAll('http://', mn.http);
        document.write(tmpStr);
    }
    mn.TrackingURL(trackUrl);
};
mn.FloatingBanner = function (strUrl, intWidth, intHeight, strNoFlash, strClick, strDestUrl, trackUrl, intLeft, intTop) {

    if (mn.d.body == null) {
        setTimeout("mn.FloatingBanner('" + strUrl + "'," + intWidth + "," + intHeight + ",'" + strNoFlash + "','" + strClick + "','" + strDestUrl + "'," + intLeft + "," + intTop + ");", 1000);
        return;
    }

    var ClosingTime = 8000;
    if ((typeof FloatingBannerClosingTime) != 'undefined') {
        ClosingTime = FloatingBannerClosingTime;
    }

    var clientWidth, clientHeight;
    if (mn.n.appName == "Netscape") {
        clientWidth = mn.d.body.clientWidth;
        clientHeight = mn.w.innerHeight;
    } else {
        clientWidth = mn.d.body.clientWidth;
        clientHeight = mn.d.body.clientHeight;
    }

    var lclIntX = (intLeft == null) ? 0 : intLeft;
    var lclIntY = (intTop == null) ? 0 : intTop;

    if (clientWidth < 770) clientWidth = 792;
    if (clientHeight < 750) clientHeight = 750;
    var positionLeft = (lclIntX == 0) ? (clientWidth / 2) - (intWidth / 2) : lclIntX;
    var positionTop = (lclIntY == 0) ? (clientHeight / 2) - (intHeight / 2) : lclIntY;
    var tmp = '<div id="' + mn.FloatingBannerID + '" style="position:absolute; z-index:2147483647; border:solid 1px #808080; text-align:center;';
    tmp += ' width:' + intWidth + 'px; height:' + intHeight + 'px;';
    tmp += ' left:' + positionLeft + 'px; top:' + positionTop + 'px;">';
    tmp += '<div style="position:absolute; text-align:right; width:' + intWidth + 'px; margin-top:-11px; left:16px;">';
    tmp += '<img src="http://ad.e-kolay.net/floating/close.png" alt="Kapat" title="Kapat" style="cursor:pointer;" onclick="mn.CloseBanner(mn.FloatingBannerID);" />';
    tmp += '</div>';
    if (mn.FlashSupport()) {
        var flashSrc = strUrl + strClick + strDestUrl;
        tmp += '<object id="mdnFloatingFlash" width="' + intWidth + '" height="' + intHeight + '"';
        tmp += ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0">';
        tmp += '<param name="movie" value="' + flashSrc + '" />';
        tmp += '<param name="wmode" value="transparent" />';
        tmp += '<param name="quality" value="high" />';
        tmp += '<param name="bgcolor" value="" />';
        tmp += '<param name="scale" value="noborder" />';
        tmp += '<param name="allowscriptaccess" value="always" />';
        tmp += '<embed id="floatingEmbed" src="' + flashSrc + '" quality="high" allowscriptaccess="always" wmode="transparent" scale="noborder"';
        tmp += ' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"';
        tmp += ' width="' + intWidth + '" height="' + intHeight + '"></embed>';
        tmp += '</object>';
    }
    else {
        strClick = unescape(strClick) + escape(strDestUrl);
        tmp += '<a href="' + strClick + '" target="_blank"><img src="' + strNoFlash + '" alt="" style="border-style:none;"  width="' + intWidth + '" height="' + intHeight + '"/></a>';
    }
    tmp += '</div>';
    tmp = tmp.replaceAll('http://', mn.http);
    setTimeout("mn.CloseBanner(mn.FloatingBannerID)", ClosingTime);
    document.write(tmp);
    mn.TrackingURL(trackUrl);
};

function MNetBanner(t) {
    if (t != null && typeof (t) != mn.un && t.length > 0) {
        document.write('<scr' + 'ipt type="text/javascript" src=' + mn.host + '/getad.a2?target=' + t + '&DOL_chache=' + mn.Rnd() + '><\/scri' + 'pt>');
    }
};

var isRollOver = false; var id_counter = 0; var _TargetCampaign = "";
var d_ = document;
var http = (('https:' == d_.location.protocol) ? 'https://' : 'http://');
var _btsrc = mn.http + 'ad.e-kolay.net/bt.js?v=2.0';
var blnIsNS = (navigator.appName.indexOf('Netscape') >= 0 && parseFloat(navigator.appVersion) >= 4) ? true : false;
var blnIsIE = (document.all) ? true : false; var blnIsMac = (navigator.appVersion.indexOf('Mac') != -1) ? true : false;
function DOLAD_popup(strUrl, intWidth, intHeight, intLeft, intTop)
{ DOLLcl_popWindow(strUrl, intWidth, intHeight, intLeft, intTop, true); }
function DOLAD_popunder(strUrl, intWidth, intHeight, intLeft, intTop)
{ DOLLcl_popWindow(strUrl, intWidth, intHeight, intLeft, intTop, false); }
function DOLLcl_popWindow(strUrl, intWidth, intHeight, intLeft, intTop, blnFocus) {
    var lclIntLeft = (intLeft == null || intLeft == 0) ? (screen.width - intWidth) / 2 : intLeft;
    var lclIntTop = (intTop == null || intTop == 0) ? (screen.height - intHeight) / 2 : intTop;
    var lclObjWin = window.open(strUrl, 'ekolay', 'toolbar=0,status=0,menubar=0,resizable=0,scrollbars=0,width=' + intWidth + 'px,height=' + intHeight + 'px,left=' + lclIntLeft + ',top=' + lclIntTop);
    if (!blnFocus) {
        lclObjWin.blur();
        self.focus();
    }
}
function DOLAD_flash(strUrl, intWidth, intHeight, intTop, intLeft, strMode) {
    var lclStrMode = (strMode == null) ? "transparent" : strMode;
    var tmp = '';
    if (intTop == null) {
        tmp += ('<div style="position:relative;width:' + intWidth + 'px;height:' + intHeight + 'px;z-index:9"><object style="position:absolute;left:0px;top:0px;z-index:9;" border="0" height="' + intHeight + '" width="' + intWidth + '" align="top" id="Flash_' + strUrl + '"' +
		' codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"' +
		' height="' + intHeight + '" width="' + intWidth + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" >' +
		'<param name="movie" value="' + strUrl + '" />' +
		'<param name="quality" value="high" />' +
		'<param name="allowscriptaccess" value="always" />' +
		'<param name="wmode" value="' + lclStrMode + '" />' +
		'<embed id="embedFlash_' + strUrl + '" ' +
		' src="' + strUrl + '"' +
		' quality="high" wmode="' + lclStrMode + '"' +
		' style="position:relative; z-index:9;"' +
		' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"' +
		' allowscriptaccess="always"' +
		' type="application/x-shockwave-flash" width="' + intWidth + '" height="' + intHeight + '"></embed>' +
		'</object></div>');
        tmp = tmp.replaceAll('http://', mn.http);
    }
    document.write(tmp);
}
function DOLAD_rollover(strUrl, intWidth, intHeight, clickUrl, rawClickUrl, strMode, intMinWidth, intMinHeight) {
    isRollOver = true;
    var lclStrMode = (strMode == null) ? "transparent" : strMode;
    var tempStrUrl = (rawClickUrl != 'http://') ? strUrl + clickUrl : strUrl;
    strUrl = tempStrUrl;
    var lclStrBnrId = "Bnr_" + (id_counter++);
    document.write("<div id='" + lclStrBnrId + "'></div>");

    if (window.navigator.appName.toLowerCase().indexOf('explorer') < 0) {
        if (typeof intMinWidth == "undefined" || intMinWidth == null) return;
        if (typeof intMinHeight == "undefined" || intMinHeight == null) return;
        var arrHtml = [];
        arrHtml.push("<div onmouseout=this.style.width='" + String(intMinWidth) + "px';this.style.height='" + String(intMinHeight) + "px' onmouseover=this.style.width='" + String(intWidth) + "px';this.style.height='" + String(intHeight) + "px' style='width:" + String(intMinWidth) + "px;height:" + String(intMinHeight) + "px;position:absolute;overflow:hidden;z-index:999990'>");
        arrHtml.push('<object style="z-index:999990;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + String(intWidth) + '" height="' + String(intHeight) + '">');
        arrHtml.push('<param name="movie" value="' + strUrl + '" />');
        arrHtml.push('<param name="quality" value="high" />');
        arrHtml.push('<param name="wmode" value="' + lclStrMode + '" />');
        arrHtml.push('<param name="allowscriptaccess" value="always" />');
        arrHtml.push('<embed style="position:relative;z-index:999990;" src="' + strUrl + '" width="' + String(intWidth) + '" height="' + String(intHeight) + '" allowScriptAccess="always" allowFullScreen="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>');
        arrHtml.push("</object></div>");
        var tmp1 = arrHtml.join('');
        tmp1 = tmp1.replaceAll('http://', mn.http);
        document.write(tmp1);
        document.write("<div id='spacerForFF' style='width:" + String(intMinWidth) + "px;height:" + String(intMinHeight) + "px;z-index:0;'></div>");
    }
    else {
        //var lyr = document.getElementById(lclStrBnrId);
        var position = ""; //(blnIsIE) ? '' : 'left:' + lyr.PageX + ';top:' + lyr.PageY;
        var tmp;
        tmp = '' +
		'<div id="____divRollCont" style="position:relative;top:0px;width:' + intWidth + 'px;z-index:999990" ' +
		' >' +
		'<object onmouseover="try{DOLBNR_hide();} catch(e) {}" onmouseout="try{DOLBNR_show();} catch(e) {}"' +
		' style="position:absolute;left:0px;top:0px;z-index:999990;"' +
		' codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"' +
		' width="' + intWidth + '" height="' + intHeight + '"' +
		' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
		'>' +
		'<param name="movie" value="' + strUrl + '" />' +
		'<param name="quality" value="high" />' +
		'<param name="wmode" value="' + lclStrMode + '" />' +
		'<param name="allowscriptaccess" value="always" />' +
		'<embed' +
		' src="' + strUrl + '"' +
		' quality="high"' +
		' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"' +
		' type="application/x-shockwave-flash"' +
		' style="position:relative; z-index:999990;' + position + '"' +
		' wmode="' + lclStrMode + '"' +
		' width="' + intWidth + '" height="' + intHeight + '"' +
		' allowscriptaccess="always"' +
		'></embed>' +
		'</object></div>' +
		'<div id="spacerForIE" style="width:' + String(intMinWidth) + 'px;height:' + String(intMinHeight) + 'px;z-index:0;"></div>';
        tmp = tmp.replaceAll('http://', mn.http);
        document.write(tmp);
    }
}

function DOLAD_img(html, trackUrl) { mn.Img(html, trackUrl); }
function DOLAD_HTML(html, trackUrl) { mn.Html(html, trackUrl); }

function ge(id) { return d_.getElementById ? d_.getElementById(id) : d_.all(id); }
function DOLAD_floating(strUrl, clickUrl, intWidth, intHeight, intLeft, intTop) {
    if (window.navigator.appName.toLowerCase().indexOf('explorer') > 0) {
        var clientWidth, clientHeight;
        if (navigator.appName == "Netscape") {
            clientWidth = d_.body.clientWidth;
            clientHeight = window.innerHeight;
        } else {
            clientWidth = d_.body.clientWidth;
            clientHeight = d_.body.clientHeight;
        }
        var lclIntX = (intLeft == null) ? 0 : intLeft;
        var lclIntY = (intTop == null) ? 0 : intTop;
        var rnd = Math.ceil(Math.random() * 99999999);

        if (clientWidth < 770) clientWidth = 792;
        var positionLeft = (lclIntX == 0) ? (clientWidth / 2) - (intWidth / 2) : lclIntX;
        var positionTop = (lclIntY == 0) ? (clientHeight / 2) - (intHeight / 2) : lclIntY;

        var tmp = '' +
		'<div id="floatingDiv' + rnd + '" ' +
		' align="center" style="position: absolute; width:' + intWidth + 'px; height:' + intHeight + 'px; z-index:2147483647;left:' + positionLeft + 'px;top:' + positionTop + 'px;"> ' +
		' <object id="flashobj' + rnd + '" style="z-index:2147483647;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' +
		' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ' +
		' width="' + intWidth + '" height="' + intHeight + '" align="middle"> ' +
		'    <param name="movie" value="' + strUrl + clickUrl + '"> ' +
		'    <param name="quality" value="high" />' +
		'    <param name="BGCOLOR" value="" />' +
		'    <param name="scale" value="noborder" />' +
		'    <param name="wmode" value="transparent" />' +
		'    <param name="allowscriptaccess" value="always" />' +
		'    <embed id="floatingEmbed' + rnd + '" src="' + strUrl + clickUrl + '" quality="high" allowscriptaccess="always" wmode="transparent" z-index="2147483647" scale="noborder" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" ' +
		' width="' + intWidth + '" height="' + intHeight + '" align="absmiddle"> ' +
		'    </embed> </object> ' +
		'  </div> ' +
		'<script language="javascript"> ' +
		'window.floatingDiv' + rnd + '.style.left=' + positionLeft + '; ' +
		'window.floatingDiv' + rnd + '.style.top=' + positionTop + '; ' +
		'</script> ' +
		'<script language="javascript"> ' +
		'function closeFloatingDiv(){ge("floatingDiv' + rnd + '")' +
		'.style.visibility = "hidden"}' +
		'</script> ';
        tmp = tmp.replaceAll('http://', mn.http);
        document.write(tmp);
    }
}
function DOLAD_RePos() { }
function getCookie(strName) {
    var arrCookie = document.cookie.split(";");
    for (var i = 0; i < arrCookie.length; i++) {
        var cookie = arrCookie[i].split("=");
        while (cookie[0].indexOf(" ") == 0) cookie[0] = cookie[0].substr(1);
        if (strName == cookie[0]) return unescape(cookie[1]);
    }
    return "";
}
function DOL_createcookie(name, value, days) {
    var expires = "";
    if (days) {
        var date = new Date();
        date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
        expires = "; expires=" + date.toGMTString();
    }
    document.cookie = name + "=" + value + expires + "; path=ad.e-kolay.net";
}
function setCookie(strName, strValue) { document.cookie = strName + "=" + escape(strValue); }
function flashCookie(cookiename) {
    var getCookieObj = document.getElementById(cookiename);
    var cookieValue = getCookie(cookiename);
    if (getCookieObj == null)
        setTimeout("flashCookie('" + cookiename + "');", 200);
    else
        getCookieObj.SetVariable('_root.cookievalue', cookieValue);
}
function DolRandom() {
    return String(Math.random()).substr(2, 10);
}
function CloseFloatingBanner() { ge("mdnFloating").style.visibility = "hidden"; }

function FloatingBanner(strUrl, clickUrl, intWidth, intHeight, intLeft, intTop) {

    if (d_.body == null) {
        setTimeout("FloatingBanner('" + strUrl + "','" + clickUrl + "'," + intWidth + "," + intHeight + "," + intLeft + "," + intTop + ");", 1000);
        return false;
    }

    var ClosingTime = 8000;
    if ((typeof FloatingBannerClosingTime) != 'undefined') {
        ClosingTime = FloatingBannerClosingTime;
    }

    var clientWidth, clientHeight;
    if (navigator.appName == "Netscape") {
        clientWidth = document.body.clientWidth;
        clientHeight = window.innerHeight;
    } else {
        clientWidth = document.body.clientWidth;
        clientHeight = document.body.clientHeight;
    }

    var lclIntX = (intLeft == null) ? 0 : intLeft;
    var lclIntY = (intTop == null) ? 0 : intTop;

    if (clientWidth < 770) clientWidth = 792;
    if (clientHeight < 750) clientHeight = 750;
    var positionLeft = (lclIntX == 0) ? (clientWidth / 2) - (intWidth / 2) : lclIntX;
    var positionTop = (lclIntY == 0) ? (clientHeight / 2) - (intHeight / 2) : lclIntY;

    var tmp = '<div id="mdnFloating" ' +
    'style="position:absolute; z-index:2147483647; border:solid 1px #808080; width:' + intWidth + 'px; height:' + intHeight + 'px; text-align:center; left:' + positionLeft + 'px; top:' + positionTop + 'px;">' +
    ' <div style="position:absolute; text-align:right; width:' + intWidth + 'px; margin-top:-11px; left:16px;">' +
    '    <img src="http://ad.e-kolay.net/floating/close.png" alt="Kapat" title="Kapat" style="cursor:pointer;" onclick="CloseFloatingBanner();" />' +
    ' </div>' +
    ' <object id="mdnFloatingFlash" width="' + intWidth + '" height="' + intHeight + '"' +
    '     classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"> ' +
    '    <param name="movie" value="' + strUrl + clickUrl + '" />' +
    '    <param name="wmode" value="transparent" />' +
    '    <param name="quality" value="high" />' +
    '    <param name="bgcolor" value="" />' +
    '    <param name="scale" value="noborder" />' +
    '    <param name="allowscriptaccess" value="always" />' +
    '    <embed id="floatingEmbed" src="' + strUrl + clickUrl + '" quality="high" allowscriptaccess="always" wmode="transparent" scale="noborder" ' +
    '        pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" ' +
    '        width="' + intWidth + '" height="' + intHeight + '"></embed> ' +
    ' </object> ' +
    '</div>';
    tmp = tmp.replaceAll('http://', mn.http);
    setTimeout("CloseFloatingBanner()", ClosingTime);
    document.write(tmp);
}

function FloatingBannerHTML(htmlCode, intWidth, intHeight, intLeft, intTop) {

    if (d_.body == null) {
        setTimeout("FloatingBannerHTML('" + htmlCode + "','" + intWidth + "," + intHeight + "," + intLeft + "," + intTop + ");", 1000);
        return false;
    }

    var ClosingTime = 8000;
    if ((typeof FloatingBannerClosingTime) != 'undefined') {
        ClosingTime = FloatingBannerClosingTime;
    }

    var clientWidth, clientHeight;
    if (navigator.appName == "Netscape") {
        clientWidth = document.body.clientWidth;
        clientHeight = window.innerHeight;
    } else {
        clientWidth = document.body.clientWidth;
        clientHeight = document.body.clientHeight;
    }

    var lclIntX = (intLeft == null) ? 0 : intLeft;
    var lclIntY = (intTop == null) ? 0 : intTop;

    if (clientWidth < 770) clientWidth = 792;
    if (clientHeight < 750) clientHeight = 750;
    var positionLeft = (lclIntX == 0) ? (clientWidth / 2) - (intWidth / 2) : lclIntX;
    var positionTop = (lclIntY == 0) ? (clientHeight / 2) - (intHeight / 2) : lclIntY;

    var tmp = '<div id="mdnFloating" ' +
        'style="position:absolute; z-index:2147483647; border:solid 1px #808080; width:' + intWidth + 'px; height:' + intHeight + 'px; text-align:center; left:' + positionLeft + 'px; top:' + positionTop + 'px;">' +
            ' <div style="position:absolute; text-align:right; width:' + intWidth + 'px; margin-top:-11px; left:16px;">' +
                '    <img src="http://ad.e-kolay.net/floating/close.png" alt="Kapat" title="Kapat" style="cursor:pointer;" onclick="CloseFloatingBanner();" />' +
                    ' </div><iframe src="' + htmlCode + '" frameborder="0" scrolling="no" height="' + intHeight + '" width="' + intWidth + '"></iframe>' +
                        '</div>';
    tmp = tmp.replaceAll('http://', mn.http);    
    setTimeout("CloseFloatingBanner()", ClosingTime);
    document.write(tmp);
}
function mn_DetectDoctype() {
    var re = /\s+(X?HTML)\s+([\d\.]+)\s*([^\/]+)*\//gi; var res = false;
    if (document.doctype != null) { res = re.test(document.doctype.publicId); } else if (typeof document.namespaces != "undefined") { res = document.all[0].nodeType == 8 ? re.test(document.all[0].nodeValue) : false; } else { res = false; }
    if (res) { res = new Object(); res['xhtml'] = RegExp.$1; res['version'] = RegExp.$2; res['importance'] = RegExp.$3; return res; }
    else { return null; }
}
function mn_AddLoadEvent(func) { var oldEvent = window.onload; window.onload = (typeof window.onload != 'function') ? func : function () { oldEvent(); func(); }; }
function mn_AddBeforeUnLoad(func) { var oldEvent = window.beforeunload; window.onload = (typeof window.beforeunload != 'function') ? func : function () { oldEvent(); func(); }; }
function mn_AddOnUnLoad(func) { var oldEvent = window.onunload; window.onunload = (typeof window.onunload != 'function') ? func : function () { oldEvent(); func(); }; }

function DOL_IFrame(src, width, height) {
    var random = DolRandom();
    src = src.replace("[timestamp]", random);
    src = src.replaceAll('http://', mn.http);
    var id = "iframe_" + src;
    if (navigator.userAgent.toLowerCase().indexOf("firefox") > -1) {
        document.write("<iframe src='' name='" + id + "' id='" + id + "' width='" + width + "' height='" + height + "'  border='0' frameborder='0' scrolling='no' marginwidth='0' marginheight='0' style='z-index:9;'></iframe>");
        setTimeout("document.getElementById('" + id + "').src='" + src + "'", 300);
    }
    else {
        document.write("<iframe src='" + src + "' name='" + id + "' id='" + id + "' width='" + width + "' height='" + height + "'  border='0' frameborder='0' scrolling='no'  marginwidth='0' marginheight='0' style='z-index:9;'></iframe>");
    }
}

function DOL_MakeRequestImg(url) {
    if (url != null && url.length > 0) {
        url = url.replaceAll('http://', mn.http);
        url += (url.indexOf('&') > -1 ? '&' : '?') + 'DOL_chache=' + mn.Rnd();
        var trackImg = mn.d.createElement("img");
        trackImg.style.display = 'none';
        trackImg.src = url;
        mn.d.body.appendChild(trackImg);
    }
}

function AdBePShow(width, height, duration, flashUrl, clickUrl) {
    var divAd = document.getElementById("Medyanet-AdBeP");
    var divPlayer = document.getElementById("Medyanet-ClientPlayer");

    divPlayer.style.display = 'none';
    divAd.style.display = 'block';

    var code = '' +
    '<div id="Outer" style="height:' + divAd.style.height + '; text-align:center; width:' + divAd.style.width + '; display:table-cell; vertical-align:middle; z-index:2147483646;">' +
        '<div style="border:solid 1px #808080; width:' + width + 'px; margin:auto; ">' +
            '<div style="width:' + width + 'px; text-align:right; position:absolute; z-index:2147483646;">' +
                '<img style="margin-top:-13px; right:-16px; cursor:pointer; position:absolute;" src="http://ad.e-kolay.net/floating/close.png" alt="Kapat" title="Kapat" onclick="AdBePClose();" />' +
            '</div>' +
            '<object width="' + width + '" height="' + height + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' +
                ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0">' +
                '<param name="movie" value="' + flashUrl + '?clickTAG=' + clickUrl + '" />' +
                '<param name="wmode" value="transparent" /><param name="quality" value="high" /><param name="scale" value="noborder" /><param name="allowscriptaccess" value="always" />' +
                '<embed id="embed" src="' + flashUrl + '?clickTAG=' + clickUrl + '" quality="high" allowscriptaccess="always" ' +
                    'wmode="transparent" scale="noborder" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" ' +
                    'width="' + width + '" height="' + height + '"></embed>' +
            '</object>' +
        '</div>' +
    '</div>';
    code = code.replaceAll('http://', mn.http);
    divAd.innerHTML = code;

    if (duration != "0") {
        setTimeout("AdBePClose();", duration * 1000);
    }
}
function AdBePClose() {
    var divAd = document.getElementById("Medyanet-AdBeP");
    var divPlayer = document.getElementById("Medyanet-ClientPlayer");

    divPlayer.style.display = 'block';
    divAd.style.display = 'none';
}
function mn_LoadJs(filePath) {
    if (filePath != null && filePath.length > 3) {
        try {
            filePath = filePath.replaceAll("http://", mn.http);
            var jsf = document.createElement('script');
            jsf.type = 'text/javascript';
            jsf.src = filePath;
            jsf.id = filePath;
            jsf.async = true;
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(jsf);
        } catch (e) { }
    }
}
function DOL_PageSkinLoad(targetName) {
    var dolRandom = String(Math.random()).substr(2, 10);
    mn_LoadJs(mn.http + 'ad.e-kolay.net/getxml.a2?target=' + targetName + '&rnd=' + dolRandom);
    mn_LoadJs(mn.http + 'ad.e-kolay.net/pageskin/mn_pageskin.js?v=1.82');
    setTimeout(function () { mn_PageSkinLoad(psp.w, psp.c, psp.p, psp.bi, psp.t, psp.bg, psp.st); }, 700);
}
document.write('<div id="__swfCont" style="position:absolute; top:-500px; left:-500px;"></div><div id="__swfBtCont" style="position:absolute; top:-500px; left:-500px;"></div>');
mn_LoadJs(_btsrc);



// Preview Overlay
function MedyanetPreviewOverlayClose() {
    document.getElementById("MedyanetPreviewOverlayContainer").innerHTML = "";
    document.getElementById("MedyanetPreviewOverlayContainer").style.display = 'none';
}

function MedyanetPreviewOverlay(src, clickURL, width, height) {
    var code = "";
    code += "<div id='MedyanetPreviewOverlayContainer' onclick='MedyanetPreviewOverlayClose();' style='width:100%; height:100%; top:0; left:0; position:fixed; z-index:555555; cursor:pointer; text-align:center; background:url(http://ad.e-kolay.net/PreviewOverlay/Background.png) 0 0;'>";
    code += "   <div id='MedyanetPreviewOverlayCloseButton' onclick='MedyanetPreviewOverlayClose();' style='width:27px; height:27px; cursor:pointer; background:url(http://ad.e-kolay.net/PreviewOverlay/Close.png) 0 0 no-repeat; z-index:555555; float:left; left:15px; top:15px; position:absolute;'></div>";
    code += "   <div id='MedyanetPreviewOverlayContent'>";
    code += BuildSwfCode('MedyanetPreviewOverlay', width, height, src + "?clickTAG=" + clickURL);
    code += "   </div>";
    code += "</div>";
    document.write(code);
}

function BuildSwfCode(id, width, height, src) {
    var code = "";
    code += "<object id='" + id + "' width='" + width + "' height='" + height + "' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'>";
    code += "   <param name='movie' value='" + src + "'>";
    code += "   <param name='allowscriptaccess' value='always'>";
    code += "   <param name='quality' value='high'>";
    code += "   <param name='wmode' value='transparent'>";
    code += "   <embed id='" + id + "' src='" + src + "'  height='" + height + "' width='" + width + "' ";
    code += "       pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' quality='high' wmode='transparent' ";
    code += "       allowscriptaccess='always' type='application/x-shockwave-flash' />";
    code += "</object>";
    return code;
}
