/*  This code here down to the Dreamweaver divider is the intellectual property 
	of Mark Groseth (Silicon Solutions) and should not be used without permission.  
	mark@sisnet.biz, www.sisnet.biz.  Permision is given to ProSource to use this
	code but not sell or redistribute it. */
	
// This requires detector.js

// make sure when testing for undefine you use typeof x == "undefined" rather than x == null

// Changes made here will not take affect just be refreshing the browser, to 
// see changes, close and reopen the browser

//-------------------------------TPS functions----------------------------------

function resizeWin() {
	center("MainPage", true, false, ".MainPage");
	center("MainPageShadow", true, false, ".MainPageShadow");
	//windowSize = getInsideWindowHeight();
	// reload?
}

// this can be window. or document.body. or document.documentElement
// .body is older and beinging replaced by .documentElement
// document.body will not work for netscape 7, and may or may not
// work in other browsers based on the DocType setting
// netscape 7.2 does not pick up mouse wheel scrolling
//if (browser == 'Netscape') 
function scrolling() {
	// reposition the side bar if needed. The sideBar is in the Content Layer div
	var y, z;
	// find non-scrolled distance from top of page and container
	if (skipNext) {
		skipNext = false;
	} else {
		// set this to true to reduce CPU usage, and false for smoother operation
		skipNext = false;
		if (homeTab) { 
			y = 360;
			z = 5;
		} else {
			y = 195;
			z = 3;
		}
		if (document.documentElement.scrollTop) {
			if (document.documentElement.scrollTop > y) {
				// using setStyle causes scrolling to stop
				//setStylesheetStyle(".SideBar","top", (document.body.scrollTop - y + z) + "px");
				shiftYTo("SideBar", document.documentElement.scrollTop - y + z);
			} else {
				shiftYTo("SideBar", z);
			}
		} else {
			if (document.body.scrollTop > y) {
				// using setStyle causes scrolling to stop
				//setStylesheetStyle(".SideBar","top", (document.body.scrollTop - y + z) + "px");
				shiftYTo("SideBar", document.body.scrollTop - y + z);
			} else {
				shiftYTo("SideBar", z);
			}
		}
	}
	return true;
}

//---------------------------Excerpts from findDOM2.js--------------------------
// onerror = null doesn't work
// The following works except while debugging
onerror = errFunction;
function errFunction() {
	// supress error messages
	return true
}

var fdObject = 0;
var fdStyle = 1;
var fdElement = 2;

// call this function to return a object or object style reference
// set returnType to 0 if you want an object reference
// set returnType to 1 if you want a style reference
// set returnType to 2 if you want an element object by name
function findDOM(objectID, returnType, selector, frameName) {
	var prefix = "";
	var obj;
	if (frameName != "" && frameName != null) { 
		if (frameName == "parent") { prefix = "parent." }
		else { prefix = "top[frameName]." }
	}
	if (returnType == 1) {
		if (selector == "" || selector == null) {
			if (dom0) {
				// this is done as two lines to fix an Opera bug with eval
				obj = eval(prefix+"document.getElementById(objectID)");
				if (obj) { return obj.style }
				else { return null }
			} else { 
				if (document.all) { return eval(prefix+"document.all[objectID].style") }
				else { return null }
			}
		}
		else { return getStyleBySelector(selector, frameName) }
	}
	else {
		if (returnType == 0) {
			if (dom0) { 
				if (prefix == "") { return document.getElementById(objectID) }
				else { return eval(prefix+"document.getElementById(objectID)") }
		} else { 
				if (document.all) { return eval(prefix+"document.all[objectID]") }
				else { return null }
			}
		}
		// returnType == 2
		else { return eval(prefix+"document."+objectID) }
	}
}

// Returns a NON-inline style object.  selector is the rule's id or class or tag etc
// Note that the 'link' tag's title attribure could by used to identify a stylesheet rather
// than iterating through them all, however, setting the title in the style sheet link will 
// cause the stylesheet to be Preferred, rather than Persistent, meaning that only one 
// linked stylesheet with a title can be used, which defeats the purpose.
function getStyleBySelector(selector, frameName) {
	var ruleList, sheetList;
	var i, j;
	if (isIE5mac) selector = "*" + selector;
	if (frameName == "Parent") { sheetList = parent.document.styleSheets }
	else {
		if (frameName == "" || frameName == null) {	sheetList = document.styleSheets }
		else { sheetList = top[frameName].document.styleSheets }
	}
	for (i=sheetList.length-1; i >= 0; i--) {
		if (isWin && isIE) {
			ruleList = sheetList[i].rules;
		} else {
			ruleList = sheetList[i].cssRules;
		}
		for (j=0; j<ruleList.length; j++) { 
			// removed this bit for compatability
			// ruleList[j].type == CSSRule.STYLE_RULE &&
			if (ruleList[j].selectorText == selector) {
				return ruleList[j].style; 
			} 
		} 
	}
	return null; 
}

//---------------------------Excerpts from tools2.js----------------------------------
/*  This function will load a control into a container element, replacing whatever 
was there.  For example, a flash movie could be loaded into a layer, replacing an 
image placeholder.  All the HTML for the control must be loaded into a variable of 
the name "Load" + the element ID.  The HTML string for the control must be 
formated using single quotes e.g. variable="<someparam='this'>".  Don't use "\'" or
charactor codes (like %22) to embed double quotes.
The function uses detection.js to determine if flash wmode is supported and then 
provides the means to load an alternate control if it is not.
The function works around two problems...
   1) IE 6 now loads inline controls in an inactive state due to a law suit
   2) Some browsers don't support loading controls into layers, so this funcion
      adds the altSuffix to the end of the source file in the object and\or embed
	  Note that different controls use different parameter names for the source
	  file in an object tag, so the function requires you to pass that parameter
	  name to pathParam.  Passing "" or nothing for altSuffix loads the same 
	  control.  Passing 'blank' empties the container element and finally, you 
	  can pass 'none' to altSuffix to just leave the container as is. 
*/
function loadPlugin(divID, pluginID, flashVars, altSuffix) {
	var obj = findDOM(divID, fdObject);
	var controlHTML = "";
	if (typeof altSuffix == "undefined" || altSuffix == "") {
		controlHTML = eval(pluginID);
	} else if (altSuffix == "blank") {
		controlHTML = "";
	} else if (altSuffix != "none") {
		if (isMac) {
			controlHTML = eval(pluginID + altSuffix);
		} else {
			controlHTML = eval(pluginID);
		}
	}
	if (controlHTML != "") {
		if (typeof flashVars != "undefined" && flashVars != "")	{
			var x;
			x = controlHTML.indexOf("FlashVars");
			if (x > 0) {
				controlHTML = controlHTML.replace("=''", "='" + flashVars + "'");
				controlHTML = controlHTML.replace("=''", "='" + flashVars + "'");
			}
		}
	}
	//alert(controlHTML);
	obj.innerHTML = controlHTML;
}

function setStylesheetStyle(selector, styleAttrib, settingValue, frame) {
	var theStyle = getStyleBySelector(selector, frame);
	// The following does not work because the DOM has no equivelent object for a style's
	// attribute.
	//theStyleAttrib = eval("theStyle."+styleAttrib)
	// the following two work equally well
	//eval("theStyle." + styleAttrib + " = settingValue");
	theStyle[styleAttrib] = settingValue;
}		

//  Populates an array of child elements as such...
//	var childrenObj = new childArrayObj();
//	findChildren(document.getElementById("Layer1"),childrenObj)
//  now childrenObj.items[] array holds all the child elements
//  NOTE: This requires DOM level 1 support
function childArrayObj() {
	this.items = new Array();
}
function findChildren(obj, arrayObj) {
	if (dom1 && obj.childNodes) {
		var x = arrayObj.items.length - 1;
		for (var i=0; i < obj.childNodes.length; i++) {
			if (obj.childNodes[i].nodeType == 1) {
				arrayObj.items[++x] = obj.childNodes[i];
				// redundant test improves speed
				if (obj.childNodes) findChildren(obj.childNodes[i], arrayObj) }
		}
	}	
}

// This function can be used to parse the query string
function getValueFromQstring(theName, thePageObj) {
	if (thePageObj == "" || thePageObj == null) {
		var query = window.location.search.substring(1);
	} else {
		var query = thePageObj.location.search.substring(1);
	}
	if (query) { 
		var pairs = query.split('&');
		var keyVal;
		for (i = 0; i < pairs.length; i++) {
			keyVal = pairs[i].split('=');
			if (keyVal[0] == theName) {
				return keyVal[1];
			} 
		} 
	} 
	return "not found";
} 

// Find a Cookie value
function findCookie(cookieName) {
	if (document.cookie == "") return "NoCookies";
	var cookies = document.cookie
	var where = cookies.indexOf(cookieName,0)
	var i
	// the cookie is found so now find the value
	if (where == -1) return "NoCookie"; 
	var cookieArray = new Array()
	cookieArray = cookies.split("; ")
	for (i = 0; i < cookieArray.length; i++) {
		where = cookieArray[i].indexOf(cookieName,0)
		if (where != -1) {
			where = cookieArray[i].indexOf("=",0)
			// make sure you have the right cookie
			if (cookieName == cookieArray[i].substring(0,where)) {
				return cookieArray[i].substring(where + 1, cookieArray[i].length) } 
			}
		}
	return "NoCookie"
}

// Delete a Cookie
function deleteCookie(cookieName) {
	// change the exipery date and let the browser delete it
	var expireDate = new Date
	expireDate.setDate(expireDate.getDate()-1)
	if (document.cookie != "") { 
		// the cookies are found so now find the value
		var cookies = document.cookie
		var where = cookies.indexOf(cookieName,0)
		var i
		if (where != -1) {
			var cookieArray = new Array()
			cookieArray = cookies.split("; ")
			for (i = 0; i < cookieArray.length; i++) {
				where = cookieArray[i].indexOf(cookieName,0)
				if (where != -1) {
					where = cookieArray[i].indexOf("=",0)
					// make sure you have the right cookie
					if (cookieName == cookieArray[i].substring(0,where)) {
						document.cookie = cookieName + "=;expires=" + expireDate.toGMTString() } 
					}
				}
			}
		}
}

// Save a Cookie
function saveCookie(cookieName,cookieValue,validDays) {
	var expireDate = new Date()
	expireDate.setDate(expireDate.getDate() + validDays)
	document.cookie = cookieName + "=" + cookieValue + "; expires=" + expireDate.toGMTString() + "; path=/"
}

//-------------------Exerpts from effects2.js---------------------------------------
function getHTML(objID, frame) {
	var obj = findDOM(objID, fdObject, "", frame);
	if (obj == null) return ""
	else return obj.innerHTML;
}

// Height of object in pixels
//  specifying image type causes this to look up the name rather than the ID
//  the function uses fdImage to get the image by name for backward compatibility,
//  It could also use fdObject with the image ID
//  This function does not address clipping
//  Also, offset measurements are not of much interest for width/height
function getObjHeight(objID, imageYN, selector, frame) {
	var obj;
	var styleType = fdStyle;
	if (imageYN) { styleType = fdImage }
	obj = findDOM(objID, styleType, selector, frame);
	return parseInt(obj.height);
}

// Width of object in pixels
//  specifying image type causes this to look up the name rather than the ID
//  the function uses fdImage to get the image by name for backward compatibility,
//  It could also use fdObject with the image ID
//  This function does not address image clipping
//  Also, offset measurements are not of much interest for width/height
function getObjWidth(objID, imageYN, selector, frame) {
	var obj;
	var styleType = fdStyle;
	if (imageYN) { styleType = fdImage }
	obj = findDOM(objID, styleType, selector, frame);
	return parseInt(obj.width);
}

// Left coordinate of a positionable object
// pos can be offset or style, offset always gives an absolute result
function getObjLeft(objID, pos, selector, frame)  {
	var obj;
	var styleType = fdStyle;
	if (pos == "offset") { styleType = fdObject }
	obj = findDOM(objID, styleType, selector, frame);
	if (pos == "offset") { return obj.offsetLeft }
	else { return parseInt(obj.left) }
}

// Top coordinate of a positionable object
// pos can be offset or style, offset always gives an absolute result
function getObjTop(objID, pos, selector, frame)  {
	var obj;
	var styleType = fdStyle;
	if (pos == "offset") { styleType = fdObject }
	obj = findDOM(objID, styleType, selector, frame);
	if (pos == "offset") { return obj.offsetTop }
	else { return parseInt(obj.top) }
}

function getObjBottom(objID, pos, imageYN, selector, frame) {
	return getObjTop(objID, pos, selector, frame) + getObjHeight(objID, imageYN, selector, frame)
}

function getTotalOffsetTop(objID) {
	var totalTop;
	var obj = findDOM(objID, fdObject);
	totalTop = obj.offsetTop;
	for (var i = 0; i < 10; i++) {
		if (obj.offsetParent) {
			obj = obj.offsetParent
			totalTop += obj.offsetTop }
	}
	return totalTop;
}

// Width of browser window page space
// for IE only works after body is loaded
function getInsideWindowWidth(frame) {
	if(frame == "Parent") {
		if (parent.innerWidth != null) return parent.innerWidth;
		if (document.documentElement.clientWidth) {
			if (parent.document.documentElement.clientWidth != null) return parent.document.documentElement.clientWidth;
		} else {
			if (parent.document.body.clientWidth != null) return parent.document.body.clientWidth;
		}
	} else {
		if (frame == "" || frame == null) {
			if (window.innerWidth != null) return window.innerWidth;
			if (document.documentElement.clientWidth) {
				if (document.documentElement.clientWidth != null) return document.documentElement.clientWidth;
			} else {
				if (document.body.clientWidth != null) return document.body.clientWidth;
			}
		} else {
			if (top[frame].innerWidth != null) return top[frame].innerWidth;
			if (document.documentElement.clientWidth) {
				if (top[frame].document.documentElement.clientWidth != null) return top[frame].document.documentElement.clientWidth;
			} else {
				if (top[frame].document.body.clientWidth != null) return top[frame].document.body.clientWidth;
			}
		}
	}
	return (null);
}

// Height of browser window page space
// for IE only works after body is loaded
function getInsideWindowHeight(frame) {
	if(frame == "Parent") {
		if (parent.innerHeight != null) return parent.innerHeight;
		if (document.documentElement.clientHeight) {
			if (parent.document.documentElement.clientHeight != null) return parent.document.documentElement.clientHeight;
		} else {
			if (parent.document.body.clientHeight != null) return parent.document.body.clientHeight;
		}
	} else {
		if (frame == "" || frame == null) {
			if (window.innerHeight != null) return window.innerHeight;
			if (document.documentElement.clientHeight) {
				if (document.documentElement.clientHeight != null) return document.documentElement.clientHeight;
			} else {
				if (document.body.clientHeight != null) return document.body.clientHeight;
			}	
		} else {
			if (top[frame].innerHeight != null) return top[frame].innerHeight;
			if (document.documentElement.clientHeight) {
				if (top[frame].document.documentElement.clientHeight != null) return top[frame].document.documentElement.clientHeight;
			} else {
				if (top[frame].document.body.clientHeight != null) return top[frame].document.body.clientHeight;
			}
		}
	}
	return (null);
}

// Width of screen
function getScreenWidth() {
	if (screen.availWidth) return screen.availWidth;
	return screen.width;
}

// Height of screen
function getScreenHeight() {
	if (screen.availHeight) return screen.availHeight;
	return screen.height;
}

// Sets visibility to visible
function show(objID, selector, frame) {
	var obj;
	obj = findDOM(objID, fdStyle, selector, frame);
	obj.visibility = "visible";
}

// Sets visibility to hidden
function hide(objID, selector, frame) {
	var obj;
	obj = findDOM(objID, fdStyle, selector, frame);
	obj.visibility = "hidden";
}

// Sets the focus
//  This will work for form elements, divs, embeded objects
//  its usefulness is questionable, results are buggy
function setFocus(objID, selector, frame) {
	var obj;
	obj = findDOM(objID, fdObject, selector, frame);
	obj.focus();
}

// toggles the Display style for an element
// This fucntion toggles an element's display property between 'none' and 
// the supplied displayType variable.  It can be set to colapse all other
// element's in a supplied array an element IDs
// can be used in hyperlink like href="javascript:expandToggle('itemID','block')"
// display options are: 
//       block - line break before and after, like div
//       inline - no line breaks, like span
//       none - no visible and no place holder
function expandToggle(objID, displayStyle, colapseAll, IDarray, hlColor, selector, frame) {
	var obj;
	obj = findDOM(objID, fdStyle, selector, frame);
	if (obj.display == displayStyle) {
		obj.display = "none";
		obj = findDOM(objID + "img", fdObject, selector, frame);
		obj.src = "Images/plus.gif";
		if (hlColor != "" && hlColor != null) {
		   obj = findDOM(objID + "hl", fdStyle, selector, frame);
		   obj.backgroundColor = "";
		}
		return "colapsed"
	} else {
		if (colapseAll) { 
			for (var i = 0; i < IDarray.length; i++) { hideElement(IDarray[i], hlColor, selector, frame) }
		}
		obj.display = displayStyle;
		obj = findDOM(objID + "img", fdObject, selector, frame);
		obj.src = "Images/minus.gif";
		if (hlColor != "" && hlColor != null) {
		   obj = findDOM(objID + "hl", fdStyle, selector, frame);
		   obj.backgroundColor = hlColor;
		}
		return "expanded"
	}
}
// hide an element
function hideElement(objID, hlColor, selector, frame) {
	var obj;
	obj = findDOM(objID, fdStyle, selector, frame);
	if (obj) {
	   obj.display = 'none';
	   obj = findDOM(objID + "img", fdObject, selector, frame);
	   obj.src = "Images/plus.gif";
		if (hlColor != "" && hlColor != null) {
		   obj = findDOM(objID + "hl", fdStyle, selector, frame);
		   obj.backgroundColor = "";
		}
	}
}

// set an element's display style
function setDisplay(objID, displayType, selector, frame) {
	var obj;
	obj = findDOM(objID, fdStyle, selector, frame);
	obj.display = displayType;
}
	
// Position an object at a specific x,y location
//     some browsers won't allow negative values      
//   This function only uses the style elements because offset is read only
function shiftYTo(objID, y, selector, frame) {
	var obj;
	obj = findDOM(objID, fdStyle, selector, frame);
	obj.top = Math.round(y) + "px"; 
}

// Move an object by x and/or y pixels
//   Note that for Netscape4, if the block element's possition is relative
//   than it becomes relative to itself in the vertical direction
//   so that it's original offsetTop must be subtracted each time to 
//   it at the same vertical possition.
//   This function only uses the style elements because offset is read only
function shiftYBy(objID, deltaY, selector, frame) {
	var obj;
	obj = findDOM(objID, fdStyle, selector, frame);
	if (selector == "" || selector == null) obj.top = Math.round(parseInt(obj.top) + deltaY) + "px"
	else obj.top = Math.round(parseInt(obj.top) + deltaY) + "px"
}

// Center an object on the page
// this will center both vertical and horizontal.  For vertical to work
// you must use the "height=100%" style tag for the body element
//   not designed to center images with no container.
function center(objID, horizontal, verticle, selector, frame) {
	var x;
	var obj = findDOM(objID, fdStyle, selector, frame);
	if (horizontal) {
		x = (getInsideWindowWidth(frame) - parseInt(obj.width))/2;
		if (selector.indexOf("hadow") > -1) x += 5;
		if (x < 0) { x = 0 }
		obj.left = x + "px"	}
	if (verticle) {
		x = (getInsideWindowHeight(frame) - parseInt(obj.height))/2;
		if (selector.indexOf("hadow") > -1) x += 5;
		if (x < 0) { x = 0 }
		obj.top = x + "px" }
}

// Change text to that which is passed to the function.  inserts HTML into a DIV object.
//     NOTE: netscape 6 supports innerHTML but not innerText, this won't work with
//           pre NS 6 browsers.
function changeText(objID, newHTML, selector, frame) {
	var obj;
	obj = findDOM(objID, fdObject, selector, frame);
	obj.innerHTML = newHTML;
}

// use this with a link line
// href="javascript:openNewWindow('HoustonChron.htm','Houston Chronicle',
//     'height=683,width=703,toolbar=no,scrollbars=no')"
// windowName is not the same as page title and should contain no spaces
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
	newWindow = window.open(URLtoOpen, windowName, windowFeatures);
}

//--------------------------- Menu Bar animation ----------------------------
// at the start of the action position tab at starting position
// This assumes that currentTab is set elsewhere
var homeMoving = false;
var compMoving = false;
var candMoving = false;
var contMoving = false;
var aboutMoving = false;
function menuBar(tab, action) {
	if(currentTab + "Tab" != tab) {
	var startY;
	if(action == "over") startY = "3px"
	else startY = "11px"
	switch(tab) {
	case "HomeTab":
		if(homeMoving) {
			clearInterval(intID1);
			setStylesheetStyle("." + tab, "top", startY);
		} else homeMoving = true;
		if(action == "over") {
			intID1 = setInterval(function() { tabOver(tab) }, 50);
		} else {
			intID1 = setInterval(function() { tabOut(tab) }, 50);
		}
		break;
	case "CompaniesTab":
		if(compMoving) {
			clearInterval(intID2);
			setStylesheetStyle("." + tab, "top", startY);
		} else compMoving = true;
		if(action == "over") {
			intID2 = setInterval(function() { tabOver(tab) }, 50);
		} else {
			intID2 = setInterval(function() { tabOut(tab) }, 50);
		}
		break;
	case "CandidatesTab":
		if(candMoving) {
			clearInterval(intID3);
			setStylesheetStyle("." + tab, "top", startY);
		} else candMoving = true;
		if(action == "over") {
			intID3 = setInterval(function() { tabOver(tab) }, 50);
		} else {
			intID3 = setInterval(function() { tabOut(tab) }, 50);
		}
		break;
	case "ContractorsTab":
		if(contMoving) {
			clearInterval(intID4);
			setStylesheetStyle("." + tab, "top", startY);
		} else contMoving = true;
		if(action == "over") {
			intID4 = setInterval(function() { tabOver(tab) }, 50);
		} else {
			intID4 = setInterval(function() { tabOut(tab) }, 50);
		}
		break;
	case "AboutUsTab":
		if(aboutMoving) {
			clearInterval(intID5);
			setStylesheetStyle("." + tab, "top", startY);
		} else aboutMoving = true;
		if(action == "over") {
			intID5 = setInterval(function() { tabOver(tab) }, 50);
		} else {
			intID5 = setInterval(function() { tabOut(tab) }, 50);
		}
		break;
	}
	}
}
function tabOver(tab) {
	var tabTop;
	var tabCSS;
	tabCSS = getStyleBySelector("." + tab);
	tabTop = parseInt(tabCSS.top);
	if(tabTop == 13) {
		switch(tab) {
		case "HomeTab":
			clearInterval(intID1);
			homeMoving = false;
			break;
		case "CompaniesTab":
			clearInterval(intID2);
			compMoving = false;
			break;
		case "CandidatesTab":
			clearInterval(intID3);
			candMoving = false;
			break;
		case "ContractorsTab":
			clearInterval(intID4);
			contMoving = false;
			break;
		case "AboutUsTab":
			clearInterval(intID5);
			aboutMoving = false;
			break;
		}
		setStylesheetStyle("." + tab, "top", "11px");
	} else {
		tabTop += 2;
		setStylesheetStyle("." + tab, "top", tabTop + "px");
	}
}
function tabOut(tab) {
	var tabTop;
	var tabCSS;
	tabCSS = getStyleBySelector("." + tab);
	tabTop = parseInt(tabCSS.top);
	if(tabTop == 1) {
		switch(tab) {
		case "HomeTab":
			clearInterval(intID1);
			homeMoving = false;
			break;
		case "CompaniesTab":
			clearInterval(intID2);
			compMoving = false;
			break;
		case "CandidatesTab":
			clearInterval(intID3);
			candMoving = false;
			break;
		case "ContractorsTab":
			clearInterval(intID4);
			contMoving = false;
			break;
		case "AboutUsTab":
			clearInterval(intID5);
			aboutMoving = false;
			break;
		}
		setStylesheetStyle("." + tab, "top", "3px");
	} else {
		tabTop -= 2;
		setStylesheetStyle("." + tab, "top", tabTop + "px");
	}
}

//-------------------------- Page Info --------------------------------------

// loaded controls
// Loading flash components in this way allows them to be loaded in an activated state
// NOTE: in order to use the Flash External Interface, javascript must be able to reference the
// flash movie object.  This requires that the embed tag also have an ID, which can not be
// the same as the object tags ID.
// wmode can be transparent, window (default), or opaque
var BigFlashHeader = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='TPS' width='710' height='305' id='TPSSWF'><param name='movie' value='flash/TPS8ldr.swf'><param name='quality' value='high'><param name='wmode' value='opaque'><param name='LOOP' value='false'><param name='bgcolor' value='#ffffff'><param name='FlashVars' value=''><embed src='flash/TPS8ldr.swf' width='710' height='305' loop='false' name='TPSSWF' id='TPSSWFembed' wmode='opaque' quality=high bgcolor='#ffffff' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' FlashVars=''></embed></object>"
var BigFlashHeader2 = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='TPS' width='710' height='305' id='TPSSWF'><param name='movie' value='flash/TPS8Big2.swf'><param name='quality' value='high'><param name='wmode' value='opaque'><param name='LOOP' value='false'><param name='bgcolor' value='#ffffff'><param name='FlashVars' value=''><embed src='flash/TPS8Big2.swf' width='710' height='305' loop='false' name='TPSSWF' id='TPSSWFembed' wmode='opaque' quality=high bgcolor='#ffffff' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' FlashVars=''></embed></object>"
var TPSLogo1 = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='TPS' width='170' height='50' id='TPSSWF'><param name='movie' value='flash/TPSLogo1.swf'><param name='quality' value='high'><param name='wmode' value='opaque'><param name='LOOP' value='false'><param name='bgcolor' value='#ffffff' /><embed src='flash/TPSLogo1.swf' width='170' height='50' loop='false'  name='TPSSWF' id='TPSSWFembed' wmode='opaque' quality=high bgcolor='#ffffff' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>"
var TPSLogo2 = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='TPSLogo' width='170' height='50' id='TPSLogoSWF'><param name='movie' value='flash/TPSLogo2.swf'><param name='quality' value='high'><param name='wmode' value='opaque'><param name='LOOP' value='false'><param name='bgcolor' value='#ffffff' /><embed src='flash/TPSLogo2.swf' width='170' height='50' loop='false' name='TPSLogoSWF' id='TPSLogoSWFembed' wmode='opaque' quality=high bgcolor='#ffffff' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>"
var SmallFlashHeader = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='TPS' width='710' height='142' id='TPSSWF'><param name='movie' value='flash/TPS9Small.swf'><param name='quality' value='high'><param name='wmode' value='opaque'><param name='LOOP' value='false'><param name='bgcolor' value='#ffffff'><param name='FlashVars' value=''><embed src='flash/TPS9Small.swf' width='710' height='142' loop='false' name='TPSSWF' id='TPSSWFembed' wmode='opaque' quality=high bgcolor='#ffffff' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' FlashVars=''></embed></object>"
var FlashHeaderMac = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='TPS' width='710' height='305' id='TPSSWF'><param name='movie' value='flash/TPS6ldr.swf'><param name='quality' value='high'><param name='wmode' value='opaque'><param name='scale' value='noscale' /><param name='LOOP' value='false'><param name='bgcolor' value='#ffffff' /><embed src='flash/TPS6ldr.swf' width='710' height='305' loop='false' name='TPSSWF' id='TPSSWFembed' wmode='opaque' scale='noscale' quality=high bgcolor='#ffffff' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>"
// This is no longer being used, the media player version was replaced by flash
var VResDemoCand = "<object id='MediaPlayer' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components' type='application/x-oleobject' align='absmiddle' width='320' height='290'><param name='FileName' value='http://www.nps.com/vres/npswebsitecan.ASX'><embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp' src='http://www.nps.com/vres/npswebsitecan.ASX' showcontrols=1 showdisplay=0 showstatusbar=0 autoplay=1 width=320 height=290 align='absmiddle'></embed></object>"
// This is no longer being used, the media player version was replaced by flash
var VResDemoComp = "<object id='MediaPlayer' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components' type='application/x-oleobject' align='absmiddle' width='320' height='290'><param name='FileName' value='http://www.nps.com/vres/d1603301.ASX'><embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp' src='http://www.nps.com/vres/d1603301.ASX' showcontrols=1 showdisplay=0 showstatusbar=0 autoplay=1 width=320 height=290 align='absmiddle'></embed></object>"
var Quotes2 = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='Quotes2' width='195' height='105' id='Quotes2SWF'><param name='movie' value='flash/Quotes3.swf'><param name='quality' value='high'><param name='wmode' value='transparent'><param name='LOOP' value='false'><embed src='flash/Quotes3.swf' width='195' height='105' loop='false' name='Quotes2SWF' wmode='transparent' quality=high  pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>"
var VresHeaderCand = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='VresHeaderCand' width='475' height='325' id='VresHeaderCandSWF'><param name='movie' value='flash/VresHeaderCand2.swf'><param name='quality' value='high'><param name='wmode' value='transparent'><param name='LOOP' value='false'><embed src='flash/VresHeaderCand2.swf' width='475' height='325' loop='false' name='VresHeaderCandSWF' wmode='transparent' quality=high  pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>"
var VresHeaderComp = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='VresHeaderComp' width='475' height='325' id='VresHeaderCompSWF'><param name='movie' value='flash/VresHeaderComp2.swf'><param name='quality' value='high'><param name='wmode' value='transparent'><param name='LOOP' value='false'><embed src='flash/VresHeaderComp2.swf' width='475' height='325' loop='false' name='VresHeaderCompSWF' wmode='transparent' quality=high  pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>"
