// ================================================================== //
// window_stretcher.js                                                             
// ================================================================== //
// used to push open then main content window at least as long as the
// homepage. space amounts vary from platform/browser -- this will 
// provide the correct height spacer for all situations...                                   
// ================================================================== //

function window_stretcher() {
	// set values...
	var browser = navigator.userAgent;
	if (browser.indexOf("Mac") > -1) {
		// mac...
		if ((browser.indexOf("Mozilla") > -1) && (browser.indexOf("Safari") > -1)) {
			// safari...
			document.write('<img src="images/spacer.gif" width="14" height="325">');
		} else if (browser.indexOf("Mozilla") > -1) {
			// mozilla (firefox or netscape)
			document.write('<img src="images/spacer.gif" width="14" height="328">');
		}
	} else if (browser.indexOf("Windows") > -1) {
		// any flavor of windows...
		document.write('<img src="images/spacer.gif" width="14" height="332">');
	} else {
		// generic...
		document.write('<img src="images/spacer.gif" width="14" height="328">');
	}
}

// for pages where the <td> has a 2 rowspan, use this...

function window_stretcher_2row() {
	// set values...
	var browser = navigator.userAgent;
	if (browser.indexOf("Mac") > -1) {
		// mac...
		if ((browser.indexOf("Mozilla") > -1) && (browser.indexOf("Safari") > -1)) {
			// safari...
			document.write('<img src="images/spacer.gif" width="14" height="402">');
		} else if (browser.indexOf("Mozilla") > -1) {
			// mozilla (firefox or netscape)
			document.write('<img src="images/spacer.gif" width="14" height="405">');
		}
	} else if (browser.indexOf("Windows") > -1) {
		// any flavor of windows...
		document.write('<img src="images/spacer.gif" width="14" height="409">');
	} else {
		// generic...
		document.write('<img src="images/spacer.gif" width="14" height="405">');
	}
}

// this is for the content area of the desktop pages...

function window_stretcher_desktop() {
	// set values...
	var browser = navigator.userAgent;
	if (browser.indexOf("Mac") > -1) {
		// mac...
		if ((browser.indexOf("Mozilla") > -1) && (browser.indexOf("Safari") > -1)) {
			// safari...
			document.write('<img src="../images/spacer.gif" width="14" height="259">');
		} else if (browser.indexOf("Mozilla") > -1) {
			// mozilla (firefox or netscape)
			document.write('<img src="../images/spacer.gif" width="14" height="262">');
		}
	} else if (browser.indexOf("Windows") > -1) {
		// any flavor of windows...
		document.write('<img src="../images/spacer.gif" width="14" height="251">');
	} else {
		// generic...
		document.write('<img src="../images/spacer.gif" width="14" height="262">');
	}
}

// this is for the tabs at the bottom of the desktop pages...

function window_stretcher_desktop_bot() {
	// set values...
	var browser = navigator.userAgent;
	if (browser.indexOf("Mac") > -1) {
		// mac...
		if ((browser.indexOf("Mozilla") > -1) && (browser.indexOf("Safari") > -1)) {
			// safari...
			document.write('<img src="../images/spacer.gif" width="14" height="126">');
		} else if (browser.indexOf("Mozilla") > -1) {
			// mozilla (firefox or netscape)
			document.write('<img src="../images/spacer.gif" width="14" height="126">');
		}
	} else if (browser.indexOf("Windows") > -1) {
		// any flavor of windows...
		document.write('<img src="../images/spacer.gif" width="14" height="141">');
	} else {
		// generic...
		document.write('<img src="../images/spacer.gif" width="14" height="126">');
	}
}
function window_stretcher2() {
	// set values...
	var browser = navigator.userAgent;
	if (browser.indexOf("Mac") > -1) {
		// mac...
		if ((browser.indexOf("Mozilla") > -1) && (browser.indexOf("Safari") > -1)) {
			// safari...
			document.write('<img src="../images/spacer.gif" width="14" height="325">');
		} else if (browser.indexOf("Mozilla") > -1) {
			// mozilla (firefox or netscape)
			document.write('<img src="../images/spacer.gif" width="14" height="328">');
		}
	} else if (browser.indexOf("Windows") > -1) {
		// any flavor of windows...
		document.write('<img src="../images/spacer.gif" width="14" height="332">');
	} else {
		// generic...
		document.write('<img src="../images/spacer.gif" width="14" height="328">');
	}
}

// for pages where the <td> has a 2 rowspan, use this...

function window_stretcher_2row2() {
	// set values...
	var browser = navigator.userAgent;
	if (browser.indexOf("Mac") > -1) {
		// mac...
		if ((browser.indexOf("Mozilla") > -1) && (browser.indexOf("Safari") > -1)) {
			// safari...
			document.write('<img src="../images/spacer.gif" width="14" height="402">');
		} else if (browser.indexOf("Mozilla") > -1) {
			// mozilla (firefox or netscape)
			document.write('<img src="../images/spacer.gif" width="14" height="405">');
		}
	} else if (browser.indexOf("Windows") > -1) {
		// any flavor of windows...
		document.write('<img src="../images/spacer.gif" width="14" height="409">');
	} else {
		// generic...
		document.write('<img src="../images/spacer.gif" width="14" height="405">');
	}
}
