﻿
    $(document).ready(function() {
    
        $('.btn_randevu_al').flash({ src: '/_swf/randevu_al.swf', width: 192, height: 66, menu: false, wmode: 'transparent' }, { version: 8 });
        //$('.menu_flash').flash({ src: '/_swf/swf_menu.swf', width: 950, height: 32, menu: false, wmode: 'transparent' }, { version: 8 });
        $(".subleft-flash").flash({ src: '/_swf/danisma_hatti.swf', width: 200, height: 65, menu: false, wmode: 'transparent' }, { version: 8 });
    
        $('.hassub').hover(function() {
            $(this).find('.menuover').show();
            $('#overlay').show();
            //$('#overlay').css('height', $(window).height());
            $('#overlay').css('height', document.documentElement.clientHeight);
            
        }, function() {
            $(this).find('.menuover').hide();
            $('#overlay').hide();
        });
        
        $(".Modal-Box .modal-close a").click(function(){
         ModalClose()
        });
        
        $(window).bind('load resize', function() {
            $('#overlay').css({ 'height': $(window).height()});
        });
        
        $(window).scroll(function() {
            $(".Modal-Box").css("position","absolute");
            $(".Modal-Box").css("margin-top", $(window).scrollTop()-180 + "px");
        });
        
        $('.topmenu a').hover(function() {
            $(this).addClass('tmover');
        }, function() {
            $(this).removeClass('tmover');
        });
        
        
        $('#topbar .toplink').hover(function() {
            $(this).addClass('tbarhover');
        }, function() {
            $(this).removeClass('tbarhover');
        });
        
        jQuery.each(jQuery.browser, function(i) {
           if(!$.browser.msie){
                $('body').css('min-height', document.documentElement.clientHeight - 25); 
                $(window).resize(function() {
                    $('body').css('min-height', document.documentElement.clientHeight - 25); 
                });
           }
         });            
    });
    
    function ModalOpen(){
        $('#overlay').css('height', document.documentElement.clientHeight);
        $('#overlay').addClass("overlay-strng");
        $('#overlay').show();
        $(".Modal-Box").show();
        $(".overlay-strng").bind('click', function() {
            ModalClose()
        }); 
    }    
     
    function ModalClose(){    
        $('#overlay').hide();
        $(".Modal-Box").hide();
        $('#overlay').removeClass("overlay-strng");
        $(".overlay-strng").unbind('click'); 
    }

