\n');
if (tVersionString != "") {
tVersionIndex = tVersionString.indexOf(".")
var tMajorVersionString = tVersionString.substring(tVersionIndex-2, tVersionIndex);
var tMinorVersionString = tVersionString.substring(tVersionIndex+1, tVersionIndex+2);
if (parseInt(tMajorVersionString) > tMajorVersion) {
tShockwaveFound = 1;
}else if(parseInt(tMajorVersionString) == tMajorVersion) {
if (parseInt(tMinorVersionString) >= tMinorVersion) {
tShockwaveFound = 1;
}
}
}
}
if ( tShockwaveFound ){
// show the virtual farm walk
AC_SW_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,1,0,0','width','800','height','600','src','stages/launch','pluginspage','http://www.macromedia.com/shockwave/download/' ); //end AC code
}else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
// get current version of shockwave
AC_SW_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,1,0,0','width','600','height','200','src','stages/conf','pluginspage','http://www.adobe.com/shockwave/download/' ); //end AC code
document.write('
You do not appear to have the latest version of shockwave installed on your computer. Please wait while we attempt to install it now. If the installation is successful you will see a message informing you of this, and the virtual farm walk will then start.
');
document.write('
If the installation is not successful, you will need to view the shockwave support page for further information. The installation may fail if you do not have neccesary permission to install software on your computer, or if you are using an unsupported operating system (windows XP and above, and Mac OS 10.2 and above are supported).
');
document.write('
If you have a "limited access" account on your computer, then you will need to ask an administrator to install shockwave for you. Alternatively, you can download a package containing the virtual farm walk that you should be able to run on your computer.
');
document.write('
You can find links to both the "off line" version of the farm walk, and the "shockwave support" page on the "Start the walk" page of the Virtual Farm Walk website.