var fixed=false; $(document).ready(function(){$(window).scroll(function(){var b=0,a=$(".top-bar");b+=a.height()+parseInt(a.css("margin-top"),10)+parseInt(a.css("margin-bottom"),10)+parseInt(a.css("padding-top"),10)+parseInt(a.css("padding-bottom"),10);a=$(".menu2");b+=a.height()+parseInt(a.css("margin-top"),10)+parseInt(a.css("margin-bottom"),10)+parseInt(a.css("padding-top"),10)+parseInt(a.css("padding-bottom"),10);a=$(".header-bottom");b+=a.height()+parseInt(a.css("margin-bottom"),10)+parseInt(a.css("padding-top"),10)+ parseInt(a.css("padding-bottom"),10);b-=50;if($(".content-top").length>0){a=$(".content-top");b+=a.height()+parseInt(a.css("margin-top"),10)+parseInt(a.css("margin-bottom"),10)+parseInt(a.css("padding-top"),10)+parseInt(a.css("padding-bottom"),10)}if($.browser.msie&&parseInt($.browser.version.substr(0,1))<=7)$(window).scrollTop()>b?$("#floater").css("margin-top",parseInt($(window).scrollTop())-b+50+"px"):$("#floater").css("margin-top","0px");else if($(window).scrollTop()>b){if(fixed==false){$("#floater").addClass("floater-fixed", 0);$("#floater").removeClass("floater",0);fixed=true}}else if(fixed==true){$("#floater").addClass("floater",0);$("#floater").removeClass("floater-fixed",0);fixed=false}})});
