//hide / shows divs using a hyperlink
//slightly nasty in ie6 but better than toggle solution
$(document).ready(function() {
						   
	$('.j_hideShow').click(function() {
		//element you want to show / hide
		var elementId = '#' + $(this).attr('elementId');
									
		if($(this).attr('current')=='hide'){
			$(elementId).slideDown('slow');
			$(this).attr('current','show');
		}
		else{
			$(elementId).slideUp('slow');
			$(this).attr('current','hide');
		}
		var elementId = null;
    	return false;
	});
	
});

//text in inputBox
function clearBox(str) {
  if(document.searchForm.zoom_query.value == str) {document.searchForm.zoom_query.value = "";}
}

//dropdown menu
$(document).ready(function(){
	$('li.menuDrop').hover(
			function() { $('ul', this).css('display', 'block'); },
			function() { $('ul', this).css('display', 'none'); }
	);						   
});

//////AJAX PAGE CALLS/////////
$(document).ready(function(){
	$('.class').live("click",function()
	{
		//var $id = $(this).attr('mcid');

		//$.post("script.php",  
//				   function(data){
//					   //alert( "Data Saved: " + data );
//						$("div#toupdate").html(data);
//			});
		
		return false;
		
	});
});	

