/* begin Page */

/* Generated with Artisteer version 2.5.0.31067, file checksum is 62DEAB7F. */

// required for IE7, #150675
if (window.addEvent) window.addEvent('domready', function() { });

var artEventHelper = {
    'bind': function(obj, evt, fn) {
        if (obj.addEventListener)
            obj.addEventListener(evt, fn, false);
        else if (obj.attachEvent)
            obj.attachEvent('on' + evt, fn);
        else
            obj['on' + evt] = fn;
    }
};

var artUserAgent = navigator.userAgent.toLowerCase();

var artBrowser = {
    version: (artUserAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [])[1],
    safari: /webkit/.test(artUserAgent) && !/chrome/.test(artUserAgent),
    chrome: /chrome/.test(artUserAgent),
    opera: /opera/.test(artUserAgent),
    msie: /msie/.test(artUserAgent) && !/opera/.test(artUserAgent),
    mozilla: /mozilla/.test(artUserAgent) && !/(compatible|webkit)/.test(artUserAgent)
};

artCssHelper = function() {
    var is = function(t) { return (artUserAgent.indexOf(t) != -1) };
    var el = document.getElementsByTagName('html')[0];
    var val = [(!(/opera|webtv/i.test(artUserAgent)) && /msie (\d)/.test(artUserAgent)) ? ('ie ie' + RegExp.$1)
    : is('firefox/2') ? 'gecko firefox2'
    : is('firefox/3') ? 'gecko firefox3'
    : is('gecko/') ? 'gecko'
    : is('chrome/') ? 'chrome'
    : is('opera/9') ? 'opera opera9' : /opera (\d)/.test(artUserAgent) ? 'opera opera' + RegExp.$1
    : is('konqueror') ? 'konqueror'
    : is('applewebkit/') ? 'webkit safari'
    : is('mozilla/') ? 'gecko' : '',
    (is('x11') || is('linux')) ? ' linux'
    : is('mac') ? ' mac'
    : is('win') ? ' win' : ''
    ].join(' ');
    if (!el.className) {
        el.className = val;
    } else {
        var newCl = el.className;
        newCl += (' ' + val);
        el.className = newCl;
    }
} ();

(function() {
    // fix ie blinking
    var m = document.uniqueID && document.compatMode && !window.XMLHttpRequest && document.execCommand;
    try { if (!!m) { m('BackgroundImageCache', false, true); } }
    catch (oh) { };
})();

var artLoadEvent = (function() {
    var list = [];

    var done = false;
    var ready = function() {
        if (done) return;
        done = true;
        for (var i = 0; i < list.length; i++)
            list[i]();
    };

    if (document.addEventListener && !artBrowser.opera)
        document.addEventListener('DOMContentLoaded', ready, false);

    if (artBrowser.msie && window == top) {
        (function() {
            try {
                document.documentElement.doScroll('left');
            } catch (e) {
                setTimeout(arguments.callee, 10);
                return;
            }
            ready();
        })();
    }

    if (artBrowser.opera) {
        document.addEventListener('DOMContentLoaded', function() {
            for (var i = 0; i < document.styleSheets.length; i++) {
                if (document.styleSheets[i].disabled) {
                    setTimeout(arguments.callee, 10);
                    return;
                }
            }
            ready();
        }, false);
    }

    if (artBrowser.safari || artBrowser.chrome) {
        var numStyles;
        (function() {
            if (document.readyState != 'loaded' && document.readyState != 'complete') {
                setTimeout(arguments.callee, 10);
                return;
            }
            if ('undefined' == typeof numStyles) {
                numStyles = document.getElementsByTagName('style').length;
                var links = document.getElementsByTagName('link');
                for (var i = 0; i < links.length; i++) {
                    numStyles += (links[i].getAttribute('rel') == 'stylesheet') ? 1 : 0;
                }
                if (document.styleSheets.length != numStyles) {
                    setTimeout(arguments.callee, 0);
                    return;
                }
            }
            ready();
        })();
    }

    if (!(artBrowser.msie && window != top)) { // required for Blogger Page Elements in IE, #154540
        artEventHelper.bind(window, 'load', ready);
    }
    return ({
        add: function(f) {
            list.push(f);
        }
    })
})();


function artGetElementsByClassName(clsName, parentEle, tagName) {
    var elements = null;
    var found = [];
    var s = String.fromCharCode(92);
    var re = new RegExp('(?:^|' + s + 's+)' + clsName + '(?:$|' + s + 's+)');
    if (!parentEle) parentEle = document;
    if (!tagName) tagName = '*';
    elements = parentEle.getElementsByTagName(tagName);
    if (elements) {
        for (var i = 0; i < elements.length; ++i) {
            if (elements[i].className.search(re) != -1) {
                found[found.length] = elements[i];
            }
        }
    }
    return found;
}

var _artStyleUrlCached = null;
function artGetStyleUrl() {
    if (null == _artStyleUrlCached) {
        var ns;
        _artStyleUrlCached = '';
        ns = document.getElementsByTagName('link');
        for (var i = 0; i < ns.length; i++) {
            var l = ns[i];
            if (l.href && /style\.ie6\.css(\?.*)?$/.test(l.href)) {
                return _artStyleUrlCached = l.href.replace(/style\.ie6\.css(\?.*)?$/, '');
            }
        }

        ns = document.getElementsByTagName('style');
        for (var i = 0; i < ns.length; i++) {
            var matches = new RegExp('import\\s+"([^"]+\\/)style\\.ie6\\.css"').exec(ns[i].innerHTML);
            if (null != matches && matches.length > 0)
                return _artStyleUrlCached = matches[1];
        }
    }
    return _artStyleUrlCached;
}

function artFixPNG(element) {
    if (artBrowser.msie && artBrowser.version < 7) {
        var src;
        if (element.tagName == 'IMG') {
            if (/\.png$/.test(element.src)) {
                src = element.src;
                element.src = artGetStyleUrl() + 'images/spacer.gif';
            }
        }
        else {
            src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);
            if (src) {
                src = src[1];
                element.runtimeStyle.backgroundImage = 'none';
            }
        }
        if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "')";
    }
}

function artHasClass(el, cls) {
    return (el && el.className && (' ' + el.className + ' ').indexOf(' ' + cls + ' ') != -1);
}
/* end Page */

/* begin Layout */
function artLayoutIESetup() {
    var isIE = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
    if (!isIE) return;
    var q = artGetElementsByClassName("content-layout", document, "div");
    if (!q || !q.length) return;
    for (var i = 0; i < q.length; i++) {
        var l = q[i];
        var l_childs = l.childNodes;
        var r = null;
        for (var p = 0; p < l_childs.length; p++) {
            var l_ch = l_childs[p];
            if ((String(l_ch.tagName).toLowerCase() == "div") && artHasClass(l_ch, "content-layout-row")) {
                r = l_ch;
                break;
            }
        }
        if (!r) continue;
        var c = [];
        var r_childs = r.childNodes;
        for (var o = 0; o < r_childs.length; o++) {
            var r_ch = r_childs[o];
            if ((String(r_ch.tagName).toLowerCase() == "div") && artHasClass(r_ch, "layout-cell")) {
                c.push(r_ch);
            }
        }
        if (!c || !c.length) continue;
        var table = document.createElement("table");
        table.className = l.className;
        var row = table.insertRow(-1);
        table.className = l.className;
        for (var j = 0; j < c.length; j++) {
            var cell = row.insertCell(-1);
            var s = c[j];
            cell.className = s.className;
            while (s.firstChild) {
                cell.appendChild(s.firstChild);
            }
        }
        l.parentNode.insertBefore(table, l);
        l.parentNode.removeChild(l);
    }
}
artLoadEvent.add(artLayoutIESetup);
/* end Layout */

function artIsIncluded(href1, href2) {
    if (href1 == null || href2 == null)
        return href1 == href2;
    if (href1.indexOf("?") == -1 || href1.split("?")[1] == "")
        return href1.split("?")[0] == href2.split("?")[0];
    if (href2.indexOf("?") == -1 || href2.split("?")[1] == "")
        return href1.replace("?", "") == href2.replace("?", "");
    if (href1.split("?")[0] != href2.split("?")[0])
        return false;
    var params = href1.split("?")[1];
    params = params.split("&");
    var i, par1, par2, nv;
    par1 = new Array();
    for (i in params) {
        if (typeof (params[i]) == "function")
            continue;
        nv = params[i].split("=");
        if (nv[0] != "FormFilter")
            par1[nv[0]] = nv[1];
    }
    params = href2.split("?")[1];
    params = params.split("&");
    par2 = new Array();
    for (i in params) {
        if (typeof (params[i]) == "function")
            continue;
        nv = params[i].split("=");
        if (nv[0] != "FormFilter")
            par2[nv[0]] = nv[1];
    }
    for (i in par1)
        if (par1[i] != par2[i])
        return false;
    return true;
}
/* end VMenu */


(function(a) {
    a.fn.bPopup = function(f, j) {
        function s() {
            var b = a("input[type=text]", c).length != 0, k = o.vStart != null ? o.vStart : d.scrollTop() + g; c.css({ left: d.scrollLeft() + h, position: "absolute", top: k, "z-index": o.zIndex }).appendTo(o.appendTo).hide(function() {
                b && c.each(function() { c.find("input[type=text]").val("") }); if (o.loadUrl != null) {
                    o.contentContainer = o.contentContainer == null ? c : a(o.contentContainer); switch (o.content) {
                        case "ajax": o.contentContainer.load(o.loadUrl); break; case "iframe": a('<iframe width="100%" height="100%"></iframe>').attr("src",
o.loadUrl).appendTo(o.contentContainer); break; case "xlink": a("a#bContinue").attr({ href: o.loadUrl }); a("a#bContinue .btnLink").text(a("a.xlink").attr("title"))
                    }
                }
            }).fadeIn(o.fadeSpeed, function() { b && c.find("input[type=text]:first").focus(); a.isFunction(j) && j() }); t()
        } function i() {
            o.modal && a("#bModal").fadeOut(o.fadeSpeed, function() { a("#bModal").remove() }); c.fadeOut(o.fadeSpeed, function() { o.loadUrl != null && o.content != "xlink" && o.contentContainer.empty() }); o.scrollBar || a("html").css("overflow", "auto"); a("." +
o.closeClass).die("click"); a("#bModal").die("click"); d.unbind("keydown.bPopup"); e.unbind(".bPopup"); c.data("bPopup", null); return false
        } function u() { if (m) { var b = [d.height(), d.width()]; return { "background-color": o.modalColor, height: b[0], left: l(), opacity: 0, position: "absolute", top: 0, width: b[1], "z-index": o.zIndex - 1} } else return { "background-color": o.modalColor, height: "100%", left: 0, opacity: 0, position: "fixed", top: 0, width: "100%", "z-index": o.zIndex - 1} } function t() {
            a("." + o.closeClass).live("click", i); o.modalClose &&
a("#bModal").live("click", i).css("cursor", "pointer"); o.follow && e.bind("scroll.bPopup", function() { c.stop().animate({ left: d.scrollLeft() + h, top: d.scrollTop() + g }, o.followSpeed) }).bind("resize.bPopup", function() { if (o.modal && m) { var b = [d.height(), d.width()]; n.css({ height: b[0], width: b[1], left: l() }) } b = p(c, o.amsl); g = b[0]; h = b[1]; c.stop().animate({ left: d.scrollLeft() + h, top: d.scrollTop() + g }, o.followSpeed) }); o.escClose && d.bind("keydown.bPopup", function(b) { b.which == 27 && i() })
        } function l() {
            return e.width() < a("body").width() ?
0 : (a("body").width() - e.width()) / 2
        } function p(b, k) { var q = (e.height() - b.outerHeight(true)) / 2 - k, v = (e.width() - b.outerWidth(true)) / 2 + l(); return [q < 20 ? 20 : q, v] } if (a.isFunction(f)) { j = f; f = null } o = a.extend({}, a.fn.bPopup.defaults, f); o.scrollBar || a("html").css("overflow", "hidden"); var c = a(this), n = a('<div id="bModal"></div>'), d = a(document), e = a(window), r = p(c, o.amsl), g = r[0], h = r[1], m = a.browser.msie && parseInt(a.browser.version) == 6 && typeof window.XMLHttpRequest != "object"; this.close = function() { o = c.data("bPopup"); i() };
        return this.each(function() { if (!c.data("bPopup")) { o.modal && n.css(u()).appendTo(o.appendTo).animate({ opacity: o.opacity }, o.fadeSpeed); c.data("bPopup", o); s() } })
    }; a.fn.bPopup.defaults = { amsl: 150, appendTo: "body", closeClass: "bClose", content: "ajax", contentContainer: null, escClose: true, fadeSpeed: 250, follow: true, followSpeed: 500, loadUrl: null, modal: true, modalClose: true, modalColor: "#000", opacity: 0.7, scrollBar: true, vStart: null, zIndex: 9999 }
})($);

function modalDialogBox(baslik, icerik) {
    $('.reklamHead').html(baslik);
    $('.reklamBody').html(icerik);
    $("#reklambox").bPopup();
}

function modalDialogBox2() {
    $("#yardimbox").bPopup();
}




//Transparency Adjustments
$(document).ready(function() {
    $('.transparent').each(function() {
        $(this).hover(
                    function() {
                        $(this).stop().animate({ opacity: 0.7 }, 200);
                    },
                   function() {
                       $(this).stop().animate({ opacity: 1.0 }, 200);
                   })
    });
});

//Menu System
$(document).ready(function() {
    ddsmoothmenu.init({
    mainmenuid: "cssmenu", //menu DIV id
        orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
        classname: 'ddsmoothmenu', //class added to menu's outer DIV
        contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    })
});

//Header Transparency Setting
$(document).ready(function() {
    $('#cssmenu').transify({ opacityOrig: .8, percentWidth: '100%' });
});



//Tool Tip JavaScript
$(document).ready(function() {
    $('.tool-tip').tipsy({ trigger: 'focus', gravity: 's', fade: true });
});


// Transify v1.0 - Adjusts Transparency on Header
// COPYRIGHT JOREN RAPINI 2010
// jorenrapini@gmail.com
(function($) {
    $.fn.transify = function(options) {
        var defaults = {
            opacityOrig: .6,
            fadeSpeed: 600
        },
		  settings = $.extend({}, defaults, options);

        this.each(function() {
            var $this = $(this);
            $this.append('<div class="transify"></div>');
            var transBG = $this.find('.transify');
            transBG.css({
                backgroundColor: $this.css('backgroundColor'),
                backgroundImage: $this.css('backgroundImage'),
                backgroundRepeat: $this.css('backgroundRepeat'),
                borderTopColor: $this.css('borderTopColor'),
                borderTopWidth: $this.css('borderTopWidth'),
                borderTopStyle: $this.css('borderTopStyle'),
                borderRightColor: $this.css('borderRightColor'),
                borderRightWidth: $this.css('borderRightWidth'),
                borderRightStyle: $this.css('borderRightStyle'),
                borderBottomColor: $this.css('borderBottomColor'),
                borderBottomWidth: $this.css('borderBottomWidth'),
                borderBottomStyle: $this.css('borderBottomStyle'),
                borderLeftColor: $this.css('borderLeftColor'),
                borderLeftWidth: $this.css('borderLeftWidth'),
                borderLeftStyle: $this.css('borderLeftStyle'),
                position: 'absolute',
                top: 0,
                left: 0,
                zIndex: -1,
                width: $this.width() + parseInt($this.css("padding-left"), 10) + parseInt($this.css("padding-right"), 10),
                height: $this.height() + parseInt($this.css("padding-top"), 10) + parseInt($this.css("padding-bottom"), 10),
                opacity: settings.opacityOrig
            });
            if (settings.percentWidth) {
                transBG.css('width', settings.percentWidth);
            }
            $this.css({
                zIndex: 10,
                position: 'relative',
                background: 'none',
                border: 'none'
            })

            if (settings.opacityNew) {
                $this.hover(function() {
                    transBG.stop().animate({ opacity: settings.opacityNew }, settings.fadeSpeed);
                }, function() {
                    transBG.stop().animate({ opacity: settings.opacityOrig }, settings.fadeSpeed);
                });
            }
        });
        return this;
    }
})(jQuery);




(function($) {
    $.fn.tipsy = function(options) {

        options = $.extend({}, $.fn.tipsy.defaults, options);

        return this.each(function() {

            var opts = $.fn.tipsy.elementOptions(this, options);

            $(this).hover(function() {

                $.data(this, 'cancel.tipsy', true);

                var tip = $.data(this, 'active.tipsy');
                if (!tip) {
                    tip = $('<div class="tipsy"><div class="tipsy-inner"/></div>');
                    tip.css({ position: 'absolute', zIndex: 100000 });
                    $.data(this, 'active.tipsy', tip);
                }

                if ($(this).attr('title') || typeof ($(this).attr('original-title')) != 'string') {
                    $(this).attr('original-title', $(this).attr('title') || '').removeAttr('title');
                }

                var title;
                if (typeof opts.title == 'string') {
                    title = $(this).attr(opts.title == 'title' ? 'original-title' : opts.title);
                } else if (typeof opts.title == 'function') {
                    title = opts.title.call(this);
                }

                tip.find('.tipsy-inner')[opts.html ? 'html' : 'text'](title || opts.fallback);

                var pos = $.extend({}, $(this).offset(), { width: this.offsetWidth, height: this.offsetHeight });
                tip.get(0).className = 'tipsy'; // reset classname in case of dynamic gravity
                tip.remove().css({ top: 0, left: 0, visibility: 'hidden', display: 'block' }).appendTo(document.body);
                var actualWidth = tip[0].offsetWidth, actualHeight = tip[0].offsetHeight;
                var gravity = (typeof opts.gravity == 'function') ? opts.gravity.call(this) : opts.gravity;

                switch (gravity.charAt(0)) {
                    case 'n':
                        tip.css({ top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 }).addClass('tipsy-north');
                        break;
                    case 's':
                        tip.css({ top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 }).addClass('tipsy-south');
                        break;
                    case 'e':
                        tip.css({ top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth }).addClass('tipsy-east');
                        break;
                    case 'w':
                        tip.css({ top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }).addClass('tipsy-west');
                        break;
                }

                if (opts.fade) {
                    tip.css({ opacity: 0, display: 'block', visibility: 'visible' }).animate({ opacity: 0.8 });
                } else {
                    tip.css({ visibility: 'visible' });
                }

            }, function() {
                $.data(this, 'cancel.tipsy', false);
                var self = this;
                setTimeout(function() {
                    if ($.data(this, 'cancel.tipsy')) return;
                    var tip = $.data(self, 'active.tipsy');
                    if (opts.fade) {
                        tip.stop().fadeOut(function() { $(this).remove(); });
                    } else {
                        tip.remove();
                    }
                }, 100);

            });

        });

    };

    // Overwrite this method to provide options on a per-element basis.
    // For example, you could store the gravity in a 'tipsy-gravity' attribute:
    // return $.extend({}, options, {gravity: $(ele).attr('tipsy-gravity') || 'n' });
    // (remember - do not modify 'options' in place!)
    $.fn.tipsy.elementOptions = function(ele, options) {
        return $.metadata ? $.extend({}, options, $(ele).metadata()) : options;
    };

    $.fn.tipsy.defaults = {
        fade: false,
        fallback: '',
        gravity: 'n',
        html: false,
        title: 'title'
    };

    $.fn.tipsy.autoNS = function() {
        return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n';
    };

    $.fn.tipsy.autoWE = function() {
        return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w';
    };

})(jQuery);


$(document).ready(function() {
    $(".waiting").ready(function() {
        $(".waiting").fadeOut(2000);
    });
});



function onlinetpe(sname) {

    var boy = (screen.availHeight - 750) / 2;
    var en = (screen.availWidth - 850) / 2;

    pencere = window.open(sname, "", "toolbar=0,location=0,resizable=1,history=1,directories=0,status=0,menubar=0,scrollbars=1,left=" + en + ",top=" + boy + ",width=840,height=680");
    pencere.focus();
}
