
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



$(document).ready(function() {


// Lagerliste Höhen
if ( $("#c50").length > 0 ) {
wert = $("#c50").height() + $(".doppelspalte .spalte_links").height () - 360;
$(".doppelspalte .spalte_links").height(wert);

if (wert < 700) {
$(".doppelspalte .spalte_links").height("700px");
}

}

if ( $("#c48").length > 0 ) {
wert = $(".doppelspalte .spalte_links .box").height() + 680;
$(".doppelspalte .spalte_links").height(wert);

}



	// Google Maps
	
	if ( $("#map_google_bornheim").length > 0 ) {
				$('#map_google_bornheim').googleMaps({
				   	latitude: 50.758383,
        			longitude: 7.023354,
				markers: {
				latitude: 	50.758383,
				longitude: 7.023354,
						info: {
						layer: '.map_adresse'
								}
                		}
    			});
    }

	if ( $("#map_google_duesseldorf").length > 0 ) {
				$('#map_google_duesseldorf').googleMaps({
				   	latitude: 51.22501,
        			longitude: 6.7077628,
				markers: {
				latitude: 	51.22501,
				longitude: 6.7077628,
						info: {
						layer: '.map_adresse'
								}
                		}
    			});
    }

	if ( $("#map_google_essen").length > 0 ) {
				$('#map_google_essen').googleMaps({
				   	latitude: 51.453129,
        			longitude: 7.016412,
				markers: {
				latitude: 	51.453129,
				longitude: 7.016412,
						info: {
								}
                		}
    			});
    }



	if ( $("#map_google_koblenz").length > 0 ) {
				$('#map_google_koblenz').googleMaps({
				   	latitude: 50.37776,
        			longitude: 7.58072,
				markers: {
				latitude: 	50.37776,
				longitude: 7.58072,
						info: {
						layer: '.map_adresse'
								}
                		}
    			});
    }
	
	


	
	

	// Reiter bei Lagerliste
	if ( $(".reiter").length > 0 ) {
	$(".reiter a:last-child").css("border","none");
	}


	// yasp
	if ( $(".spammm").length > 0 ) {
	$(".spammm").yasp(); }

	$("#kopf .sub_nav ul li:last-child a").css("background-image","none");
	$("#kopf .sub_nav ul li:last-child a").css("padding-right","0px");
	$("#kopf .nav ul li:last-child a").css("background-image","none");
	//$("#kopf .nav ul li:last-child a").css("padding-right","0px");

	$("#kopf .nav ul li li:last-child a").css("border","none");
	$("#kopf .nav ul li:last-child").addClass("nav_last");


	if ((parseInt(jQuery.browser.version) == 6 && jQuery.browser.msie == true) == false ) {
	$("#kopf .nav ul ul li:last-child").after('<img style="margin: -1px 0 0 -1px;" src="/fileadmin/templates/bilder/nav_dropdown-kante-unten.png" />');
	}

// Schnellnavigation 
	
	//Linie löschen
	$("#schnellnavigation ul.sitemap li:last-child").css("border","0px");

	// Schnellnavigation ausblenden
	$("#schnellnavigation_con").hide();

	$(".schnellnavigation a").click(function () { 
		$("#schnellnavigation_con").fadeIn();	
	});
	
	$("#schnellnavigation .button").click(function () { 
	$("#schnellnavigation_con").hide();	
	});


// Subnavigation	

	$("#inhalt .nav ul ul").hide();


	$("#inhalt .nav ul li.mainmenue a").each(function(){
 	$(this).hover(
	    			function () {
							$("#inhalt .nav ul li.submenue ul").slideUp();
							},
					function () {});
	});



	$("#inhalt .nav ul li.submenue a").each(function(){

	    $(this).hover(
	    
	    			function () {
	    	
				    		  $(this).parent("li.submenue").children("ul").slideDown(); 
		    					},
		    					function () {
								//$(this).parent("li.submenue").children("ul").slideUp(); 
								//$("#inhalt .nav ul li.submenue ul").slideUp();
								}
	    );
	 });
 





$(function(){

    var config = {    
         sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)    
         interval: 100,  // number = milliseconds for onMouseOver polling interval    
         over: doOpen,   // function = onMouseOver callback (REQUIRED)    
         timeout: 200,   // number = milliseconds delay before onMouseOut    
         out: doClose    // function = onMouseOut callback (REQUIRED)    
    };
    
    function doOpen() {
        $(this).addClass("hover");
        $('ul:first',this).css('visibility', 'visible');
    }
 
    function doClose() {
        $(this).removeClass("hover");
        $('ul:first',this).css('visibility', 'hidden');
    }

    $("ul.dropdown li").hoverIntent(config);
    
    $("ul.dropdown li ul li:has(ul)").find("a:first").append(" &raquo; ");

});











});


var message="Diese Funktion ist deaktiviert!";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")








