$(document).ready(function(){

    $('.toValidate').validate();
    
    $('.home-phade-loader').show();
    $('.home-phade').hide();
    
    $('.line-cycle-loader').show();
    $('.line-cycle').hide();
    $('a#prev').hide();
    $('a#next').hide();
    
    
    $('a.fancyprod').fancybox({
        'zoomSpeedIn': 300,
        'zoomSpeedOut': 300,
        'overlayShow': true,
        'zoomOpacity': true,
        'overlayOpacity': 0.8,
        'autoheight': false,
        'height': 800,
        'width': 600
    });
    $('a.fancybox').fancybox({
        'zoomSpeedIn': 300,
        'zoomSpeedOut': 300,
        'overlayShow': true,
        'zoomOpacity': true,
        'overlayOpacity': 0.8
    });
    
    $("ul.sf-menu").superfish();
    
});



$(window).load(function(){
    setTimeout(function(){
        $('.home-phade-loader').hide();
    }, 1100);
    setTimeout(function(){
        $('.home-phade').show();
    }, 1100);
    $('div.home-phade').cycle({
        fx: 'fade',
        timeout: 1500,
        speed: 1500
    });
    $('div.right-home-news-padding').cycle({
        fx: 'fade',
        timeout: 8500,
        speed: 750
    });
    $('div.left-home-news-padding').cycle({
        fx: 'fade',
        timeout: 8500,
        speed: 750
    });
    
    setTimeout(function(){
        $('.line-cycle-loader').hide();
    }, 1100);
    
    setTimeout(function(){
        $('.line-cycle').show();
    }, 1100);
    
    setTimeout(function(){
        $('a#prev').show();
    }, 1100);
    setTimeout(function(){
        $('a#next').show();
    }, 1100);
    
    $('div.line-cycle').cycle({
        fx: 'fade',
        speed: 'fast',
        timeout: 0,
        next: '#next',
        prev: '#prev'
    });
    $('div.product-cycle').cycle({
        fx: 'fade',
        speed: 'fast',
        timeout: 0,
        next: '#next',
        prev: '#prev'
    });
    //	    	$('.product-image').cycle({
    //        fx: 'fade',
    //        timeout: 1500,
    //        speed: 1500
    //    });

});

