	if (document.images) {
		
		var onImgArray = new Array();
onImgArray["LR"] = new Image();
onImgArray["UKR"] = new Image();
onImgArray["Party"] = new Image();

onImgArray["LR"].src = "http://images.hardens.com/images/roundels/LR-roundel-rollover.gif";
onImgArray["UKR"].src = "http://images.hardens.com/images/roundels/UKR-roundel-rollover.gif";
onImgArray["Party"].src = "http://images.hardens.com/images/roundels/Party-roundel-rollover.gif";

var offImgArray = new Array();
offImgArray["LR"] = new Image();
offImgArray["UKR"] = new Image();
offImgArray["Party"] = new Image();

offImgArray["LR"].src = "http://images.hardens.com/images/roundels/LR-roundel.gif";
offImgArray["UKR"].src = "http://images.hardens.com/images/roundels/UKR-roundel.gif";
offImgArray["Party"].src = "http://images.hardens.com/images/roundels/Party-roundel.gif";


Image_1= new Image()
Image_1.src = "http://images.hardens.com/images/party/p_work/services-finder-topslice.gif"

Image_2= new Image()
Image_2.src = "http://images.hardens.com/images/party/p_work/services-finder-handle1.gif"

Image_3= new Image()
Image_3.src = "http://images.hardens.com/images/party/p_work/services-finder-handle2.gif"


	}

function imageOn(imgName) {
	if (document.images) {
		document.images[imgName].src = onImgArray[imgName].src;
		}
	}

function imageOff(imgName) {
	if (document.images) {
		document.images[imgName].src = offImgArray[imgName].src;
		}
	}


function openWindow() {
newWind = window.open("","new","width=450,height=300,left=300,top=130,location,scrollbar,toolbar,resizable");
}

// Toggles visibility of a div. Used in collapsible search sidebars
function ToggleDiv(divName) {
	var contentDiv = document.getElementById(divName);
	
	if (contentDiv.style.display == "block")
		contentDiv.style.display = "none";
	else
		contentDiv.style.display = "block";
}

// Macromedia image swap functionality
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// Adds mouseover functionality to the restaurant search results table
function AddSearchRollovers() {
	
	var tables = document.getElementsByTagName("table");
	
	for(var x=0;x!=tables.length;x++){
		var table = tables[x];
		
		if (! table) { return; }
		
		if (table.className == "pricerange_table") {
			
			var trs = table.getElementsByTagName("tr");
			
			for (var i = 0; i < trs.length; i++) {
				trs[i].onmouseover=function(){
					this.className += " over"; return false
				}
				trs[i].onmouseout=function(){
					this.className = this.className.replace("over", ""); return false
				}
			}

		}
	}
}

// If this is the restaurant search results page, call the above function when the page loads
if (document.location.href.indexOf("restaurant_search.php") > -1) {
	window.onload = AddSearchRollovers;
}


// Used on home page for quicksearch
var curr_quick = "rest";

function ToggleQuicks(section) {
	
	curr_quick = section;

	// Hide both quick searches to begin with
	document.getElementById("quicks_rest").style.display = "none";
	document.getElementById("quicks_party").style.display = "none";

	// Display the selected section only
	document.getElementById("quicks_" + section).style.display = "block";
	
	// Change the quick search toggle buttons to indicate which is "on"
	var rest_image = document.getElementById("Image11");
	var party_image = document.getElementById("Image12");
	
	switch (section) {
		case "rest":
			rest_image.src = 'http://images.hardens.com/images/b/new_b/sidebars/quicksearch_rest.gif';
			party_image.src = 'http://images.hardens.com/images/b/new_b/sidebars/quicksearch_venues_.gif';
			break;
		case "party":
			rest_image.src = 'http://images.hardens.com/images/b/new_b/sidebars/quicksearch_rest_.gif';
			party_image.src = 'http://images.hardens.com/images/b/new_b/sidebars/quicksearch_venues.gif';
			break;
	}
}

// Constructs a querystring for submission to the login page
/*function Login() {	
	
	// Get the current querystring, if one exists
	var strQString = window.location.search.substring(1);
	
	// Add any POSTed variables
	
	
	
	alert(strQString);	
}*/



// Opens a window to allow addition of current page to deli.cio.us
function DeliciousPost() {	
	window.open('http://del.icio.us/post?v=4&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=700,height=400');	
	return false;	
}

// Attempts to add the current page to the user's bookmarks..
function AddBookmark(strUrl, strTitle) {
	if (window.sidebar) {
		window.sidebar.addPanel(strTitle, strUrl,"");
	}
	else if (document.all) {
		window.external.AddFavorite(strUrl, strTitle);
	}	
}


