﻿$(function () {
    // Querystring'e Erişim
    var urlParams = {};
    (function () {
        var e,
        a = /\+/g,
        r = /([^&=]+)=?([^&]*)/g,
        d = function (s) { return decodeURIComponent(s.replace(a, " ")); },
        q = window.location.search.substring(1);

        while (e = r.exec(q))
            urlParams[d(e[1])] = d(e[2]);
    })();
   
    if (!$.browser.msie) {

    }

    $('.little-logos ul li:last').css('border-right', 'none');

    $('#float-popup')
			.css('opacity', '0.2')
			.hover(function () {
			    $(this).fadeTo(200, 1);
			}, function () {
			    $(this).fadeTo(200, 0.2);
			});

    $('#popup-window').css('opacity', '0');
    $("a.externalLink").click(function () {
        var href = $(this).attr('href');
        $('#popup-window iframe')
					.attr('src', href)
					.parent()
					.css('display', 'block')
					.animate({ 'opacity': '1' }, 300);
        return false;
    });

    $('#popup-window .buttons a.close-this').click(function () {
        $(this).parent().parent().animate({ 'opacity': '0' }, 300, function () {
            $(this).css('display', 'none');
        });
        return false;
    });
});
