
function getWidth() {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return myWidth;
}


function transform() {
	var windowWidth = getWidth();
	if (windowWidth > 1200) {
		$(".shortlinks_place, .index_clients li:eq(2), .dop_content").show();
		$("#work5").show();
		$("#kill_width").width("530px");
		$(".blog_content div.post-wrapper").css({'width':'30%'}).eq(2).show();

	} else {
		$(".shortlinks_place, .index_clients li:eq(2), .dop_content").hide();
		$("#work5").hide();
		$("#kill_width").width("400px");
		$(".blog_content div.post-wrapper").css({'width':'45%'}).eq(2).hide();

	}
	
}


$(window).resize(function(){
	transform();
});


$(document).ready(function(){
	transform();

	var teamscroll = setInterval(function(){
		$('.index_team li').slice(0, 5).insertAfter('.index_team li:last');
	}, 3000);

});
