//------------------- for clearing and replacing text in form input fields and textareas -------------------//
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
} 
function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}

function addBookmark(title,url) { 
 if (window.sidebar) { 
 window.sidebar.addPanel(title, url,""); 
 } else if( document.all ) { 
 window.external.AddFavorite( url, title); 
 } else if( window.opera && window.print ) { 
 return true; 
} 
} 

function showdiv(id) {
   document.getElementById(id).style.display = 'block';
}

$(document).ready(function(){
//disjointed rollover function starting point
	
	$("#drop").hide();
	
	$("#nav_2").mouseover(function(){
		$("#drop").show();
	});
	$("#nav_2").mouseout(function(){
		$("#drop").hide();
	});
	$("#drop2").hide();
	
	$("#nav_3").mouseover(function(){
		$("#drop2").show();
	});
	$("#nav_3").mouseout(function(){
		$("#drop2").hide();
	});
});
