

jQuery(document).ready(function(){
				jQuery('body').click(function()
				{
					jQuery('div#autocomplete').css('display', 'none')
				})
			})

/* Preload Images für Navi
*/
if (document.images) {
       	preload01on = new Image(); preload01on.src="/img/shop/layout/header/hotline_right_ie6hover.gif";
       	preload02on = new Image(); preload02on.src="/img/shop/navi/hover_bg.jpg";
        preload03on = new Image(); preload03on.src="/img/shop/navi/hover_bg_right.gif";
        preload04on = new Image(); preload04on.src="/img/shop/navi/hover_bg_left.gif";
       
        
}
		
         if(window.navigator.systemLanguage && !window.navigator.language) {
           function hoverIE() {
           
             var LI = document.getElementById("nav_main").firstChild.firstChild.firstChild;
             do {
             	if(LI.firstChild.nextSibling.firstChild)
             	{
             		LI.onmouseover=einblenden; LI.onmouseout=ausblenden;
             	}
             	
               if (sucheUL(LI.firstChild.nextSibling.firstChild)) {

                 LI.onmouseover=einblenden; LI.onmouseout=ausblenden;
               }
               LI = LI.nextSibling;
             }
             while(LI);
           }

           function sucheUL(UL) {
             do {
               if(UL) UL = UL.nextSibling;
               if(UL && UL.nodeName == "UL") return UL;
             }
             while(UL);
             return false;
           }

           function einblenden() {
             var UL = this.firstChild.nextSibling.firstChild;
             UL.style.display = "block"; UL.style.backgroundColor = "silver";
           }
           function ausblenden() {
             var UL = this.firstChild.nextSibling.firstChild.style.display = "none";
           }

           window.onload=hoverIE;
           
           /* Dirty Background change*/
           	jQuery(document).ready(function(){
				jQuery('div#nav_main li.last').mouseover(function()
				{
					jQuery('div#hotline_right').css('background-image', 'url(/img/layout/header/hotline_right_ie6hover.gif)')
				})
				jQuery('div#nav_main li.last').mouseout(function()
				{
					jQuery('div#hotline_right').css('background-image', 'url(/img/layout/header/hotline_right.gif)')
				})
			})
           
         }

function showRocketOverlay(url, width, height)
{
	if(!width) {
		width = 620;
	}
	
	if(!height) {
		height = 600;
	}
	if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(22, 23) == "6") {
		showRocketPopup(url, rocketPopupWidth, rocketPopupHeight);
	} else {
		if(!document.getElementById("#rocket_overlay")) {
			var overlay_content = document.createElement("iframe");
			
			$(overlay_content).attr('id', "rocket_overlay_content");
			overlay_content.frameBorder = "0";
			$(document.body).prepend(overlay_content);
		}
		
		
		
		overlay_content.src = url;
		
		$(overlay_content).css("background", "#fff");
		$(overlay_content).height(height);
		$(overlay_content).width(width);
		$(overlay_content).css("left", ($(window).width() / 2) - ($(overlay_content).width() / 2));
		$(overlay_content).css("top", ($(window).height() / 2) - ($(overlay_content).height() / 2));
		$(overlay_content).css("display", "block");
		$(overlay_content).css("overflow-x", "hidden");
		
		showRocketOverlayBackground();
	}
}

function showCloseButtion()
{
	if(!document.getElementById("#close_rocket_overlay"))
	{
		var close_rocket_overlay = document.createElement("div");
		$(close_rocket_overlay).attr('id', "close_rocket_overlay");
		$(close_rocket_overlay).click(function(){ 
			document.location.reload()
			
		});

	}

	$(close_rocket_overlay).text(unescape('schlie%DFen'));
	$(close_rocket_overlay).css("left", ($(window).width() / 2) - ($(close_rocket_overlay).width() / 2)+235);
	$(close_rocket_overlay).css("top", ($(window).height() / 2) - ($(close_rocket_overlay).height() / 2)-100);
	$(document.body).prepend(close_rocket_overlay);
}



