// Benutzereigenes Javascript

HTTP_GET_VARS=new Array();
strGET=document.location.search.substr(1,document.location.search.length);

if(strGET!='')
{
  gArr=strGET.split('&');
  for(i=0;i<gArr.length;++i)
  {
    v='';vArr=gArr[i].split('=');
    if(vArr.length>1){v=vArr[1];}
    HTTP_GET_VARS[unescape(vArr[0])]=unescape(v);
  }
}

function GET(v)
{
  if(!HTTP_GET_VARS[v]){return 'undefined';}
  return HTTP_GET_VARS[v];
}


$(document).ready(function()
{
  
  $("#navigation ul li").hover(function () {
    $(this).css({ "background-color":"#FFFFFF", "margin-right":"0" });
  }, function () {
    
    if(!$(this).hasClass(GET('p')))
    {
      var cssObj = { "background-color": "#D6D6D6", "border":"0", "margin-right":"5px" }
    $(this).css(cssObj);
    }
    
  });
  
  
  $("#dl_fade_link").click(function ()
  {
    $("#dl_fade_li").css({ "background-color":"#FFFFFF", "border-right":"5px solid #FFFFFF", "width":"150px" });
    $("#dl_fade").slideToggle("slow");
  });
  
  

	$("#commentForm").validate();

    
});