// JavaScript Document

/*　フルスクリーン背景　2011.10　*/

/*$(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");
		
		});*/



/*　フローティングメニュー　2011.10　*/

var name = "#navi";
var menuYloc = null;
$(function(){
	menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")));
	$(window).scroll(function () { 
		offset = menuYloc+$(document).scrollTop()+"px";
		$(name).animate({top:offset},{
			duration:350,
			queue: false
		});
	});
}); 




