var d = 500;
var w = 0;

function changeLayout(w){
	if($(window).width() < w){
		$("#top_line, #bottom_line, #middle_line").animate({width: w},d, "linear", function(){
			$("html,document").removeClass("overflow");
		});
	}else{
		$("#top_line, #bottom_line, #middle_line").width("auto");
	}
};

function controlWrappersLayout(w){
	$("#content_wrapper").animate({width: w}, d);
	changeLayout(w);
}

$(document).ready(function(){
	$("a.fancy, a.video, a.audio").colorbox();
});

