/* Jeremy Gugenheim's handy scripts */


/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
function scrollBackground(imageWidth) 
{
	backgroundOffset = backgroundOffset + 1;
	if (backgroundOffset > imageWidth) backgroundOffset = 0;
	dbgObject.style.backgroundPosition = backgroundOffset + "px " + "0px";
}


/* Remove any Flash movies if user has an iPad */
/* Perhaps this should test if Flash is installed or not, but this way the user will be asked if it is possible... */
/* If they have an iPad it is not possible, so not worth asking */
function RemoveFlashCode() {
   var newElement1 = document.createElement('p');
   newElement1.innerHTML = '';
   var oldElement1 = document.all.apDiv2;
// 18/03/11 JG Added test for iPhone as well in case iPhone user requests main site
   if ((navigator.userAgent.indexOf('iPad') != -1) || (navigator.userAgent.indexOf('iPhone') != -1)) {
     document.all.RunningHeader.replaceChild(newElement1, oldElement1); 
   }
}

