$("html").addClass("js");

$(document).ready(function(){
    
    //click on video play button
    if($(".video")) {
        $(".video .playbtn").click(function(){  
            $(this).nextAll().filter("div").css("display","block");
            $(this).nextAll().filter(".loading").css("z-index", "11");
            $(this).nextAll().filter(".loading").fadeIn("normal");
            
            $(this).animate({opacity:0}, 1000, function(){
                $(this).css("display","none");
            });   
                      
            $(this).animate({opacity:1}, 2000, function(){ 
                $(this).nextAll().filter("div").children("object").css("visibility","visible");                  
                $(this).nextAll().filter(".videoclip").animate({opacity:0}, 1000, function(){
                    $(this).css("display","none");
                });
                $(this).nextAll().filter(".loading").animate({opacity:0}, 1000, function(){
                    $(this).css("display","none");
                });
            });
           return false;
        });
    }
});  // end initializations