if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i)) {
var viewportmeta = document.querySelectorAll('meta[name="viewport"]')[0];
if (viewportmeta) {
viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0';
document.body.addEventListener('gesturestart', function() {
viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6';
}, false);
}
}

/* jQuery Cycle Plugin for image rotator on the Home page */
$('#slideshow').cycle({ 
	/*var url = window.location.pathname,
	var filename = url.substring(url.lastIndexOf('/')+1),
	document.write(filename, " , ", url), */
    fx:     'fade', 
    speed:   800, 
    timeout: 3000, 
    next:   '#slideshow', 
    pause:   10 
});


/* Initialise Superfish */
$('ul.sf-menu').superfish();

$('.warning').remove();
$.get("/inc/token.asp",function(txt) {
	$("#contact").append('<input type="hidden" name="timestamp" id="timestamp" value="'+txt+'" />').attr("action","contact.asp");
	});
