﻿Cufon.replace('.splashTop .header', {fontFamily: 'hl.md.cn'});
Cufon.replace('.splashTop .subHeader', {fontFamily: 'hl.md'});
Cufon.replace('.splashTop .description', {fontFamily: 'hl'});

$(document).ready(function(){
    $('#SplashBottom .block').click(    
        function() {
            var href = $(this).children('.description').children('.link').attr('href');
            window.location = href;
        }
    );
    $('#SplashBottom .activeBlock').click(    
        function() {
            var href = $(this).children('.description').children('.link').attr('href');
            window.location = href;
        }
    );
    $('#SplashBottom .inactiveBlock').click(    
        function() {
            var href = $(this).children('.description').children('.link').attr('href');
            window.location = href;
        }
    );
    $('#SplashBottom .block').hover(    
        function() {
            $(this).children('.abstract').show();
            $('#SplashBottom .block').css({'opacity':'0.6'});
            $(this).css({'opacity':'1.0'});
        },    
        function() {      
            $(this).children('.abstract').hide();
            $('#SplashBottom .block').css({'opacity':'1.0'});
        }
    );
    $('#SplashBottom .inactiveBlock').hover(    
        function() {
            $(this).children('.abstract').show();
            $('#SplashBottom .inactiveBlock').css({'opacity':'0.6'});
            $(this).css({'opacity':'1.0'});
        },    
        function() {      
            $(this).children('.abstract').hide();
            $('#SplashBottom .inactiveBlock').css({'opacity':'0.6'});
        }
    );
    $('#SplashBottom .inactiveBlock').css({'opacity':'0.6'});
    $('.subPage').css({'opacity':'0.88'});
});

