jQuery(document).ready(function($){ //jQuery wrapper to avoid problems with other javascript tools

if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || ((navigator.userAgent.match(/Android/i)) && (navigator.userAgent.match(/Mobile/i)))) { //user agent detection

var ipHideURLbar = function() { $(window).scrollTop(0); } //scroll address bar off screen

//start functions to be run on document ready
window.addEventListener("load", function() { setTimeout(ipHideURLbar, 250); }, false);
window.addEventListener("orientationchange", function() { setTimeout(ipHideURLbar, 250); }, false);
//end functions to be run on document ready

} else { //end iphone detection begin non-iphone scripts

//start functions to be run on document ready
//end functions to be run on document ready

} //end non-iphone scripts

}); //end jQuery wrapper


