$(function(){
var $aa = $("a");
var $a_height = $("a").height();
$(window).scroll(function(){
var $w_height = $(this).scrollTop();
if($w_height >= $a_height){
$("#nav").css({
"position" : "fixed",
"top":0
})
}else{
$("#nav").css({
"position" : "static"
})
}
})
})
var $aa = $("a");
var $a_height = $("a").height();
$(window).scroll(function(){
var $w_height = $(this).scrollTop();
if($w_height >= $a_height){
$("#nav").css({
"position" : "fixed",
"top":0
})
}else{
$("#nav").css({
"position" : "static"
})
}
})
})