*/
// Catch the GUID from the URL
-var itemID = window.location.pathname.split("/").pop();
+var itemGuid = window.location.pathname.split("/").pop();
-$(document).ready(function(){
+$(window).load(function(){
// Scroll to the Item by its GUID
- scrollToItem(itemID);
+ scrollToItem('item-' + itemGuid);
});