// ---------NAVIGATION HOVERS------------------------
$(document).ready(function() {
	$('.home').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 0);
	  $(this).hover(function () {
	    $span.stop().fadeTo(200, 1);
	  }, function () {
	    $span.stop().fadeTo(200, 0);
	  });
	});
});
$(document).ready(function() {
	$('.about').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 0);
	  $(this).hover(function () {
	    $span.stop().fadeTo(200, 1);
	  }, function () {
	    $span.stop().fadeTo(200, 0);
	  });
	});
});
$(document).ready(function() {
	$('.program').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 0);
	  $(this).hover(function () {
	    $span.stop().fadeTo(200, 1);
	  }, function () {
	    $span.stop().fadeTo(200, 0);
	  });
	});
});
$(document).ready(function() {
	$('.partner').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 0);
	  $(this).hover(function () {
	    $span.stop().fadeTo(200, 1);
	  }, function () {
	    $span.stop().fadeTo(200, 0);
	  });
	});
});
$(document).ready(function() {
	$('.news').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 0);
	  $(this).hover(function () {
	    $span.stop().fadeTo(200, 1);
	  }, function () {
	    $span.stop().fadeTo(200, 0);
	  });
	});
});
$(document).ready(function() {
	$('.contact').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 0);
	  $(this).hover(function () {
	    $span.stop().fadeTo(200, 1);
	  }, function () {
	    $span.stop().fadeTo(200, 0);
	  });
	});
});
// ---------PROJECT LISTING BOX------------------------
$(document).ready(function(){
	$(".cover", this).css("top","162px");
	
	//Caption Sliding (Partially Hidden to Visible)
	$('.boxgrid.caption').hover(function(){
		$(".cover", this).stop().animate({top:'20px'},{queue:false,duration:140});
		$(".thumb", this).stop().animate({top:'20px'},{queue:false,duration:100});
	}, function() {
		$(".cover", this).stop().animate({top:'162px'},{queue:false,duration:140});
		$(".thumb", this).stop().animate({top:'0px'},{queue:false,duration:100});
		
	});
});
// ---------PARTNER LISTING BOX------------------------
$(document).ready(function(){
	$(".cover", this).css("top","162px");
	
	//Caption Sliding (Partially Hidden to Visible)
	$('.pboxgrid.caption').hover(function(){
		$(".cover", this).stop().animate({top:'20px'},{queue:false,duration:140});
		$(".thumb", this).stop().animate({top:'40px'},{queue:false,duration:100});
	}, function() {
		$(".cover", this).stop().animate({top:'133px'},{queue:false,duration:140});
		$(".thumb", this).stop().animate({top:'0px'},{queue:false,duration:100});
		
	});
});
function createXHRObject() {
	var xmlhttpo;
	
	if (window.XMLHttpRequest)
	{
		// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttpo=new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
	{
		// code for IE6, IE5
		xmlhttpo=new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		alert("Your browser does not support XMLHTTP!");
	}
	
	return xmlhttpo;

}
