
var doIndex = function(){
    
    
    $('#container-index').height($(window).height());
    var windowH = $(window).height()-$('#header').height()-$('#footer-index').height()-5;
    
    if(windowH < 300)
        windowH = 300;
        
        
    $('#flashcontent').height(windowH);
    $('#BJ').attr('height', windowH);
    //var so = new SWFObject("public/www/flash/video2.swf", "BJ", "100%", windowH+"px", "8", "#BEC702");
	//so.write('flashcontent');


    


}


$(document).ready(function(){





if($('#container-index').length > 0){
    doIndex();
    $(window).resize(function(){
        window.setTimeout(doIndex, 500);
    });


}



});
