// JavaScript Document
function loadContents(clickedID)
{
	  var title = document.getElementById('containerTitleHolder');
	  var page = "";
	  var pic = "";
	  var func = 0;
	  
	  if(clickedID == "title_marketing"){ page = "marketing_promotion.html"; pic = "mktgpromotion.png"; func =0; }
	  if(clickedID == "title_product"){ page = "product_awareness.html"; pic = "prodawareness.png"; func =0; }
	  if(clickedID == "title_training"){ page = "training.html"; pic = "training.png"; func =0; }
	
	  if(clickedID == "title_cs1"){ page = "cs1.html"; pic = "cs1.png"; func =0; }
  	  if(clickedID == "title_cs2"){ page = "cs2.html"; pic = "cs2.png"; func =0; }
	  if(clickedID == "title_cs3"){ page = "cs3.html"; pic = "cs3.png"; func =0; }
	  if(clickedID == "title_cs4"){ page = "cs4.html"; pic = "cs4.png"; func =0; }
	  
	  if(clickedID == "title_principals"){ page = "principals.html"; pic = "principals.png"; func = 4; }	 
	  if(clickedID == "title_annualsupport"){ page = "annual_support.html"; pic = "annualsupport.png"; func = 4;  }	 	  
  	  if(clickedID == "title_projmgmt"){ page = "project_management.html"; pic = "projmgmt.png"; func = 4;  }	 	  
  	  if(clickedID == "title_platform"){ page = "platform_flexibility.html"; pic = "platform.png"; func = 4;  }	 	  
  	  if(clickedID == "title_learning"){ page = "learning.html"; pic = "learning.png"; func = 4;  }	 	  
  	  if(clickedID == "title_whywbm"){ page = "why_wbm.html"; pic = "whywbm.png"; func = 4;  }	 	  
  	  if(clickedID == "title_philosophy"){ page = "philosophy.html"; pic = "philosophy.png"; func = 4;  }	 	  	  
  	  if(clickedID == "title_clients"){ page = "clients.html"; pic = "clients.png"; func = 4;  }	 	  	  
	 

	  $("#container_body").fadeOut("fast", function() {
			  $("#container_body").load(page, { 'choices[]': ["a"] }, function(){
					clearHeight();
					if(func == 0) setLongest();
					if(func == 4) setLongest4();			
			  });
			  $("#container_body").fadeIn("slow");
			  
	  });
	  $("#containerTitleHolder").fadeOut("fast", function() {
			this.src = "../images/container-titles/"+ pic;
			$("#containerTitleHolder").fadeIn("slow");
	  });
}