jQuery(document).ready(function(){
	//Search
	jQuery(function() {
		jQuery("#search-field").focus(function() {
			jQuery(this).attr('value','');
		});
	});

	//Popups
	var profiles =
	// if more than one pop-up on a site has the same size you can create a profile
	// use the profile name in the REL of the link
	// in the below example, the REL would be "consent"
	{
		consent:
		{
			height:600,
			width:600,
			status:1
		}
	};

	//$(function() {
	//	$(".popupwindow").popupwindow(profiles);
	//});

	// popup window for the FAQ on the top menu bar, adapted from 2.2
	// maybe we can use the jquery popupwindow function for this eventually
	jQuery("#faq").click(function(event) {
		URL = event.target;
		day = new Date();
		id = day.getTime();
		window.open(URL, id, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=520,height=600');
		event.preventDefault();
	});

});
