﻿
var videopath = "";
var swfplayer = videopath + "swf/flowplayer.swf";

$(document).ready(function() {
    // fancyBox anable
    $("a[href*=.jpg], a[href*=.gif], a[href*=.png],a[href*=.JPG], a[href*=.GIF], a[href*=.PNG]").fancybox();

    $(".anaokulu, .ilkogretim, .lise, .menu ul li ul").click(
        function() { var this_ = $(this).find('ul'); $(this_).slideToggle('fast'); if (jQuery.browser.msie) $(this_).get(0).style.removeAttribute('filter'); }
    //,function() { var this_ = $(this).find('ul'); $(this_).slideToggle('fast');}
    );
    $(".menu ul li:has(ul)").hover(
        function() { var this_ = $(this).find('ul'); $(this_).slideDown('slow'); if (jQuery.browser.msie) $($(this_)).get(0).style.removeAttribute('filter'); }
        , function() {
            var this_ = $(this).find('ul'); $(this_).slideUp('fast');
            if (jQuery.browser.msie) $(this_).get(0).style.removeAttribute('filter');
        }
    );

    $("#kurumlar img").animate({ opacity: 0.5 }, 300);
    $("#kurumlar img").hover(
        function() {
            $(this).animate({ opacity: 1 }, 300);
            if (jQuery.browser.msie) $(this).get(0).style.removeAttribute('filter');
        },
        function() {
            $(this).animate({ opacity: 0.5 }, 300);
            if (jQuery.browser.msie) $(this).get(0).style.removeAttribute('filter');
        }
    );

    // 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(
            function() {
                $(this).animate({ opacity: 0.7 }, 300);
                if (jQuery.browser.msie) $(this).get(0).style.removeAttribute('filter');
                
            },
            function() {
                        $(this).animate({ opacity: 1 }, 300); 
                        if (jQuery.browser.msie) $(this).get(0).style.removeAttribute('filter');
                        
                    }
    );

    // Kurumsal Logo effct
    $("a:has(img)").animate({ opacity: 1 }, 300);
    $("a:has(img)").hover(
                function() {
                    $(this).animate({ opacity: 0.7 }, 300);
                    if (jQuery.browser.msie) $(this).get(0).style.removeAttribute('filter');
                },
                function() {
                    $(this).animate({ opacity: 1 }, 300);
                    if (jQuery.browser.msie) $(this).get(0).style.removeAttribute('filter');
                }
            );
    //    // Kurumsal Logo effct
    //        $(".okul_tanitim a:has(img)").animate({ opacity: 0.7 }, 300);
    //        $(".okul_tanitim a:has(img)").hover(
    //                function() {
    //                    $(this).animate({ opacity: 1 }, 300)
    //                },
    //                function() {
    //                    $(this).animate({ opacity: 0.7 }, 300)
    //                }
    //            );


});             // Jquery
