/*
	Dependencies: jquery 1.3.1
*/

var GHK = {} 
GHK.Home = {} 

GHK.Home.onLoad = function () {
	/* position the section rollovers and make them visible */
	$("#SectionIntros .Inner").each (
		function(index, theEl){
			theEl.style.marginTop="-" + $(theEl).height() + 'px';
			theEl.style.display = 'block';
		}
	);
	
	/*section intro hover*/
   $(".SectionIntro").hover(
		function (){
			$(this).find(".Inner").animate({marginTop: 0}, 300);
		}
		,
		function (){
			var theText = $(this).find(".Inner");
			$(theText).animate({marginTop: "-" + $(theText).height()}, 300);
		}
	);
   
   /*section intro click*/
   $(".SectionIntro").click (
		function (){
			window.location = GHK.Home.SectionIntroLinks[this.id];
		}
	);
}
$(document).ready(function () { GHK.Home.SectionIntroLinks = { 'PublicPolicyIntro': 'Services/PublicPolicyConsultancy/tabid/130/Default.aspx', 'InternationalDevIntro': 'Services/InternationalDevelopment.aspx', 'PortsLogisticsIntro': 'Services/PortsandLogisticsConsultancy/tabid/132/Default.aspx', 'News': '/News/tabid/126/Default.aspx' }; GHK.Home.onLoad() });


