// start to web GmbH 2010
//#inhalt .front .news-latest-item .piccontainer { position:absolute; padding:7px; width:366px; height:286px; right:17px; top:14px; background:url(../images/box_news_inlay.png) no-repeat top left; }
//#teaser { float:left; color:#231f20; }
//#teaser h2 { font-size:22px; padding-bottom: 10px; }

jQuery(document).ready(function($) {

    //Login-Formular stylen
    $("#login input, .nl input#nlboxemail, #searchform input#searchinput, input#forgot_email").each(function(){
	var wert = $(this).val();
	$(this)
		.focusin(function(){
			if ($(this).val() == wert) {
				$(this).val("").addClass('focus');
			}
		})
		.focusout(function(){
			if ($(this).val().length == 0) {
				$(this).val("").removeClass('focus');
			}
		})
    });  
    
    //Front News
    $(".front .piccontainer").addClass("frontposition");
    $(".front .piccontainer:gt(0)").css("top","-9999px");
    $("#inhalt .front").css("height","280px");

    $(".news_title_outer").hover(
      function (e) {
        $(this).next(".piccontainer").css("top","14px");
      }, 
      function () {
        $(this).next(".piccontainer").css("top","-9999px");
        $(".piccontainer:lt(1)").css("top","14px");
      });
      
    //$(".news_title_outer").click(
    //  function () {
    //    $(".news_title_outer").unbind('mouseenter mouseleave');
    //  }); 

    $(".front").parent().addClass("newstitel_front");
    
    //Twitter Feed stylen
    $(".wttwitter_feed li:even").css("background-color", "#99cd59");
    
});

