
// IE bug with Google Street View
// embedded iframe grabs focus on load (jumps to half way down page)
// solution - after iframe loads, delay a short time, then scroll to top


function scrollToTop() 
{
//	alert('scrollToTop'); 
 	top.window.scrollTo(0,0);
 	top.window.focus();
}
  

function fixIEbug() 
{
 if ( navigator.appName == "Microsoft Internet Explorer" )
 {
   setTimeout( "scrollToTop()", 2000 );

		// delay command for this number of milliseconds
 }
}


function fixIEcustom( delay ) 
{
 if ( navigator.appName == "Microsoft Internet Explorer" )
 {
   setTimeout( "scrollToTop()", delay );
 }
}



// then:
// <iframe  onload="fixIEbug()" 


