// JavaScript Document

$(document).ready(function () {
		
		var wH=$(window).height();
		var ocH=$('#overall-container').height();
		var occomH=$('#com-overall-container').height();
		//alert (wH);
		var occomTop=(wH-occomH)/2;
		//alert("wh"+wH+"ocH"+ocH+"occomH"+occomH+"occomTop"+occomTop);
		if(wH>occomH){
			$('#com-overall-container').css("top",occomTop+"px");	
		}
		else if(occomH>wH){
			$('#com-overall-container').css("top","0px");
		}
		
});

$(window).resize(function() {
		var wH=$(window).height();
		
		var occomH=$('#com-overall-container').height();
		
		var occomTop=(wH-occomH)/2;
		
		if (wH>occomH){
			$('#com-overall-container').css("top",occomTop+"px");
		}
		else if(occomH>wH){
			$('#com-overall-container').css("top","0px");
		}
  
});

