/* Clears default form values example usage: */ function clearText(thefield){ if (thefield.defaultValue==thefield.value) thefield.value = "" } /* Flash Sniffer Copyright (c) 2007, James Auldridge Code licensed under the BSD License: http://www.jaaulde.com/license.txt updated by Kevin Flahaut 01/04/2008 example usage - add directly below the tag: */ var checkFlash = window.checkFlash || {}; checkFlash.utils = checkFlash.utils || {}; checkFlash.utils.flashsniffer = { lastMajorRelease: 9, installed: false, version: null, detect: function() { var fp,fpd,fAX; if (navigator.plugins && navigator.plugins.length) { fp = navigator.plugins["Shockwave Flash"]; if (fp) { checkFlash.utils.flashsniffer.installed = true; if (fp.description) { fpd = fp.description; checkFlash.utils.flashsniffer.version = fpd.charAt(fpd.indexOf('.')-1); } } else { checkFlash.utils.flashsniffer.installed = false; } if (navigator.plugins["Shockwave Flash 2.0"]){ checkFlash.utils.flashsniffer.installed = true; checkFlash.utils.flashsniffer.version = 2; } } else if (navigator.mimeTypes && navigator.mimeTypes.length) { fp = navigator.mimeTypes['application/x-shockwave-flash']; if (fp && fp.enabledPlugin) { checkFlash.utils.flashsniffer.installed = true; } else { checkFlash.utils.flashsniffer.installed = false; } } else { for(var i=checkFlash.utils.flashsniffer.lastMajorRelease;i>=2;i--) { try { fAX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i); checkFlash.utils.flashsniffer.installed = true; checkFlash.utils.flashsniffer.version = i; break; } catch(e) { } } if(checkFlash.utils.flashsniffer.installed == null){ try { fAX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); checkFlash.utils.flashsniffer.installed = true; checkFlash.utils.flashsniffer.version = 2; } catch(e) { } } if(checkFlash.utils.flashsniffer.installed == null) { checkFlash.utils.flashsniffer.installed = false; } fAX = null; } }, isVersion: function(exactVersion) { return (checkFlash.utils.flashsniffer.version!=null && checkFlash.utils.flashsniffer.version==exactVersion); }, isLatestVersion: function() { return (checkFlash.utils.flashsniffer.version!=null && checkFlash.utils.flashsniffer.version==checkFlash.utils.flashsniffer.lastMajorRelease); }, meetsMinVersion: function(minVersion) { return (checkFlash.utils.flashsniffer.version!=null && checkFlash.utils.flashsniffer.version>=minVersion); } }; checkFlash.utils.flashsniffer.detect(); // write the flash results to the page -- set minimum flash version here. var FlashResultsOutput = '
close x
' // Is Flash installed and if so, what version? var installedVerbiage; checkFlash.utils.flashsniffer.installed===true ? installedVerbiage = '' : installedVerbiage = 'not '; FlashResultsOutput += 'Flash player version '+checkFlash.utils.flashsniffer.version+' is installed but does not meet minimum requirements. ' if(checkFlash.utils.flashsniffer.version!=null){ // Does the flash version meet a specified minimum requirements? FlashResultsOutput += 'Version 8 or higher is required for proper viewing of this site. Download Current Version'; FlashResultsOutput += '' } // /* ----------------------------------------------------------------------------------- Dom Image Rollover Description: This script makes it easy to add rollover/ mousedown effects to any image on the page, including image submit buttons. Automatically preloads images as well. Script works in all DOM capable browsers- IE5+, NS6+, Opera7+. Legal: Copyright 2005 Adam Smith Author Email Address: ibulwark@hotmail.com Date Created: June 6, 2005 Website: Codevendor.com | eBadgeman.com Script featured on Dynamic Drive: http://www.dynamicdrive.com example: ----------------------------------------------------------------------------------- */ function imageholderclass(){ this.over=new Array(); this.down=new Array(); this.src=new Array(); this.store=store; function store(src, down, over){ var AL=this.src.length; this.src[AL]=new Image(); this.src[AL].src=src; this.over[AL]=new Image(); this.over[AL].src=over; this.down[AL]=new Image(); this.down[AL].src=down; } } var ih = new imageholderclass(); var mouseisdown=0; function preloader(t){ for(i=0;i tag corresponding to this href // First strip off the hash (first character) anchor = target.hash.substr(1); // Now loop all A tags until we find one with that name var allLinks = document.getElementsByTagName('a'); var destinationLink = null; for (var i=0;i