 var IS_HOME = true;

/**
 * Use for the index page javascript control
 * @author raincreativelab
 */ 
function adjustSize() {
	var containers = new Array();
	containers = ["#container_work", "#container_casestudy", "#container_ideas", "#container_news"];

	/////////////////////////////////////////////////////////
	// HEIGHT ADJUSTMENT CONTROLS
	// Adjust the header section first
	headerHeight = $(containers[0]+" .heading_section").height();
	for(i=0; i<containers.length; i++) {
		if($(containers[i]+" .heading_section").height() > headerHeight) {
			headerHeight = $(containers[i]+" .heading_section").height();
		}
	}
	
	// Adjust the text section
	textHeight = $(containers[0]+" .text_section").height();
	for(i=0; i<containers.length; i++) {
		if($(containers[i]+" .text_section").height() > headerHeight) {
			textHeight = $(containers[i]+" .text_section").height();
		}
	}
	
	
	
	for(i=0; i<containers.length; i++) {
		$(containers[i]+" .heading_section").height(headerHeight);
		$(containers[i]+" .text_section").height(textHeight+8);
	}
	
	$(containers[3]+" .text_section").height(textHeight-9);
	
	targetHeight = $(containers[0]).height();
	for(i=0; i<containers.length; i++) {
		if($(containers[i]).height() > targetHeight) {
			targetHeight = $(containers[i]).height();
		}
		 
	}
	
	offset = 17;
	$("#container_work .text_section").height($("#container_work .text_section").height()+3);
	
	$("#container_work .container").height(targetHeight-offset);
	$("#container_casestudy .container").height((targetHeight-offset)+1);
	
	$("#container_ideas .container").height((targetHeight-offset) - $("#container_ideas .transparent_base").height());
	$("#container_news .container").height((targetHeight-offset) - $("#container_news .transparent_base").height());
	/////////////////////////////////////////////////////////
	
}
