$(function(){
	
    /*
    $(".video").click(function(e){
        e.preventDefault();
        
        //opera bug hide fixed divs
        //$(".overlay").css({"position":"fixed"});

        $(".video_preview").show()//stop(true, true).fadeIn(0);
        $("#video_title").html($(this).attr("title"));
        $(".overlay-container").css({ "width":$(this).attr("relW")+"px", "height":$(this).attr("relH")+"px", "margin-top":"-"+($(this).attr("relH")/2)+"px", "margin-left":"-"+($(this).attr("relW")/2)+"px"  });

        showVideo($(this).attr("rel"), $(this).attr("relW"), $(this).attr("relH"));
    })

    $("#close_preview, .overlay").click(function(e){
        e.preventDefault();

        //opera bug hide fixed divs
        //$(".overlay").css({"position":"absolute"});

        $(".video_preview").hide();//stop(true, true).fadeOut(0);
    })
    */
})


function showVideo(code, w, h){
	swfobject.embedSWF("http://www.youtube.com/v/"+code+"&enablejsapi=1&playerapiid=ytplayer&showinfo=0", "ytplayer", w, h, "8", null, null, { allowScriptAccess: "always" });
}
