/*
Geocaching Page Resizer - v1.1 2005-12-03
(c) 2005, Prime Suspect Software

Greasemonkey user script: see http://greasemonkey.mozdev.org

With the latest make-over of the geocaching.com GUI, users were
given an easy way to add background images to their cache pages,
but those background images were now mostly obscured by the new,
larger format cache pages. This script resizes cache pages that
use background images back to the old dimensions, allowing more
of the background image to be displayed. If no background image
has been specified, or if the cache owner is using a style code
(rather than a <body> html tag), the page will not be re-sized.

Revision History:

v1.0 - Initial release

v1.1 - Update for Greasemonkey 0.6.4.

*/

// ==UserScript==

// @name		Geocache Page Resizer
// @description		Restores narrower display, to see the background image.
// @namespace       	http://gmscripts.locusprime.net/
// @filename            gc_PageResizer.user.js
// @include         	http://www.geocaching.com/seek/cache_details.aspx*

// ==/UserScript==

(function() {
	if (window.document.body.background != "") {
		var tables = window.document.getElementsByTagName("table");
		tables[0].style["width"] = "77%";
    	}
})();