// JavaScript Document

$('input[name^="prefilled"]').focusin(function () {
    $(this).text("");
});


$(document).ready(function(){
    $("#btn_gold_links_2").hide();
    $("#btn_gold_rechts_2").hide();
    $("#btn_MehrErfahren2").hide();
    $(".pic2").hide();

			
	//References
	var sections = $("#nav li");
	var content = $("#content");


	
	reinitialiseTabs = function()
				{
					$( "#tabs" ).tabs();
				}

	//Manage click events
	sections.click(function(){
		//load selected section
		switch(this.id){
		    case "btn_gold_links_1":

		        $("#btn_gold_links_1").fadeOut('slow');
		        $("#btn_gold_links_2").fadeIn('slow');
		        $("#btn_gold_rechts_1").fadeOut('slow');
		        $("#btn_gold_rechts_2").fadeIn('slow');
		        $("#btn_MehrErfahren").fadeOut(1);
		        $("#btn_MehrErfahren2").fadeIn(1);
		        $(".pic1").fadeOut('slow');
		        $(".pic2").fadeIn('slow');

		        break;

		    case "btn_gold_rechts_1":

		        $("#btn_gold_links_1").fadeOut('slow');
		        $("#btn_gold_links_2").fadeIn('slow');
		        $("#btn_gold_rechts_1").fadeOut('slow');
		        $("#btn_gold_rechts_2").fadeIn('slow');
		        $("#btn_MehrErfahren").fadeOut(1);
		        $("#btn_MehrErfahren2").fadeIn(1);
		        $(".pic1").fadeOut('slow');
		        $(".pic2").fadeIn('slow');
		        break;

		    case "btn_gold_links_2":

		        $("#btn_gold_links_2").fadeOut('slow');
		        $("#btn_gold_links_1").fadeIn('slow');
		        $("#btn_gold_rechts_2").fadeOut('slow');
		        $("#btn_gold_rechts_1").fadeIn('slow');
		        $("#btn_MehrErfahren2").fadeOut(1);
		        $("#btn_MehrErfahren").fadeIn(1);
		        $(".pic2").fadeOut('slow');
		        $(".pic1").fadeIn('slow');
		        break;

		    case "btn_gold_rechts_2":

		        $("#btn_gold_links_2").fadeOut('slow');
		        $("#btn_gold_links_1").fadeIn('slow');
		        $("#btn_gold_rechts_2").fadeOut('slow');
		        $("#btn_gold_rechts_1").fadeIn('slow');
		        $("#btn_MehrErfahren2").fadeOut(1);
		        $("#btn_MehrErfahren").fadeIn(1);
		        $(".pic2").fadeOut('slow');
		        $(".pic1").fadeIn('slow');

		        break;
				
			default:
				//hide loading bar if there is no selected section
			
		break;
		}
	});
});

$(document).ready(function () {
//010,020,030,070,081 selectmenu
$('select.rezeptliste, select.selectmenu30').selectmenu({width:213});
$('select.select70_2, select.select70_1, select.normal').selectmenu({width:174});
$('select.selectmenu81').selectmenu({width:150});
//EOF 010,020,030,070,081 selectmenu

	 
	
	//020, 070 tabify tabs
	$('#menu').tabify();
	$('#menu2').tabify();		
			
		//020_corner
		$(".corner").hover(function() {
        $(".cornerLink").css({'display':'block' });
        }, function() {
        $(".cornerLink").css({'display':'none' });
        });
		//EOF 020_corner

		
	
});//EOF

/* input Felder bei active Farbe ändern*/
function colorchange(t)
{
t.style.color='#251c6d';
t.value="";
};
