function initHrescak()
{

	//jQuery(".thumbnail").bind("mouseover", function(event){ thumbOver(event)});
	//jQuery(".thumbnail").bind("mouseout", function(event){ thumbOut(event)});
	jQuery("#infobutton").bind("mouseover", function(event){ infoOver(event)});
	jQuery("#infobutton").bind("mouseout", 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)});
	jQuery("#profileslide").bind("click", function(event){ closeProfile(); return false});
}

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

function thumbOut(event){
	var tarObject = jQuery(event.target).closest("div").find(".feature");
	jQuery(event.target).closest("div").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("#profilewrapper").data('open')){
		closeProfile();
	}else{
		openProfile();
	}
	
	return false;
}

function openProfile(){
	jQuery("#infobutton").addClass("active");
	jQuery("#profilewrapper").data('open', 1);
	jQuery("#profilewrapper").slideDown("slow", function(){
													jQuery("#infobutton strong").html("slide back up");
													jQuery("#profilearrow").animate({bottom:0}, "fast");
													});
	
}

function closeProfile(){
	jQuery("#infobutton").removeClass();
	jQuery("#profilewrapper").data('open', 0);
	jQuery("#profilewrapper").slideUp("slow",  function(){
													jQuery("#infobutton strong").html("info & contact");
													jQuery("#profilearrow").animate({bottom:-12}, "fast");
													});
	
}

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

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

}
