function scrollen() { if (right.pageYOffset) // all except Explorer { y = right.pageYOffset; } else if (right.document.documentElement && document.documentElement.scrollTop) // Explorer 6 Strict { y = right.document.documentElement.scrollTop; } else if (right.document.body) // all other Explorers { y = right.document.body.scrollTop; } left.scrollTo(0, y); }