/**
* Fullscreenr - lightweight full screen background jquery plugin
* By Jan Schneiders
* Version 1.0
* www.nanotux.com
**/
(function(a){a.fn.fullscreenr=function(b){b.height===undefined&&alert("Please supply the background image height, default values will now be used. These may be very inaccurate."),b.width===undefined&&alert("Please supply the background image width, default values will now be used. These may be very inaccurate."),b.bgID===undefined&&alert("Please supply the background image ID, default #bgimg will now be used.");var c={width:1e3,height:599,bgID:"bgimg"},b=a.extend({},c,b);return a(document).ready(function(){a(b.bgID).fullscreenrResizer(b)}),a(window).bind("resize",function(){a(b.bgID).fullscreenrResizer(b)}),this},a.fn.fullscreenrResizer=function(b){var c=b.height/b.width,d=a(window).width(),e=a(window).height();return e/d>c?(a(this).height(e),a(this).width(e/c)):(a(this).width(d),a(this).height(d*c)),a(this).css("left",(d-a(this).width())/2),a(this).css("top",(e-a(this).height())/2),this}})(jQuery)
