Cufon.replace('#main_menu a', { fontFamily: 'Myriad Pro Semibold', hover: true });
Cufon.replace('#content #topBar a, #content #topBar dl', { fontFamily: 'Myriad Pro' });
Cufon.replace('.cufon', { fontFamily: 'Myriad Pro' });
Cufon.replace('#content h1,h2,h3,h4', { fontFamily: 'Myriad Pro' });

$(document).ready( function() {
	
	$("input[type=text], input[type=password], textarea").focus( function() {
		if ( $(this).val() == $(this).attr("title") ) {
			$(this).val("")
		}
	}).blur( function() {
		if ( $(this).val() == '' ) {
			$(this).val( $(this).attr("title") );
		}
	});
	
});


$.fn.equalHeights = function(px) {
	var currentTallest = 0;
	$(this).each(function() {
		var currentHeight = $(this).height();
		if ( currentHeight > currentTallest) {
			currentTallest = currentHeight;
		}
	});
	$(this).css({"position":"relative"});
	$(this).children("p.more").css({"width":"100%", "position":"absolute", "bottom":"0"});
	currentTallest += 'px';
	// for ie6, set height since min-height isn't supported
	if ($.browser.msie && $.browser.version == 6.0) {
		$(this).css({'height': currentTallest});
	}
	$(this).css({'min-height': currentTallest}); 
	
	return this;
};

function openHelp( catid ) {
	var fileManager = window.open( '/help_mod/pl/display_help,cat:'+catid+'.html', 'help', 'menubar=no, toolbar=no, location=no, scrollbars=no, resizable=no, status=no, width=800, height=600,left=240,top=100');
}
