$(document).ready(function() {
	
	/* open links with rel="external" in new window and amend link title */
	$('a[rel*="external"]').each(function() {
		var title = $(this).attr('title') ? $(this).attr('title') + ' (opens in a new tab or window)' : 'This link will open in a new tab or window';
		$(this).attr('title',title).click(function() {
			window.open($(this).attr('href'));
			return false;
		});
	});
	
	// execute sIRF after DOM load
	if(typeof sIFR == "function"){
		sifr_exec();
	};

	$('.content_right_spaceman input.text').focus(function() {
		if( $(this).val() == $(this).attr('id') ) $(this).val("");
		return false;
	});

	$('.content_right_spaceman input.text').blur(function() {
		if( $(this).val() == '' ) $(this).val( $(this).attr('id') );
		return false;
	});
		
});

