$(document).ready(function() {
						   
  $('#nav').append('<li class="nav1"><a class="nav-tcr-blog" href="/tcr-blog/">Blog</a></li>');
  
  
  var container = $("#page-container");
  var header = $("#header");
  var nav = $("#nav");
  var search_form = $("#searchForm");
  
  
  function fixedscroll() {
	var offset = container.offset();
	//header.css("position","fixed");
	nav.css("left", offset.left + 10 + "px").show();
	search_form.css("left", offset.left + 10 + "px").show();
  }
  
  
  function positionLikeButton() {
	if ($(window).width() < 1175) {
		$('#fb-like').css('top','-27px');
		$('#fb-like').css('left','513px');
		$('#twitter-button').css('top','-27px');
		$('#twitter-button').css('left','455px');
		//$('.post-date').css('top','-23px');
		//$('.post-date').css('right','136px');
	} else {
		$('#fb-like').css('top','6px');
		$('#fb-like').css('left','102%');
		$('#twitter-button').css('top','30px');
		$('#twitter-button').css('left','102%');
		//$('.post-date').css('top','9px');
		//$('.post-date').css('right','25px');
	}
  }
  
  
  $(window).resize(function() {
	fixedscroll();
	positionLikeButton();
  })
  
  fixedscroll();
  positionLikeButton(); 
  
  var feature_image = $('#feature-image');
  $(window).bind("load", function() { 
	$('#issue-cover-wrapper').css('width',feature_image.width());
	//$('#feature-buy').css('top',feature_image.height() - 17);
	$('#feature-buy').show();
	$('#feature-contents').css('top',feature_image.height() + 21);
	$('#feature-contents').show();
  });
  
});


