/*
 * Jquery functionality specific to the Mobile Minds Tutoring
*/

/*
 * The following bundle handles the redirects for various drop-down selects.
 * 
 */
$(document).ready(
		
		function()
		{
			$(window).load(function() {    

			    var theWindow        = $(window),
			        $bg              = $("#bg"),
			        aspectRatio      = $bg.width() / $bg.height();

			    function resizeBg() {

			            if ( (theWindow.width() / theWindow.height()) < aspectRatio ) {
			                $bg
			                    .removeClass()
			                    .addClass('bgheight');
			            } else {
			                $bg
			                    .removeClass()
			                    .addClass('bgwidth');
			            }

			    }

			    theWindow.resize(function() {
			            resizeBg();
			    }).trigger("resize");

			});
			
});	


