
$(document).ready( function()
	{	
		setDropDownLayers()
	}
);

/**
 * Drop-Down Layer konfigurieren
 */
function setDropDownLayers()
{
	//Verweisfunktion aussschalten
	$( '#extras').click( function() { return false; });
	$( '#ihre_vorteile').click( function() { return false; });
	$( '#servicecenter').click( function() { return false; });
	
	//hover bei Layer
	$( '#vorteile_cnt').hover(
			function()
			{
				$( this).css( 'display', 'block');
			},
			function()
			{
				$( this).css( 'display', 'none');
			}
	); 
	$( '#extras_cnt').hover(
		function()
		{
			$( this).css( 'display', 'block');
		},
		function()
		{
			$( this).css( 'display', 'none');
		}
	); 
	$( '#service_cnt').hover(
		function()
		{
			$( this).css( 'display', 'block');
		},
		function()
		{
			$( this).css( 'display', 'none');
		}
	); 
	
	//hover-Fkt
	$( '#extras').hover( 
			function() 
			{ 
				$( '#extras_cnt').css( 'display', 'block'); 
			},
			function ()
			{
				$( '#extras_cnt').css( 'display', 'none');
			}
			);
	$( '#ihre_vorteile').hover( 
			function() 
			{ 
				$( '#vorteile_cnt').css( 'display', 'block'); 
			},
			function ()
			{
				$( '#vorteile_cnt').css( 'display', 'none');
			}
			);
	$( '#servicecenter').hover( 
			function() 
			{ 
				$( '#service_cnt').css( 'display', 'block'); 
			},
			function ()
			{
				$( '#service_cnt').css( 'display', 'none');
			}
			);
	
	
	
}

function setSearch( sDefaultText)
{
	var default_val = sDefaultText;
	$( '#searchparam').click( function () 
			{ 
				if ($( this).val() == default_val)
				{
					$(this).val('');
				}
				$(this).addClass( 'black');
			} );
	$( '#searchparam').blur( function () 
			{ 
				if ($( this).val() == '')
				{
					$(this).val( default_val);
					$(this).removeClass( 'black');
				}								 
			} );
	$( '#f_search').submit( function () 
			{
				if ( $('#searchparam').val() == default_val)
				{
					return false;
				}
			});
}

