jQuery.noConflict();

var searchPromptText = '';
var directionsPromptText = '';

jQuery(document).ready(function($) {
	$(document).pngFix();
	$('.search')
		.click(function() {
			if (!$(this).is('.active')) {
				if (!searchPromptText) {
					searchPromptText = $(this).val();
				}
				$(this)
					.addClass('active')
					.val('');
			}
		})
		.blur(function(){
			$(this)
				.removeClass('active')
				.val(searchPromptText);
		})
		.keypress(function(e) {
			if (e.which == 13) {
				$('#searchform').children('.submit').click();
			}
		})
	;
	$('input.route-planner')
		.click(function() {
			if (!$(this).is('.active')) {
				if (!directionsPromptText) {
					directionsPromptText = $(this).val();
				}
				$(this)
					.addClass('active')
					.val('');
			}
		})
		/*
		.blur(function(){
			$(this)
				.removeClass('active')
				.val(directionsPromptText);
		})
		*/
	;
	$('.home').find('#content').find('.csc-frame-frame2').find('.csc-textpic-imagewrap').cycle({
		fx: 'fade'
	});
});
function toggleLoginDetails()
{
	jQuery('#loginheader-closed').toggle();
	var loginBox =
		jQuery('#loginheader-open')
			.toggle()
			.toggleClass('openned');
	if (loginBox.is('.openned')) {
		jQuery('#loginform #user').focus();
	}
	return false;
}

