﻿$(document).ready(function() {
    // fancyBox anable
    $("a[href*=.jpg], a[href*=.gif], a[href*=.png],a[href*=.JPG], a[href*=.GIF], a[href*=.PNG]").fancybox();

    $(".menu ul li:has(ul)").hover(
        function() { var this_ = $(this).find('ul'); $(this_).slideDown('slow'); }
        , function() { var this_ = $(this).find('ul'); $(this_).slideUp('fast'); }
    );

// a effct
//        $("a:not(:has(img)), .footer-wrap a:has(img), .middle-left a").animate({ opacity: 0.5 }, 300);
//        $("a:not(:has(img)), .footer-wrap a:has(img), .middle-left a").hover(
//        $("a:not(:has(img)), .footer-wrap a:has(img)").animate({ opacity: 1 }, 300);
//        $("a:not(:has(img)), .footer-wrap a:has(img)").hover(
        $(".footer-wrap a:has(img)").animate({ opacity: 1 }, 300);
        $(".footer-wrap a:has(img)").hover(
            function() {
                $(this).animate({ opacity: 0.7 }, 300)
            },
            function() {
                $(this).animate({ opacity: 1 }, 300)
        }
    );

    // Kurumsal Logo effct
        $("a:has(img)").animate({ opacity: 1 }, 300);
        $("a:has(img)").hover(
                function() {
            $(this).animate({ opacity: 0.7 }, 300)
                },
                function() {
                    $(this).animate({ opacity: 1 }, 300)
                }
            );

        $('#birthDay').cycle({
            fx: 'fade',
            speed: 1300,
            timeout: 5000 
        });

});        // Jquery

