$(document).ready(function() {
	//$("a.tooltip").tipTip({delay:0,defaultPosition:"left"});
	//$("a.tooltip-down").tipTip({delay:0,defaultPosition:"down"});
	$('.searchBox').focus(function(){  
		if($(this).attr('value') == 'search') $(this).attr('value', '');
	});  
	$('.searchBox').blur(function(){  
		if($(this).attr('value') == '') $(this).attr('value', 'search');  
	});
	$('.searchBox').click(function(){
		$(this).select();
	});  

	$('#info-side-closed').click(function(){
		$(this).removeAttr('id', 'info-side-closed');
		$(this).attr('id','info-side-open');
		$('#info-side-open').animate({ width: '560px' });
	});
	$('#info-side-open-close').click(function(){
		$('#info-side-open').css({ width: '41px' });
		$('#info-side-open').attr('id','info-side-closed');
		$('#info-side-open').removeAttr('id','info-side-open');

	});
	$('#container').click(function(){
		$('#info-side-open').css({ width: '41px' });
		$('#info-side-open').attr('id','info-side-closed');
		$('#info-side-open').removeAttr('id','info-side-open');
	});
	
	$('.classpagesbtn').click(function(){
		$('#events').hide();
		$('#classpages').show();
		$('#homecoming').hide();
		return false;
	});
	
	$('.homecomingbtn').click(function(){
		$('#events').hide();
		$('#homecoming').show();
		$('#classpages').hide();
		return false;
	});
	//$(function(){
   		//$("a.tooltip").tipTip({delay:0});
	//});
	
});

function searchNow(){
        //Determine the search term
        var searchFor=document.getElementById('txtSearchTerm').value;
        //Write out the url
        //<! [CDATA[
        document.location.href="http://www.cord.edu/search/?q="+searchFor+"&site=default_collection&client=concordia&output=xml_no_dtd&proxystylesheet=concordia";
        //]]-->
}


