﻿
$(document).ready(function(){

	$('.site-nav li a').after('<div class="hover"></div>');
	
	$('.site-nav li').bind({
		mouseenter: function() {
			$(this).children('.hover').show();
		},
		mouseleave: function() {
			$(this).children('.hover').fadeOut();
		}
	});

});


var updateLayout = function() {
  if (window.innerWidth != currentWidth) {
	currentWidth = window.innerWidth;
	var orient = (currentWidth == 320) ? "profile" : "landscape";
	document.body.setAttribute("orient", orient);
	window.scrollTo(0, 1);
  }
};
iPhone.DomLoad(updateLayout);
setInterval(updateLayout, 400);
