// Put the height of the product overview
function goSetImage(){

  var subnav = jQuery("#sub-nav");
  
  var containerHeight = 0;
  containerHeight = jQuery("#content").height();
  
  var heightArrows = 0;

  var topmargin = 0;
  if (jQuery(".arrows",subnav).children().size()!= 0){
     heightArrows = jQuery(".arrows", subnav).height();
     topmargin = 20;
  }
 
  var imageHeight = 0;
  imageHeight = jQuery("#navcontainer").height();
  
  
  var margin =  0;
  if((heightArrows+100+imageHeight)> containerHeight) 
   	margin = 100;
  else
  	margin = containerHeight - heightArrows - imageHeight - topmargin - 12; //substract margin-top of subnav and margin-bottom of imagecontainer
  	

	
  //alert("Container: " + maximaHeight);
  //alert("Nav: " + heightArrows);
  //alert("Images: " + imageHeight);
  //alert("Margin: " + margin);
	jQuery("#navcontainer").css("margin-top", margin);
	jQuery("#navcontainer").css("margin-left", "12px");
	jQuery("#navcontainer").css("margin-bottom", "12px");
	jQuery("#nav-logo").css("visibility", "visible");

}
