$(document).ready(function() {
	if(((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) && $.cookie("iphone_app") != "yes") {
		$.get("/iphone.php",{},
			function(data){
				$.fn.colorbox({html:data,escKey:false});
		});
	}
});

function do_iphone_app_submit() {
	$.cookie("iphone_app","yes",{expires: 7, path: '/', domain: '.salefinder.co.nz'});
	$.fn.colorbox.close();
}
