$(document).ready(function(){	
						   
	// Apple detection object
	var Apple = {};
	Apple.UA = navigator.userAgent;
	Apple.Device = false;
	Apple.Types = ["iPhone", "iPod", "iPad"];
	for (var d = 0; d < Apple.Types.length; d++) {
		var t = Apple.Types[d];
		Apple[t] = !!Apple.UA.match(new RegExp(t, "i"));
		Apple.Device = Apple.Device || Apple[t];
	}
						   
	if(Apple.Device) {
		$('#topborder').css({position: 'absolute', 
								width: 1279});
		$('#botborder').css({position: 'absolute', 
								marginTop: 804,
								width: 1279});
		$('#leftborder').css({position: 'absolute', 
								height: 804,
								top: 0});
		$('#rightborder').css({position: 'absolute', 
								height: 821,
								top: 0,
								left: 1279});
		$("#fs-button").hide();
	
	} else {
		$('#topborder').css({position: 'fixed',
							 width: '100%'});
		$('#botborder').css({position: 'fixed',
							 width: '100%',
							 bottom: 0});
		$('#leftborder').css({position: 'fixed',
							  height: '100%'});
		$('#rightborder').css({position: 'fixed',
							   height: '100%',
							   right: 0});
	}

	$("img.splash").oneTime(500, function() {
		$("img.splash").fadeIn(2000, function(){
			$("img.splash").fadeOut(2000, function(){
				window.location = "index.php";
			});
		});
	});
	
});
