function initHrescak()
{

	jQuery(".thumbnail").bind("mouseenter", function(event){ thumbOver(event)});
	jQuery(".post").bind("mouseleave", function(event){ thumbOut(event)});
	jQuery("#infobutton").bind("mouseenter", function(event){ infoOver(event)});
	jQuery("#infobutton").bind("mouseleave", function(event){infoOut(event)});
	jQuery("#infobutton").bind("click", function(event){ infoClick(event); return false;});
	jQuery("#socnets li a").bind("mouseover", function(event){ showSocTooltip(event)});
	jQuery("#socnets li a").bind("mouseout", function(event){ hideSocTooltip(event)});
}

function thumbOver(event){
	//alert(event.target);
	var tarObject = jQuery(event.target).closest("div").find(".feature");
	tarObject.show();
	jQuery(event.target).closest("div.post").animate({height: 245}, "fast");
}

function thumbOut(event){
	var tarObject = jQuery(event.target).closest("div").find(".feature");
	jQuery(event.target).closest("div.post").animate({height: 201}, "fast" , function(){tarObject.hide()});
}

function infoOver(event){
	jQuery("#infobutton strong").fadeIn();
}

function infoOut(event){
	//var tarObject = jQuery(event.target).find("strong");
	jQuery("#infobutton strong").fadeOut();

}

function infoClick(event){

	if(jQuery("#header").data('open')){
		jQuery(event.target).removeClass();
		jQuery("#header").data('open', 0);
		jQuery("#header").animate({height:81}, "slow",  function(){jQuery("#infobutton strong").html("info & contact")});
	
	}else{
		jQuery(event.target).addClass("active");
		jQuery("#header").data('open', 1);
		jQuery("#header").animate({height:197}, "slow", function(){jQuery("#infobutton strong").html("slide back up")});
	}
	
	return false;
}

function showSocTooltip(event){
	var content = jQuery(event.target).html();
	jQuery("#soctooltip").html(content);
}

function hideSocTooltip(event){
	jQuery("#soctooltip").html("");

}