/////////////////////////////////////////////
//    include: c_js/foundation.js
/////////////////////////////////////////////
var globalOnloads = Array();
var globalOnunloads = Array();
function globalOnload()
{
	for( var counter = 0; counter < globalOnloads.length; counter++ )
	{
		globalOnloads[counter]();
	}
}

function globalOnunload()
{
	for( var counter = 0; counter < globalOnunloads.length; counter++ )
	{
		globalOnunloads[counter]();
	}
}

var browserIsIE = ( (navigator.appName == "Microsoft Internet Explorer" ) ? true : false );

	function getPathFromId( src_id )
	{
		var pth = "";
		if ( (src_id.indexOf) && (src_id.indexOf('_') !=-1) )
		{
			var tmp = src_id.split('_');
			pth = "00"+tmp[1];
		}
		else
		{
			pth = "00"+src_id;
		}

		var pthLen = pth.length % 3;
		pth = pth.substr(pthLen, pth.length);

		var npath = "";
		for (var xx = 0; (xx < pth.length-3); (xx += 3))
		{
			npath += pth.substr(xx, 3) + "/";
		}
		return(npath);
	}

function getDataFromID( idValue )
	{
		var idSplit = idValue.split('-');
		var dataValue = idSplit[1];
		return dataValue
	}

function populateElement( div_in, pop_data )
	{
		document.getElementById( div_in ).innerHTML = pop_data;
		document.getElementById( div_in ).style.visibility="visible";
	}

function populateDiv( div_in, pop_data )
	{
		document.getElementById( div_in ).innerHTML = pop_data;
		document.getElementById( div_in ).style.visibility="visible";
		document.getElementById( div_in ).style.display="block";
	}

function trim(str)
	{
		return str.replace(/^\s*|\s*$/g,"");
	}

function htmlentity(str)
{
	var newstr = str.replace(/\&/g, "&amp;");
	newstr = newstr.replace(/"/g, "&quot;");
	newstr = newstr.replace(/</g, "&lt;");
	newstr = newstr.replace(/>/g, "&gt;");

	return newstr;
}

function htmlentity_decode(str)
{
	var newstr = str.replace(/\&amp;/g, "&");
	newstr = newstr.replace(/\&quot;/g, "\"");
	newstr = newstr.replace(/\&lt;/g, "<");
	newstr = newstr.replace(/\&gt;/g, ">");

	return newstr;
}

function swapCSSClass( domObj, oldClass, newClass )
	{
		var splitter = domObj.className.split( ' ' );
		var classNameBuild = '';
		for ( var xx=0; xx < splitter.length; xx++ )
			{
				classNameBuild += ( ( splitter[xx] == oldClass ) ? newClass : splitter[xx] ) + ' ';
			}

		domObj.className = trim( classNameBuild );
	}

function hideDisplay( domObj )
	{
		if ( ( typeof domObj ) != 'object' )
			{
				domObj = document.getElementById( domObj );
			}

		domObj.style.visibility = 'hidden';
		domObj.style.display = 'none';

	}

function showDisplay( i_Obj )
{
	var domObj = null;

	if ( ( typeof i_Obj ) != 'object' )
	{	domObj = document.getElementById( i_Obj );	}
	else
	{
		domObj = i_Obj;
	}

	if (domObj.id.substr(0,8) == "floater-")
	{
		var tempObj = "";
		for (i=1; i<4;i++)
		{
			tempObj = document.getElementById( "floater-"+i );
			tempObj.style.zIndex=0;
		}

		/*(if (IS_IE_BROWSER=="true")
		{	domObj.style.zIndex = domObj.zIndex++;	}
		else
		{	domObj.style.zIndex = 1;	}*/
		domObj.style.zIndex = 10000;
	}

	domObj.style.visibility = 'visible';
	domObj.style.display = 'block';
 }


function setfieldvalue(field_name, value)
{
	document.getElementById(field_name).value = value;
}

function format_date(dateObj)
{
	var d_names = new Array("Sunday", "Monday", "Tuesday",
							"Wednesday", "Thursday", "Friday", "Saturday");

	var m_names = new Array("January", "February", "March", "April",
							"May", "June", "July", "August", "September",
							"October", "November", "December");

	var curr_day	= dateObj.getDay();
	var curr_date	= dateObj.getDate();
	var curr_month	= dateObj.getMonth();
	var curr_year	= dateObj.getFullYear();
	var sup = "th";

	if (curr_date == 1 || curr_date == 21 || curr_date ==31)
	{	sup = "st";	}
	else if (curr_date == 2 || curr_date == 22)
	{	sup = "nd";	}
	else if (curr_date == 3 || curr_date == 23)
	{	sup = "rd";	}

	return(d_names[curr_day] + ", " + m_names[curr_month] + " " + curr_date + sup + ", " + curr_year);
}

function popWin(url_in, width_in, height_in, title_in)
{  // General method used to open a popup window from the site
	var winWidth = ((width_in!=null) ? parseInt(width_in) : 640);
	var winHeight = ((height_in!=null) ? parseInt(height_in) : 480);
	var windowTitle = (String)((title_in!=null) ? title_in: "");
	
	windowTitle = windowTitle.replace(/ /g, "_");
	var features = "width="+winWidth+",height="+winHeight+",resizable=1,toolbar=1,scrollbars=1";  

	wnd = window.open(url_in, windowTitle, features);
	wnd.focus();
}

function gen_open_win(url_in, nm_in)
{
	popWin(url_in);
}

function build_date_sel( base_field_name, default_ymd, years_back, years_ahead, months_format )
{
	base_field_name = ( base_field_name == null ? "f" : base_field_name );
	years_back = ( years_back == null ? 2 : years_back );
	years_ahead = ( years_ahead == null ? 5 : years_ahead );
	months_format = ( months_format == null ? "full" : months_format );

	var monthsAbbrev = new Array( "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" );
	var monthsFull = new Array( "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" );
	var ymd = ( default_ymd instanceof Date ? default_ymd : new Date() );

	var year_value = ymd.getFullYear();
	var month_value = ymd.getMonth() + 1;
	var day_value = ymd.getDate();

	var year_start = year_value - years_back;
	var year_stop = year_value + years_ahead;

	var newDiv = document.createElement("div");
	var newSel1 = document.createElement("select");
	newSel1.name = base_field_name + "_month";
	newSel1.id = base_field_name + "_month";
	for( var mc = 0; mc < 12; mc++ )
	{
		var newOption = document.createElement("option");
		newOption.value = mc + 1;
		var textN = document.createTextNode( ( months_format == "full" ? monthsFull[mc] : months_format == "abbrev" ? monthsAbbrev[mc] : ( mc + 1 < 10 ? "0" : "" ) + ( mc + 1 ) ) );
		newOption.appendChild( textN );
		if( mc + 1 == month_value )
		{
			newOption.setAttribute("selected", "selected");
		}
		newSel1.appendChild( newOption );
	}

	var newText1 = document.createTextNode( "\u00A0\u00A0\u00A0" );

	var newSel2 = document.createElement("select");
	newSel2.name = base_field_name + "_day";
	newSel2.id = base_field_name + "_day";
	for( var md = 0; md < 31; md++ )
	{
		var newOption = document.createElement("option");
		newOption.value = md + 1;
		var textN = document.createTextNode( ( md + 1 < 10 ? "0" : "" ) + ( md + 1 ) );
		newOption.appendChild( textN );
		if( md == day_value )
		{
			newOption.setAttribute("selected", "selected");
		}
		newSel2.appendChild( newOption );
	}

	var newText2 = document.createTextNode( "\u00A0\u00A0\u00A0" );

	var newSel3 = document.createElement("select");
	newSel3.name = base_field_name + "_year";
	newSel3.id = base_field_name + "_year";
	for( var my = year_start; my <= year_stop; my++ )
	{
		var newOption = document.createElement("option");
		newOption.value = my;
		var textN = document.createTextNode( my );
		newOption.appendChild( textN );
		if( my == year_value )
		{
			newOption.setAttribute("selected", "selected");
		}
		newSel3.appendChild( newOption );
	}

	newDiv.appendChild( newSel1 );
	newDiv.appendChild( newText1 );
	newDiv.appendChild( newSel2 );
	newDiv.appendChild( newText2 );
	newDiv.appendChild( newSel3 );

	return newDiv;
}




/////////////////////////////////////////////
//    include: c_js/ajax-base.js
/////////////////////////////////////////////
function createRequestObject()
{
	var ro;

	if ( browserIsIE )
	{
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		ro = new XMLHttpRequest();
	}

	return ro;
}

function urlquoteentities( str )
{
	return str.replace( /'/g, '%27' ).replace( /"/g, '%22' );
}

function getPageKeyValue( )
{
	return document.anchors[0].name;
}

function readCookie( name )
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for( var i=0; i < ca.length; i++ )
	{
		var c = ca[i].replace(/^\s*|\s*$/g,"");
		if( c.indexOf(nameEQ) == 0 )
		{
			return c.substring( nameEQ.length, c.length );
		}
	}
	return null;
}


function ajaxSendRequest( area, module_name, url_data, http_obj_in, return_method, post_data, post_content_type, async )
{
	var request_sent = false;
	var is_async = ((async==null) ? true : async);

	var method = ((post_data == null) ? 'get' : 'post');
	var phpsessid = readCookie('PHPSESSID');
	phpsessid = ( phpsessid == null ? "" : phpsessid );

	if ( ( area == 'site' ) || ( area == 'https://marketplace.omaha.com/site' ) )
	{
		url_data += '&u_page=' + PAGE_ID + '&u_page_mod=' + PAGE_MOD + '&PHPSESSID=' + phpsessid;
	}
	else
	{
		url_data += '&u_debug=' + ( typeof DEBUG_MODE == "undefined" ? '' : DEBUG_MODE );
	}

	http_obj_in.open( method, area +'_call.php?u_content=xml&u_slave_module=' + module_name + '&' + url_data, is_async );
	http_obj_in.onreadystatechange = return_method;

	switch ( post_content_type )
	{
		case 'xml':
			http_obj_in.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
			http_obj_in.send( 'web_form_post_data=' + encodeURIComponent( post_data ) );
			//http_obj_in.send( 'web_form_post_data=' + escape( post_data ) );
			//alert( post_data );
			break;
		case 'form':
			http_obj_in.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
			http_obj_in.send( post_data );
			//alert( post_data );
			break;
		default:
			http_obj_in.send(post_data);
			break;
	}

	request_sent = true;


  return request_sent;
}

function checkLogout( resp )
	{
		if ( resp == '<logged_out />' )
			{
				location.reload();
			}

		return false;
	}


function ajaxRequestComplete( http_obj_in )
{
	return ( http_obj_in.readyState == 4 );
}

function ajaxGetResponseText( http_obj_in )
{
	return ( http_obj_in.responseText );
}

function ajaxGetResponseXml( http_obj_in )
{
	return ( http_obj_in.responseXML );
}

function ajaxPopulateDiv( div_in, pop_data )
{
	populateDiv( div_in, pop_data );
}

function convertFormToXml( form_in, is_array, get_select_val )
{
	var numElements = null;
	var currElem = null;
	var xmlForm = '<?xml version="1.0" encoding="UTF-8"?>\n';
	var formz = null;
	var currForm = null;
	var xx;
	var xy;

	if ( is_array != null )
		{
			 formz = form_in;
		}
	else
		{
			formz = new Array();
			formz[0] = form_in;
		}
	var numFormz = formz.length;

	xmlForm += '<web_form_post xmlns="http://www.omaha.com/xml/configuration" id="' + formz[0].name + '">\n';

	for ( xx=0; xx < numFormz; xx++ )
		{
			currForm = formz[xx];
			xmlForm += '\t<form name="' + currForm.name + '">\n';
			numElements = currForm.length;

			for ( xy=0; xy < numElements; xy++ )
				{
					currElem = currForm.elements[xy];
					if ((currElem.type!="radio")|| ( ((currElem.type=="checkbox") || (currElem.type=="radio")) && (currElem.checked) ))
					{
						xmlForm += '\t\t<field type="' + currElem.type + '" name="' + ( ( currElem.name) ? currElem.name : currElem.id ) + '">\n';
						switch ( currElem.type )
							{
								case 'checkbox':
									xmlForm += '\t\t\t<value>' + ( ( currElem.checked) ? htmlentity( currElem.value ) : '' ) + '</value>\n';
								break;
								case 'select-one':
									if ( (get_select_val) && (currElem.selectedIndex>=0))
									{
										xmlForm += '\t\t\t<value>' + htmlentity(currElem.options[currElem.selectedIndex].value + "!=!" + currElem.options[currElem.selectedIndex].text)+ '</value>\n';
										break;
									}

								case 'select-multiple':
									for( var oc = 0; oc < currElem.options.length; oc++ )
									{
										if( currElem.options[oc].selected )
										{
											xmlForm += '\t\t\t<value>' + htmlentity(currElem.options[oc].value) + '</value>\n';
										}
									}
									break;

								default:
									xmlForm += '\t\t\t<value>' + htmlentity(convertUnicode2HTML( currElem.value )) + '</value>\n';
								break;
							} // end switch

						xmlForm += '\t\t</field>\n';
					}
				} // end for xy

			xmlForm += '\t</form>\n';
		} // end for xx

	xmlForm += '</web_form_post>';

	return xmlForm;
}




/////////////////////////////////////////////
//    include: c_js/conversion.js
/////////////////////////////////////////////
var debug1 = true;
var debug2 = true;
var escapeMap = '';
var CPstring = '';

var hexNum = { 0:1, 1:1, 2:1, 3:1, 4:1, 5:1, 6:1, 7:1, 8:1, 9:1,
				A:1, B:1, C:1, D:1, E:1, F:1,
				a:1, b:1, c:1, d:1, e:1, f:1 };
var jEscape = { 0:1, b:1, t:1, n:1, v:1, f:1, r:1 };
var decDigit = { 0:1, 1:1, 2:1, 3:1, 4:1, 5:1, 6:1, 7:1, 8:1, 9:1 };


	function dec2hex ( textString )
	{
		return (textString+0).toString(16).toUpperCase();
	}

	function  dec2hex2 ( textString )
	{
		var hexequiv = new Array ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F");
		return hexequiv[(textString >> 4) & 0xF] + hexequiv[textString & 0xF];
	}

	function  dec2hex4 ( textString )
	{
		var hexequiv = new Array ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F");
		return hexequiv[(textString >> 12) & 0xF] + hexequiv[(textString >> 8) & 0xF] + hexequiv[(textString >> 4) & 0xF] + hexequiv[textString & 0xF];
	}

	function convertUnicode2HTML ( textString )
	{
		var haut = 0;
		var n = 0;
		CPstring = '';
		for (var i = 0; i < textString.length; i++)
		{
			var b = textString.charCodeAt(i);
			if (b>255)
			{
				if (b < 0 || b > 0xFFFF)
				{
					CPstring += 'Error ' + dec2hex(b) + '!';
				}
				if (haut != 0)
				{
					if (0xDC00 <= b && b <= 0xDFFF)
					{
						CPstring += convertCP2DecNCR(dec2hex(0x10000 + ((haut - 0xD800) << 10) + (b - 0xDC00)));
						haut = 0;
						continue;
					}
					else
					{
						CPstring += '!erreur ' + dec2hex(haut) + '!';
						haut = 0;
					}
				}

				if (0xD800 <= b && b <= 0xDBFF)
				{
					haut = b;
				}
				else
				{
					CPstring += convertCP2DecNCR(dec2hex(b));
				}
			}
			else
			{
				CPstring += textString.charAt(i);
			}
		}
		return( CPstring );
	}


	function convertCP2DecNCR ( textString )
	{
		var outputString = "";
		textString = textString.replace(/^\s+/, '');
		if (textString.length == 0)
		{ return ""; }

		textString = textString.replace(/\s+/g, ' ');
		var listArray = textString.split(' ');
		for ( var i = 0; i < listArray.length; i++ )
		{
			var n = parseInt(listArray[i], 16);
			outputString += ('&#' + n + ';');
		}
		return( outputString );
	}




/////////////////////////////////////////////
//    include: c_js/display/draggable_window.js
/////////////////////////////////////////////
// Global object to hold drag information.

var dragObj = new Object();
dragObj.zIndex = 0;
 


function getCursorXPos( event )
	{
		var x;
		if ( browserIsIE ) 
			{
				x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft; 
			}
		else
			{
				x = event.clientX + window.scrollX; 
			}
			
		return x;	
	}

function getCursorYPos( event )
	{
		var y;
		if ( browserIsIE ) 
			{
				y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop;
			}
		else
			{
				y = event.clientY + window.scrollY;
			}
			
		return y;	
	} 

function dragStart(event, id)
	{		
		var el;
		var x, y;
		

		
		// If an element id was given, find it. Otherwise use the element being
		// clicked on.
		
		if (id)
			{
				dragObj.elNode = document.getElementById(id);
			}
		else 
			{
				if ( browserIsIE )
					{ dragObj.elNode = window.event.srcElement; }
				else
					{ dragObj.elNode = event.target; }
		
				// If this is a text node, use its parent element.
		
		
				if (dragObj.elNode.nodeType == 3)
					{
						dragObj.elNode = dragObj.elNode.parentNode;
					}
			}
		
		// Get cursor position with respect to the page.		
		x = getCursorXPos( event );
		y = getCursorYPos( event );
		
		// Save starting positions of cursor and element.
		
		dragObj.cursorStartX = x;
		dragObj.cursorStartY = y;
		dragObj.elStartLeft  = parseInt(dragObj.elNode.offsetLeft, 10);
		dragObj.elStartTop   = parseInt(dragObj.elNode.offsetTop,  10);
		
		if (isNaN(dragObj.elStartLeft)) 
			dragObj.elStartLeft = 0;
		
		if (isNaN(dragObj.elStartTop))
			dragObj.elStartTop  = 0; 
		
		if (dragObj.elNode.id.substr(0,8) == "floater-")
		{
			var tempObj = "";
			for (i=1; i<4;i++)
			{
				tempObj = document.getElementById( "floater-"+i );
				tempObj.style.zIndex=0;
			}
	
			if (IS_IE_BROWSER=="true")
			{	dragObj.elNode.style.zIndex = dragObj.zIndex++;	}
			else
			{	dragObj.elNode.style.zIndex = 1;	}
			
		}

		// Capture mousemove and mouseup events on the page.
		if ( browserIsIE ) 
			{
				document.attachEvent("onmousemove", dragGo);
				document.attachEvent("onmouseup",   dragStop);
				window.event.cancelBubble = true;
				window.event.returnValue = false;
			}
		else
			{
				document.addEventListener("mousemove", dragGo,   true);
				document.addEventListener("mouseup",   dragStop, true);
				event.preventDefault();
			}
}

function dragGo(event) 
	{	
		var x, y;
		
		// Get cursor position with respect to the page.		
		x = getCursorXPos( event );
		y = getCursorYPos( event );
		
		if ( browserIsIE ) 
			{
				x = window.event.clientX + document.documentElement.scrollLeft
					+ document.body.scrollLeft;
				y = window.event.clientY + document.documentElement.scrollTop
					+ document.body.scrollTop;
			}
		else
			{
				x = event.clientX + window.scrollX;
				y = event.clientY + window.scrollY;
			}
		
		// Move drag element by the same amount the cursor has moved.   
		var newPosLeft = (dragObj.elStartLeft + x - dragObj.cursorStartX);
		var newPosTop = (dragObj.elStartTop  + y - dragObj.cursorStartY); 
		
		dragObj.elNode.style.left = ( ( newPosLeft < 0 ) ? 0 : newPosLeft ) + "px";
		dragObj.elNode.style.top  = ( ( newPosTop < 0 ) ? 0 : newPosTop ) + "px"; 
		
		if ( browserIsIE) 
			{
				window.event.cancelBubble = true;
				window.event.returnValue = false;
			}
		else
			{
				event.preventDefault();
			}
	}

function dragStop(event) 
	{  				
		if ( browserIsIE) 
			{
				document.detachEvent("onmousemove", dragGo);
				document.detachEvent("onmouseup",   dragStop);
			}
		else
			{
				document.removeEventListener("mousemove", dragGo,   true);
				document.removeEventListener("mouseup",   dragStop, true);
			}
	} 
	



/////////////////////////////////////////////
//    include: c_js/display/floaters.js
/////////////////////////////////////////////
function showFloater( floater_num, title, content, override_width, override_height, override_bg, override_X, override_Y )
{ 
	var oldWidth = null, oldHeight = null;
	
	var floaterName = 'floater-' + floater_num;

	if (override_width==null)
	{	override_width = ((floater_num==1) ? "320px" : "240px");	}

	if (override_height==null)
	{	override_height = ((floater_num==1) ? "320px" : "180px");	}

	if (override_bg==null)
	{
		switch (parseInt(floater_num))
		{
			case 1:
			case 2:
					switch (parseInt(PAGE_ID))
					{
						case 10001: override_bg = "#e5becf"; break;
						case 10002: override_bg = "#fbedc0"; break;
						default: override_bg = "#fff"; break;
					}
					break;
			case 3:
			default:
					override_bg = "#bebad0";
					break;
		}
	}

	setFloaterWidthOverride( floater_num, override_width );
	setFloaterHeightOverride( floater_num, override_height );
	setFloaterBackgroundOverride( floater_num, override_bg );
	if(override_Y < 1)
	{
		override_Y = 1;
	}
	setFloaterPositionOverride( floater_num, override_X, override_Y );

	if ( title != null )
	{	document.getElementById( floaterName + '-title' ).innerHTML = title;	}
		
	if ( content != null )
	{	document.getElementById( floaterName + '-content' ).innerHTML = content; }

	showDisplay( floaterName );  
}

function hideFloater( floater_num )
{  	
	var floaterName = 'floater-' + floater_num;
	hideDisplay( floaterName );
}

var onclose_action_added = false;
function add_onclose_action( floaterName, action )
{
	if( action != null && onclose_action_added == false )
	{
		document.getElementById( floaterName + '-closelink' ).href = document.getElementById( floaterName + '-closelink' ).href + action;
		onclose_action_added = true;
	}
}
	
function setFloaterPositionOverride( floater_num, override_X, override_Y )
{
	var floaterName = 'floater-' + floater_num;
	var scrollXY = getScrollXY();
	var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body

	if ( override_X == null)
	{
		var parentWindowWidth = ((IS_SAFARI=="true") ? window.innerWidth : iebody.clientWidth);
		var popW = parseInt(document.getElementById( floaterName + '-holderdiv' ).style.width);
		override_X = ((parentWindowWidth - popW) / 2)+scrollXY["X"];
		override_X = override_X+"px";
	}

	if ( override_Y == null)
	{
		var parentWindowHeight = ((IS_SAFARI=="true") ? window.innerHeight : iebody.clientHeight);
		var popH = parseInt(document.getElementById( floaterName + '-holderdiv' ).style.height);
		override_Y = ((parentWindowHeight - popH) / 2)+scrollXY["Y"];
		if(override_Y < 1)
		{
			override_Y = 1;
		}
		override_Y = override_Y+"px";
	}

	document.getElementById( floaterName ).style.left = override_X;
	document.getElementById( floaterName ).style.top = override_Y;
}
	
function getScrollXY()
{
	var scrOfX = 0, scrOfY = 0;
	if( typeof( window.pageYOffset ) == 'number' )
	{
		//Netscape compliant
		scrOfY = window.pageYOffset;
		scrOfX = window.pageXOffset;
	}
	else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) )
	{
		//DOM compliant
		scrOfY = document.body.scrollTop;
		scrOfX = document.body.scrollLeft;
	}
	else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) )
	{
		//IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;
		scrOfX = document.documentElement.scrollLeft;
	}

	var out=Object();
	out["X"] = scrOfX;
	out["Y"] = scrOfY;

	return(out);
}

function setFloaterWidthOverride( floater_num, override_width )
	{
		var floaterName = 'floater-' + floater_num;
		var correctValue = ( ( override_width == null ) ? '' : override_width );
		var splitString = correctValue.split(parseInt(correctValue));
		var extention = splitString[1];
		var newValue = parseInt(correctValue)+4;

		document.getElementById( floaterName + '-innerframe' ).style.width = (newValue+extention);
		document.getElementById( floaterName + '-innerdiv' ).style.width = correctValue;
		document.getElementById( floaterName + '-innertable' ).style.width = correctValue;
		document.getElementById( floaterName + '-holderdiv' ).style.width = correctValue;
	}
	
function setFloaterHeightOverride( floater_num, override_height )
	{
		var floaterName = 'floater-' + floater_num;
		var correctValue = ( ( override_height == null ) ? '' : override_height );
		var splitString = correctValue.split(parseInt(correctValue));
		var extention = splitString[1];
		var newValue = parseInt(correctValue)+25;

		document.getElementById( floaterName + '-innerframe' ).style.height = (newValue+extention);
		document.getElementById( floaterName + '-innerdiv' ).style.height = correctValue;
		document.getElementById( floaterName + '-innertable' ).style.height = correctValue;
		document.getElementById( floaterName + '-holderdiv' ).style.height = correctValue;
	}
	
function setFloaterBackgroundOverride( floater_num, override_bg )
	{
		var floaterName = 'floater-' + floater_num;
		var correctValue = ( ( override_bg == null ) ? '' : override_bg ); 
		document.getElementById( floaterName + '-holderdiv' ).style.background = correctValue;
		document.getElementById( floaterName + '-content' ).style.background = correctValue;
	}	




/////////////////////////////////////////////
//    include: c_js/form_validation.js
/////////////////////////////////////////////
var okToSubmit_form = true;

function checkDate(i_month, i_day, i_year)
{
	var months= new Array(12) 
	months[1]="Jan"; 
	months[2]="Feb"; 
	months[3]="Mar"; 
	months[4]="Apr"; 
	months[5]="May"; 
	months[6]="Jun"; 
	months[7]="Jul"; 
	months[8]="Aug"; 
	months[9]="Sep"; 
	months[10]="Oct"; 
	months[11]="Nov"; 
	months[12]="Dec"; 

	var myMonthStr = months[parseInt(i_month.value)];
	var myDayStr = i_day.value;
	var myYearStr = i_year.value;
	var myDateStr = myDayStr + ' ' + myMonthStr + ' ' + myYearStr;
	
	/* Using form values, create a new date object
	which looks like "Wed Jan 1 00:00:00 EST 1975". */
	var myDate = new Date( myDateStr );
	
	// Convert the date to a string so we can parse it.
	var myDate_string = myDate.toGMTString();
	
	/* Split the string at every space and put the values into an array so,
	using the previous example, the first element in the array is "Wed", the
	second element is "Jan", the third element is "1", etc. */
	var myDate_array = myDate_string.split( ' ' );
	
	/* If we entered "Feb 31, 1975" in the form, the "new Date()" function
	converts the value to "Mar 3, 1975". Therefore, we compare the month
	in the array with the month we entered into the form. If they match,
	then the date is valid, otherwise, the date is NOT valid. */
	if ( myDate_array[2] != myMonthStr )
	{
//		alert( 'I\'m sorry, but "' + myMonthStr + ' ' + myDayStr + ' ' + myYearStr + '" is NOT a valid date.' );
		return(false);
	}
	else
	{
//		alert( 'Congratulations! "' + myDateStr + '" IS a valid date.' );
		return(true);
	}
}

function _com_isEmpty(string_in)
{
	var isEmpty = false;
	if ( (string_in==null) || (trim(string_in)=="") )
	{	isEmpty = true;	}

	return(isEmpty);
}

function checkField(fieldName, msg_in, type_in)
{
	if ( (fieldName) && (okToSubmit_form==true) )
	{
		if ( (type_in) && (type_in.indexOf('|')>0) )
		{
			var type_in_arr = type_in.split('|');
			type_in = type_in_arr[0];
		}

		switch(type_in)
		{
			case "select":
						if ( fieldName.options[fieldName.selectedIndex].value == "-1")
						{	okToSubmit_form = false;	}
						break;

			case "checkbox":
			case "check":
						if ( fieldName.checked == false)
						{	okToSubmit_form = false;	}
						break;

			case "radio":
						okToSubmit_form = false;
						for (counter = 0; counter < fieldName.length; counter++)
						{
							if (fieldName[counter].checked)
							{	okToSubmit_form = true;	}
						}
						break;

			case "date":
						if (checkDate(type_in_arr[1],type_in_arr[2],type_in_arr[3])==false)
						{	okToSubmit_form = false;	}
						break;

			case "length":
						if ( fieldName.value.length < type_in_arr[1])
						{	okToSubmit_form = false;	}
						break;

			case "lessthan":
						if ( type_in_arr[1] >= type_in_arr[2] )
						{	okToSubmit_form = false;	}
						break;

			case "greaterthan":
						if ( type_in_arr[1] <= type_in_arr[2] )
						{	okToSubmit_form = false;	}
						break;

			case "lessequal":
						if ( type_in_arr[1] > type_in_arr[2] )
						{	okToSubmit_form = false;	}
						break;

			case "greaterequal":
						if ( type_in_arr[1] < type_in_arr[2] )
						{	okToSubmit_form = false;	}
						break;

			case "range":
						if ( ( fieldName.value.length < type_in_arr[1]) || ( fieldName.value.length > type_in_arr[2]) )
						{	okToSubmit_form = false;	}
						break;

			case "value-range":
						if ( ( fieldName.value < type_in_arr[1]) || ( fieldName.value > type_in_arr[2]) )
						{	okToSubmit_form = false;	}
						break;

			case "integer":
						if( isInteger( fieldName ) == false )
						{ okToSubmit_form = false; }
						break;

			case "email":
						if ( /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(fieldName.value) == false )
						{
							msg_in = ((_com_isEmpty(msg_in)==false)
										? msg_in 
										: "The email address you entered does not appear valid.  A valid email address must have an “@” and a “dot” such as name@omaha.com.  Please re-enter this field.");
							okToSubmit_form = false;
						}

						break;

			case "text":
			case "input":
			default:
						if (_com_isEmpty(fieldName.value)==true)
						{	okToSubmit_form = false;	}
						break;
		}

		if ( okToSubmit_form==false)
		{
			if (fieldName.tagName == "INPUT")
			{	fieldName.setAttribute('autocomplete', 'off');	}
			if (type_in != "radio")
			{	fieldName.focus();	}
			alert( msg_in );
		}
	}
}

function isInteger( fieldName )
{
	return /^\d+$/.test(fieldName.value);
}

function enterKeyPressed(e)
{ 
	var myKeyCode	= 0;
	var enter_pressed = false;

	if ( document.all )	// Internet Explorer 4+
	{	myKeyCode = e.keyCode;	}
	else if ( document.layers || document.getElementById ) // Netscape 4 0r 6+
	{	myKeyCode = e.which;	}

	if ( (myKeyCode == 13) )
	{	enter_pressed = true;	}
	
	return enter_pressed;
}

function isLetter(e, frm, fld_id )
{
	var	ok			= true;
	var myKeyCode	= 0;

	if ( document.all )	// Internet Explorer 4+
	{	myKeyCode = e.keyCode;	}
	else if ( document.layers || document.getElementById ) // Netscape 4 0r 6+
	{	myKeyCode = e.which;	}

	if (((myKeyCode < 48) || (myKeyCode > 57)) && (myKeyCode != 8) && (myKeyCode != 13))
	{	return(true);	}
	else
	{
		alert('Please use letters only.');
		ok = false;
	}

	return(ok);
}

function isNumber(e, fld_id, is_phone, allow_dec)
{
	var	ok			= true;
	var myKeyCode	= 0;

	if ( document.all )	// Internet Explorer 4+
	{	myKeyCode = e.keyCode;	}
	else if ( document.layers || document.getElementById ) // Netscape 4 0r 6+
	{	myKeyCode = e.which;	}

	if (((myKeyCode < 48) || (myKeyCode > 57)) && (myKeyCode != 8) && (myKeyCode != 13))
	{
		if ( (is_phone == true) && ((myKeyCode < 57) || (myKeyCode < 48) || (myKeyCode < 45)) )
		{	return(true);	}

		if ( (myKeyCode == 9) || (myKeyCode == 25) || (myKeyCode == 0) )
		{	return(true);	}
	
		if ((allow_dec == true) && (myKeyCode == 46))
		{	return(true);	}
		//alert(myKeyCode);

		if (fld_id.tagName == "INPUT")
		{	fld_id.setAttribute('autocomplete', 'off');	}
		alert('Please use numbers only.');
		ok = false;
	}

	return(ok);
}

function auto_field_advance(e, fld_in, next_fld, len)
{
	if (!(len>0))
	{	len=3;	}

	if (fld_in.value.length==len)
	{
		if (fld_in.tagName == "INPUT")
		{	fld_in.setAttribute('autocomplete', 'off');	}
		if (next_fld.tagName == "INPUT")
		{	next_fld.setAttribute('autocomplete', 'off');	}
		next_fld.focus();
	}
}

function copy_addr(frm_in)
{
	if (frm_in.f_bill_addr_fl)
	{
		if (frm_in.f_bill_addr_fl.checked == true)
		{
			frm_in.f_del_addr1.value				= frm_in.f_addr1.value;
			frm_in.f_del_addr2.value				= frm_in.f_addr2.value;
			frm_in.f_del_city.value					= frm_in.f_city.value;
			frm_in.f_del_state_cd.selectedIndex		= frm_in.f_state_cd.selectedIndex;
			frm_in.f_del_zip.value					= frm_in.f_zip.value;
		}
	}

	return(true);
}





/////////////////////////////////////////////
//    include: c_js/mapquest-sa.js
/////////////////////////////////////////////
var mapsa_http_obj_mapsa = null;
  
var mapsa_list = new Array( 50 );
var mapsa_num_addrs = 0;
var mapsa_map_width = "540px";
var mapsa_map_height = "400px";
var mapsa_bg = '#366';


function mapsa_add_address( key, addr, city, state, zip )
	{
	
	}
  
function mapsa_remove_address( key )
	{
	
	}
	
function mapsa_clear_addresses( )
	{
	
	}
  
function mapsa_show_mapped_addresses( )
	{ // show a map for mult. addresses 
		 
	}

function mapsa_show_map( addr, city, state, zip )
	{ // show a map for a single address  
		mapsa_http_obj_mapsa = createRequestObject();
		var url_data = 'u_key1=solo' +
			( ( trim( addr ) != '' ) ? '&u_addr1=' + trim( addr ) : '' ) +
			( ( trim( city ) != '' ) ? '&u_city1=' + trim( city ) : '' ) +
			( ( trim( state ) != '' ) ? '&u_state1=' + trim( state ) : '' ) +
			( ( trim( zip ) != '' ) ? '&u_zip1=' + trim( zip ) : '' ) + 
			'&u_show_nav=show'; 
			
		var mapTitle = 'Map: ' + 
			( ( trim( addr ) != '' ) ? trim( addr ) + ', ' : '' ) +
			( ( trim( city ) != '' ) ? trim( city ) + ', ' : '' ) +
			( ( trim( state ) != '' ) ? trim( state ) + ' ' : '' ) +
			( ( trim( zip ) != '' ) ? 'Zip ' + trim( zip )  : '' );
			
		showFloater( 1, mapTitle, '<p class="fwhite" align="center">( Loading Map, please wait ... )</p>', mapsa_map_width, mapsa_map_height, mapsa_bg ); 
			
		ajaxSendRequest( 'site', 'mapsa_display', url_data, mapsa_http_obj_mapsa, handle_mapsa_map_display   );   
	}

function mapsa_redisplay_map( valueIn )
	{ // show a map for a single address  
		var url_data =
			'&u_action=' + valueIn + '&u_show_nav=' +
			( ( document.getElementById('mapsa_nav_panel').style.visibility == 'visible' )
				? 'show' : 'hide' ); 
				
		ajaxSendRequest( 'site', 'mapsa_display', url_data, mapsa_http_obj_mapsa, handle_mapsa_map_display   ); 
	}

function handle_mapsa_map_display( )
	{  
		if ( ajaxRequestComplete( mapsa_http_obj_mapsa ) )
			{ 
				var responseText = mapsa_http_obj_mapsa.responseText; 
				showFloater( 1, null, responseText, mapsa_map_width, mapsa_map_height, mapsa_bg );      
			}  
	} 
 
  
function mapsa_hide_nav() 
	{   
		if ( document.getElementById('mapsa_nav_panel').style.visibility == "hidden" )
			{
				showDisplay( 'mapsa_nav_panel');     
			}
		else
			{
				hideDisplay( 'mapsa_nav_panel'); 
			}	
	
	}    
 



/////////////////////////////////////////////
//    include: c_js/legal.js
/////////////////////////////////////////////
var site_legal_http_obj = null;
var set_legal_width = "490px";
var set_legal_height = "460px";
var set_legal_valignTop = false;

function site_show_legal_info( idValue, titleIn, area_in, topleft )
	{		
		site_search_floater_has_results = false;
	
		site_legal_http_obj = createRequestObject();  
		var url_data = 'u_id=' + idValue;
		if (set_legal_valignTop==true)
		{	showFloater( 1, titleIn, '( Loading ' + titleIn + ', please wait ... )', set_legal_width, set_legal_height, null, null, "0px");	}
		else
		{	showFloater( 1, titleIn, '( Loading ' + titleIn + ', please wait ... )', set_legal_width, set_legal_height);	}
		ajaxSendRequest( area_in, 'site_show_legal_info', url_data, site_legal_http_obj, handle_site_show_legal_info   ); 
	
	}

function handle_site_show_legal_info( )
	{  
		if ( ajaxRequestComplete( site_legal_http_obj ) )
			{
				var responseText = trim( ajaxGetResponseText( site_legal_http_obj ) );  		
				if (set_legal_valignTop==true)
				{	showFloater( 1, "", responseText, set_legal_width, set_legal_height, null, null, "0px" );	}
				else
				{	showFloater( 1, "", responseText, set_legal_width, set_legal_height );	}
			}  
	}  
	
function show_privacy_policy( area_in, i_topleft )
	{
		site_search_floater_has_results = false;
		
		if ( area_in == null )
		{	area_in = 'site';	}

		if ( i_topleft != null )
		{	set_legal_valignTop = i_topleft;	}
		site_show_legal_info( 'privacy_policy', 'Privacy Policy', area_in );
	}
	
function show_terms_of_use( area_in, i_topleft )
	{
		site_search_floater_has_results = false;
	
		if ( area_in == null )
		{	area_in = 'site';	}

		if ( i_topleft != null )
		{	set_legal_valignTop = i_topleft;	}
		site_show_legal_info( 'terms_of_use', 'Terms of Use', area_in );
	}	
	
function show_copyright_statement( area_in, i_topleft )
	{
		site_search_floater_has_results = false;
	
		if ( area_in == null )
		{	area_in = 'site';	}

		if ( i_topleft != null )
		{	set_legal_valignTop = i_topleft;	}
		site_show_legal_info( 'copyright_statement', 'Copyright Statement', area_in );
	}	
	
function show_comment_policy( area_in, i_topleft )
	{
		site_search_floater_has_results = false;
	
		if ( area_in == null )
		{	area_in = 'site';	}

		if ( i_topleft != null )
		{	set_legal_valignTop = i_topleft;	}
		site_show_legal_info( 'comment_policy', 'Comment Policy', area_in );
	}	




/////////////////////////////////////////////
//    include: site-js/odc/base.js
/////////////////////////////////////////////
	String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };
	var base_http_obj = null;
	var auth_http_obj = null;
	var email_story_http_obj = null;
	var email_story_title = 'Email Story To A Friend';
	var email_story_win_width = '480px';
	var email_story_win_height = '410px';
	var email_guide_title = 'Email Guide To A Friend';
	var email_guide_win_width = '480px';
	var email_guide_win_height = '410px';

	function email_story( storyID )
	{
		email_story_http_obj = createRequestObject();
		ajaxSendRequest( 'site', 'site_email_story_form', 'u_id=' + storyID, email_story_http_obj, handle_email_story );
	}

	function handle_email_story( )
	{
		if ( ajaxRequestComplete( email_story_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( email_story_http_obj ) );
			showFloater( 2, email_story_title, responseText, email_story_win_width, email_story_win_height );
		}
	}

	function email_story_send( form_in )
	{
		// validate
		if ( form_in.f_to_email.value == "" )
		{
			populateDiv( 'story_email_sumbit_msg', '<span class="fred">You must enter recipient email address(es).</span>' );
			form_in.f_to_email.focus();
			return;
		}

		if ( form_in.f_from_email.value == "" )
		{
			populateDiv( 'story_email_sumbit_msg', '<span class="fred">You must enter your email address.</span>' );
			form_in.f_from_email.focus();
			return;
		}

		if ( form_in.f_from_name.value == "" )
		{
			populateDiv( 'story_email_sumbit_msg', '<span class="fred">You must enter your name.</span>' );
			form_in.f_from_name.focus();
			return;
		}

		if ( form_in.f_captcha.value == "" )
		{
			populateDiv( 'story_email_sumbit_msg', '<span class="fred">You must complete the word verification.</span>' );
			form_in.f_captcha.focus();
			return;
		}

		var post_xml_doc = convertFormToXml( form_in );
		email_story_http_obj = createRequestObject();

		populateDiv( 'story_email_sumbit_msg', 'Submitting your request, please wait ...' );

		ajaxSendRequest( 'site', 'site_email_story_submit', '', email_story_http_obj, handle_email_story_send, post_xml_doc, 'xml' );

	}

	function handle_email_story_send( )
	{
		if ( ajaxRequestComplete( email_story_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( email_story_http_obj ) );
			var resp = null;

			if ( responseText == "ok" )
			{
				resp = 'Your story has been sent to your friend(s).  Thank you.';
			}
			else if ( responseText == "invalid" )
			{
				populateDiv( 'story_email_sumbit_msg', '<span class="fred">Word verification has failed.  Please re-enter.</span>' );
			}
			else
			{
				populateDiv( 'story_email_sumbit_msg', '<span class="fred">A server error occured while sending your e-mail message.</span>' );
			}

			if ( resp != null )
			{
				showFloater( 2, email_story_title, resp, email_story_win_width, email_story_win_height );
			}
		}
	}

	function printStory()
	{
		popWin("print_friendly.php?u_mod=story");
	}

	function printMap()
	{
		popWin("print_friendly.php?u_mod=map");
	}

	function printGuide(container)
	{
		popWin("print_friendly.php?u_mod=guide&u_contain="+container);
	}

	var enlargePhoto_obj = null;
	function enlargePhoto(iPhoto, iDisplayCaption)
	{
		var display_caption = "no";
		if ( ( iDisplayCaption != null ) && ( iDisplayCaption == "true" ) )
		{	display_caption = "yes";	}

		enlargePhoto_obj = createRequestObject();
		var url_data = "u_photoID=" + iPhoto + "&u_disp_caption=" + display_caption;
		ajaxSendRequest( "site", "enlargePhoto", url_data, enlargePhoto_obj, handle_enlargePhoto );
	}

	function handle_enlargePhoto( )
	{
		if ( ajaxRequestComplete( enlargePhoto_obj ) )
		{
			var response = trim( ajaxGetResponseText( enlargePhoto_obj ) );
			var parts = response.split('!##!');
			var floatername = "floater-3";
			document.getElementById(floatername + '-innertable').style.border="2px solid #036";
			document.getElementById(floatername + '-innertable').style.background="#fff";
			document.getElementById(floatername + '-title').style.color="#fff";
			document.getElementById(floatername + '-titlebar').style.borderBottom="2px solid #036";
			document.getElementById(floatername + '-titlebar').style.background="#069";
			document.getElementById(floatername + '-closelink').style.color="#fff";
			document.getElementById(floatername + '-closelink').style.background="none";
			document.getElementById(floatername + '-closelink').onmouseover = function()
			{
				document.getElementById(floatername + '-closelink').style.background="#09c";
			}
			document.getElementById(floatername + '-closelink').onmouseout = function()
			{
				document.getElementById(floatername + '-closelink').style.background="none";
			}

			//								  content,   width,    height, bg_clr, left,      top
			showFloater( 3, "Enlarged Photo", parts[0], parts[1], parts[2], "#fff", parts[3], parts[4] );
		}
	}

	var showSlides_obj = null;
	function showSlides(slide_id)
	{
		showSlides_obj = createRequestObject();
		var url_data = "u_slideID=" + slide_id + "&u_page_id=" + PAGE_ID;
		ajaxSendRequest( "site", "showSlides", url_data, showSlides_obj, handle_showSlides );
	}

	function handle_showSlides( )
	{
		if ( ajaxRequestComplete( showSlides_obj ) )
		{
			var response = trim( ajaxGetResponseText( showSlides_obj ) );
			parts = response.split('!##!');
			//								  content,   width,    height, bg_clr, left,      top
			showFloater( 1, "Gallery", parts[0], parts[1], parts[2], null, parts[3], parts[4] );
		}
	}

	function playMovieTrailer( videoClipName )
	{
		var fullPathName = "neo-images/owh/movies/trailers/" + videoClipName;
		var videoContent = "<p style=\"margin-top:0px; margin-bottom:3px;\">Playing movie trailer<br />";
		var width = 320;
		var height = 240;

		videoContent += "(may take a moment to load)</p>\n";
		videoContent += "<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" ";
		videoContent += "width=\"" + width + "\" height=\"" + (height + 13) + "\" codebase=\"http:\//www.apple.com/qtactivex/qtplugin.cab\" id=\"movieTrailer\">\n";
		videoContent += "<param name=\"src\" value=\"" + fullPathName + "\">\n";
		videoContent += "<param name=\"autoplay\" value=\"true\">\n";
		videoContent += "<param name=\"cache\" value=\"true\">\n";
		videoContent += "<param name=\"controller\" value=\"true\">\n";
		videoContent += "<param name=\"enablejavascript\" value=\"true\">\n";
		videoContent += "<param name=\"loop\" value=\"false\">\n";
		videoContent += "<embed src=\"" + fullPathName + "\" ";
		videoContent += "width=\"" + width + "\" height=\"" + (height + 13) + "\" autoplay=\"true\" cache=\"true\" controller=\"true\" loop=\"false\" enablejavascript=\"true\" name=\"movieTrailer\">\n";
		videoContent += "</embed>\n";
		videoContent += "</object>\n";

		var floatername = "floater-3";
		document.getElementById(floatername + '-innertable').style.border="2px solid #036";
		document.getElementById(floatername + '-innertable').style.background="#fff";
		document.getElementById(floatername + '-title').style.color="#fff";
		document.getElementById(floatername + '-titlebar').style.borderBottom="2px solid #036";
		document.getElementById(floatername + '-titlebar').style.background="#069";
		document.getElementById(floatername + '-closelink').style.color="#fff";
		document.getElementById(floatername + '-closelink').style.background="none";
		document.getElementById(floatername + '-closelink').onmouseover = function()
		{
			document.getElementById(floatername + '-closelink').style.background="#09c";
		}
		document.getElementById(floatername + '-closelink').onmouseout = function()
		{
			document.getElementById(floatername + '-closelink').style.background="none";
		}
		document.getElementById(floatername + '-closelink').href = "javascript:hideAudioFloater('floater-3');";

		//								  content,   width,    height, bg_clr
		showFloater( 3, "Play Movie Trailer", videoContent, (width + 8) + "px", (height + 53) + "px", "#fff" );
	}

	function playAudioClip( audioClipName )
	{
		var fullPathName = "neo-images/ap-story-audio/" + audioClipName;
		var audioContent = "<p style=\"margin-top:0px; margin-bottom:3px;\">Playing story audio clip<br />";
		audioContent += "(may take a moment to load)</p>\n";
		audioContent += "<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" ";
		audioContent += "width=\"200\" height=\"15\" codebase=\"http:\//www.apple.com/qtactivex/qtplugin.cab\" id=\"audioClip\">\n";
		audioContent += "<param name=\"src\" value=\"" + fullPathName + "\">\n";
		audioContent += "<param name=\"autoplay\" value=\"true\">\n";
		audioContent += "<param name=\"cache\" value=\"true\">\n";
		audioContent += "<param name=\"controller\" value=\"true\">\n";
		audioContent += "<param name=\"enablejavascript\" value=\"true\">\n";
		audioContent += "<param name=\"loop\" value=\"false\">\n";
		audioContent += "<embed src=\"" + fullPathName + "\" ";
		audioContent += "width=\"200\" height=\"15\" autoplay=\"true\" cache=\"true\" controller=\"true\" loop=\"false\" enablejavascript=\"true\" name=\"audioClip\">\n";
		audioContent += "</embed>\n";
		audioContent += "</object>\n";

		var floatername = "floater-3";
		document.getElementById(floatername + '-innertable').style.border="2px solid #036";
		document.getElementById(floatername + '-innertable').style.background="#fff";
		document.getElementById(floatername + '-title').style.color="#fff";
		document.getElementById(floatername + '-titlebar').style.borderBottom="2px solid #036";
		document.getElementById(floatername + '-titlebar').style.background="#069";
		document.getElementById(floatername + '-closelink').style.color="#fff";
		document.getElementById(floatername + '-closelink').style.background="none";
		document.getElementById(floatername + '-closelink').onmouseover = function()
		{
			document.getElementById(floatername + '-closelink').style.background="#09c";
		}
		document.getElementById(floatername + '-closelink').onmouseout = function()
		{
			document.getElementById(floatername + '-closelink').style.background="none";
		}
		document.getElementById(floatername + '-closelink').href = "javascript:hideAudioFloater('floater-3');";

		//								  content,   width,    height, bg_clr
		showFloater( 3, "Play Audio", audioContent, "208px", "55px", "#fff" );
	}

	function playVideoClip( videoClipName )
	{
		window.open('http://video.ap.org/vws/search/aspx/ap.aspx?t=s60&p=enapus_enapus&g=' + videoClipName + '&f=NEOMA','vidclipwindow','width=788,height=598,status=1,scrollbars=1,resizable=1');

	}

	function hideAudioFloater( floaterName )
	{
		//if( document.audioClip.Stop )
		//{
		//	document.audioClip.Stop();
		//}
		hideDisplay( floaterName );
		document.getElementById(floaterName + '-content').innerHTML = "";
		document.getElementById(floaterName + '-closelink').href = "javascript:hideDisplay('floater-3');";
	}

	var curr_swf_id = null;

	function showOWHSlideshow( swf_file, slideshow_id, width, height, slideshow_cat )
	{
		if( width == null )
		{
			width = 480;
		}
		if( height == null )
		{
			height = 475;
		}
		if( slideshow_cat == null )
		{
			slideshow_cat = "";
		}

		var floatername = "floater-3";
		var swf_content = "<object width=\"" + width + "px\" height=\"" + height + "px\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\">\n";
		swf_content += "<param name=\"movie\" value=\"" + swf_file + "\" />\n";
		swf_content += "<param name=\"quality\" value=\"high\" />\n";
		swf_content += "<param name=\"loop\" value=\"true\" />\n";
		swf_content += "<param name=\"FlashVars\" value=\"testMode=false&p=" + slideshow_id + "\" />\n";
	    swf_content += "<embed quality=\"high\" loop=\"true\" type=\"application/x-shockwave-flash\" version=\"ShockwaveFlash\" src=\"" + swf_file + "\" width=\"" + width + "px\" height=\"" + height + "px\" FlashVars=\"testMode=false&p=" + slideshow_id + "\" />\n";
		swf_content += "</object>\n";

		document.getElementById(floatername + '-innertable').style.border="2px solid #036";
		document.getElementById(floatername + '-innertable').style.background="#fff";
		document.getElementById(floatername + '-title').style.color="#fff";
		document.getElementById(floatername + '-titlebar').style.borderBottom="2px solid #036";
		document.getElementById(floatername + '-titlebar').style.background="#069";
		document.getElementById(floatername + '-closelink').style.color="#fff";
		document.getElementById(floatername + '-closelink').style.background="none";
		document.getElementById(floatername + '-closelink').onmouseover = function()
		{
			document.getElementById(floatername + '-closelink').style.background="#09c";
		}
		document.getElementById(floatername + '-closelink').onmouseout = function()
		{
			document.getElementById(floatername + '-closelink').style.background="none";
		}

		showFloater( 3, "OWH Multimedia Slideshow", swf_content, ( width + 8 ) + "px", ( height + 8 ) + "px", "#fff" );

		//now collect stats on the click
		var updateSlideshowClickCount_obj = createRequestObject();
		var url_data = "&action=updateSlideshowClickCount&playlistID=" + slideshow_id + "&category=" + slideshow_cat + "&page_id=" + PAGE_ID;
		//alert(url_data);
		ajaxSendRequest( 'site', 'videoplayer_stats', url_data, updateSlideshowClickCount_obj, null, "POST", null, false );
	}

	function showSWF( swf_file, width, height )
	{
		if( width == null )
		{
			width = 480;
		}
		if( height == null )
		{
			height = 460;
		}

		var floatername = "floater-3";
		var swf_content = "<object width=\"" + width + "px\" height=\"" + height + "px\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\">\n";
		swf_content += "<param name=\"movie\" value=\"neo-images/apinteractive/" + swf_file + "\" />\n";
		swf_content += "<param name=\"quality\" value=\"high\" />\n";
		swf_content += "<param name=\"loop\" value=\"true\" />\n";
	    swf_content += "<embed quality=\"high\" loop=\"true\" type=\"application/x-shockwave-flash\" version=\"ShockwaveFlash\" src=\"neo-images/apinteractive/" + swf_file + "\" width=\"" + width + "px\" height=\"" + height + "px\" />\n";
		swf_content += "</object>\n";

		document.getElementById(floatername + '-innertable').style.border="2px solid #036";
		document.getElementById(floatername + '-innertable').style.background="#fff";
		document.getElementById(floatername + '-title').style.color="#fff";
		document.getElementById(floatername + '-titlebar').style.borderBottom="2px solid #036";
		document.getElementById(floatername + '-titlebar').style.background="#069";
		document.getElementById(floatername + '-closelink').style.color="#fff";
		document.getElementById(floatername + '-closelink').style.background="none";
		document.getElementById(floatername + '-closelink').onmouseover = function()
		{
			document.getElementById(floatername + '-closelink').style.background="#09c";
		}
		document.getElementById(floatername + '-closelink').onmouseout = function()
		{
			document.getElementById(floatername + '-closelink').style.background="none";
		}

		showFloater( 3, "Enlarged Photo", swf_content, ( width + 8 ) + "px", ( height + 8 ) + "px", "#fff" );
	}

	function showSWFForm()
	{
		var name = document.swf_date_choose.swf_day.options[document.swf_date_choose.swf_day.selectedIndex].value;
		if( name != '0' )
		{
			showSWF( name, 480, 500 );
		}
	}

	function loadComment(id)
	{
		if(id != ''){
			document.getElementById('story_comments_text_container').style.display="block";
			ajaxPopulateDiv(
				'story_comments_text',
				document.getElementById('comment_'+id).innerHTML
			);
		} else {
			document.getElementById('story_comments_text_container').style.display="none";
		}
	}

	function fetchComments(u_sid)
	{
		comment_req_obj = createRequestObject();
		var url_data = "&u_sid="+u_sid+"&mode=readcomments";
		ajaxSendRequest(
			'site',
			'story_comments',
			url_data,
			comment_req_obj,
			handle_fetchComments
		);
	}

	function handle_fetchComments( )
	{
		if ( ajaxRequestComplete( comment_req_obj ) )
		{
			var response = trim( ajaxGetResponseText( comment_req_obj ) );
			document.getElementById('story_comments').innerHTML = response;
		}
	}

	function submitComment(u_sid)
	{
		showFloater( 2, 'Submit Story Comment', 'Loading... Please Wait', '450px', '400px');
		s_comment_req_obj = createRequestObject();
		var url_data = "&mode=commentform&u_sid="+u_sid;
		ajaxSendRequest(
			'site',
			'story_comments',
			url_data,
			s_comment_req_obj,
			handle_submitComment
		);
	}

	function handle_submitComment()
	{
		if ( ajaxRequestComplete( s_comment_req_obj ) )
		{
			var response = trim( ajaxGetResponseText( s_comment_req_obj ) );
		}
		showFloater( 2, 'Submit Story Comment', response, '450px', '400px');
	}

	function saveComment(iSid, iMethod,iFormIn)
	{
		var re = /\s/g; //Match any white space including space, tab, form-feed, etc
		var author = document.getElementById('frm_comment_form').comment_author.value.replace(re,"");
		var comment = document.getElementById('frm_comment_form').comment_text.value.replace(re,"");
		if(author.length == 0)
		{
			document.getElementById('btn_save').value='Submit';
			alert('You must enter a name.');
			return false;
		}else if(comment.length == 0) {
			document.getElementById('btn_save').value='Submit';
			alert('You must enter a comment.');
			return false;
		} else {
			save_comment_req_obj = createRequestObject();
			var save_post_data = convertFormToXml( iFormIn );
			var url_data = "&mode=savecomment&u_sid="+iSid+"&method="+iMethod;
			ajaxSendRequest(
				'site',
				'story_comments',
				url_data,
				save_comment_req_obj,
				handle_saveComment,
				save_post_data,
				'xml'
			);
		}
	}

	function handle_saveComment()
	{
		if ( ajaxRequestComplete( save_comment_req_obj ) )
		{
			var response = trim( ajaxGetResponseText( save_comment_req_obj ) );
			document.getElementById( 'floater-2-content' ).innerHTML =
				'Thank you.  Your comments have been received.';
			//alert(response);
			//ajaxPopulateDiv('story_comments_text_container',response);

		}
	}

	function textCounter(field, maxlimit) {
		if (field.value.length > maxlimit){ // if too long...trim it!
			field.value = field.value.substring(0, maxlimit);
			// otherwise, update 'characters left' counter
		}
	}

	function email_guide( guideID, style )
	{
		showFloater(
			1,
			email_guide_title,
			'Loading... Please Wait',
			email_guide_win_width,
			email_guide_win_height
		);
		email_guide_http_obj = createRequestObject();
		var url_data = 'u_id=' + guideID+'&u_style='+style;
		//alert(url_data);
		ajaxSendRequest( 'site', 'site_email_guide_form', url_data, email_guide_http_obj, handle_email_guide );
	}

	function handle_email_guide( )
	{
		if ( ajaxRequestComplete( email_guide_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( email_guide_http_obj ) );
			showFloater( 1, email_guide_title, responseText, email_guide_win_width, email_guide_win_height );
		}
	}

	function email_guide_send( form_in, style )
	{
		// validate
		if ( form_in.f_to_email.value == "" )
		{
			populateDiv( 'guide_email_submit_msg', '<span class="fred">You must enter recipient email address(es).</span>' );
			form_in.f_to_email.focus();
			return;
		}

		if ( form_in.f_from_email.value == "" )
		{
			populateDiv( 'guide_email_submit_msg', '<span class="fred">You must enter your email address.</span>' );
			form_in.f_from_email.focus();
			return;
		}

		if ( form_in.f_from_name.value == "" )
		{
			populateDiv( 'guide_email_submit_msg', '<span class="fred">You must enter your name.</span>' );
			form_in.f_from_name.focus();
			return;
		}

		if ( form_in.f_captcha.value == "" )
		{
			populateDiv( 'guide_email_submit_msg', '<span class="fred">You must complete the word verification.</span>' );
			form_in.f_captcha.focus();
			return;
		}

		var post_xml_doc = convertFormToXml( form_in );
		email_story_http_obj = createRequestObject();

		populateDiv( 'guide_email_submit_msg', 'Submitting your request, please wait ...' );

		ajaxSendRequest( 'site', 'site_email_guide_submit', 'u_style='+style, email_guide_http_obj, handle_email_guide_send, post_xml_doc, 'xml' );

	}

	function handle_email_guide_send( )
	{
		if ( ajaxRequestComplete( email_guide_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( email_guide_http_obj ) );
			var resp = null;
			if ( responseText == "ok" )
			{
				resp = 'This guide has been sent to your friend(s).  Thank you.';
			}
			else if ( responseText == "invalid" )
			{
				populateDiv( 'guide_email_submit_msg', '<span class="fred">Word verification has failed.  Please re-enter.</span>' );
			}
			else
			{
				populateDiv( 'guide_email_submit_msg', '<span class="fred">A server error occured while sending your e-mail message.</span>' );
			}

			if ( resp != null )
			{
				showFloater( 1, email_guide_title, resp, email_guide_win_width, email_guide_win_height );
			}
		}
	}

	function show_more_articles( )
	{
		showObj = document.getElementById( "show_more_stories" );
		showObj.style.visibility = 'visible';
		showObj.style.display = 'block';

		hideObj = document.getElementById( "get_more_stories" );
		hideObj.style.visibility = 'hidden';
		hideObj.style.display = 'none';
	}

	function show_less_articles( )
	{
		showObj = document.getElementById( "get_more_stories" );
		showObj.style.visibility = 'visible';
		showObj.style.display = 'block';

		hideObj = document.getElementById( "show_more_stories" );
		hideObj.style.visibility = 'hidden';
		hideObj.style.display = 'none';
	}

	function playLocalMultimedia( videoid, playlistid, category )
	{
		videoid = ( videoid != undefined && videoid != null ? videoid : "" );
		playlistid = ( playlistid != undefined && playlistid != null ? playlistid : "" );
		category = ( category != undefined && category != null ? category : "" );
		window.open( ( D_SRVR_REALM_LIVE ? "http://odc.omaha.com/" : "" ) + "index.php?u_page=5001&s=" + videoid + "&p=" + playlistid, "videoplayer","width=786,height=725,status=1,scrollbars=1,resizable=1" );

		var updateMultimediaThumbnailClickCount_obj = createRequestObject();
		var url_data = "&action=updateMultimediaThumbnailClickCount&videoID=" + videoid + "&playlistID=" + playlistid + "&category=" + category + "&page_id=" + PAGE_ID;
		ajaxSendRequest( 'site', 'videoplayer_stats', url_data, updateMultimediaThumbnailClickCount_obj, null, "POST", null, false ); 

	}

	function job_details( url_in, code_in )
	{
		var oCode = ((code_in==null) ? "&u_cli=x" : "");
		var urlPrefix = ((D_SRVR_REALM_LIVE==true) ? "https://marketplace.omaha.com/" : "");
		wnd = window.open( urlPrefix+"index.php?u_page=1002&returnUrl="+url_in+oCode );
	}




/////////////////////////////////////////////
//    include: site-js/ors/base.js
/////////////////////////////////////////////
	String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };
	var base_http_obj = null;
	var auth_http_obj = null;

	function loadForm(form_name)
	{
		form_name = ((form_name == "subscribe_info" && ORS_WRAPPER == "husker") ? "husker_pkg" : form_name);
		document.base_form.action="index.php?u_page=1002&u_mod="+form_name+"&u_ors_wrpr="+ORS_WRAPPER;
		document.base_form.submit()		
	}

	function closeWindow()
	{
		window.close();
	}

	function processForm(form_name)
	{
		var isUpdate = ((form_name=="acct_update") ? "update" : "");
		if (validateForm(isUpdate)==true)
		{
//	AJM		subformCheck();
			popup_display_byKey('processing', 'cursor');
			document.base_form.blur();
			document.base_form.action="index.php?u_page=1002&u_mod="+form_name+"&u_ors_wrpr="+ORS_WRAPPER+"&u_state=process";
			setTimeout("document.base_form.submit()", (1000));
		}
	}

	function authForm(form_name)
	{
		var isUpdate = ((form_name=="acct_update") ? "update" : "");
		if (validateForm(isUpdate)==true)
		{
//	AJM		subformCheck();
			popup_display_byKey('processing', 'cursor');
			document.base_form.blur();
			document.base_form.action="index.php?u_page=1002&u_mod="+form_name+"&u_ors_wrpr="+ORS_WRAPPER+"&u_state=auth";
			setTimeout("document.base_form.submit()", (1000));
		}
	}

	var submit_ct = 0;
	function clearCheck()
	{
		submit_ct = 0;
	}

	function subformCheck(tout)
	{
		var rc = false
		submit_ct++;
		if (submit_ct > 0)
		{
			rc = true;
			if (tout != null)
			{
				setTimeout("clearCheck()", (tout * 1000));
			}
		}

		return(rc);
	}

	function open_ors_window( form_name )
	{
		var mod = "";
		var ScreenSz = "";
		var window_name = 'wnd_mkt_login';
		var mkt_login_features = "resizable=1,toolbar=0,scrollbars=1";

		if (form_name != null)
		{	mod = "&u_mod="+form_name;	}
		
		if ( (ORS_WRAPPER == "ors") && (form_name != "husker_pkg") )
		{
			ScreenSz = "width=865,height=695,";
		}
		else
		{
			ScreenSz = "width=680,height=700,";
		}

		var urlPrefix = ((D_SRVR_REALM_LIVE==true) ? "https://marketplace.omaha.com/" : "");
		wnd = window.open( urlPrefix+"index.php?u_page=1002"+mod, window_name, ScreenSz+mkt_login_features );

		child_win = wnd;
		setTimeout("checkChild()", 1000);

		wnd.focus();
	}

	var child_win = null;
	function checkChild()
	{
		if ((child_win != null) && (child_win.closed == true))
		{
			var loc = new String(document.location);
			var rndLoc = loc.indexOf("u_rnd=");
			if (rndLoc == -1)
			{
				if (loc.indexOf("?") > -1)
					loc += "&";
				else
					loc += "?";
			}
			else
			{
				loc = loc.substring(0,rndLoc);
			}

			loc += "u_rnd=" + Math.round(Math.random() * 10000000);
			document.location = loc;
		}
		else
		{
			setTimeout("checkChild()", 500);
		}
	}

	var unlock_mod = "false";
	function attempt_login( locked_mod )
	{
		if (locked_mod != null)
		{	unlock_mod = "true";	}

		auth_http_obj = createRequestObject();
		var form_post_data = convertFormToXml( document.base_form ); 
		
		document.getElementById("login_input").className = "hide";
		document.getElementById("login_process").className = "show";
		ajaxSendRequest( "site", "login", "", auth_http_obj, handle_attempt_login, form_post_data, 'xml');
	}

	function retry_login( )
	{
		document.getElementById("login_process").className = "hide";
		document.getElementById("login_error").className = "hide";
		document.getElementById("login_input").className = "show";
		document.base_form.f_passwrd.select();
	}

	var itr = 0;
	function handle_attempt_login( )
	{
		if ( ajaxRequestComplete( auth_http_obj ) )
		{
			var response = trim( ajaxGetResponseText( auth_http_obj ) );
			if ( response.substring(0,2) == "ok" )
			{
				urlParams = new Array();
				var url_string = String(document.location);
				var url_array1 = url_string.split('?');
				if(url_array1[1])
				{
					var e_array = url_array1[1].split('&');
					for(i=0;i<=(e_array.length);i++)
					{
						if(e_array[i])
						{
							var useVal = e_array[i].split('=');
							urlParams[String(useVal[0])]=useVal[1];
						}
					}
				}

				if ( (urlParams["returnUrl"]) || (unlock_mod=="true") )
				{	logger_finished();	}
				else
				{
					//populateDiv( "mainContent", response );
					setTimeout( "self.close();", 500 );
				}
//				window.opener.logger_finished();
			}
			else
			{
				document.getElementById( 'login_error' ).innerHTML = response;
				document.getElementById("login_process").className = "hide";
				document.getElementById("login_input").className = "hide";
				document.getElementById("login_error").className = "show";
			}
		}
	}

	function refresh( )
	{
		//location.replace(location.href.replace('mod=0','mod=1'))
		window.location.reload( true );
	} 

	function logger_finished( )
	{
		setTimeout( "window.location.reload( true );", 600 );
	} 

	function attempt_logout()
	{
		auth_http_obj = createRequestObject();
		ajaxSendRequest( "site", "logout", "", auth_http_obj, handle_attempt_logout ); 
	}

	function handle_attempt_logout( )
	{
		if ( ajaxRequestComplete( auth_http_obj ) )
		{
			var response = trim( ajaxGetResponseText( auth_http_obj ) );

			if (USE_OLD_LOGOUT==true)
			{
				if ( response == '<authenticated />' )
				{
//					window.opener.logger_finished();
					setTimeout( "self.close();", 500 );
				}
				else
				{
					populateDiv( 'mainContent', response );
				}
			}
			else
			{
				window.location.reload( true );
			}
		}
	}


	var attempt_signup_obj = null;
	function attempt_signup( area, validationType, formIn)
	{
		area = ((area!=null) ? area : "site");
		validationType = ((validationType!=null) ? validationType : "ors");
//		formIn = ((formIn!=null) ? formIn : document.f_signup_form );
//		window.location = '#mp_reg_bottom';

		if ( validateForm() == true )
		{
//			ajaxPopulateDiv( 'dyn_login_error_message', '( Sending information, please wait ... )' );
			attempt_signup_obj = createRequestObject();
			var signup_post_data = convertFormToXml( formIn );
			ajaxSendRequest( area, 'signup', '', attempt_signup_obj, handle_attempt_signup, signup_post_data, 'xml' ); 
		}
	}

	function handle_attempt_signup( )
	{
		if ( ajaxRequestComplete( attempt_signup_obj ) )
		{
			var response = trim( ajaxGetResponseText( attempt_signup_obj ) );
			populateDiv( "debug", response );
//			ajaxPopulateDiv( 'dyn_login_error_message', response );
		}
	}


	var offerByZip_obj = null; 
	function get_offerByZip( )
	{
		offerByZip_obj = createRequestObject();
		var form_post_data = convertFormToXml( document.base_form ); 
		ajaxPopulateDiv( 'offersByZip', '( Looking up offers, please wait... )' );
		ajaxSendRequest( "site", "offers_by_zip", "", offerByZip_obj, handle_get_offerByZip, form_post_data, 'xml');
	}

	function handle_get_offerByZip( )
	{
		if ( ajaxRequestComplete( offerByZip_obj ) )
		{
			var response = trim( ajaxGetResponseText( offerByZip_obj ) );
			ajaxPopulateDiv( 'offersByZip', response );
		}
	}

	function validateUpdateAcct()
	{
		okToSubmit_form = true;

		var currForm = document.base_form;
		checkField( currForm.f_business_name, "You must enter a business name." );
/*
		checkField( currForm.f_addr_line1, "You must enter an address." );
		checkField( currForm.f_city, "You must enter a city." );
		checkField( currForm.f_zip_code, "You must enter a valid zip code." );
		checkField( currForm.f_zip_code, "You must enter a valid zip code.", "length|5" );
		checkField( currForm.f_cardnum, "You must enter a valid credit card." );
		checkField( currForm.f_cardnum, "You must enter a valid credit card.", "length|16" );
*/
		return(okToSubmit_form);
	}

	var updateAccount_obj = null;
	function attempt_updateAccount( )
	{
		if ( validateUpdateAcct() == true )
		{
			updateAccount_obj = createRequestObject();
			var form_post_data = convertFormToXml( document.base_form ); 
			showFloater( 1, "", '( Updating Account, please wait... )', '500px', '150px' );
	//	AJM	ajaxSendRequest( "site", "offers_by_zip", "", updateAccount_obj, handle_get_updateAccount, form_post_data, 'xml');
		}
	}

	function handle_updateAccount( )
	{
		if ( ajaxRequestComplete( updateAccount_obj ) )
		{
			var response = trim( ajaxGetResponseText( updateAccount_obj ) );
			ajaxPopulateDiv( 'offersByZip', response );
		}
	}

	var cursorXY = null;
	function getCursorXY(e)
	{
		var IE = document.all?true:false
		var tempX = 0
		var tempY = 0

		if (IE)
		{
			tempX = event.clientX + document.body.scrollLeft
			tempY = event.clientY + document.body.scrollTop
		}
		else
		{
			tempX = e.pageX
			tempY = e.pageY
		}  

		if (tempX < 0){tempX = 0}
		if (tempY < 0){tempY = 0}  
		
		cursorXY = tempX+"|"+tempY;
		return (true);
	}

	var popup_display_obj = null;
	function popup_display_byKey( iKey, iId )
	{
		var oKey = ((iKey!=null) ? iKey : "default");
		iId = ((iId!=null) ? iId : "");
		if (iId == "cursor")
		{	iId = "&u_id=" + cursorXY;	}

		popup_display_obj = createRequestObject();
		var url_data = "u_key=" + oKey+iId;
		ajaxSendRequest( "site", "popup_display_byKey", url_data, popup_display_obj, handle_popup_display_byKey ); 
	}
	
	function handle_popup_display_byKey( )
	{ 
		if ( ajaxRequestComplete( popup_display_obj ) )
		{
			var response = trim( ajaxGetResponseText( popup_display_obj ) ); 
			parts = response.split('!##!');
			showFloater( parts[0], parts[1], parts[2], parts[3], parts[4], null, parts[5], parts[6] );
		} 
	}




/////////////////////////////////////////////
//    include: site-js/mscene.js
/////////////////////////////////////////////
 	function mSceneChangeEGType( form_in )
	{
		hideDisplay( "mscene_guide_cat-1" );
		hideDisplay( "mscene_guide_cat-3" );
		hideDisplay( "mscene_guide_cat-4" );
		hideDisplay( "mscene_guide_cat-7" );
		hideDisplay( "mscene_guide_cat-7-reviews" );
		hideDisplay( "mscene_guide_cat-8" );

		if ( form_in.f_guide_type.selectedIndex > 0 )
		{
			showDisplay( "mscene_guide_cat-" + form_in.f_guide_type.options[ form_in.f_guide_type.selectedIndex ].value );
		}

		if ( form_in.f_guide_type.options[ form_in.f_guide_type.selectedIndex ].value == "7" )
		{
			showDisplay( "mscene_guide_cat-7-reviews" );
		}
	}
 




/////////////////////////////////////////////
//    include: site-js/search.js
/////////////////////////////////////////////
 var site_search_win_width = '500px';
 var site_search_http_obj = null;  
 var site_search_floater_has_results = false;
 var has_results_obj = null;

 	function has_results( )
	{
		has_results_obj = createRequestObject();
		ajaxSendRequest( 'site', 'search_has_results', '', has_results_obj, handle_has_results );
	}

	function handle_has_results( )
	{
		if( ajaxRequestComplete( has_results_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( has_results_obj ) );
			if( responseText == "true" )
			{
				document.getElementById("show_prev_search_box").className = "show_prev_inline";
			}
			else
			{
				document.getElementById("show_prev_search_box").className = "show_prev_none";
			}
		}
	}

	function site_search(  )
	{ 		
		var post_xml_doc = convertFormToXml( document.f_site_search ); 
		site_search_http_obj = createRequestObject();
		showFloater( 1, 'Search Results', '<br /><br /><p align="center"><br />Executing your search<br />Please wait ...<br /><br /></p>', site_search_win_width );
		ajaxSendRequest( 'site', 'site_search', '', site_search_http_obj, handle_site_search, post_xml_doc, 'xml' ); 
	}

	function handle_site_search( )
	{  
		if ( ajaxRequestComplete( site_search_http_obj ) )
		{   
			var responseText = trim( ajaxGetResponseText( site_search_http_obj ) );
			showFloater( 1, 'Search Results', responseText, site_search_win_width );
			site_search_floater_has_results = true;

			//check if search actually had results
			has_results();
		}
	}

	var currSection = "";
	var currDate = "";
	function show_archive_search( showSection, showDate )
	{
		currSection = showSection;
		currDate = showDate;
		site_search_http_obj = createRequestObject();
		showFloater( 1, '7 Day Archive', '<p align="center"><br />Loading 7 Day Archive Search<br />Please Wait...<br /><br /><?p>', site_search_win_width );
		var url_args = "&selectedSection=" + currSection + "&selectedDate=" + currDate;
		ajaxSendRequest( 'site', 'archive_search', url_args, site_search_http_obj, handle_site_search, null, 'xml' );
	}

	function show_archive_results( )
	{
		var post_xml_doc = convertFormToXml( document.frmArchive );
		site_search_http_obj = createRequestObject();
		ajaxPopulateDiv('archive_results', '<p align="center"><br />Loading archive<br />Please Wait...<br /><br /></p>');
		ajaxSendRequest( 'site', 'archive_search', '&submitSearch=submitSearch', site_search_http_obj, handle_archive_search, post_xml_doc, 'xml' );
	}

	function handle_archive_search( )
	{
		if ( ajaxRequestComplete( site_search_http_obj ) )
		{   
			var responseText = trim( ajaxGetResponseText( site_search_http_obj ) );
			ajaxPopulateDiv( 'archive_results', responseText );
		}
	}
	
	function show_prev_search( keyIn )
	{ 		
		/*if ( site_search_floater_has_results )
			{
				showFloater( 1, null, null, site_search_win_width );
			}
		else
			{*/
			/*Note:: Not guarenteed to be the same floater*/
				site_search_http_obj = createRequestObject(); 		 
				showFloater( 1, 'Search Results', '<br /><br /><p align="center"><br />Loading search results<br />Please wait ...<br /><br /></p>', site_search_win_width );
				ajaxSendRequest( 'site', 'site_load_search', '', site_search_http_obj, handle_site_search ); 
			//}
		 
	}
	
	var searchHelp_obj = null;
	var curfloaternum = 1;
 	function show_search_help( floaternum )
	{
		if( floaternum == null || floaternum == undefined )
		{
			floaternum = 1;
		}
		curfloaternum = floaternum;

		//site_search_floater_has_results = false;
	
		searchHelp_obj = createRequestObject();  
		
		showFloater( curfloaternum, 'Story Search Help', '( Loading Search Help page, please wait ... )', '490px', '460px');
		ajaxSendRequest( 'site', 'site_search_help', '', searchHelp_obj, handle_show_search_help ); 
	}

	function handle_show_search_help( )
	{
		if ( ajaxRequestComplete( searchHelp_obj ) )
		{   
			var responseText = trim( ajaxGetResponseText( searchHelp_obj ) );
			showFloater( curfloaternum, 'Story Search Help', responseText, '490px', '460px' );
		}
	}




/////////////////////////////////////////////
//    include: site-js/poll.js
/////////////////////////////////////////////
 var site_poll_win_width = '300px';
 var site_poll_http_obj = null;   
 var site_poll_win_title = 'Submitting Your Vote';  
 var currentPollId = null;

	function site_poll_submit_vote( formIn )
	{ 		
		okToSubmit_form = true;
		checkField( formIn.f_answer_id, "You must select an option in order to vote.", "radio" );
		currentPollId = formIn.f_poll_id.value;

		if (okToSubmit_form == true)
		{
			var post_xml_doc = convertFormToXml( formIn );
			site_poll_http_obj = createRequestObject();
			showFloater( 1, site_poll_win_title, '<br /><br /><p align="center"><br />Please wait while your vote is being submitted ...</p>', site_poll_win_width );
			ajaxSendRequest( 'site', 'site_poll_submit_vote', '', site_poll_http_obj, handle_site_poll_submit_vote, post_xml_doc, 'xml' );
		}
 
	}

	function handle_site_poll_submit_vote( )
	{  
		if ( ajaxRequestComplete( site_poll_http_obj ) )
		{   
			var responseText = trim( ajaxGetResponseText( site_poll_http_obj ) );
			
			if ( responseText == "ok" )
				{
					hideFloater( 1 );
					//location.reload( true );
					reloadPollView();
				}
			else
				{ 
					showFloater( 1, site_poll_win_title, '<br /><br /><p align="center"><br />An error occured while submitting your vote.  Please try again later.</p>', site_poll_win_width );
				}

		}  
	} 
 
	var poll_reload_http_obj = null;
	function reloadPollView( )
	{ 		
		ajaxPopulateDiv( 'polls', 'Loading Results. Please Wait...' );
		poll_reload_http_obj = createRequestObject(); 
		ajaxSendRequest( 'site', 'site_poll_show_vote', '&pollId=' + currentPollId, poll_reload_http_obj, handle_poll_reload, null, 'get' );
	}

	function handle_poll_reload( )
	{  
		if ( ajaxRequestComplete( poll_reload_http_obj ) )
		{   
			var responseText = ajaxGetResponseText( poll_reload_http_obj );
			ajaxPopulateDiv( 'polls', responseText );
		}  
	} 
 




/////////////////////////////////////////////
//    include: site-js/nav/merged.js
/////////////////////////////////////////////
	function setCellFocus(cellid, divid, celltot, cellprefix, swapdivname, istransparent )
	{
		if ( cellprefix == null )
		{	cellprefix = 'cell';	}

		if ( swapdivname == null )
		{	swapdivname = 'divinfo';	}
	
		var trans_append = ( ( istransparent ) ? '_trans' : '' );
		var cellcur	= '';
		var img_off = "neo-images/owh/nav/button/blue";
		var img_on  = "neo-images/owh/nav/button/gray";
		var clr_off = "#069";
		var clr_on  = "#fff";

		for (var count=1; count <= celltot; count++)
		{
			cellcur = cellprefix + count; 
			if (cellcur != cellid)
			{
				document.getElementById(cellcur).style.backgroundImage = "url(" + img_off + "_middle" + trans_append + ".gif)";
				//document.getElementById(cellcur).bgColor = clr_off;
				document.getElementById(cellcur).style.color = clr_on;
				document.getElementById(cellcur+"_tabl").src = img_off + "_left" + trans_append + ".gif";
				document.getElementById(cellcur+"_tabr").src = img_off + "_right" + trans_append + ".gif";
			}
			else
			{
				document.getElementById(cellcur).style.backgroundImage = "url(" + img_on + "_middle" + trans_append + ".gif)";
				//document.getElementById(cellcur).bgColor = clr_on;
				document.getElementById(cellcur).style.color = clr_off;
				document.getElementById(cellcur+"_tabl").src = img_on + "_left" + trans_append + ".gif";
				document.getElementById(cellcur+"_tabr").src = img_on + "_right" + trans_append + ".gif";
				document.getElementById( swapdivname ).innerHTML = document.getElementById(divid).innerHTML;
			}
		}
	}


nop = location.href.split("#");
loc = nop[0].split("&");
finLocal = loc[0];
for (xx=1; xx<loc.length; xx++)
{
	mod = loc[xx].split("=");
	for (yy=0; yy<mod.length; yy+=2)
	{
		if (mod[yy]=="u_mod")
		{	finLocal += "&"+mod[yy]+"="+mod[yy+1];	}
	}
}

_mD=2;_d=document;_dB=_d.body;_n=navigator;_L=location;_nv=$tL(_n.appVersion);_nu=$tL(_n.userAgent);_ps=parseInt(_n.productSub);_toL=X_=Y_=_n=null;_W=window;_wp=_W.createPopup;ie=(_d.all)?1:0;ie4=(!_d.getElementById&&ie)?1:0;ie5=(!ie4&&ie&&!_wp)?1:0;ie55=(!ie4&&ie&&_wp)?1:0;ns6=(_nu.indexOf("gecko")!=-1)?1:0;konq=(_nu.indexOf("konqueror")!=-1)?1:0;sfri=(_nu.indexOf("safari")!=-1)?1:0;if(konq||sfri){_ps=0;ns6=0}ns4=(_d.layers)?1:0;ns61=(_ps>=20010726)?1:0;ns7=(_ps>=20020823)?1:0;ns72=(_ps>=20040804)?1:0;ff15=(_ps>=20060000)?1:0;op=(_W.opera)?1:0;if(op||konq)ie=0;op5=(_nu.indexOf("opera 5")!=-1)?1:0;op6=(_nu.indexOf("opera 6")!=-1||_nu.indexOf("opera/6")!=-1)?1:0;op7=(_nu.indexOf("opera 7")!=-1||_nu.indexOf("opera/7")!=-1)?1:0;_OpV=(op&&_W.opera.version)?_W.opera.version():0;if(_OpV)op7=1;mac=(_nv.indexOf("mac")!=-1)?1:0;if(ns6||ns4||op||sfri)mac=0;ns60=0;if(ns6&&!ns61)ns60=1;if(op7)op=0;IEDtD=0;if(!op&&((_d.all||ns7)&&_d.compatMode=="CSS1Compat")||(mac&&_d.doctype&&_d.doctype.name.indexOf(".dtd")!=-1))IEDtD=1;_jv="javascript:void(0)";inEditMode=_rstC=inDragMode=_d.dne=lcl=$R1=$mD=_mcnt=_sL=_sT=_ofMT=_oldbW=_bW=_oldbH=_bl=_el=_st=_en=_cKA=0;_startM=_c=1;_trueItemRef=focusedMenu=t_=_itemRef=_mn=-1;_zi=_aN=_bH=999;if(op)ie55=0;B$="absolute";$O="menu";$5="hidden";_d.write("<style>.milonic{width:1px;visibility:hidden;position:absolute}</style>");function _StO(f,m){return setTimeout(f,m)}tTipt="";_m=[];_mi=[];_sm=[];_tsm=[];_cip=[];$S3="2E636F6D2F";$S4="646D2E706870";_MT=_StO("",0);_oMT=_StO("",0);_cMT=_StO("",0);_mst=_StO("",0);_Mtip=_StO("",0);$u="undefined ";lNum=202867;lURL="omaha.com";lVer="5.752";_Lhr=finLocal;$6="visible";if(op5){$5=$tU($5);$6=$tU($6)}function M_hideLayer(){}function _oTree(){}function mmMouseMove(){}function _cL(){}function _TtM(){}function _ocURL(){}function mmClick(){}function autoOT(){}function _iF0C(){}function showtip(){}function isEditMode(){}function hidetip(){}function mmVisFunction(){}function doMenuResize(){}function _p8(a,d){var t=[];for(_a=0;_a<a.length;_a++){if(a[_a]!=d){t[t.length]=a[_a]}}return t}function copyOf(w){for(_cO in w){this[_cO]=w[_cO]}}function $tL(v){if(v)return v.toLowerCase()}function $tU(v){if(v)return v.toUpperCase()}function $pU(v){if(v)return parseInt(v)}function drawMenus(){_startM=1;_oldbH=0;_oldbW=0;_baL=0;if(_W.buildAfterLoad)_baL=1;for(_y=_mcnt;_y<_m.length;_y++){o$(_y,1,_baL)}}_$S={menu:0,text:1,url:2,showmenu:3,status:4,onbgcolor:5,oncolor:6,offbgcolor:7,offcolor:8,offborder:9,separatorcolor:10,padding:11,fontsize:12,fontstyle:13,fontweight:14,fontfamily:15,high3dcolor:16,low3dcolor:17,pagecolor:18,pagebgcolor:19,headercolor:20,headerbgcolor:21,subimagepadding:22,subimageposition:23,subimage:24,onborder:25,ondecoration:26,separatorsize:27,itemheight:28,image:29,imageposition:30,imagealign:31,overimage:32,decoration:33,type:34,target:35,align:36,imageheight:37,imagewidth:38,openonclick:39,closeonclick:40,keepalive:41,onfunction:42,offfunction:43,onbold:44,onitalic:45,bgimage:46,overbgimage:47,onsubimage:48,separatorheight:49,separatorwidth:50,separatorpadding:51,separatoralign:52,onclass:53,offclass:54,itemwidth:55,pageimage:56,targetfeatures:57,visitedcolor:58,pointer:59,imagepadding:60,valign:61,clickfunction:62,bordercolor:63,borderstyle:64,borderwidth:65,overfilter:66,outfilter:67,margin:68,pagebgimage:69,swap3d:70,separatorimage:71,pageclass:72,menubgimage:73,headerborder:74,pageborder:75,title:76,pagematch:77,rawcss:78,fileimage:79,clickcolor:80,clickbgcolor:81,clickimage:82,clicksubimage:83,imageurl:84,pagesubimage:85,dragable:86,clickclass:87,clickbgimage:88,imageborderwidth:89,overseparatorimage:90,clickseparatorimage:91,pageseparatorimage:92,menubgcolor:93,opendelay:94,tooltip:95,disabled:96,dividespan:97,tipdelay:98,tipfollow:99,tipmenu:100,menustyle:101,pageoncolor:102};function mm_style(){for($i in _$S)this[$i]=_n;this.built=0}_$M={items:0,name:1,top:2,left:3,itemwidth:4,screenposition:5,style:6,alwaysvisible:7,align:8,orientation:9,keepalive:10,openstyle:11,margin:12,overflow:13,position:14,overfilter:15,outfilter:16,menuwidth:17,itemheight:18,followscroll:19,menualign:20,mm_callItem:21,mm_obj_ref:22,mm_built:23,menuheight:24,ignorecollision:25,divides:26,zindex:27,opendelay:28,resizable:29,minwidth:30,maxwidth:31};function menuname(name){for($i in _$M)this[$i]=_n;this.name=$tL(name);_c=1;_mn++}function f_(i){_mi[_bl]=[];_mi[_bl][0]=_mn;i=i.split(";");_sc="";for(var a=0;a<i.length;a++){var p=i[a].indexOf("`");if(p!=-1){_sc=";";_tI=i[a];if(p==i[a].lastIndexOf("`")){for(var b=a;b<i.length;b++){if(i[b+1]){_tI+=";"+i[b+1];a++;if(i[b+1].indexOf("`")!=-1)b=i.length}}}i[a]=_tI.replace(/`/g,"")}p=i[a].indexOf("=");if(p==-1){if(i[a])_si=_si+";"+i[a]+_sc}else{_si=i[a].slice(p+1);_w=i[a].slice(0,p);if(_w=="showmenu")_si=$tL(_si)}if(i[a]&&_$S[_w])_mi[_bl][_$S[_w]]=_si}var S=_x[6];if(_mi[_bl][101])S=eval(_mi[_bl][101]);for($i in S)if(S[$i]){var v=_mi[_bl][_$S[$i]];if(!v&&v!="")_mi[_bl][_$S[$i]]=S[$i]}_m[_mn][0][_c-2]=_bl;_c++;_bl++}_c=0;function ami(t){_t=this;if(_c==1){_c++;_m[_mn]=[];_x=_m[_mn];for($i in _t)_x[_$M[$i]]=_t[$i];_x[21]=-1;_x[0]=[];if(!_x[12])_x[12]=0;var s=_m[_mn][6];var m=_m[_mn];if(m[15]==_n)m[15]=s.overfilter;if(m[16]==_n)m[16]=s.outfilter;s[65]=(s.borderwidth)?$pU(s.borderwidth):0;s[64]=s.borderstyle;s[63]=s.bordercolor;if(_W.ignoreCollisions)m[25]=1;if(!s.built){_WzI=_zi;if(_W.menuZIndex){_WzI=_W.menuZIndex;_zi=_WzI}lcl++;var v=s.visitedcolor;if(v){_oC=s.offcolor;if(!_oC)_oC="#000000";if(!v)v="#ff0000";_d.write("<style>.g_"+lcl+":link{color:"+_oC+"}.g_"+lcl+":visited{color:"+v+"}</style>");s.g_="g_"+lcl}s.built=1}}f_(t)}menuname.prototype.aI=ami;



function _p1(t){if(t._itemRef!=_itemRef)h$(t._itemRef)}function $P($){clearTimeout($);return _n}$a="";$7=0;$8=0;function _DC(){if(!_W.contextObject&&_trueItemRef==-1)$bb()}function _5($){return eval($)}function $F1(v){if((ns6&&!ns60)&&_M[14]=="fixed"){p=$D(v);$E(v,p[0]-_sT,p[1]-_sL)}}function gMY(e){$a="";if(ns6){X_=e.pageX;Y_=e.pageY;$a=e.target.id}else{e=event;X_=e.clientX;Y_=e.clientY}if(!op&&_d.all&&_dB){X_+=_dB.scrollLeft;Y_+=_dB.scrollTop;if(IEDtD&&!mac){Y_+=_sT;X_+=_sL;}}if(inDragMode){var g=$c($O+DragLayer);$E(g,Y_-DragY,X_-DragX);if(ie55){g=$c("iFM"+_m[DragLayer].ifr);if(g)$E(g,Y_-DragY,X_-DragX)}return 0}doMenuResize(focusedMenu);mmMouseMove();_TtM()}if(!_W.disableMouseMove)_d.onmousemove=gMY;_dC=_DC;if(_d.onmousedown)_dC=_dC+_d.onmousedown;_d.onmousedown=_dC;_TbS="<table class=milonictable border=0 cellpadding=0 cellspacing=0 style='line-height:normal;padding:0px' ";function $c(v){if(_d.getElementById)return _d.getElementById(v);if(_d.all)return _d.all[v]}function $E(g,t,l,h,w){_px="px";var s=g.style;if(w<0)w=0;if(h<0)h=0;if(op){_px="";if(w!=_n)s.pixelWidth=w;if(h!=_n)s.pixelHeight=h}else{if(w!=_n)s.width=w+_px;if(h!=_n)s.height=h+_px;}if(!isNaN(t)&&t!=_n)s.top=t+_px;if(!isNaN(l)&&l!=_n)s.left=l+_px}$_=6;function $D(g){if(!g)return;var h=g.offsetHeight;var w=g.offsetWidth;if(op5){h=g.style.pixelHeight;w=g.style.pixelWidth}var o=g;var t=0;var l=0;var foundObject=0;while(o!=_n){t+=o.offsetTop;l+=o.offsetLeft;o=o.offsetParent}if(sfri){l-=$8;t-=$7}if(mac&&_dB){_mcdb=_dB.currentStyle;_mcf=_mcdb.marginTop;if(_mcf)t=t+$pU(_mcf);_mcf=_mcdb.marginLeft;if(_mcf)l=l+$pU(_mcf)}return(new Array(t,l,h,w))}C$=1;$4="return 0";if(ie55)$4="try{if(ap.filters){return 1}}catch(e){}";_d.write("<"+"script>function $9(ap){"+$4+"}<"+"/script>");function $2(g,m){if($9(g)){var s=g.style;var f=(s.visibility==$6)?_m[m][16]:_m[m][15];if(f){if(g.filters[0])g.filters[0].stop();var i="";i="FILTER:";f=f.split(";");for(var x=0;x<f.length;x++){i+=" progid:DXImageTransform.Microsoft."+f[x];if($tU(_nv).indexOf("MSIE 5.5")>0)x=_aN;}s.filter=i;g.filters[0].apply();}}}function $3(g,m){if($9(g)){_flt=(g.style.visibility==$6)?_m[m][15]:_m[m][16];if(_flt)g.filters[0].play()}}function $Y(_mD,v){var o=$c($O+_mD);if(!o)return;var s=o.style;_m[_mD][22]=o;if(v){M_hideLayer(_mD,v);if(_kLm!=Math.ceil(_mLt*_fLm.length))_mi=[];if(!_startM)_m[_mD][23]=1;if((_m[_mD][7]==0&&_ofMT==1))return;if(s.visibility!=$6){$2(o,_mD);if(!_m[_mD][27])s.zIndex=_zi;else s.zIndex=_m[_mD][27];s.visibility=$6;$3(o,_mD);$V(_mD,1);mmVisFunction(_mD,v);if(!_m[_mD][7])_m[_mD][21]=_itemRef;$mD++}}else{if(_m[_mD][21]>-1&&_itemRef!=_m[_mD][21])d$(_m[_mD][21]);if(ns6||s.visibility==$6){if(!(ie||op7)&&_m[_mD][13]=="scroll")s.overflow=$5;hmL(_mD);$V(_mD,0);mmVisFunction(_mD,v);$2(o,_mD);s.visibility=$5;if(ns6||mac)s.top="-9999px";$3(o,_mD);$mD--}_m[_mD][21]=-1}}function $Z(){if(inEditMode)return;var g=arguments;if(t_>-1)d$(t_,1);t_=-1;_oMT=$P(_oMT);for(var a=0;a<_m.length;a++){var M=_m[a];if(M&&!M[7]&&!M[10]&&g[0]!=a){$Y(a,0);M_hideLayer(a,0)}else{hmL(a)}}_zi=_WzI;_itemRef=-1;$j=-1;if(_W.resetAutoOpen)_ocURL()}function $d(v){if(v+" "==$u)return-1;return _mi[v][0]}function $e(v){var t=$d(v);if(t==-1)return-1;for(var x=0;x<_mi.length;x++)if(_mi[x]&&_mi[x][3]==_m[t][1])return _mi[x][0]}_mLt=22540.777;function $f(v){var t=$d(v);if(t==-1)return-1;for(var x=0;x<_mi.length;x++)if(_mi[x][3]==_m[t][1])return x}function $h(v){v=$tL(v);for(var x=0;x<_m.length;x++)if(_m[x]&&v==_m[x][1])return x}_mot=0;function e$(){var g=arguments;var i=g[0];var I=_mi[i];if(I[96])return;$G=$c("mmlink"+I[0]);hrs=$G.style;_lnk=$c("lnk"+i);if((I[34]=="header"&&!I[2])||I[34]=="form"){$c($O+I[0]).onselectstart=_n;hrs.visibility=$5;return}_mot=$P(_mot);u_=$c("el"+i);if(u_.e$==1){$E($G,u_.t,u_.l,u_.h,u_.w);hrs.visibility=$6;return}u_.e$=1;$y=_m[I[0]];if(!$y[9]&&mac){$1A=$D($c("pTR"+i));if(!$1A)$1A=$D(u_)}else $1A=$D(u_);_pm=$c($O+I[0]);k_=$D(_pm);if(_pm.style.visibility!=$6)_pm.style.visibility=$6;if($G){$G._itemRef=i;$G.href=_jv;if(sfri)$G.href=_n;if(I[2])$G.href=I[2];if(I[34]=="disabled")$G.href=_jv;hrs.visibility=$6;if(I[76])$G.title=I[76];else $G.title="";$G.target="_self";if(!I[57]&&I[35])$G.target=I[35];hrs.zIndex=1;if(I[34]=="html"){hrs.zIndex=-1;hrs=u_.style}if((I[86]||I[34]=="dragable")&&inDragMode==0){if(_lnk)_lnk.href=_jv;drag_drop(I[0],i);hrs.zIndex=-1}if(I[34]=="tree")u_.pt=_n;if(u_.pt!=k_[0]||u_.pl!=k_[1]||u_.ph!=k_[2]||u_.pw!=k_[3]){_bwC=0;if(!$G.border&&$G.border!=I[25]){hrs.border=I[25];$G.border=I[25];$G.C=$pU(hrs.borderTopWidth)*2}if($G.C)_bwC=$G.C;var b=_m[I[0]][6][65];v_=0;if(mac)if(_m[I[0]][12])v_=_m[I[0]][12];if(konq||sfri)v_-=b;u_.t=$1A[0]-k_[0]+v_;u_.l=$1A[1]-k_[1]+v_;if(ff15&&_m[I[0]][13]=="scroll"){u_.t=u_.t+(b);u_.l=u_.l+(b)}if(_m[I[0]][14]=="relative"){_rcor=0;if(!mac&&ie)_rcor=b;if($y[2]!="CSS")u_.t=$1A[0]+_rcor;if($y[3]!="CSS")u_.l=$1A[1]+_rcor;if(sfri){u_.t=$1A[0]+$7;u_.l=$1A[1]+$8}}if(!IEDtD&&(ie||op7))_bwC=0;u_.h=$1A[2]-_bwC;u_.w=$1A[3]-_bwC;u_.pt=k_[0];u_.pl=k_[1];u_.ph=k_[2];u_.pw=k_[3]}$E($G,u_.t,u_.l,u_.h,u_.w)}_Cr=(ns6)?_n:"";hrs.cursor=_Cr;if(I[59]){if(I[59]=="hand"&&ns6)I[59]="pointer";hrs.cursor=I[59]}if(I[32]&&I[29])$c("img"+i).src=I[32];if(I[3]&&I[3]!="M_doc*"&&I[24]&&I[48])$c("simg"+i).src=I[48];if(_lnk&&!l_){_lnk.oC=_lnk.style.color;if(I[6])_lnk.style.color=I[6];if(I[26])_lnk.style.textDecoration=I[26]}if(I[53]){u_.className=I[53];if(_lnk)_lnk.className=I[53]}if(!l_)if(I[5])u_.style.background=I[5];l_=0;if(I[47])u_.style.backgroundImage="url("+I[47]+")";if(I[71]&&I[90]){if($c("sep"+i))$c("sep"+i).style.backgroundImage="url('"+I[90]+"')"}if(!mac){if(I[44])_lnk.style.fontWeight="bold";if(I[45])_lnk.style.fontStyle="italic"}if(I[42]&&g[1])_5(I[42])}_kLm=_5($qe("6C4E756D"));function d$(){var g=arguments;var i=g[0];if(i==-1)return;u_=$c("el"+i);if(!u_)return;if(u_.e$==0)return;u_.e$=0;_trueItemRef=-1;_gs=u_.style;var I=_mi[i];_tI=$c("img"+i);if(_tI&&I[29])_tI.src=I[29];if(I[3]&&I[24]&&I[48])$c("simg"+i).src=I[24];_lnk=$c("lnk"+i);if(_lnk){if(_startM||op)_lnk.oC=I[8];if(I[34]!="header")_lnk.style.color=_lnk.oC;if(I[26])_lnk.style.textDecoration="none";if(I[33])_lnk.style.textDecoration=I[33]}if(I[54]){u_.className=I[54];if(_lnk)_lnk.className=I[54]}if(I[7])_gs.background=I[7];if(I[9])_gs.border=I[9];if(I[46])_gs.backgroundImage="url("+I[46]+")";if(I[71]){s_I=$c("sep"+i);if(s_I)s_I.style.backgroundImage="url("+I[71]+")"}if(!mac){if(I[44]&&(I[14]=="normal"||!I[14]))_lnk.style.fontWeight="normal";if(I[45]&&(I[13]=="normal"||!I[13]))_lnk.style.fontStyle="normal"}}function $1C(v){for(var a=0;a<v.length;a++){if(v[a]!=$m){_m3=_m[v[a]];if(_m3&&!(_m3[7]))$Y(v[a],0)}}}function f$(){_st=-1;_en=_sm.length;_mm=_iP;if(_iP==-1){if(_sm[0]!=$j)return _sm;_mm=$j}for(_b=0;_b<_sm.length;_b++){if(_sm[_b]==_mm)_st=_b+1;if(_sm[_b]==$m)_en=_b}if(_st>-1&&_en>-1){_tsm=_sm.slice(_st,_en)}return _tsm}function _cm3(){_tar=f$();$1C(_tar);for(_b=0;_b<_tar.length;_b++){if(_tar[_b]!=$m)_sm=_p8(_sm,_tar[_b])}}function $r(){_dB=_d.body;if(!_dB)return;$7=_dB.offsetTop;$8=_dB.offsetLeft;if(!op&&(_d.all||ns72)){_mc=_dB;if(IEDtD&&!mac&&!op7)_mc=_d.documentElement;if(!_mc)return;_bH=_mc.clientHeight;_bW=_mc.clientWidth;_sT=_mc.scrollTop;_sL=_mc.scrollLeft;if(konq)_bH=_W.innerHeight}else{_bH=_W.innerHeight;_bW=_W.innerWidth;if(ns6&&_d.documentElement.offsetWidth!=_bW)_bW=_bW-16;_sT=self.scrollY;_sL=self.scrollX;if(op){_sT=_dB.scrollTop;_sL=_dB.scrollleft}}}_fLm=_5($qe("6C55524C"));function $W(i){var I=_mi[i];if(I[3]){_p6=I[39];I[39]=0;_oldMD=_menuOpenDelay;_menuOpenDelay=0;_gm=$c($O+$h(I[3]));_ofMT=1;if(_gm.style.visibility==$6&&I[40]){$Y($h(I[3]),0);e$(i)}else{h$(i)}_menuOpenDelay=_oldMD;I[39]=_p6}else{if(I[2]&&I[39])_5(I[2])}}function $x(v){var vv=0;if(v)vv=v;if(isNaN(v)&&v.indexOf("offset=")==0)vv=$pU(v.substr(7,99));return vv}function popup(){_itemRef=-1;var g=arguments;_MT=$P(_MT);_oMT=$P(_oMT);if(g[0]){$m=$h(g[0]);if($m>=0&&!_m[$m].tooltip)$Z($m);_M=_m[$m];if(!_M)return;if(!_M[23])g$($m);_tos=0;if(g[2])_tos=g[2];_los=0;if(g[3])_los=g[3];_gm=$c($O+$m);if(!g[1]&&(_M[2]||_M[3])){_tP=_n;_lT=_n;if(!isNaN(_M[2]))_tP=_M[2];if(!isNaN(_M[3]))_lT=_M[3];$E(_gm,_tP,_lT)}_sm[_sm.length]=$m;$pS=0;if(!_startM&&_M[13]=="scroll")$pS=1;if(g[1]){if(!_gm)return;j_=$D(_gm);if(g[1]==1){if(_M[2])if(isNaN(_M[2]))_tos=$x(_M[2]);else{_tos=_M[2];Y_=0}if(_M[3])if(isNaN(_M[3]))_los=$x(_M[3]);else{_los=_M[3];X_=0}if(!_M[25]){if(Y_+j_[2]+16>(_bH+_sT))_tos=_bH-j_[2]-Y_+_sT-16;if(X_+j_[3]>(_bW+_sL))_los=_bW-j_[3]-X_+_sL-6}$E(_gm,Y_+_tos,X_+_los)}else{_po=$c(g[1]);k_=$D(_po);if(!_M[25]){if(!$pS)if(k_[0]+j_[2]+16>(_bH+_sT))_tos=_bH-j_[2]-k_[0]+_sT-16;if(k_[1]+j_[3]>_bW+_sL)_los=_bW-j_[3]-k_[1]+_sL-2}_ttop=(k_[0]+k_[2]+$x(_M[2])+_tos)+$7;$E(_gm,_ttop,(k_[1]+$x(_M[3])+_los));if(g[4])_M.ttop=_ttop}$F1(_gm)}_oldbH=-1;_zi=_zi+1;_oMT=$P(_oMT);_moD=(g[5])?g[5]:0;if(!_startM)_oMT=_StO("$Y("+$m+",1)",_moD);$z($m);$V($m,1);if($pS)$1($m);_M[21]=-1}}function popdown(){_ofMT=1;_MT=_StO("$Z()",_menuCloseDelay);_oMT=$P(_oMT)}function g$(m){if(op5||op6)return;if(_W.buildAfterLoad)createNewMenu(m);_gm=$c($O+m);if(!_gm)return;if(!_m[m][23])$E(_gm,-9999);_it=o$(m,0);_mcnt--;_gm.innerHTML=_it;$z(m)}$j=-1;function h$(i){if(_itemRef>-1&&_itemRef!=i)hmL(_mi[_itemRef][0]);var I=_mi[i];if(!I[65])I[65]=0;I[3]=$tL(I[3]);_mopen=I[3];$m=$h(_mopen);var _M=_m[$m];if(I[34]=="ToolTip")return;if(!I||_startM||inDragMode)return;$y=_m[I[0]];_MT=$P(_MT);if(_m[I[0]][7]&&$j!=I[0]&&!inEditMode){hmL($j);$1C(_sm);_oMT=$P(_oMT);_sm=[];if(!_W.resetAutoOpen)_DC()}if(_M&&!_M[23]&&_mopen)g$($m);if(t_>-1){_gm=0;if(I[3]){_gm=$c($O+$h(I[3]));if(_gm&&_gm.style.visibility==$6&&i==t_){e$(i,1);return}}if(t_!=i)k$(t_);_oMT=$P(_oMT)}_cMT=$P(_cMT);$m=-1;_itemRef=i;showtip();_trueItemRef=i;I=_mi[i];_moD=(_M&&_M[28])?_M[28]:_menuOpenDelay;if(I[94])_moD=I[94];$Q=0;if($y[9]){$Q=1;if(!_W.horizontalMenuDelay)_moD=0}e$(i,1);if(!_sm.length){_sm[0]=I[0];$j=I[0]}_iP=$d(i);if(_iP==-1)$j=I[0];_cMT=_StO("_cm3()",_moD);if(_mopen&&I[39]){_gm=$c($O+$m);if(_gm&&_gm.style.visibility==$6){_cMT=$P(_cMT);_tsm=_sm[_sm.length-1];if(_tsm!=$m)$Y(_tsm,0)}}if(_W.forgetClickValue)$R1=0;if(_mopen&&(!I[39]||$R1)&&I[34]!="tree"&&I[34]!="disabled"){$r();_pm=$c($O+I[0]);k_=$D(_pm);$m=$h(_mopen);if(I[41])_M[10]=1;if($y.kAm!=_n&&$y.kAm+" "!=$u){_sm[_sm.length]=$y.kAm}$y.kAm=_n;if(_M&&_M[10]){$y.kAm=$m}$z($m);if($m>-1){_oMT=_StO("$Y("+$m+",1)",_moD);_mnO=$c($O+$m);_mp=$D(_mnO);u_=$c("el"+i);if(!$Q&&mac)u_=$c("pTR"+i);j_=$D(u_);if($Q){$l=j_[1];$k=k_[0]+k_[2]-I[65]}else{$l=k_[1]+k_[3]-I[65];$k=j_[0]}if(sfri){if($y[14]=="relative"){$l=$l+$8;$k=$k+$7}}if(!$Q&&$y[13]=="scroll"&&!op){$k=(ns6&&!ns7)?$k-gevent:$k-_pm.scrollTop}if(!_M[25]){if(!$Q&&(!_M[2]||isNaN(_M[2]))){_hp=$k+_mp[2];if(_hp>_bH+_sT){$k=(_bH-_mp[2])+_sT-4}}if(_M[2]!=_n){if(isNaN(_M[2])&&_M[2].indexOf("offset=")==0){$k=$k+$x(_M[2])}else{$k=_M[2]}}if(_M[3]!=_n){if(isNaN(_M[3])&&_M[3].indexOf("offset=")==0){$l=$l+$x(_M[3])}else{$l=_M[3]}}if($l+_mp[3]+3>_bW+_sL){if(!$Q&&(k_[1]-_mp[3])>0){$l=k_[1]-_mp[3]-_subOffsetLeft+$y[6][65]}else{$l=(_bW-_mp[3])-8+_sL}}}if($Q){if(_M[11]=="rtl"||_M[11]=="uprtl")$l=$l-_mp[3]+j_[3]+$y[6][65];if(_M[11]=="up"||_M[11]=="uprtl"||($y[5]&&$y[5].indexOf("bottom")!=-1)){$k=k_[0]-_mp[2]-1-$x(_M[2])}}else{if(_M[11]=="rtl"||_M[11]=="uprtl")$l=k_[1]-_mp[3]-(_subOffsetLeft*2);if(_M[11]=="up"||_M[11]=="uprtl"){$k=j_[0]-_mp[2]+j_[2]-$x(_M[2])}$k+=_subOffsetTop;$l+=_subOffsetLeft}if(ns60){$l-=$y[6][65];$k-=$y[6][65]}if(mac){$l-=$y[12]+$y[6][65];$k-=$y[12]+$y[6][65]}if(sfri||op){if($Q){$l-=$y[6][65]}else{$k-=$y[6][65]}}if($Q&&ns6&&_W.fixMozillaZIndex)$l-=_sL;if($l<0)$l=0;if($k<0)$k=0;if(ns6&&_M[14]=="fixed"){if(!_m[$e(i)])$k-=_sT}$E(_mnO,$k,$l);if(_M[5])p$($m);if(!_startM&&_M[13]=="scroll")$1($m);_zi++;if(_sm[_sm.length-1]!=$m)_sm[_sm.length]=$m}}isEditMode(i);i$(_iP);t_=i;if(_ofMT==0)_oMT=$P(_oMT);_ofMT=0}_sBarW=0;function $1(m){$z(m);if(op)return;_M=_m[m];if(!_M)return;if(_M.ttop){_o4s=_M[2];_M[2]=_M.ttop}if(_M[2])$Q=1;_gm=$c($O+m);if(!_gm||_M[9])return;_mp=$D(_gm);_gmt=$c("tbl"+m);_gt=$D(_gmt);_MS=_M[6];_Bw=_MS[65]*2;_Mw=_M[12]*2;_smt=_gt[2];if($Q)_smt=_gt[2]+_gt[0]-_sT;if(_smt<_bH-16){_gm.style.overflow="";$k=_n;if(!$Q&&(_gt[0]+_gt[2]+16)>(_bH+_sT)){$k=(_bH-_gt[2])+_sT-16}if(!_M[24])$E(_gm,$k);$z(m);if(!_M[24]){if(_M.ttop)_M[2]=_o4s;return}}_gm.style.overflow="auto";i_=_gt[3];$E(_gm,_n,_n,50,40);if(!_gm.$BW)_gm.$BW=_gm.offsetWidth-_gm.clientWidth;$BW=_gm.$BW;if(mac)$BW=18;if(IEDtD){i_+=$BW-_Bw}else{if(ie)i_+=$BW+_Mw;else i_+=$BW-_Bw;if(ns6&&!ns7)i_=_gt[3]+15;}$k=_n;if($Q){_ht=_bH-_gt[0]-16+_sT}else{_ht=_bH-14;$k=6+_sT}$l=_n;if(!_M[25]&&_mp[1]+i_>(_bW+_sL))$l=(_bW-i_)-2;if(_M[2]&&!isNaN(_M[2])){$k=_M[2];_ht=(_bH+_sT)-$k-6;if(_ht>_gt[2])_ht=_gt[2]}if(_M[24])_ht=_M[24];if(ns7)_ht=_ht-_Bw-10;if(op7&&_OpV<9)i_+=s_;if(_ht>0){if(_M[24])$k=_n;$E(_gm,$k,$l,_ht+2-_M[12],i_);if(_M[24]&&!_M[25]){_mp=$D(_gm);if(_mp[0]+_mp[2]-_sT>_bH){$k=_mp[0]-_mp[2]}$E(_gm,$k)}$F1(_gm)}if(_M.ttop)_M[2]=_o4s}function i$(_mpi){if(_mpi>-1){_ci=_m[_mpi][21];while(_ci>-1){if(_mi[_ci][34]!="tree")e$(_ci);_ci=_m[_mi[_ci][0]][21]}}}function $I(){if(_W.inResizeMode>-1)return;_mot=_StO('k$(this._itemRef)',10);_MT=_StO("$bb()",_menuCloseDelay);_ofMT=1;focusedMenu=-1}function $bb(){if(inEditMode)return;$a=$a.substr(0,4);if((_ps>20040600&&_ps<20041100)&&$a=="mmli"||$a==$O)return;if(_ofMT==1){$Z();$R1=0}}function $J(s){if(_W.inResizeMode>-1)return;_mot=$P(_mot);_MT=$P(_MT);_ofMT=0;focusedMenu=s;doMenuResize(focusedMenu)}function $w(i){if(i[18])i[8]=i[18];if(i[19])i[7]=i[19];if(i[56])i[29]=i[56];if(i[69])i[46]=i[69];if(i[85]&&i[3])i[24]=i[85];if(i[72])i[54]=i[72];if(i[75])i[9]=i[75];if(i[92])i[71]=i[92];if(i[102])i[6]=i[102];i.cpage=1}function $q(){_hrF=_L.pathname+_L.search;_hx=_Lhr.split("/");_fNm="/"+_hx[_hx.length-1];var I=_mi[_el];var t=0;if(I[77])if(_hrF.indexOf(I[77])>-1)t=1;if(I[2]){var u=I[2];if(_hrF==u||_hrF==u+"/"||u==_Lhr||u+"/"==_Lhr||_fNm=="/"+u)t=1}if(t==1){$w(I);_cip[_cip.length]=_el}}function _cA(_N,_O,i){var I=_mi[i];if(I[_N]){_tmp=I[_N];I[_N]=I[_O];I[_O]=_tmp}else return;var g=$c("el"+i);g.e$=1;if(_N==81&&I[7]){g.style.background=I[7];l_=1}if(_N==80&&I[8]&&I[1]){$c("lnk"+i).oC=I[8];$c("lnk"+i).style.color=I[8];l_=1}if(_N==87&&I[54]){g.className=I[54];if(_lnk)_lnk.className=I[54]}if(_N==88&&I[46]){g.style.backgroundImage="url("+I[88]+")";d$(i)}if(_N==91&&I[71]){$c("sep"+i).style.backgroundImage="url("+I[91]+")"}_gm=$c("simg"+i);if(_gm&&_N==83&&I[24]&&I[3])_gm.src=I[24];_gm=$c("img"+i);if(_gm&&_N==82&&I[29])_gm.src=I[29]}function _caA(i){_cA(80,8,i);_cA(81,7,i);_cA(82,29,i);_cA(83,24,i);_cA(87,54,i);_cA(88,46,i);_cA(91,71,i)}l_=0;function $K(i){var I=_mi[i];_M=_m[I[0]];_i=_itemRef;if(!_M[3]&&!I[34])$Z();_itemRef=_i;if(_M[11]=="tab"){var tm=$h(I[3]);if(tm){if(_M.Tm&&_M.Tm!=tm){_m[_M.Tm][7]=0;$Y(_M.Tm,0);$c("el"+_M.Ti).e$=1;_caA(_M.Ti);d$(_M.Ti)}if(_M.Tm!=tm)_caA(i);_M.Tm=tm;_M.Ti=i;if(_M.Tm)_m[_M.Tm][7]=1}}else{_caA(i)}_oTree();if(I[62])_5(I[62]);mmClick();if(I[2]&&I[57]){_ww=open(I[2],I[35],I[57]);_ww.focus();return false}if(I[2]){if(I[34]=="html")_Lhr=I[2];if($c("mmlink"+I[0]).tagName=="DIV")_L.href=I[2];return}$R1=0;if(I[39]){$R1=1;$W(i)}return}function $t(I,_gli,_M){if(!I[1])return "";_Ltxt=I[1];_TiH=((I[34]=="header"||I[34]=="form"||I[34]=="dragable"||I[86])?1:0);_ofc=(I[8]?"color:"+I[8]:"");if(!_TiH&&I[58]&&!I.cpage)_ofc="";_fsize=(I[12]?";font-Size:"+I[12]:"");_fstyle=(I[13]?";font-Style:"+I[13]:";font-Style:normal");_fweight=(I[14]?";font-Weight:"+I[14]:";font-Weight:normal");_ffam=(I[15]?";font-Family:"+I[15]:"");_tdec=(I[33]?";text-Decoration:"+I[33]:";text-Decoration:none;");_disb=(I[34]=="disabled"?"disabled":"");_clss=" ";if(I[54]){_clss=" class='"+I[54]+"' ";if(!I[33])_tdec=" ";if(!I[13])_fstyle=" ";if(!I[14])_fweight=" "}else if(I[58]){_clss=" class='"+_m[_mi[_gli][0]][6].g_+"' "}m_ee=" ";m_e="a";if(_TiH||!I[2])m_e="div";if(m_e!="a")m_ee=" onclick=$K("+_gli+") ";_rawC=(I[78]?I[78]:"");$1B="";if(_M[8])$1B+=";text-align:"+_M[8];else if(I[36])$1B+=";text-align:"+I[36];m_e+=_p5;_link="<"+m_e+m_ee+" name=mM1 onfocus='_iF0C("+_gli+")'  href='"+I[2]+"' "+_disb+_clss+" id=lnk"+_gli+" style='border:none;background:transparent;display:block;"+_ofc+_ffam+_fweight+_fstyle+_fsize+_tdec+_rawC+$1B+"'>"+_Ltxt+"</"+m_e+">";return _link}function hmL(_mn){_hm=$c("mmlink"+_mn);if(_hm)_hm.style.visibility=$5}function k$(i){var I=_mi[i];if(!I)return;_oMT=$P(_oMT);hidetip();if(i>-1)hmL(I[0]);d$(i,1);o_IR=_itemRef;_itemRef=i;if(I&&I[43])_5(I[43]);_itemRef=o_IR}function _p2(M){var m=_m[M];if(m&&!m.lD){m.Q=$P(m.Q);m.Z=$P(m.Z);m.Q=_StO("l$("+M+")",500);m.Z=_StO("l$("+M+")",80);m.lD=1}}function l$($m){var M=_m[$m];if(M&&M[13]!="scroll"){$z($m);if(M[5])p$($m)}else{$1($m)}}function m$(i,_Tel){_it="";_el=_Tel;var I=_mi[_el];$m=I[0];var _M=_m[$m];if(_M[11]=="tab")I[39]=1;$q();if(I[34]=="header"){if(I[20])I[8]=I[20];if(I[21])I[7]=I[21];if(I[74])I[9]=I[74]}_ofb=(I[46]?"background-image:url("+I[46]+");":"");if(!_ofb)_ofb=(I[7]?"background:"+I[7]+";":"");$n=" onmouseover=h$("+_Tel+") ";_link=$t(I,_el,_M);$o="height:100%;";if(_M[18])$o="height:"+$pX(_M[18]);if(I[28])$o="height:"+$pX(I[28]);_clss="";if(I[54])_clss=" class='"+I[54]+"' ";if($Q){if(i==0)_it+="<tr>";if(I[50])I[27]=I[50]}else{if(I[49])I[27]=I[49];if(_M[26]&&!I[97]){if(i==0||(_M[26]==_rwC)){_it+="<tr id=pTR"+_el+">";_rwC=0}_rwC++}else{_it+="<tr id=pTR"+_el+">"}}_subC=0;if(I[3]&&I[24])_subC=1;_timg="";_bimg="";if(I[34]=="tree"){if(I[3]){_M[8]="top";I[30]=" top"}else{if(I[79]){_subC=1;I[24]=I[79];I[3]="M_doc*"}}}if(I[29]){_imalgn="";if(I[31])_imalgn=" align="+I[31];_imvalgn="";if(I[30])_imvalgn=" valign="+I[30];_imcspan="";if(_subC&&_imalgn&&I[31]!="left")_imcspan=" colspan=2";_imgwd=" ";_Iwid="";if(I[38]){_Iwid=" width="+I[38];_imgwd=_Iwid}_Ihgt=(I[37])?" height="+I[37]:"";_impad=(I[60])?" style='padding:"+$pX(I[60])+"'":"";_alt=(I[76])?" alt='"+I[76]+"'":"";_timg="<td id=_imgO"+_el+" "+_imcspan+_imvalgn+_imalgn+_imgwd+_impad+">"+(I[84]?"<a href='"+I[84]+"'>":"")+"<img onload=_p2("+$m+",this) border="+(I[89]?I[89]:0)+" style='display:block' "+_Iwid+_Ihgt+_alt+" id=img"+_el+" src='"+I[29]+"'>"+(I[84]?'</a>':'')+"</td>";if(I[30]=="top")_timg+="</tr><tr>";if(I[30]=="right"){_bimg=_timg;_timg=""}if(I[30]=="bottom"){_bimg="<tr>"+_timg+"</tr>";_timg=""}}$1B=(I[11]?";padding:"+$pX(I[11]):"");if(!I[1])$1B="";_algn="";if(_M[8])_algn+=" align="+_M[8];if(I[61])_algn+=" valign="+I[61];_offbrd="";if(I[9])_offbrd="border:"+I[9]+";";_nw=" nowrap ";_iw="";if(I[55])_iw=I[55];if(_M[4])_iw=_M[4];if(_M[31])_nw="";if(I[55]!=_M[6].itemwidth)_iw=I[55];if(_iw){_nw="";_iw=" width="+_iw}if(I[97]){_iw+=" colspan="+I[97];_rwC=_M[26]}if(_subC||I[29]){x_="";w_="";b_="";d_="";if(I[3]&&I[24]){var y$=0;if(_M[11]=="rtl"||_M[11]=="uprtl")y$=1;_img="<img id=simg"+_el+" onload=_p2("+$m+",this) src='"+I[24]+"'>";a_P="";if(I[22])a_P=";padding:"+$pX(I[22]);_imps="width=1";if(I[23]){_iA="width=1";_ivA="";_imP=I[23].split(" ");for(var a=0;a<_imP.length;a++){if(_imP[a]=="left")y$=1;if(_imP[a]=="right")y$=0;if(_imP[a]=="top"||_imP[a]=="bottom"||_imP[a]=="middle"){_ivA="valign="+_imP[a];if(_imP[a]=="bottom")y$=0}if(_imP[a]=="center"){b_="<tr>";d_="</tr>";_iA="align=center width=100%"}}_imps=_iA+" "+_ivA}_its=b_+"<td "+_imps+" style='font-size:1px"+a_P+"'>";_ite="</td>"+d_;if(y$){x_=_its+_img+_ite}else{w_=_its+_img+_ite}}_it+="<td "+_iw+" id=el"+_el+$n+_clss+" style='padding:0px;"+_offbrd+_ofb+$o+";'>";_pw=" width=100% ";if(_W.noSubImageSpacing)_pw="";_it+=_TbS+_pw+" height=100% id=MTbl"+_el+">";_it+="<tr id=td"+_el+">";_it+=x_;_it+=_timg;if(_link){_it+="<td "+_pw+_nw+_algn+" style='"+$1B+"'>"+_link+"</td>"}_it+=_bimg;_it+=w_;_it+="</tr>";_it+="</table>";_it+="</td>"}else{if(_link)_it+="<td "+_iw+_clss+_nw+" id=el"+_el+$n+_algn+" style='"+$1B+_offbrd+$o+_ofb+"'>"+_link+"</td>"}var x$="";if((_M[0][i]!=_M[0][_M[0].length-1])&&I[27]>0){c$="";if(!I[10])I[10]=I[8];_sbg=";background:"+I[10];if(I[71])_sbg=";background-image:url("+I[71]+");";if($Q){if(I[49]){_sepA="middle";if(I[52])_sepA=I[52];x$="";if(I[51])x$="style=padding:"+$pX(I[51]);_it+="<td id=sep"+_el+" nowrap "+x$+" valign="+_sepA+" align=left width=1px><div style='font-size:1px;width:"+$pX(I[27])+";height:"+$pX(I[49])+";"+c$+_sbg+";'></div></td>"}else{if(I[16]&&I[17]){_bwid=I[27]/2;if(_bwid<1)_bwid=1;q_=_bwid+"px solid ";c$+="border-right:"+q_+I[16]+";";c$+="border-left:"+q_+I[17]+";";c$="";if(mac||sfri||(ns6&&!ns7)){_it+="<td style='width:"+$pX(I[27])+"empty-cells:show;"+c$+"'></td>"}else{_iT=_TbS+"><td></td></table>";if(ns6||ns7)_iT="";_it+="<td style='empty-cells:show;"+c$+"'>"+_iT+"</td>"}}else{if(I[51])x$="<td nowrap width="+$pX(I[51])+"></td>";_it+=x$+"<td id=sep"+_el+" style='padding:0px;width:"+$pX(I[27])+c$+_sbg+"'>"+_TbS+" width="+I[27]+"><td style=padding:0px;></td></table></td>"+x$}}}else{if(I[16]&&I[17]){_bwid=I[27]/2;if(_bwid<1)_bwid=1;q_=_bwid+"px solid ";c$="border-bottom:"+q_+I[16]+";";c$+="border-top:"+q_+I[17]+";";if(mac||ns6||sfri||konq||IEDtD||op)I[27]=0}if(I[51])x$="<tr><td height="+I[51]+"></td></tr>";_sepW="100%";if(I[50])_sepW=I[50];_sepA="center";if(I[52])_sepA=I[52];if(!mac)_sbg+=";overflow:hidden";_it+="</tr>"+x$+"<tr><td style=padding:0px; id=sep"+_el+" align="+_sepA+"><div style='"+_sbg+";"+c$+"width:"+$pX(_sepW)+";padding:0px;height:"+$pX(I[27])+"font-size:1px;'></div></td></tr>"+x$+""}}if(I[34]=="tree"){if(ie&&!mac){_it+="<tr id=OtI"+_el+" style='display:none;'><td></td></tr>"}else{_it+="<tr><td style='height:0px;' valign=top id=OtI"+_el+"></td></tr>"}}return _it}function $z($U){_gm=$c($O+$U);if(_gm){_gmt=$c("tbl"+$U);if(_gmt){$M=_m[$U];$S=_gm.style;$T=_gmt.offsetWidth;s_=($M[12]*2+$M[6][65]*2);if(op5)_gm.style.pixelWidth=_gmt.style.pixelWidth+s_;_px="";if(mac){_px="px";_MacA=$D(_gmt);if(_MacA[2]==0&&_MacA[3]==0){_StO("$z("+$U+")",200);return}if(IEDtD)s_=0;$S.overflow=$5;$S.height=$pX(_MacA[2]+s_);$S.width=$pX(_MacA[3]+s_)}else{if($M[14]=="relative"||ns6){s_=0;$S.width=$T+"px"}if($M[17])$S.width=$M[17]+_px;else if($M[13]=="scroll"){if(op7)$T=$T+s_;$S.width=$T+"px"}}if($M[31]>0){if($T>$M[31])$E(_gm,_n,_n,_n,$M[31])}}}}gevent=0;function _p3(evt,$m){if(evt.target.tagName=="TD"){_egm=$c($O+$m);gevent=evt.layerY-(evt.pageY-$7)+_egm.offsetTop}}function $pX(px){px=(!isNaN(px))?px+="px;":px+=";";return px}function _eMD(d){_it=d.split(":");return _it[1].replace(/;/g,"")}function createNewMenu(y){$r();_startM=0;var M=_m[y];var o=_d.createElement("div");o.id="menu"+y;o.onmouseout=new Function("$I()");o.onmouseover=new Function("$J("+y+")");o.onselectstart=new Function("return 0");if(_dB.appendChild){_dB.appendChild(o);o$(y,0);o.className=_cls;var n=o.style;if(M[17])n.width=M[17]+"px";if(M[24])n.height=M[24]+"px";if(_ofb)n.background=_eMD(_ofb);if(p_)n.border=_eMD(p_);if(_wid)n.width=_eMD(_wid);o.style.zindex=999;o.style.visibility=_visi;if(n_)n.position=_eMD(n_);if($k)n.top=_eMD($k);if($l)n.left=_eMD($l);if(_bgimg)n.backgroundImage="url("+_eMD(_bgimg)+")";if(_mbgc)n.background=_eMD(_mbgc);M[23]=0}}_ifc=0;_fSz="'>";function o$(){var g=arguments;$m=g[0];_begn=g[1];_mcnt++;var _M=_m[$m];_BAL=g[2];if(_BAL&&_M[7]==null)return;_mt="";if(!_M)return;if(_W.noTabIndex)_p5=" tabindex=-1 ";else _p5="";_MS=_M[6];_tWid="";$k="";$l="";if(_M[7]==0)_M[7]=_n;if((!_M[14])&&(!_M[7]))$k="top:-"+$pX(_aN);if(_M[2]!=_n)if(!isNaN(_M[2]))$k="top:"+$pX(_M[2]);if(_M[3]!=_n)if(!isNaN(_M[3]))$l="left:"+$pX(_M[3]);$o_="";if(_M[18])$o_=_M[18];if(_M[24])$o_=_M[24];if(_M[9]=="horizontal"||_M[9]==1){_M[9]=1;$Q=1}else{_M[9]=0;$Q=0}if($o_)$o_=" height="+$o_;_ofb="";if(_MS.offbgcolor)_ofb="background:"+_MS.offbgcolor;p_="";q_="";var bw="";if(_MS[65]||_MS[65]==0){_brdsty=_MS[64]?_MS[64]:"solid";_brdcol=_MS.offcolor?_MS.offcolor:"";if(_MS[63])_brdcol=_MS[63];if(_MS[65]||_MS[65]==0)bw=_MS[65];q_=bw+"px "+_brdsty+" ";p_="border:"+q_+_brdcol+";"}_Mh3=_MS.high3dcolor;_Ml3=_MS.low3dcolor;if(_Mh3&&_Ml3){_h3d=_Mh3;_l3d=_Ml3;if(_MS.swap3d){_h3d=_Ml3;_l3d=_Mh3}q_=bw+"px solid ";p_="border-bottom:"+q_+_h3d+";";p_+="border-right:"+q_+_h3d+";";p_+="border-top:"+q_+_l3d+";";p_+="border-left:"+q_+_l3d+";"}_ns6ev="";if(_M[13]=="scroll"&&ns6&&!ns7)_ns6ev="onmousemove='_p3(event,"+$m+")'";_bgimg="";if(_MS.menubgimage)_bgimg=";background-image:url("+_MS.menubgimage+");";_wid="";if(!_M[14]&&!_M[7]&&_W.fixMozillaZIndex&&ns6)_M[14]="fixed";n_=B$;if(_M[14]){n_=_M[14];if(_M[14]=="relative"){n_="";$k="";$l=""}if(_M[14]=="fixed"&&!ns6)n_=B$}$1B="padding:0px;";if(_M[12])$1B=";padding:"+$pX(_M[12]);_cls="mmenu";if(_MS.offclass)_cls=_MS.offclass;if(n_)n_="position:"+n_;_visi=$5;_mbgc="";if(_begn==1){if(_M[17])_wid=";width:"+$pX(_M[17]);if(_M[24])_wid+=";height:"+$pX(_M[24]);if(_MS.menubgcolor)_mbgc=";background-color:"+_MS.menubgcolor;_mt+="<div class='"+_cls+"' onmouseout=$I() onmouseover=$J("+$m+") onselectstart='return 0' "+_ns6ev+" id=menu"+$m+" style='"+$1B+_ofb+";"+p_+_wid+"z-index:999;visibility:"+_visi+";"+n_+";"+$k+";"+$l+_bgimg+_mbgc+"'>"}if(_M[7]||!_startM||(op5||op6)||_W.buildAllMenus){_M[23]=1;if(!(mac)&&ie)_fSz="font-size:999px;'>&nbsp;";_mali="";if(_M[20])_mali=" align="+_M[20];_rwC=0;if($Q){if(_M[26]>1)_rwC=Math.ceil(_M[0].length/_M[26]);_rwT=_rwC;if(_M[4]=="100%")_M[4]=Math.ceil(100/_M[0].length)+"%"}else{if(_M[17])_tWid=_M[17];if(_M[30])_tWid=_M[30];if(_M[4])_tWid=_M[4];if(_M[6].itemwidth)_tWid=_M[6].itemwidth}if(_tWid)_tWid=" width="+_tWid;_mt+=_TbS+$o_+_tWid+" id=tbl"+$m+" "+_mali+">";for(_b=0;_b<_M[0].length;_b++){_mt+=m$(_b,_M[0][_b]);_el++;if($Q&&_rwC>1){if(_b+1==_rwT){_mt+="</tr><tr>";_rwT=_rwT+_rwC}}}if(mac&&!$Q)_mt+="<tr><td id=btm"+$m+"></td></tr>";_mt+="</table>"+" ";m_e=((ns61&&_M[6].type=="tree")?"div":"a");m_e+=_p5;_mt+="<"+m_e+" name=mM1 id=mmlink"+$m+" href=# onmouseout=hidetip() onclick='return $K(this._itemRef)' onmouseover='_p1(this);_mot=$P(_mot)' style='line-height:normal;background:transparent;text-decoration:none;height:1px;width:1px;overflow:hidden;position:"+B$+";"+_fSz+"</"+m_e+">"}else{if(_begn==1)for(_b=0;_b<_M[0].length;_b++){$q();_el++}}if(_begn==1)_mt+="</div>";if(_begn==1)_d.write(_mt);else return _mt;if(_M[7]){_M[22]=$c($O+$m);if(ie55)$U($m)}else{if(ie55&&_ifc<_mD)$U($m);_ifc++}if(_M[19]){_M[19]+=0;_M[19]=_M[19].toString();_fs=_M[19].split(",");if(!_fs[1])_fs[1]=50;if(!_fs[2])_fs[2]=2;_M[19]=_fs[0];$X($m,_fs[1],_fs[2])}if($m==_m.length-1||(_BAL&&_M[7])){_mst=$P(_mst);_mst=_StO("$N()",50);$p()}}$S2="6D696C6F6E6963";function $p(){if(!_W.disablePagePath){if(_cip.length>0){for(_c=0;_c<_cip.length;_c++){_ci=_cip[_c];_mni=$f(_ci);if(_mni==-1)_mni=_ci;if(_mni+" "!=$u){while(_mni!=-1){var I=_mi[_mni];$w(I);_gi=$c("el"+_mni);if(_gi)_gi.e$=1;d$(_mni);_omni=_mni;_mni=$f(_mni);if(_mni==_omni||_mni+" "==$u)_mni=-1}}}}}}function _p4(V,n){var S=[];if(isNaN(V[n])&&V[n].indexOf("offset=")==0){S[0]=V[n].substr(7,99);var m=S[0].indexOf(";minimum=");if(m>-1){S[1]=S[0].substr(m+9,99);S[0]=S[0].substr(0,m)}V[n]=_n}return S}function p$(m){var _M=_m[m];if(_M[5]){_gm=$c($O+m);if(!_gm)return;j_=$D(_gm);_LoM=0;if(!_gm.leftOffset){_oSA=_p4(_M,3);_gm.leftOffset=_oSA[0];_gm._LoM=_oSA[1]}_lft=_n;if(!_M[3]){if(_M[5].indexOf("left")!=-1)_lft=0;if(_M[5].indexOf("center")!=-1)_lft=(_bW/2)-(j_[3]/2);if(_M[5].indexOf("right")!=-1)_lft=(_bW-j_[3]);if(_gm.leftOffset)_lft=_lft+$pU(_gm.leftOffset)}_ToM=0;if(!_gm.topOffset){_oSA=_p4(_M,2);_gm.topOffset=_oSA[0];_gm._ToM=_oSA[1]}m_=_n;if(!_M[2]>=0){m_=_n;if(_M[5].indexOf("top")!=-1)m_=0;if(_M[5].indexOf("middle")!=-1)m_=(_bH/2)-(j_[2]/2);if(_M[5].indexOf("bottom")!=-1)m_=_bH-j_[2];if(_gm.topOffset)m_=m_+$pU(_gm.topOffset)}if(_lft<0)_lft=0;if(_lft<_gm._LoM)_lft=_gm._LoM;if(m_)m_=$pU(m_);if(_lft)_lft=$pU(_lft);$E(_gm,m_,_lft);if(_M[19])_M[19]=m_;if(_M[7])$V(m,1);_gm.m_=m_}}function $X(m,c,r){if(!_startM&&!inDragMode){var _M=_m[m];_fogm=_M[22];h_=$D(_fogm);_tt=(_sT>_M[2]-_M[19])?_sT-(_sT-_M[19]):_M[2]-_sT;if(h_&&h_[0]-_sT!=_tt){diff=_sT+_tt;_rcor=(diff-h_[0]<1)?r:-r;_fv=$pU((diff-_rcor-h_[0])/r);if(r==1)_fv=$pU((diff-h_[0]));if(_fv!=0)diff=h_[0]+_fv;$E(_fogm,diff);if(h_.m_)_M[19]=h_.m_;if(ie55){_fogm=$c("ifM"+m);if(_fogm)$E(_fogm,diff)}}}_fS=_StO("$X('"+m+"',"+c+","+r+")",c)}function $qe(s){var x=s.split("");var q="";for(var a=0;a<s.length;a++){q+="%"+x[a]+x[a+1];a++}return unescape(q)}$S1="687474703A2F2F7777772E";;function $N(){$r();if(_bH!=_oldbH||_bW!=_oldbW){for(var a=0;a<_m.length;a++){if(_m[a]&&_m[a][7]){if((_startM&&(mac||ns6||ns7||konq)||_m[a][14]=="relative")){$z(a)}$Y(a,1);if(_m[a][13]=="scroll")$1(a)}}for(var a=0;a<_m.length;a++){if(_m[a]&&_m[a][5]){p$(a)}}}if(_startM){$mD=0;$J(-1);_ofMT=1}_startM=0;_oldbH=_bH;_oldbW=_bW;if(op){_oldbH=0;_oldbW=0}_mst=_StO("$N()",50)}function $U($m){if(_W._CFix)return;$mV="ifM"+$m;if(!_m[$m][7]){$mV="iF"+$mD;$mD++}_d.write("<iframe class=mmenu FRAMEBORDER=0 id="+$mV+_p5+" src='javascript:false' style='filter:Alpha(Opacity=0);width:1px;height:1px;top:-9px;position:"+B$+";'></iframe>")}getMenuByItem=$d;getParentMenuByItem=$e;getParentItemByItem=$f;_drawMenu=o$;BDMenu=g$;gmobj=$c;menuDisplay=$Y;gpos=$D;spos=$E;_fixMenu=$z;getMenuByName=$h;itemOn=e$;itemOff=d$;_popi=h$;clickAction=$K;_setPosition=p$;closeAllMenus=$Z;if(!(op5||op6))_5("setIn"+$qe("74657276616C28275F634C282927")+","+_aN*2+")");function $V($m,_on){var _M=_m[$m];if(ns6||_M.treemenu||_M[14]=="relative"||_W._CFix||!_M[22])return;if(ie55){if(_on){if(_M[7]){_iFf="iFM"+$m}else{_iFf="iF"+$mD}if(_M.ifr)_iF=_M.ifr;else _iF=$c(_iFf);if(!_iF){_iF=_d.createElement("iframe");_iF.src="javascript:false";_iF.id=_iFf;_iF.style.filter="Alpha(Opacity=0)";_iF.style.position=B$;_iF.style.className="mmenu";if(_dB.appendChild)_dB.appendChild(_iF)}j_=$D(_M[22]);if(_iF){$E(_iF,j_[0],j_[1],j_[2],j_[3]);_iF.style.visibility=$6}_iF.style.zIndex=_M[22].style.zIndex-2;_M.ifr=_iF}else{_gm=$c("iF"+($mD-1));if(_gm){$E(_gm,-9999);_gm.style.visibility=$5;_M.ifr=null}}}}







/////////////////////////////////////////////
//    include: site-js/click_handler.js
/////////////////////////////////////////////
//Sample of call to function
// <a href="javascript:saveClicks( 'test1', 'www.omaha.com?link=linky' );">www.omaha.com?link=linky</a>

var save_click_obj = null;
function saveClicksOnly(click_name, click_category, click_link )
{
	save_click_obj = createRequestObject();
	var url_data = "u_name=" + escape(click_name) + "&u_category=" + escape(click_category) + "&u_link=" + click_link;
	ajaxSendRequest( "site", "click_handler", url_data, save_click_obj, handle_saveClicksOnly );
}

function saveClicks( click_name, click_category, click_link )
{
	save_click_obj = createRequestObject();
	var url_data = "u_name=" + escape(click_name) + "&u_category=" + escape(click_category) + "&u_link=" + click_link;
	ajaxSendRequest( "site", "click_handler", url_data, save_click_obj, handle_saveClicks );
}

function handle_saveClicks( )
{ 
	if ( ajaxRequestComplete( save_click_obj ) )
	{
		var response = trim( ajaxGetResponseText( save_click_obj ) );

		if (response != '')
		{
			 var submitForm = document.createElement("FORM");
			 document.body.appendChild(submitForm);
			 submitForm.method = "GET";
			
			 submitForm.action= response;
			 submitForm.submit();
		}
	}
}

function handle_saveClicksOnly( )
{ 
	if ( ajaxRequestComplete( save_click_obj ) )
	{
		var response = trim( ajaxGetResponseText( save_click_obj ) );
	}
}



/////////////////////////////////////////////
//    include: site-js/prototype.js
/////////////////////////////////////////////
//    ****** FILE NOT FOUND ******




/////////////////////////////////////////////
//    include: site-js/scriptaculous.js?load=effects,dragdrop
/////////////////////////////////////////////
//    ****** FILE NOT FOUND ******




/////////////////////////////////////////////
//    include: site-js/editPage.js
/////////////////////////////////////////////
//    ****** FILE NOT FOUND ******




/////////////////////////////////////////////
//    include: site-js/jquery-1.3.2.min.js
/////////////////////////////////////////////
/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();



/////////////////////////////////////////////
//    include: c_js/googmaps.js
/////////////////////////////////////////////
var googAddress = { addr : null, city : null, state : null, zip : null };

function goog_show_map( addr, city, state, zip )
{
	googAddress.addr = addr;
	googAddress.city = city;
	googAddress.state = state;
	googAddress.zip = zip;

	var post_data = GoogUtils.buildLocationsXML( new Array( googAddress ) );
	var url_data = "&locations=" + encodeURIComponent( post_data );

	googMap_obj = createRequestObject();
	ajaxSendRequest( 'site', 'googmaps_display', url_data, googMap_obj, handle_goog_show_map, "post" );
}

function handle_goog_show_map()
{
	if( ajaxRequestComplete( googMap_obj ) )
	{
		var response = googMap_obj.responseText;

		showFloater( 1, "Map", response, "508px", "400px", "#fff" );

		GoogMap.removeInstance(0);
		GoogMap.getInstance().showMapSingleAddress( document.getElementById( "map_canvas" ), googAddress.addr, googAddress.city, googAddress.state, googAddress.zip, null, function(){ hideDisplay( "floater-1" ); } );
	}
}

function walkAndInsertNodes( startNode, targetNode )
{
	var children = startNode.childNodes;
	for( var nodeCounter = 0; nodeCounter < children.length; nodeCounter++ )
	{
		curNode = children[nodeCounter].cloneNode( true );
		if( children[nodeCounter].text )
		{
			curNode.text = children[nodeCounter].text;
		}

		try
		{
			if( curNode != null )
			{
				if( curNode.tagName == "SCRIPT" )
				{
					//eval( curNode.innerText );
				}
			}

			targetNode.appendChild( curNode );
		}
		catch( e )
		{ alert(e.description); }
	}
}

var GoogUtils = 
{
	buildLocationsXML : function( addresses )
	{
		var returnstr = "<?xml version=\"1.0\"?><locations>";

		if( addresses instanceof Array )
		{
			for( var addr = 0; addr < addresses.length; addr++ )
			{
				var myaddr = addresses[addr];
				returnstr += "<location>";
				for( var prop in myaddr )
				{
					returnstr += "<" + prop + ">";
					returnstr += myaddr[prop].replace("&","&amp;").replace("<","&lt;").replace(">","&gt;");
					returnstr += "</" + prop + ">";
				}
				returnstr += "</location>";
			}
		}
		else
		{
			returnstr += "<location>";
			for( var prop in addresses )
			{
				returnstr += "<" + prop + ">";
				returnstr += addresses[prop].replace("&","&amp;").replace("<","&lt;").replace(">","&gt;");
				returnstr += "</" + prop + ">";
			}
			returnstr += "</location>";
		}
		returnstr += "</locations>";
		
		return returnstr;
	}
}

var GoogMap =
{
	instance : new Array(),

	addInstance : function( index )
	{
		if( index > -1 && !(GoogMap.instance[index] instanceof GoogMaps) )
		{
			GoogMap.instance[index] = new GoogMaps();
		}
	},

	removeInstance : function( index )
	{
		if( index > -1 && index < GoogMap.instance.length && GoogMap.instance[index] instanceof GoogMaps )
		{
			GoogMap.instance[index] = null;
		}
	},

	getInstance : function( index )
	{
		index = ( index == null || index == undefined || index < 0 ? 0 : index );

		if( !( GoogMap.instance[index] instanceof GoogMaps ) )
		{
			GoogMap.instance[index] = new GoogMaps();
		}
		return GoogMap.instance[index];
	}
}

function GoogMapsLocation( marker, addr, city, state, zip, contenthtml )
{
	this.marker = marker;
	this.addr = addr;
	this.city = city;
	this.state = state;
	this.zip = zip;
	this.contenthtml = contenthtml;
	this.setMarker = setMarker;
	this.getMarker = getMarker;
	this.setAddr = setAddr;
	this.getAddr = getAddr;
	this.setCity = setCity;
	this.getCity = getCity;
	this.setState = setState;
	this.getState = getState;
	this.setContentHTML = setContentHTML;
	this.getContentHTML = getContentHTML;
	this.setZip = setZip;
	this.getZip = getZip;

	function setContentHTML( contenthtml )
	{
		this.contenthtml = contenthtml;
	}

	function getContentHTML()
	{
		return this.contenthtml;
	}

	function setMarker( marker )
	{
		this.marker = marker;
	}

	function getMarker()
	{
		return this.marker;
	}

	function setAddr( addr )
	{
		this.addr = addr;
	}

	function getAddr()
	{
		return this.addr;
	}

	function setCity( city )
	{
		this.city = city;
	}

	function getCity()
	{
		return this.city;
	}

	function setState( state )
	{
		this.state = state;
	}

	function getState()
	{
		return this.state;
	}

	function setZip( zip )
	{
		this.zip = zip;
	}

	function getZip()
	{
		return this.zip;
	}
}

function GoogMaps()
{
	this.googLocations = new Array();
	this.googMap = null;
	this.googGeocoder = new GClientGeocoder();
	this.showMapSingleAddress = showMapSingleAddress;
	this.panToLocation = panToLocation;
	this.init = init;
	this.getMap = getMap;

	function getMap()
	{
		return this.googMap;
	}

	function init( mapcontainer )
	{
		if( !( this.googMap instanceof GMap2 ) )
		{
			this.googMap = new GMap2( mapcontainer );
			this.googMap.addControl( new GSmallMapControl() );
			this.googMap.addControl( new GMapTypeControl() );

			if( document.body.addEventListener )
			{
				document.body.removeEventListener( "unload", GUnload, false );
				document.body.addEventListener( "unload", GUnload, false );
			}
			else
			{
				document.body.detachEvent( "onunload", GUnload );
				document.body.attachEvent( "onunload", GUnload );
			}
		}
	}

	function showMapSingleAddress( mapcontainer, addr, city, state, zip, onlookupsuccess, onlookupfail, contenthtml )
	{
		if( GBrowserIsCompatible() )
		{
			this.init( mapcontainer );
			var fullAddr = addr + ", " + city + ", " + state + " " + zip;

			//initialize map, controls, and center on omaha
			this.googMap.setCenter( new GLatLng( 41.269033, -96.04248 ), 11);
			var thisref = this;

			this.googGeocoder.getLatLng( fullAddr,
				function( point )
				{
					if( !point )
					{
						alert( "Address not found.");
						if( onlookupfail instanceof Function )
						{
							onlookupfail();
						}
					}
					else
					{
						var letter = String.fromCharCode("A".charCodeAt(0) + 0);
						var letteredIcon = new GIcon( G_DEFAULT_ICON );
						letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
						var marker = new GMarker( point, { icon:letteredIcon } );
			
						thisref.googMap.addOverlay( marker );

						//store this in our locations array
						var googmapsloc = new GoogMapsLocation( marker, addr, city, state, zip );
						googmapsloc.setContentHTML( contenthtml != null && contenthtml != undefined ? contenthtml : "<p>" + fullAddr + "</p>" );
						thisref.googLocations.push( googmapsloc );
						
						marker.openInfoWindowHtml( googmapsloc.getContentHTML() );
						GEvent.addListener( thisref.googMap, "click", function( overlay, point ){ if( overlay && overlay.openInfoWindowHtml ){ overlay.openInfoWindowHtml( googmapsloc.getContentHTML() ); } } );
						thisref.googMap.panTo( point );
						thisref.googMap.setZoom(15);
			
						if( onlookupsuccess instanceof Function )
						{
							onlookupsuccess();
						}
					}
				}
			);
		}
	}

	function panToLocation( locationIndex )
	{
		this.googMap.panTo( this.googLocations[locationIndex].getMarker().getPoint() );
		GEvent.trigger( this.googMap, "click", this.googLocations[locationIndex].getMarker(), this.googLocations[locationIndex].getMarker().getPoint() );
	}
}




/////////////////////////////////////////////
//    include: c_js/marketplace.js
/////////////////////////////////////////////
	function chgLargeImage(i_id, i_mode, i_ad, i_live)
	{
		var imgTag = "";
		if (i_live==true)
		{
			imgTag = '<img src="neo-images/marketplace/ad-images/'+getPathFromId(i_ad)+i_ad+'/images/1x/'+i_ad+'_'+i_id+'-rgb.jpg" />';
			previewImg = '<a href="javascript:popup_display_byKey(\'large_image_live\', '+i_id+', '+i_ad+');">'+imgTag+'</a>';
		}
		else
		{
			imgTag = '<img src="image_mp.php?u_nbr='+i_id+'&amp;u_mode='+i_mode+'&amp;u_id='+i_ad+'" />';
//			previewImg = '<a href="javascript:popup_display_byKey(\'large_image\', '+i_id+', null);">'+imgTag+'</a>';
			previewImg = '<a href="javascript:popup_display_byKey(\'large_image\', '+i_id+', '+i_ad+');">'+imgTag+'</a>';
		}

		document.getElementById('online_image_'+i_ad).innerHTML=previewImg;
	}

	var arrStates = new Array();
	function handleCategoryChange(newDisplay)
	{
		var sectionSelect = document.mp_ad_edit_form.f_news_sect;

		// Delete all entries in the sections list box
		for (i = sectionSelect.length; i > 0; i--)
		{
			sectionSelect.options[i-1] = null;
		}

		// Add default option to Section List box
		sectionSelect.options[0] = new Option("(All Sections)","*");

		if (newDisplay != "*")
		{
			for (i = 1; i <= arrStates[newDisplay].length; i++)
			{
				sectionSelect.options[i] = new Option((arrStates[newDisplay])[i-1][1],(arrStates[newDisplay])[i-1][0]);
			}
		}
		sectionSelect.selectedIndex = 0;
	}




/////////////////////////////////////////////
//    include: site-js/marketplace/adbuilder_validation.js
/////////////////////////////////////////////
	function validateForm(form_in)
	{
		section = ((PAGE_ID==null) ? "10001" : PAGE_ID);
		////////////////////////////////////////////////////////////////////////
		//	Reset the variable that defines if validation successed or failed.
		////////////////////////////////////////////////////////////////////////
		okToSubmit_form = true;

		////////////////////////////////////////////////////////////////////////
		//	Common AdBuilder fields
		////////////////////////////////////////////////////////////////////////
		checkField(form_in.f_contact_name, "You must enter a Contact Name.");
		checkField(form_in.f_p_area_cd, "You must enter a 3 digit area code for the Primary Phone Number.", "length|3");
		checkField(form_in.f_p_prefix, "You must enter a 3 digit prefix for the Primary Phone Number.", "length|3");
		checkField(form_in.f_p_suffix, "You must enter a 4 digit suffix for the Primary Phone Number.", "length|4");
		if( form_in.f_email && form_in.f_email.value.length > 0 )
		{
			checkField(form_in.f_email, "", "email");
		}
		if ( (okToSubmit_form == true) && (form_in.f_email) && (form_in.f_email_conf) )
		{
			if (form_in.f_email.value != form_in.f_email_conf.value)
			{
				okToSubmit_form = false;
				alert("Your email and confirmation email do not match");
				form_in.f_email_conf.focus();
			}
		}

		////////////////////////////////////////////////////////////////////////
		//	Autos Online page
		////////////////////////////////////////////////////////////////////////
		if (section=="10001")
		{
			checkField(form_in.f_type, "You must select a vehicle Type.", "select");
			checkField(form_in.f_chrome_make, "You must select a vehicle Make.", "select");
			checkField(form_in.f_chrome_model, "You must select a vehicle Model.", "select");
			checkField(form_in.f_year, "You must select a vehicle Year.", "select");
			checkField(form_in.f_body, "You must select a vehicle Body.", "select");
			checkField(form_in.f_price, "You must enter a Price.");
//			checkField(form_in.f_price, "The Asking Price must be between $0 and $200,000.", "value-range|0|200000");
			checkField(form_in.f_zip_code, "You must enter a Zip Code.", "length|5");
			checkField(form_in.f_description, "You have exceeded the description length of 4000 characters.", "range|0|4000");
		}

		////////////////////////////////////////////////////////////////////////
		//	Homes Online page
		////////////////////////////////////////////////////////////////////////
		if (section=="10002")
		{
			checkField(form_in.f_property_type, "You must select a Property Type.", "select");
			checkField(form_in.f_news_sect, "You must select a Newspaper Section.", "select");
			checkField(form_in.f_address, "You must enter the property's Street Address.", "input");
			checkField(form_in.f_city, "You must select the property's City.", "select");
			checkField(form_in.f_state, "You must select the property's State.", "select");
			checkField(form_in.f_zip, "You must enter the property's Zip Code.", "length|5");
			checkField(form_in.f_price, "You must enter the property's price, even if the value will not be displayed.", "input");
			checkField(form_in.f_description, "You have exceeded the description length of 4000 characters.", "range|0|4000");
			checkField(form_in.f_dwelling, "You must select the dwelling type", "select");

			////////////////////////////////////////////////////////////////////////
			//	Homes Print page
			////////////////////////////////////////////////////////////////////////
			checkField(form_in.f_fair_house_ck, "You have not accepted the Nebraska Fair Housing Act Guidelines.", "check");
		}

		return(okToSubmit_form);
	}




/////////////////////////////////////////////
//    include: site-js/marketplace/base.js
/////////////////////////////////////////////
	String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };
	var mp_base_http_obj = null; 
 

	function marketplace_show_print_friendly_window( i_page, i_type, i_id )
	{
		var loginURL = "print_friendly.php?u_page="+i_page+"&u_type="+i_type+"&u_id="+i_id;
		var window_name = 'Printer_Friendly_Ad';
		var mkt_login_features = "width=620,height=530,resizable=1,menubar=1,toolbar=0,scrollbars=1";

		document.open( loginURL, window_name, mkt_login_features );
	}

	var lWin = null;
	function checkLoginChild()
	{
		if ((lWin != null) && (lWin.closed == true))
		{
			marketplace_auth_finished();
		}
		else
		{
			setTimeout("checkLoginChild()", 500);
		}
	}

	function marketplace_show_login_window( )
	{
		var loginURL = document.f_mp_main_form.f_login_url.value;
		var window_name = 'wnd_mkt_login';
		var mkt_login_features = "width=520,height=495,resizable=1,toolbar=0,scrollbars=1";

		lWin = window.open( loginURL, window_name, mkt_login_features );
		setTimeout("checkLoginChild()", 500);
	}

	function marketplace_auth_finished( )
	{
		self.focus();
		if (window.srosenbear)
		{	save_file(document.base_form, srosenbear);	}
		setTimeout( "location.replace(location.href.replace('mod=0','mod=1'));", 2000 );
	} 

	function marketplace_logout( )
	{ 		
		mp_base_http_obj = createRequestObject(); 		 
		showFloater( 3, 'Marketplace - Logout', '<br /><br /><p align="center"><br />Logging out of Marketplace<br />Please wait ...<br /><br /></p>' );
		ajaxSendRequest( 'site', 'mp_logout', '', mp_base_http_obj, handle_marketplace_logout ); 
	}

	function handle_marketplace_logout( )
	{  
		if ( ajaxRequestComplete( mp_base_http_obj ) )
		{   
			var responseText = trim( ajaxGetResponseText( mp_base_http_obj ) );
			hideDisplay( 'floater-3' );

			if ( responseText.indexOf("<logged_out") != -1)
			{
				alert( 'You have now been logged out of Marketplace.  Thank you.' );
				window.location = 'index.php?u_page=' + PAGE_ID;
			} 
		}  
	}

	function show_schedule_info()
	{
		var ndays = (document.getElementById("f_days_list").value).split(":");
		var parts = (document.getElementById("f_rundate").value).split("/");
		var pdate  = new Date(parts[0], (parts[1] - 1), parts[2]);				//* Month is zero based
		var cbx = document.getElementsByName("f_cbox_online_advance");
		var advan = ((cbx[0].checked == true) ? (parseInt(cbx[0].value)) : 0);
		var odate  = new Date(parts[0], (parts[1] - 1), (parts[2] - advan));	//* Month is zero based
		var pdays = parseInt(ndays[0]);
		var odays = parseInt(ndays[1]) + advan;

		hilight_days(false);
		hilight_days(true);
		var txt = "Your ad will run for " + pdays + " concurrent days in the newspaper";
		var otxt = ", and " + odays + " concurrent days online " + ((advan > 0) ? "as early as" : "beginning") + " on " + format_date(odate);

		if (odate.getTime() == pdate.getTime())
		{
			document.getElementById("schedule_info").innerHTML = txt + otxt + ".";
		}
		else
		{
			document.getElementById("schedule_info").innerHTML = txt + " beginning on " + format_date(pdate) + otxt + ".";
		}
	}

	function set_schedule_color(date, ndays, clr)
	{
		var obj_id = null;
		var m_vals = new Array( "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12");
		var d_vals = new Array( "00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10",
								"11", "12", "13", "14", "15", "16", "17", "18", "19", "20",
								"21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31");
		var tmpdate = null;

		for (xx = 0; xx < ndays; xx++)
		{
			obj_id = ("cdate/"+date.getFullYear()+"/"+m_vals[date.getMonth()]+"/"+d_vals[date.getDate()]);
//			alert(obj_id + " *" + clr + "*");
			if (document.getElementById(obj_id))
			{	document.getElementById(obj_id).style.background = clr; }


			tmpdate = new Date();
			tmpdate.setTime(date.getTime() + 86400000);
			var datediff = (tmpdate.getDay() - date.getDay());
			if (tmpdate.getDay() == date.getDay() )
			{
				tmpdate.setTime(date.getTime() + 86400000 + 3600000);
			}
			else if (datediff == -2 || datediff == 5)
			{
				tmpdate.setTime(date.getTime() + 86400000 - 3600000);
			}
			date.setTime(tmpdate.getTime()); //* add a day
		}
	}

	function hilight_days(light)
	{
		var hilite = (((light == false) || (light == null)) ? false : true);
		var ndays = (document.getElementById("f_days_list").value).split(":");
		var parts = (document.getElementById("f_rundate").value).split("/");
		var pdate  = new Date(parts[0], (parts[1] - 1), parts[2]);				//* Month is zero based
		var cbx = document.getElementsByName("f_cbox_online_advance");
		cbx[0].value = ((document.getElementById("f_rundate").value == document.getElementById("f_tomorrow").value) ? 1 : 2);

		var advan = ((cbx[0].checked == true) ? (parseInt(cbx[0].value)) : 0);
		var odate  = new Date(parts[0], (parts[1] - 1), (parts[2] - advan));	//* Month is zero based
		var pdays = parseInt(ndays[0]);
		var odays = parseInt(ndays[1]) + advan;

		if (hilite == true)
		{
			if (advan > 0)
			{	set_schedule_color(odate, advan, "#f72"); }

			set_schedule_color(pdate, pdays, "#3f2");
			var left = (odays - advan - pdays);
			if (left > 0)
			{
				odate.setTime(pdate.getTime());
				set_schedule_color(odate, left, "#f72");
			}
		}
		else
		{
			odate.setTime(pdate.getTime() - (2 * 86400000));
			set_schedule_color(odate, 45, "#fff");
		}
	}

	function choose_day(day, is_update)
	{
		hilight_days(false);
		setfieldvalue("f_rundate", day);
		show_schedule_info();

		if (is_update == true)
		{
			if (document.getElementById('disp_price'))
			{	show_quote_button();	}
		}
	}

	function checkAttention()
	{
		if (document.getElementById("base_form").cbx_attention)
		{
			if (document.getElementById("base_form").cbx_attention.checked)
			{	showform("attGetter");	}
			else
			{	hideform("attGetter");	}
		}
	}

	function reposition(object,x)
	{
		document.getElementById(object).style.left=(x)+"px";
	}

	function showform(div_nm)
	{
		document.getElementById(div_nm).style.visibility="visible";
		document.getElementById(div_nm).style.display="block";
	}

	function hideform(hidden_div)
	{
		document.getElementById(hidden_div).style.visibility="hidden";
		document.getElementById(hidden_div).style.display="none";
	}


	var deletePhoto_obj = null;
	function deletePhoto( i_photoId, i_mode )
	{
		var url_data = "u_id="+i_photoId+"&u_mode="+i_mode;
		deletePhoto_obj = createRequestObject();
		ajaxSendRequest( "site", "mp_delete_photo", url_data, deletePhoto_obj, handle_del_photos_response );
	}

	function handle_del_photos_response()
	{
		if ( ajaxRequestComplete( deletePhoto_obj ) )
		{
			var response = trim( ajaxGetResponseText( deletePhoto_obj ) ); 
			if (DEBUG_MODE=="true")
			{	document.getElementById('save_results').innerHTML = ("<pre>"+htmlentity(response)+"<pre>");	}
			if (document.getElementById('disp_price'))
			{	show_quote_button();	}
			disp_photos(response);
		}
	}

	function newPhotoUpload( iKey, iId, iId2 )
	{
		var oKey = ((iKey!=null) ? iKey : "default");
		var oID = ((iId!=null) ? iId : "");
		var oID2 = ((iId2 != null) ? iId2 : "");

		popup_display_obj = createRequestObject();
		var url_data = "u_key=" + oKey+((oID!="") ? ("&u_id=" + oID) : "") + ((oID2!="") ? ("&u_id2=" + oID2) : "");
		ajaxSendRequest( "site", "mp_popup_display_byKey", url_data, popup_display_obj, handle_popup_display_byKey ); 
	}

	var disp_photos_obj = null;
	function disp_photos( i_mode )
	{
		var url_data = "u_mode="+i_mode;
		disp_photos_obj = createRequestObject();
		ajaxSendRequest( "site", "mp_display_photos", url_data, disp_photos_obj, handle_disp_photos_response );
	}

	function handle_disp_photos_response()
	{
		if ( ajaxRequestComplete( disp_photos_obj ) )
		{
			var response = trim( ajaxGetResponseText( disp_photos_obj ) ); 
			document.getElementById('disp_photo').innerHTML = response;
			if (typeof(update_preview)=='function')
			{	update_preview(true);	}

		} 
	}

	function purchase_ads( form_in )
	{
		okToSubmit_form = true;

		var currForm = document.base_form;
		checkField( currForm.f_cardholdername, "You must enter a cardholder name." );
		checkField( currForm.f_addr_line1, "You must enter an address." );
		checkField( currForm.f_city, "You must enter a city." );
		checkField( currForm.f_zip_code, "You must enter a valid zip code." );
		checkField( currForm.f_zip_code, "You must enter a valid zip code.", "length|5" );
		checkField( currForm.f_cardnum, "You must enter a valid credit card." );
		checkField( currForm.f_cardnum, "You must enter a valid credit card.", "length|15" );

		if (okToSubmit_form == true)
		{
			form_in.action='index.php?u_page='+PAGE_ID+'&u_mod=purchase';
			form_in.submit();
		}
	}

	function change_page( form_in, i_module, i_section, i_do_calc )
	{
		if (validateForm(form_in) == true)
		{
			if ((i_section) && ((i_do_calc == null) || (i_do_calc == false)))
			{	save_file(form_in, i_section);	}

			form_in.action='index.php?u_page='+PAGE_ID+'&u_mod='+i_module;
			if ((i_do_calc != null) && (i_do_calc == true))
			{	mp_quote(srosenbear, true, form_in);	}
			else
			{	form_in.submit();	}
		}
	}

	var addToCart_obj = null;
	function add_to_cart(form_in, i_module, i_section)
	{
		if (IS_LOGGEDIN==true)
		{
			save_ad(form_in, i_section, false);
			var url_data = "";
			addToCart_obj = createRequestObject();
			ajaxSendRequest( "site", "mp_add_to_cart", url_data, addToCart_obj, handle_add_to_cart_results, null, null, false );
	
			form_in.action='index.php?u_page='+PAGE_ID+'&u_mod='+i_module;
			form_in.submit();
		}
		else
		{
			if (i_section)
			{	save_file(form_in, i_section);	}
	
			var response = '<div align="center" class="sz4"><br />You must be logged in to Marketplace in order to add this ad to your cart.<br /><br /><a href="javascript:marketplace_show_login_window();hideDisplay(\'floater-2\');">Show Login/Signup</a><br /><br /></div>';
			showFloater( 2, "Sorry", response, '500px', '150px' );
//			alert("You must be logged in to ad to cart.");
		}
	}

	function handle_add_to_cart_results()
	{
		if ( ajaxRequestComplete( addToCart_obj ) )
		{
			var response = trim( ajaxGetResponseText( addToCart_obj ) ); 
			if (DEBUG_MODE=="true")
			{	document.getElementById('save_results').innerHTML = response;	}
		} 
	}

	var saveAd_obj = null;
	function save_ad(form_in, i_section, i_alert)
	{
		if (IS_LOGGEDIN==true)
		{
			var show_alert=true;
			if (i_alert!=null)
			{	show_alert=i_alert;	}
	
			if (i_section)
			{	save_file(form_in, i_section);	}
	
			var url_data = "";
			saveAd_obj = createRequestObject();
			ajaxSendRequest( "site", "mp_adbuilder_save_ad", url_data, saveAd_obj, handle_save_ad_results, null, null, false );
	
			if (show_alert==true)
			{	alert("Your ad has been saved.");	}
		}
		else
		{
			var response = '<div align="center" class="sz4"><br />You must be logged in to Marketplace in order to save this ad.<br /><br /><a href="javascript:marketplace_show_login_window();hideDisplay(\'floater-2\');">Show Login/Signup</a><br /><br /></div>';
			showFloater( 2, "Sorry", response, '500px', '150px' );
//			alert("You must be logged in to save this ad.");
		}
	}

	function handle_save_ad_results()
	{
		if ( ajaxRequestComplete( saveAd_obj ) )
		{
			var response = trim( ajaxGetResponseText( saveAd_obj ) ); 
			if (DEBUG_MODE=="true")
			{	document.getElementById('save_results').innerHTML = response;	}
		}
	}

	var newAd_obj = null;
	function new_ad(i_page_number)
	{
		var url_data = "u_pg="+i_page_number;
		newAd_obj = createRequestObject();
		ajaxSendRequest( "site", "mp_adbuilder_new_ad", url_data, newAd_obj, handle_new_ad_results );

	}

	function handle_new_ad_results( )
	{ 
		if ( ajaxRequestComplete( newAd_obj ) )
		{
			var response = trim( ajaxGetResponseText( newAd_obj ) ); 
			if (DEBUG_MODE=="true")
			{	document.getElementById('save_results').innerHTML = response;	}
			document.base_form.action="index.php?u_page="+response+"&u_mod=1";
			document.base_form.submit();
		} 
	}

	var deleteAd_obj = null;
	function delete_ad( uId, aId)
	{
		if ( confirm ( 'Are You sure you wish to delete this ad?' ) )
		{
			var url_data = 'u_uid=' + uId + '&u_aid=' + aId;
			deleteAd_obj = createRequestObject();
			ajaxSendRequest( "site", "mp_adbuilder_delete_ad", url_data, deleteAd_obj, handle_delete_ad_results );
		}
	}

	function handle_delete_ad_results( )
	{ 
		if ( ajaxRequestComplete( deleteAd_obj ) )
		{
			var response = trim( ajaxGetResponseText( deleteAd_obj ) ); 
			if (DEBUG_MODE=="true")
			{	document.getElementById('save_results').innerHTML = response;	}
			
			window.location.replace( CURRENT_URL );
		} 
	}

	var build_gotcha_obj = null;
	function build_gotcha_list( idValue )
	{
		showFloater( 1, "Choose Attention Getter", '<br /><p align="center">Loading ad, please wait ...</p>', '620px', '400px' );
		var url_data = 'u_id=' + idValue;
		build_gotcha_obj = createRequestObject();
		ajaxSendRequest( "site", "mp_build_gotcha_ctrl", url_data, build_gotcha_obj, handle_build_gotcha_list ); 
	}
	
	function handle_build_gotcha_list( )
	{ 
		if ( ajaxRequestComplete( build_gotcha_obj ) )
		{
			var response = trim( ajaxGetResponseText( build_gotcha_obj ) ); 
			if (DEBUG_MODE=="true")
			{	document.getElementById('save_results').innerHTML = ("<pre>"+htmlentity(response)+"<pre>");	}

			showFloater( 1, "Choose Attention Getter", response, '620px', '400px' );
		} 
	}

	var popup_display_obj = null;
	function popup_display_byKey( iKey, iId, iId2 )
	{
		var oKey = ((iKey!=null) ? iKey : "default");
		var oID = ((iId!=null) ? iId : -1);
		var oID2 = ((iId2 != null) ? iId2 : -1);

		popup_display_obj = createRequestObject();
		var url_data = "u_key=" + oKey+((oID>0) ? ("&u_id=" + oID) : "") + ((oID2>0) ? ("&u_id2=" + oID2) : "");
		ajaxSendRequest( "site", "mp_popup_display_byKey", url_data, popup_display_obj, handle_popup_display_byKey ); 
	}
	
	function handle_popup_display_byKey( )
	{ 
		if ( ajaxRequestComplete( popup_display_obj ) )
		{
			var response = trim( ajaxGetResponseText( popup_display_obj ) ); 
			if (DEBUG_MODE=="true")
			{	document.getElementById('save_results').innerHTML = ("<pre>"+htmlentity(response)+"<pre>");	}
			parts = response.split('!##!');
			showFloater( parts[0], parts[1], parts[2], parts[3], parts[4] );
			if (document.getElementById('disp_price'))
			{	show_quote_button();	}
		} 
	}

	var saveFile_obj = null;
	function save_file(form_in, i_section)
	{
		if (i_section)
		{
			var url_data = "u_form="+i_section;
			saveFile_obj = createRequestObject();

			var post_xml_doc = convertFormToXml( form_in, null, true );
			ajaxSendRequest( 'site', 'mp_buildXML', url_data, saveFile_obj, handle_save_file_results, post_xml_doc, 'xml', false ); 
			handle_save_file_results(); //wait till done fix
		}
	}

	function handle_save_file_results()
	{
		if ( ajaxRequestComplete( saveFile_obj ) )
		{
			var response = trim( ajaxGetResponseText( saveFile_obj ) ); 
			if (DEBUG_MODE=="true")
			{	document.getElementById('save_results').innerHTML = response;	}
		}
	}

var mp_quote_http_obj	= null;
var mp_quote_ok			= "?";
var quote_is_visible	= false;
function mp_quote(type, nowait, form_in)
{
	var url_data = ((form_in != null) ? ("u_frmjoe="+form_in.name) : "");
	mp_quote_ok = "?";
	populateDiv( "disp_price", "Calculating ...<br />" );

	if (srosenbear!="skip")
	{
		if (type == "ad")
		{	save_ad(document.base_form, srosenbear, false);	}
		else
		{	save_file(document.base_form, srosenbear);	}
	}
	mp_quote_http_obj = createRequestObject();
	ajaxSendRequest( "site", "mp_quote", url_data, mp_quote_http_obj, handle_mp_quote, null, null, nowait );
}

function handle_mp_quote( )
{
	if ( ajaxRequestComplete( mp_quote_http_obj ) )
	{
		var responseText = trim( ajaxGetResponseText( mp_quote_http_obj ) );
		var frm = responseText.split("##");
		var msg = frm[0].split(":");

		quote_is_visible = false;
		if (msg[0] != "ok")
		{
			mp_quote_ok = "N";
			show_quote_button();
			alert(msg[1]);
		}
		else
		{
			mp_quote_ok = "Y";
			populateDiv("disp_price", msg[1] );

			if (frm[1] != "")
			{	eval("document."+frm[1]+".submit();");	}
		}
	}
}

function show_quote_button()
{
	if (quote_is_visible == false)
	{
		populateDiv('disp_price', '<a href="javascript:update_preview();mp_quote(\'file\', true);"><img src="neo-images/marketplace/mini_update.gif" /></a>' );
		quote_is_visible = true;
	}

} 
	 	
function toglIm(parEl, evt, onSrc, offSrc)
{
	var imgEl = ((evt.target) ? evt.target :  evt.srcElement);

	if ( (imgEl.nodeName != "IMG") || (imgEl.id != "radio") )
	{	return false;	}

	if (document.getElementById('disp_price'))
	{	show_quote_button();	}

	var imgckd = ((parEl.attributes["value"]) ? parEl.attributes["value"] : parEl.value),
		images=new Array(),
		temp_images = parEl.getElementsByTagName("IMG");

	var j = 0;
	for (i=0; i<temp_images.length;i++)
	{
		if (temp_images[i].id == "radio")
		{
			images[j]=temp_images[i];
			j++;
		}
	}

	for (i=0; i<images.length;i++)
	{
		if (images[i] != imgEl)
		{	images[i].src = offSrc;	}
		else
		{
			images[i].src = onSrc;
			imgckd = i;
		}
	}
	adjust_schedule(imgckd);
}

	var adjust_schedule_obj = null;
	function adjust_schedule( iId )
	{
		adjust_schedule_obj = createRequestObject();
		var url_data = "u_id=" + ((iId!=null) ? iId : 0);
		ajaxSendRequest( "site", "mp_adbuilder_adjust_schedule", url_data, adjust_schedule_obj, handle_adjust_schedule ); 
	}
	
	function handle_adjust_schedule( )
	{ 
		if ( ajaxRequestComplete( adjust_schedule_obj ) )
		{
			var response = trim( ajaxGetResponseText( adjust_schedule_obj ) ); 
			if (DEBUG_MODE=="true")
			{	document.getElementById('save_results').innerHTML = response;	}
		} 
	}

function open_task_win(url)
	{
		var features = "width=640,height=480,resizable=1,toolbar=1,scrollbars=1";  

		wnd = window.open(url, 'Task_window', features);
		wnd.focus();
	}
	
function open_help_win(url)
	{
		var features = "width=770,height=680,resizable=0,toolbar=0,scrollbars=1";  

		wnd = window.open(url, 'Task_window', features);
		wnd.focus();
	}




/////////////////////////////////////////////
//    include: site-js/marketplace/autos.js
/////////////////////////////////////////////
	var auto_chg_obj = createRequestObject();
	function on_auto_chg(form_in, field_in, save_me)
	{
		var txtOut = "";
		var url_data = "";
		save_me = ((save_me==null) ? false : save_me);

		if( (field_in =="f_chrome_make") && (form_in.f_chrome_model) )
		{
			if(form_in.f_chrome_model) { form_in.f_chrome_model.selectedIndex=-1; }
			if(form_in.f_year)  { form_in.f_year.selectedIndex=-1; }
			if(form_in.f_body)  { form_in.f_body.selectedIndex=-1; }
		}
		if( (field_in =="f_chrome_model") && (form_in.f_year) )
		{
			if(form_in.f_year)  { form_in.f_year.selectedIndex=-1; }
			if(form_in.f_body)  { form_in.f_body.selectedIndex=-1; }
		}
		if( (field_in =="f_year") && (form_in.f_body) )
		{
			if(form_in.f_body)  { form_in.f_body.selectedIndex=-1; }
		}

		if (save_me==true)
		{	save_file(document.base_form, "online");	}
		ajaxSendRequest( "site", "mp_auto_parser", url_data, auto_chg_obj, handle_mp_auto_response);
	}

	function handle_mp_auto_response()
	{
		if ( ajaxRequestComplete( auto_chg_obj ) )
		{
			var response = trim( ajaxGetResponseText( auto_chg_obj ) ); 
			document.getElementById('auto_type').innerHTML = response;
		} 
	}

	var pop_obj = createRequestObject();
	function pop_calc()
	{
		var url_data = "";
		ajaxSendRequest( "site", "show_auto_calc", url_data, pop_obj, handle_pop_calc_results );
	}

	function handle_pop_calc_results( )
	{ 
		if ( ajaxRequestComplete( pop_obj ) )
		{
			var response = trim( ajaxGetResponseText( pop_obj ) ); 
			showFloater(1, 'Payment Calculator', response, '480px', '245px');
		} 
	}

	function compute(frm_in)
	{
		var basecost = 0, taxtotal = 0, subtotal = 0;
		var finpct = 0, pow = 1;

		if ((frm_in.f_payments.value == null) || (frm_in.f_payments.value < 0))
		{
			frm_in.f_payments.value = 1;
		}

		if ((frm_in.f_cost.value == null) || (frm_in.f_cost.value < 0))
		{
			frm_in.f_cost.value = 10000;
		}

		if ((frm_in.f_destchg.value == null) || (frm_in.f_destchg.value < 0))
		{
			frm_in.f_destchg.value = 0;
		}

		if ((frm_in.f_tradein.value == null) || (frm_in.f_tradein.value < 0))
		{
			frm_in.f_tradein.value = 0;
		}

		if ((frm_in.f_tax.value == null) || (frm_in.f_tax.value < 0))
		{
			frm_in.f_tax.value = 6.5;
		}

		if ((frm_in.f_rebates.value == null) || (frm_in.f_rebates.value < 0))
		{
			frm_in.f_rebates.value = 0;
		}

		if ((frm_in.f_moneydown.value == null) || (frm_in.f_moneydown.value < 0))
		{
			frm_in.f_moneydown.value = 0;
		}

		basecost=(((frm_in.f_cost.value * 1.0) + (frm_in.f_destchg.value * 1.0)) - frm_in.f_tradein.value);
		if (basecost < 0)
		{	basecost = 0;	}

		taxtotal = ((basecost * (frm_in.f_tax.value * 0.01)) + basecost);
		if (taxtotal < 0)
		{	taxtotal = 0;	}

		subtotal = (taxtotal - ((frm_in.f_rebates.value * 1.0) + (frm_in.f_moneydown.value * 1.0)));
		if (subtotal < 0)
		{	subtotal = 0;	}

		frm_in.f_finamt.value = subtotal;

		finpct = ((frm_in.f_finrate.value * 0.01) / 12);
		if (finpct > 0.0)
		{
			for (var xx = 0; xx < (frm_in.f_payments.value * 1.0); xx++)
			{ 	pow *= (1 + finpct);	}

			frm_in.f_permonth.value = Math.round(((frm_in.f_finamt.value * 1.0) * pow * finpct) / (pow - 1));
		}
		else
		{
			frm_in.f_permonth.value = Math.round((frm_in.f_finamt.value * 1.0) / (frm_in.f_payments.value * 1.0));
		}
	}




/////////////////////////////////////////////
//    include: site-js/marketplace/base_search.js
/////////////////////////////////////////////
var mp_search_http_obj = null;

var curr_profile_index = 0;
var profile_id_list = null;
var mp_email_win_height = "490px";

	function mp_clear_results_storage( )
	{
		curr_profile_index = 0;
		profile_id_list = null;
	}

	function mp_show_online_ad( profileID )
	{
		var URL = location.href.replace(/(u_page=[0-9]+)(.*)/,"$1");
		window.location=URL+"&u_mod=adDisplay&u_id="+profileID;
	}

	function handle_mp_show_online_ad( )
	{
		if ( ajaxRequestComplete( mp_search_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( mp_search_http_obj ) );
			ajaxPopulateDiv( 'dyn_mp_ad_window', responseText );
		}
	}

	function mp_perform_search( search_form_in )
	{
		if ( lockSearch == "false" )
		{
			lockSearch="true";
			showSearching();

			mp_search_http_obj = createRequestObject();
			var hdlr_name = 'mp_' + search_form_in.f_mp_sect.value + '_search_exec';
			var post_xml_doc = convertFormToXml( search_form_in );
			ajaxSendRequest( 'site', hdlr_name, '', mp_search_http_obj, handle_new_search, post_xml_doc, 'xml' );
		}
	}

	function handle_mp_perform_search( )
	{
		if ( ajaxRequestComplete( mp_search_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( mp_search_http_obj ) );
			if ( responseText == '<search_failure />' )
			{
				ajaxPopulateDiv( 'dyn_mp_search_window', '<br /><br /><p align="center">Failure Executing Search</p>' );
			}
			else
			{
				mp_clear_results_storage();
				ajaxPopulateDiv( 'dyn_mp_search_window', responseText );
			}
		}
	}

	function handle_search_chg_panel( )
	{
		if ( ajaxRequestComplete( mp_search_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( mp_search_http_obj ) );
			if ( responseText == '<panel_load_failure />' )
			{
				ajaxPopulateDiv( 'dyn_mp_search_sel', '<br /><br /><p align="center">Error loading Auto Data</p>' );
			}
			else
			{
//				showDisplay( 'dyn_mp_search_window' );
				ajaxPopulateDiv( 'dyn_mp_search_sel', responseText );
			}
		}
	}

	function mp_results_show_offset( new_offset )
	{
		var URL = location.href.replace(/(.*)(&u_offset=[0-9]+)(.*)/,"$1");
		var NEWURL = URL+"&u_offset="+new_offset;
		window.location=NEWURL;
	}

	function mp_reorder_results( )
	{
		mp_search_http_obj = createRequestObject();
		var post_xml_doc = convertFormToXml( document.f_mp_search_result_form );

		showSearching();
		ajaxSendRequest( 'site', 'mp_search_reorder', '', mp_search_http_obj, handle_new_search, post_xml_doc, 'xml' );
	}

	function handle_mp_reorder_results( )
	{
		scrollTo(0,0);
		if ( ajaxRequestComplete( mp_search_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( mp_search_http_obj ) );
			if ( responseText == '<reorder_failure />' )
			{
				ajaxPopulateDiv( 'dyn_mp_search_results_table', '<br /><br /><p align="center">Failure Reordering results</p>' );
			}
			else
			{
				mp_clear_results_storage();
				ajaxPopulateDiv( 'dyn_mp_search_results_table', responseText );
			}
		}
	}

	function mp_email_friend( idValue )
	{
		mp_saved_search_http_obj = createRequestObject();
		var url_data = 'u_id=' + idValue;
		showFloater( 1, 'Email Friend', '( Loading form, please wait ... )', null, mp_email_win_height );
		ajaxSendRequest( 'site', 'mp_email_friend', url_data, mp_saved_search_http_obj, handle_mp_email_friend   );
	}

	function handle_mp_email_friend( )
	{
		if ( ajaxRequestComplete( mp_saved_search_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( mp_saved_search_http_obj ) );
			showFloater( 1, 'Email Friend', responseText, null, mp_email_win_height );
		}
	}

	function mp_send_email_to_friend( form_in )
	{
		mp_saved_search_http_obj = createRequestObject();
		var post_xml_doc = convertFormToXml( form_in );
		showFloater( 1, 'Email Friend', '( Sending email ... )', null, mp_email_win_height);
		ajaxSendRequest( 'site', 'mp_send_email_to_friend', '', mp_saved_search_http_obj, handle_mp_email_friend, post_xml_doc, 'xml'  );
	}

	function mp_email_advertiser( idValue, rqst_type )
	{
		mp_saved_search_http_obj = createRequestObject();
		var url_data = 'u_id=' + idValue + '&u_type=' + rqst_type;
		showFloater( 1, ('Request ' + rqst_type), '( Loading form, please wait ... )', null, mp_email_win_height);
		ajaxSendRequest( 'site', 'mp_email_advertiser', url_data, mp_saved_search_http_obj, handle_mp_email_advertiser   );
	}

	function handle_mp_email_advertiser( )
	{
		if ( ajaxRequestComplete( mp_saved_search_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( mp_saved_search_http_obj ) );
			showFloater( 1, 'Request Info', responseText, null, mp_email_win_height );
		}
	}

	function mp_send_email_to_advertiser( form_in )
	{
		mp_saved_search_http_obj = createRequestObject();
		var post_xml_doc = convertFormToXml( form_in );
		showFloater( 1, 'Request Info', '( Sending email ... )', null, mp_email_win_height );
		ajaxSendRequest( 'site', 'mp_send_email_to_advertiser', '', mp_saved_search_http_obj, handle_mp_email_advertiser, post_xml_doc, 'xml'  );
	}

	function mp_new_search()
	{
		window.location = D_SRVR_NAME_SAXO + 'section/autos';
	}

	function mp_back_to_results()
	{
		scrollTo(0,0);
		hideDisplay( document.getElementById( 'dyn_mp_ad_window' ) );
		showDisplay( document.getElementById( 'dyn_mp_search_window' ) );
	}

	function mp_send_advertiser_email()
	{
		var email_form = document.f_mp_advertiser_email_form;
		okToSubmit_form = true;

		checkField(email_form.f_sender_name, "You must supply a name.");
		checkField(email_form.f_sender_email, "You must supply an e-mail address.");
		checkField(email_form.f_sender_email, "", "email");

		if (okToSubmit_form == true)
		{
			mp_send_email_to_advertiser( email_form );
		}
	}

	function mp_send_friend_email()
	{
		var email_form = document.f_mp_friend_email_form;
		okToSubmit_form = true;

		checkField(email_form.f_friend_email, "You must supply a friend\'s e-mail address.");
		checkField(email_form.f_friend_email, "", "email");

		checkField(email_form.f_sender_name, "You must supply a name.");
		checkField(email_form.f_sender_email, "You must supply an e-mail address.");
		checkField(email_form.f_sender_email, "", "email");

		if (okToSubmit_form == true)
		{
			mp_send_email_to_friend( email_form );
		}
	}

	function showSearching()
	{
		if ( document.getElementById("searchingDiv") == null )
		{
			newDiv = document.createElement("div");
			newDiv.innerHTML = "<iframe class=\"searchImg\" id=\"floater-1-innerframe\" src=\"neo-images/fills/blank.gif\"></iframe>"
							+	"<div id=\"floater-1-innerdiv\">"
							+	"<img src=\"neo-images/misc/searching.gif\" alt=\"\" />"
							+	"</div>";//+"<a href=\"javascript:hideSearching()\">hide</a>";

			var scrollXY = getScrollXY();
			var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body

			var parentWindowWidth = ((IS_SAFARI=="true") ? window.innerWidth : iebody.clientWidth);
			var parentWindowHeight = ((IS_SAFARI=="true") ? window.innerHeight : iebody.clientHeight);
			var override_X = ((parentWindowWidth - 330) / 2)+scrollXY["X"];
			var override_Y = ((parentWindowHeight - 110) / 2)+scrollXY["Y"];

			if(override_X < 1)
			{	override_X = 1;		}
			override_X = override_X+"px";

			if(override_Y < 1)
			{	override_Y = 1;		}
			override_Y = override_Y+"px";

			newDiv.id = "searchingDiv";
			newDiv.style.position = "absolute";
			newDiv.style.visibility = "visible";
			newDiv.style.display = "block";
			newDiv.style.left = override_X;
			newDiv.style.top = override_Y;

			document.body.appendChild(newDiv);
		}
	}

	function hideSearching()
	{
		if ( document.getElementById("searchingDiv") != null )
		{
			var searchingDiv = document.getElementById("searchingDiv");
			document.body.removeChild(newDiv);
		}
	}

	function handle_new_search()
	{
		if ( ajaxRequestComplete( mp_search_http_obj ) )
		{
			lockSearch="false";
			var responseText = trim( ajaxGetResponseText( mp_search_http_obj ) );
			if (responseText=="results")
			{
				var URL = "";
				if (location.href.indexOf("u_page")<0)
				{
					if (location.href.indexOf("u_search")<0)
					{
						URL = location.href+"?";
					}
					else
					{
						URL = location.href.substr(0,location.href.indexOf("u_search"));
					}
				}
				else
				{
					URL = location.href.replace(/(u_page=[0-9]+)(.*)/,"$1")+"&";
				}

				window.location=URL+"u_search=true";
			}
			else
			{
				hideSearching();
				showFloater(1, 'We\'re Sorry', responseText, "400px", "200px");
			}
		}
	}





/////////////////////////////////////////////
//    include: site-js/marketplace/auto_search.js
/////////////////////////////////////////////
	function mp_auto_search_chg_panel( field_in )
	{
		mp_search_http_obj = createRequestObject();
		var srch_form = document.f_mp_power_search_form;

		if ( field_in == "type" )
		{
			if ( srch_form.f_mp_auto_search_make != undefined )
			{
				srch_form.f_mp_auto_search_make.options[ srch_form.f_mp_auto_search_make.selectedIndex ].value = -1;
			}
		}

		if ( field_in == "type" || field_in == "make" )
		{
			if ( srch_form.f_mp_auto_search_model != undefined )
			{
				srch_form.f_mp_auto_search_model.options[ srch_form.f_mp_auto_search_model.selectedIndex ].value = -1;
			}
		}

		var post_xml_doc = convertFormToXml( srch_form );
		ajaxSendRequest( 'site', 'mp_auto_search_panel_update', '', mp_search_http_obj, handle_search_chg_panel, post_xml_doc, 'xml' );
	}

	var lockSearch="false";
	function mp_auto_power_search_exec()
	{
		if ( lockSearch == "false" )
		{
			lockSearch="true";
			showSearching();

			var curr_search_form = document.f_mp_power_search_form;

			if ( curr_search_form.f_mp_auto_search_make != undefined )
			{
				if ( curr_search_form.f_mp_auto_search_make.options[ curr_search_form.f_mp_auto_search_make.selectedIndex ].value == -1 )
				{
					curr_search_form.f_mp_auto_search_make.options[ curr_search_form.f_mp_auto_search_make.selectedIndex ].value = '*';
				}
			}

			if ( curr_search_form.f_mp_auto_search_model != undefined )
			{
				if ( curr_search_form.f_mp_auto_search_model.options[ curr_search_form.f_mp_auto_search_model.selectedIndex ].value == -1 )
				{
					curr_search_form.f_mp_auto_search_model.options[ curr_search_form.f_mp_auto_search_model.selectedIndex ].value = '*';
				}
			}

			mp_search_http_obj = createRequestObject();
			var post_xml_doc = convertFormToXml( curr_search_form );
			ajaxSendRequest( 'site', 'mp_auto_search_exec', '', mp_search_http_obj, handle_new_search, post_xml_doc, 'xml' );
		}
	}

	function mp_auto_dealer_search( dealer_id, isFromDetailPage )
	{
		if ( lockSearch == "false" )
		{
			lockSearch="true";
			showSearching();

			isFromDetailPage = ( isFromDetailPage == null ? false : isFromDetailPage );
			var newForm = document.createElement( 'form' );
			newForm.name = "f_mp_dealer_search_form";
			newForm.id = "f_mp_dealer_search_form";
			newForm.style.display = "none";
			newForm.style.visibility = "hidden";

			var new_f_mp_sect = document.createElement( "input" );
			new_f_mp_sect.name = "f_mp_sect";
			new_f_mp_sect.value = "auto";
			new_f_mp_sect.type = "hidden";

			var new_dealer_id = document.createElement( "input" );
			new_dealer_id.name = "f_mp_auto_search_company_id";
			new_dealer_id.value = dealer_id;
			new_dealer_id.type = "hidden";

			var new_f_mp_auto_search_type = document.createElement( "input" );
			new_f_mp_auto_search_type.name = "f_mp_auto_search_type";
			new_f_mp_auto_search_type.value = "*";
			new_f_mp_auto_search_type.type = "hidden";

			var new_f_mp_auto_search_make = document.createElement( "input" );
			new_f_mp_auto_search_make.name = "f_mp_auto_search_make";
			new_f_mp_auto_search_make.value = "*";
			new_f_mp_auto_search_make.type = "hidden";

			var new_f_mp_auto_search_model = document.createElement( "input" );
			new_f_mp_auto_search_model.name = "f_mp_auto_search_model";
			new_f_mp_auto_search_model.value = "*";
			new_f_mp_auto_search_model.type = "hidden";

			var new_f_mp_auto_search_mileage_range = document.createElement( "input" );
			new_f_mp_auto_search_mileage_range.name = "f_mp_auto_search_mileage_range";
			new_f_mp_auto_search_mileage_range.value = "*";
			new_f_mp_auto_search_mileage_range.type = "hidden";

			var new_f_mp_auto_search_price_range = document.createElement( "input" );
			new_f_mp_auto_search_price_range.name = "f_mp_auto_search_price_range";
			new_f_mp_auto_search_price_range.value = "*";
			new_f_mp_auto_search_price_range.type = "hidden";

			var new_f_mp_auto_search_mileage_range = document.createElement( "input" );
			new_f_mp_auto_search_mileage_range.name = "f_mp_auto_search_mileage_range";
			new_f_mp_auto_search_mileage_range.value = "*";
			new_f_mp_auto_search_mileage_range.type = "hidden";

			var new_f_mp_search_rpp = document.createElement( "input" );
			new_f_mp_search_rpp.name = "f_mp_search_rpp";
			new_f_mp_search_rpp.value = "20";
			new_f_mp_search_rpp.type = "hidden";

			newForm.appendChild( new_f_mp_sect );
			newForm.appendChild( new_dealer_id );
			newForm.appendChild( new_f_mp_auto_search_type );
			newForm.appendChild( new_f_mp_auto_search_make );
			newForm.appendChild( new_f_mp_auto_search_model );
			newForm.appendChild( new_f_mp_auto_search_mileage_range );
			newForm.appendChild( new_f_mp_auto_search_price_range );
			newForm.appendChild( new_f_mp_auto_search_mileage_range );
			newForm.appendChild( new_f_mp_search_rpp );

			saveClicksOnly( "dealersearch:" + dealer_id, "DealerSearch" )

			mp_search_http_obj = createRequestObject();
			var post_xml_doc = convertFormToXml( newForm );
			ajaxSendRequest( 'site', 'mp_auto_search_exec', '', mp_search_http_obj, handle_new_search, post_xml_doc, 'xml' );
		}
	}




/////////////////////////////////////////////
//    include: site-js/marketplace/saved_search_ads.js
/////////////////////////////////////////////
var mp_saved_search_http_obj = null;

	function mp_remove_saved_ads( form_in, all_or_marked )
	{
		var currElem = null, currName = null;
		var splitID = null, idValue = null;
		var removeList = '';
		var removeCtr = 0;

		for ( var xx=0; xx < form_in.length; xx++ )
		{
			currElem = form_in.elements[xx];
			currName = currElem.name;
			if ( currName.substr( 0, 10 ) == 'f_saved_ad' )
			{
				splitID = currName.split( '-' );
				idValue = splitID[1];
				if ( currElem.checked || all_or_marked == 'all' )
				{
					removeList += ( idValue + ' ' );
					removeCtr++;
				}
			}

		} // end for

		if ( removeCtr > 0 && confirm( 'Are you sure that you wish to remove ' + removeCtr + ' saved ad(s)?' ) )
		{
			mp_saved_search_http_obj = createRequestObject();
			var url_data = 'u_ids=' + trim( removeList );
			ajaxPopulateDiv( 'dyn_mp_search_window', '<br /><br /><p align="center" class="mp_search_wait"><br />Removing Saved Ad(s)<br />Please wait ...<br /><br /></p>' );
			ajaxSendRequest( 'site', 'mp_remove_saved_ads', url_data, mp_saved_search_http_obj, handle_mp_remove_saved_ads );
		}
	}

	function handle_mp_remove_saved_ads( )
	{
		if ( ajaxRequestComplete( mp_saved_search_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( mp_saved_search_http_obj ) );
			ajaxPopulateDiv( 'dyn_mp_search_window', responseText );
		}
	}

	function mp_remove_saved_search( idValue )
	{
		if ( confirm( 'Are you sure that you wish to remove this saved search?' ) )
		{
			mp_saved_search_http_obj = createRequestObject();
			var url_data = 'u_id=' + idValue
			ajaxSendRequest( 'site', 'mp_remove_saved_search', url_data, mp_saved_search_http_obj, handle_mp_remove_saved_search   );
		}
	}

	function mp_modify_saved_search( idValue, ssMod )
	{
		mp_saved_search_http_obj = createRequestObject();
		var url_data = 'u_id=' + idValue + '&u_ssmod=' + ssMod;
		ajaxSendRequest( 'site', 'mp_modify_saved_search', url_data, mp_saved_search_http_obj, handle_mp_remove_saved_search   );
	}

	function handle_mp_remove_saved_search( )
	{
		if ( ajaxRequestComplete( mp_saved_search_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( mp_saved_search_http_obj ) );
			ajaxPopulateDiv( 'dyn_mp_saved_search_window', responseText );
		}
	}

	function mp_search_save( )
	{
		if ( confirm( 'Would you like free 30-day e-mail alerts for this saved search?' ) )
		{
			document.f_mp_search_result_form.f_ss_email_alert.value = 'true';
		}

		mp_search_http_obj = createRequestObject();
		var post_xml_doc = convertFormToXml( document.f_mp_search_result_form );
		showFloater( 3, 'Save Search', '<br /><br /><p align="center" class="mp_search_wait"><br />Saving Your Search<br />Please wait ...<br /><br /></p>', '650px', '650px', '#fff' );
		ajaxSendRequest( 'site', 'mp_save_search', '', mp_search_http_obj, handle_mp_search_save, post_xml_doc, 'xml'  );
	}

	function handle_mp_search_save( )
	{
		if ( ajaxRequestComplete( mp_search_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( mp_search_http_obj ) );
			showFloater( 3, 'Save Search', responseText, '650px', '650px', '#fff' );
		}
	}

	function mp_save_ad( adID )
	{
		mp_search_http_obj = createRequestObject();
		var url_send = 'u_id=' + adID;
		showFloater( 3, 'Ad Save', '<br /><br /><p align="center" class="mp_search_wait"><br />Saving Your Ad<br />Please wait ...<br /><br /></p>', '550px', '400px', '#fff' );
		ajaxSendRequest( 'site', 'mp_save_ad', url_send, mp_search_http_obj, handle_mp_save_ad   );
	}

	function handle_mp_save_ad( )
	{
		if ( ajaxRequestComplete( mp_search_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( mp_search_http_obj ) );
			showFloater( 3, 'Ad Save', responseText, '550px', '400px', '#fff' );
		}
	}

	function mp_reorder_saved_ads( )
		{
			mp_search_http_obj = createRequestObject();
			var post_xml_doc = convertFormToXml( document.f_mp_search_result_form );
			ajaxPopulateDiv( 'dyn_mp_search_results_table', '<br /><br /><p align="center" class="mp_search_wait"><br />Reordering records, Please wait ...<br /><br /></p>' );
			ajaxSendRequest( 'site', 'mp_reorder_saved_ads', '', mp_search_http_obj, handle_mp_reorder_saved_ads, post_xml_doc, 'xml' );
		}

	function handle_mp_reorder_saved_ads( )
	{
		if ( ajaxRequestComplete( mp_search_http_obj ) )
		{
			var responseText = trim( ajaxGetResponseText( mp_search_http_obj ) );
			if ( responseText == '<reorder_failure />' )
			{
				ajaxPopulateDiv( 'dyn_mp_search_results_table', '<br /><br /><p align="center">Failure Reordering results</p>' );
			}
			else
			{
				mp_clear_results_storage();
				ajaxPopulateDiv( 'dyn_mp_search_results_table', responseText );
			}
		}
	}

	function mp_repeat_saved_search( idVal )
	{
		window.location = 'index.php?u_page=' + PAGE_ID + '&u_saved_search_id=' + idVal;
	}

	function	mp_remove_marked_saved_ads()
	{
		mp_remove_saved_ads( document.f_mp_search_result_form, 'marked' );
	}

	function	mp_remove_all_saved_ads()
	{
		mp_remove_saved_ads( document.f_mp_search_result_form, 'all' );
	}




/////////////////////////////////////////////
//    include: site-js/marketplace/chrome_video.js
/////////////////////////////////////////////
	varPageTop = "";
	$(document).ready(function()
	{
	   $().click(function(e){varPageTop =e.pageY-100;}); 
	});

	function popVideoShowcase(videoShowcaseID)
	{
		$( "#videoShowcase_large" ).html('<iframe id="videoShowcase_large_frame" style="border: 2px solid #A62650; position: absolute; top: '+varPageTop+'px; left: 300px; z-index: 999; height: 440px; width: 486px;" scrolling="no" src="chrome_video.php?u_vidID='+videoShowcaseID+'" ></iframe>');
		$( "#videoShowcase_large" ).show();
	}

	function closeVideoShowcase()
	{
		$( "#videoShowcase_large" ).hide();
		$( "#videoShowcase_large" ).html("");
	}

	function popVideoAd(url)
	{
		$( "#videoShowcase_large" ).html('<iframe id="videoShowcase_large_frame" style="border: 2px solid #A62650; position: absolute; top: '+(varPageTop-50)+'px; left: 400px; z-index: 999; height: 290px; width: 320px;" scrolling="no" src="dmc_video.php?u_url='+url+'" ></iframe>');
		$( "#videoShowcase_large" ).show();
	}




