// javascript

$(function() {
	// OPACITY OF BUTTON SET TO 100%
	$(".fade").css("opacity","1.0");
	
	// ON MOUSE OVER
	$(".fade").hover(function () {
		// SET OPACITY TO 50%
		$(this).stop().animate({
			opacity: 0.5
		}, "fast");
	},
	
	// ON MOUSE OUT
	function () {
		// SET OPACITY BACK TO 100%
		$(this).stop().animate({
			opacity: 1.0
		}, "fast");
	});
});


function getParameterByName( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}
