<!-- editiert 27.10.2009: jquery Bibliothek einbinden -->
//<script type="text/javascript" src="javascript/jquery-1.3.2.min.js"></script>
//<script type="text/javascript" src="javascript/myjs.js"></script>

<!-- editiert 27.10.2009: jquery footer Search Box Script -->
//<script type="text/javascript">
  var homepage = false;


 	$(document).ready(function(){
 		<!-- editiert 31.10.2009: erweitert faq -->
			        //erstmal werden alle divs ausgeblendet
				$('.footer_search_box').hide();
				$('.faq_list_box').hide();
				$('.nav_list_box').hide();
				$('.nav_list_box_active').show();
				$('.nav_list_box_home').hide();
				$('.nav_list_box_home:first').show();
				// event für hover auf die divs legen

				/*Mehrer Effekte bestimmen*/
			            $("div.faq_box_change").click(function(){
					$('.faq_list_box').hide();
					$("div.faq_box_change").addClass("faq-normal");
					$("div.faq_box_change").removeClass("faq-selected");
					$(this).removeClass("faq-normal");
					$(this).addClass("faq-selected");
			        $(this).next("div.faq_list_box").show();
			            });

                 /*Short link auf FAQ */
				      $(".short-faq-link").click(function(){
				       myvalue = $("a.short-faq-link").index(this);
					$('.faq_list_box').hide();
                    $("div.faq_box_change").addClass("faq-normal");
                    $("div.faq_box_change").removeClass("faq-selected");
					$("div.faq_box_change").eq(myvalue).removeClass("faq-normal");
					$("div.faq_box_change").eq(myvalue).addClass("faq-selected");
			                $("div.faq_list_box").eq(myvalue).show();
			            });

                     /*bildwechsel auction_list*/
                     $(".auction_gfx_wechsel").click(function(){
				       myvalue = $("a.auction_gfx_wechsel").index(this);

                    $(".auction-thumb").css("border","2px solid transparent");
					$(".auction-thumb").eq(myvalue).css("border","2px solid red");
			            });

				 /*editiert 10.11.2009: Funktion umgestellt auf Klick*/
				$(".nav_list_box_change").click(
					// Hover In
					function() {
						var ele = $(this).next("div");
						//alert(ele);
						//ele.fadeIn("slow");
						$('.nav_list_box').hide();
						$(this).next("div.nav_list_box").show();
					}
				);

				$(".nav_list_box_home_change").click(
					// Hover In
					function() {
						var ele = $(this).next("div");
						//alert(ele);
						//ele.fadeIn("slow");
						$('.nav_list_box_home').hide();
						$(this).next("div.nav_list_box_home").show();
					}
				);


				$(".footer_box_link").hover(
					// Hover In
					function() {
						var myoffset = $(this).offset();

						$("div").next(".footer_search_box").fadeIn("slow");
					},

					// Hover Out
					function() {
						var element = $("div").next(".footer_search_box:first:visible");
						var time = 500; // Time the div is visible (in milli sec.)
						var fade_out_function = function() { element.fadeOut("slow"); } // The function used for fading out

						var timeout = window.setTimeout(fade_out_function, time);

						element.hover(
							// Hover In
							function() {
								window.clearTimeout(timeout);
							},

							// Hover Out
							function() {
								timeout = window.setTimeout(fade_out_function, time);
							}
						);
					}
				);

				if (homepage) {

 				 }


            });




//        </script>
<!-- editiert 30.10.2009: Scripte für Karteireiter -->
//<script type="text/javascript">
		function einblenden(itemID) {
 		 //document.getElementById(itemID).className = 'active'; // Klasse vom Reiter wird geändert
  		 document.getElementById('divlayer_layer1').style.display = 'none'; // Divlayer wird angezeigt
  		 document.getElementById('divlayer_layer2').style.display = 'none'; // Divlayer wird angezeigt
  		 document.getElementById('divlayer_layer3').style.display = 'none'; // Divlayer wird angezeigt
  		 document.getElementById('divlayer_'+itemID).style.display = 'inline'; // Divlayer wird angezeigt
}
//</script>


//<script type="text/javascript" charset="utf-8">

		function wechseln(bildname,tauschbildname)
			{
			var Tauschbild = new Image();
			Tauschbild.src = tauschbildname;
			document.images[bildname].src = Tauschbild.src;
			}

//</script>

      function pruefe()
      {
    		if (!document.editform.agb_confirm.checked)
        {
    			window.alert('Bitte bestÃ¤tigen Sie, dass Sie mit den AGB einverstanden sind.');
    			document.editform.agb_confirm.focus();
    			return false;
    		}
    	}

    	function pruefeGebot()
    	{
            var BidVal = parseInt($("#bidVal").attr("value"));
            var NextVal = parseInt($("input#nextBid").attr("value"));
            var MaxVal = parseInt($("input#maxBid").attr("value"));
            var LastVal = parseInt($("input#lastBid").attr("value"));
            document.getElementById('bidVal').value = BidVal;

            if ((BidVal > MaxVal))
            {
             	alert("Ihr Gebot ist hÃ¶her als der Maximalpreis von " + MaxVal.toString() + " EUR. Bitte geben Sie maximal diesen Wert an!");
             	return false;
            }
			
			if ((BidVal == MaxVal) && (BidVal > LastVal))
			{
				return true;
			}

            if ((BidVal >= NextVal))
            {
               	return true;
            }
            alert("Bitte Geben Sie Ihr HÃ¶chstgebot ein. Das Gebot muss mindestens dem Wert unter 'min. neues Gebot' entsprechen!");
            return false;
     	}


      var zaehler=0;
      var millisecs=1000;

      function Blink()
      {
        zaehler++;
        if(zaehler%2==0)document.getElementById('blinker').className="blinktext";
        else document.getElementById('blinker').className="blinktext2";
        setTimeout('Blink()',millisecs);
      }
