var currentWidth = 320;
//var currentOrient;

addEventListener("load", function(event)
{
    setTimeout(function()
    {
        checkOrient();
        setInterval(checkOrient, 300);
    }, 0);

}, false);

function checkOrient()
{

	if (window.innerWidth != currentWidth)
	{
		//alert(window.innerWidth);
		//currentOrient = "landscape";		
		
      	setTimeout(changePage("h/" + page),300);		     
	}	
	setTimeout(scrollTo, 0, 0, 1);
}
  
function changePage(urlLink)
{
	document.location.href=urlLink;
}