
function g() {
	var url2= document.isn.Keywords.value;

	if (url2.length<1){
		alert("You must first enter search criteria in the field next to the search button.");
	} else {
	var theurl= ''; //'/SwishSearch?glo=1&max_res=200&Keywords=' + url2 ;

	if ($('method').value && $('method').value == 'within'){
		theurl= '/SwishSearch?Keywords=' + q_id + '&ex_keys=' + url2;
	} else {
		theurl= '/SwishSearch?Keywords=' + url2 ;
	}

	if (url2 != 'keywords') {
		//	if (parent.content.lb) {
		//		parent.content.left.location=theurl;
		//	} else {
		//		parent.content.location=theurl;
		//	}
		//alert(theurl);
		self.location=theurl;
		} else {
			alert('You must first type in keywords to search for.');
			document.isn.Keywords.focus();
		}
	}
}
	
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("NavBar");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="UL") {
				node.onmouseover=function() {
					this.className+=" over";
  				}
  				node.onmouseout=function() {
  					this.className=this.className.replace (" over", "");
				}
   			}
  		}
 	}
}
window.onload=startList;

startWine = function() {
	if (document.all&&document.getElementById) {
		navRootWine = document.getElementById("winesubnav");
		for (i=0; i<navRootWine.childNodes.length; i++) {
			nodeWine = navRootWine.childNodes[i];
			if (nodeWine.nodeName=="UL") {
				nodeWine.onmouseover=function() {
					this.className+=" SubNavOn";
  				}
  				nodeWine.onmouseout=function() {
  					this.className=this.className.replace (" SubNavOn", "");
   				}
   			}
  		}
 	}
}
window.onload=startWine;

function changeClass(element_id, new_class) {
	try {
		document.getElementById(element_id).className = new_class;
		}
	catch(err) {
		return ""
		}
	}

function openBigWin(thisUrl,h,w) 
 { 
      //alert("foobar!"); 
      BigWin = window.open(thisUrl, 'bigWin','scrollbars=yes,location=no,resizable=yes,toolbar=no,height='+h+',width='+w+',left=100,top=0');      
      if (window.focus) 
      { 
           BigWin.focus(); 
      } 
 }


