// // if this script gets cached on browsers' local filesystem // (window.top == window.self) may have value from prior request... // (may be a problem and is browser dependent) // if ((window.top == window.self)) window.location.replace('http://alpha-sports.com/suzuki_parts.htm?fpg=/smoto/1984%20RM250/02.htm'); ///////////////// //////////////////////////////////////////////////////////////////////////////// // determine the image filename from running browser since script may be cached. //////////////////////////////////////////////////////////////////////////////// function GetFilenameFromPath ( pathname ) { var sFilename; if ( (arguments.length == 0) || (pathname == null) ) pathname = document.location.pathname; var nSlash = pathname.lastIndexOf( '/' ); if ( nSlash == -1 ) sFilename = pathname; else sFilename = pathname.substring(nSlash+1); // //nSlash = pathname.lastIndexOf( '\' ); //if ( nSlash != -1 ) // sFilename = sFilename.substring(nSlash+1); // return( sFilename ); } function imageName() { var sImageName = GetFilenameFromPath( document.location.pathname ); sImageName = String(sImageName).replace('htm','gif'); return ( sImageName ); } imagesrc = imageName(); ////////////////////////////////////////////////////////////////////////// // patch the diagram page for scrolling capability // viral extension... carefull, this allows complete run-time page rewrite ////////////////////////////////////////////////////////////////////////// document.write('');