//	function to load alert for iPhone users
//	to tell them about the S4C app

function iPhoneAlert (lang) {
	var agent = navigator.userAgent.toLowerCase();
	var is_iphone = ((agent.indexOf("iphone")) != -1);
	if (is_iphone) {
		$.ajax({url: "/alert/" + lang + "_iPhoneAlert.html",cache: false,success: function(content){
			$("body").prepend(content);
		}});
	}
}
