﻿$(Document_Loaded);

function Document_Loaded() {



    externalLinks();
    tabmenu();
}
function runpopup(filename, h, w) {
    popup = window.open(filename, null, "height=" + h + ",width=" + w + ",scrollbars=1")
    popup.focus();
    if (popup.document.close()) {
        popup.document.close()
    }
}
function tabmenu() {
    $('#nav-social ul li a span').css({ opacity: 0 });

    $('#nav-social ul li a').hover(function () { $(this).find('span').animate({ top: -30, opacity: 1 }, 200); }, function () { $(this).find('span').animate({ top: -40, opacity: 0 }, 200); });
    $("#nav_tabs .tab_content").hide(); $("#nav_tabs ul.tabs li:first").addClass("active").show(); $("#nav_tabs .tab_content:first").show();
    $("#nav_tabs ul.tabs li").click(function () {
        $("#nav_tabs ul.tabs li").removeClass("active"); $(this).addClass("active"); $("#nav_tabs .tab_content").hide();
        var activeTab = $(this).find("a").attr("href");
        $(activeTab).fadeIn();
        return false;
    });
    $("#com_tabs .tab_content").hide(); $("#com_tabs ul.tabs li:first").addClass("active").show(); $("#com_tabs .tab_content:first").show();
    $("#com_tabs ul.tabs li").click(function () {
        $("#com_tabs ul.tabs li").removeClass("active");
        $(this).addClass("active"); $("#com_tabs .tab_content").hide();
        var activeTab = $(this).find("a").attr("href");
        $(activeTab).fadeIn();

        return false;
    });
  }
function kimpop(alan, uzanti) {
    runpopup('/domain.aspx?do=' + alan + "&do2=" + uzanti, 460, 400);
}

function externalLinks() {
    if (!document.getElementsByTagName) return;
    var anchors = document.getElementsByTagName("a");
    for (var i = 0; i < anchors.length; i++) {
        var anchor = anchors[i];
        if (
			anchor.getAttribute("href") && (
			anchor.getAttribute("rel") == "external" ||
			anchor.getAttribute("rel") == "external nofollow" ||
			anchor.getAttribute("rel") == "nofollow external")
			)
            anchor.target = "_blank";
    }
}
