$(document).ready(function(){//swfVideo = 0;// bg flash init ------------------------------------------------------------------//      swfVideo =  $('#bgVideo div').flashNew({swf: '/flash/vcr.swf?vid=/flash/kraus2.flv', params: {AllowScriptAccess: 'always',menu: true}, height: '100%', width: '100%'});      //videoStop();      // bg image init ----------------------------------------------------------------------$.backstretch("/img/bg/1.jpg");// news functions --------------------------------------------------------------------                    $('#news').show();            var lck = false;            var vys = false;            $('#items li div').hide();            $('#items li').hover(function() {            if (lck == false  && $(this).find('div').css("display") == "none") {            lck = true;            $(this).css("width", "150px");            $(this).find('div').css("width", "150px");            $('#news').animate({width: '705px'},"fast");            $(this).find('div p').hide();            $(this).find('div h3').hide();            //$(this).find('div').fadeIn();            $(this).animate({width: '250px'},"fast");            $(this).find('div').delay(2).animate({width: '250px'},"fast", function () {            $(this).find('div').animate({height: 'slow'});              $(this).find('p').show();              $(this).find('h3').show();            });       }        },        function() {          //alert($(this).find('div').css("display"));          if (lck == true && $(this).find('div').css("display") == "block") {            //$('#news').animate({top: '312'});            $(this).find('div').slideUp('fast', function() {            //$(this).find('div').animate({width: 'slow'}, function() {            $('#items li').css("width", "150px");            $('#news').animate({width: '605px'},0, function() {            lck = false;            });          });          }        });         //  $('#videoStop').click(function() {//    $(this).toggleClass('play pause');//     videoStop();//  });//  $('#bgPatern, #bgVideo').click(function() {//    $('#videoStop').toggleClass('play pause');//     videoStop();//  });//  $.doTimeout(1,function() {  //  videoStop();//    $('#videoStop').toggleClass('play pause');//  });// video control ---------------------------------------------------------------------//function videoStop() {//  $('#bgVideo div').flashNew(//    function() {//      this.vidStop();//    });//}});
