﻿// Reference for jquery-intellisense:
/// <reference path="~/assets/js/jquery.js" />


// set/empty Search-Textbox
function emptySearchbox(textBoxElement) {
    elementID = "#" + textBoxElement;
    if ($(elementID).val() == "Suche") {        
        $(elementID).val("");
    }    
}

function fillSearchbox(textBoxElement) {
    elementID = "#" + textBoxElement;    
    if ($(elementID).val() == "") {
        $(elementID).val("Suche");
    }
}

    $(document).ready(function() {
//  open PopUp-Windows
    $('A[rel="popup"]').click(function() {            
        window.open($(this).attr('href'), "popup", "width=480,height=500,toolbar=yes,status=no,directories=no,location=no,menubar=yes,scrollbars=yes,resizable=yes");
        return false;
    });
//  open PopUp-Windows Ende
    
    $("#nav ul ul li").hover(function() {
		$(this).addClass("hover");
		$(this).children("ul").show();
	},function(){
		$(this).removeClass("hover");
		$(this).children("ul").hide();
	});
//	$("table:odd").addClass("odd");
	$("table table:odd").addClass("odd");
	$("table.suchergebnis").hover(function(){
		$(this).addClass("hover");
	},function(){
		$(this).removeClass("hover");
	});
	$("#nav ul ul li a").focus( function() {
		$(this).parent("li").addClass("hover");
	});
	$(".button").hover(function() {
	    $(this).addClass("hover");
	}, function() {
	    $(this).removeClass("hover");
	});
});

// nugg.ad I 
var n_pbt = "";

