// JavaScript Document
jQuery(document).ready(function() {

$('.showcase_navi a').click(function () {
        var target = $(this.hash);
        var hash = this.hash;
        if (target.length) {
			//globalVar="global variable";
            targetOffset = target.offset().top;
            $('html,body').animate({scrollTop: targetOffset},{"duration":1000,"easeInQuad":"easeOutQuad"});
            return false;
		}
	});		

});


//SECTION HOVERS FOR HOMEPAGE START============================
$(function() {
	
	$(".red_sec").mouseover(function() {
		$(".section_hover").addClass("section_red");
		$('.section_txt p').html('IT');
	}).mouseleave(function() {
		$(".section_hover").removeClass("section_red");
		$('.section_txt p').html('HOSPA Communities Portal');
	});

	$(".green_sec").mouseover(function() {
		$(".section_hover").addClass("section_green");
		$('.section_txt p').html('Revenue');
	}).mouseleave(function() {
		$(".section_hover").removeClass("section_green");
		$('.section_txt p').html('HOSPA Communities Portal');
	});

	$(".blue_sec").mouseover(function() {
		$(".section_hover").addClass("section_blue");
		$('.section_txt p').html('Finance');
	}).mouseleave(function() {
		$(".section_hover").removeClass("section_blue");
		$('.section_txt p').html('HOSPA Communities Portal');
	});
});
//SECTION HOVERS FOR HOMEPAGE END============================

//BACK TO TOP LINK IN FOOTER=================================
$('.back_top').click(function () {
        var target = $('.top_band');
        var hash = this.hash;
        if (target.length) {
            var targetOffset = target.offset().top;
            $('html,body').animate({scrollTop: targetOffset},{"duration":1000});
            return false;
		}
	});
//BACK TO TOP LINK IN FOOTER=================================

