$(function(){ //on DOM loaded

/* ** Attaches onhover triggers to .jq_buttons to do the crossfade in non-ie browsers ** */
if(ie) { 
	$(".jq_button").hover(function(){
		$(this).children(".hover").css("visibility","visible");
		$(this).children(".normal").css("visibility","hidden");
	},function(){
		$(this).children(".hover").css("visibility","hidden");
		$(this).children(".normal").css("visibility","visible");
	});

}
else { 
	$(".jq_button .hover").css("visibility","visible");
	
	$(".jq_button").hover(function(){
		$(this).children(".hover").stop().animate({opacity: 1},"fast");
		$(this).children(".normal").stop().animate({opacity: 0},"fast");
	},function(){
		$(this).children(".hover").stop().animate({opacity: 0},"fast");
		$(this).children(".normal").stop().animate({opacity: 1},"fast");
	});	
}
});

//Vertically centers a positioned element relative to its parents height. 
function vertiCenter(image) {
	var topPos = (  $(image).parent().height() - $(image).height()  ) / 2;
	$(image).css("top", topPos);
}
