');
$( "table").each(function(){
if ($(this).css("width") == "440px"){
$(this).css("width","100%");
$(this).parent().css("padding-left","0px");
$(this).css("width","100%").css("left","0px").css("visibility","visible");
}
if ($(this).css("border-collapse")=="collapse"){
$(this).find($("tr:nth-child(1)")).before($(this).find($("tr:nth-child(1)")).clone());
$(this).find($("tr:nth-child(1)")).after($(this).find($("tr:nth-child(3)")).clone());
$(this).find($("tr:nth-child(4)")).find($("td:nth-child(1)")).remove();
$(this).find($("tr:nth-child(4)")).find($("td:nth-child(1)")).remove();
$(this).find($("tr:nth-child(4)")).find($("td:nth-child(1)")).remove();
$(this).find($("tr:nth-child(3)")).find($("td:nth-child(1)")).remove();
$(this).find($("tr:nth-child(3)")).find($("td:nth-child(1)")).remove();
$(this).find($("tr:nth-child(3)")).find($("td:nth-child(1)")).remove();
$(this).find($("tr:nth-child(1)")).find($("td:nth-child(4)")).remove();
$(this).find($("tr:nth-child(2)")).find($("td:nth-child(4)")).remove();
$(this).find($("tr:nth-child(3)")).find($("td")).attr("colspan","3");
$(this).find($("tr:nth-child(4)")).find($("td")).attr("colspan","3");
}
})
$("input.purchase_date").prop("readonly","true");
$("div").filter(function(){
return $(this).css("background-image").indexOf("info_retoure.gif") != -1;
}).each(function(){
$(this).css("background-image","none");
$(this).find($("ul")).css("margin-left","0px")
})
$("table").css("visibility","visible");
$(".popup_box3").each(function(){
$(this).find($("a")).wrap("");
$(this).find("a").remove();
if ($(this).css("height") != "auto"){
link = "javascript:flip_height(\""+$(this).attr("id")+"\",\""+$(this).find($(".black_head")).height()+"\")";
$(this).find($(".black_head")).wrapInner("");
}
$(".black_head").css("text-decoration","underline");
$new_height=$(this).find($(".black_head")).height();
$(this).css("height",$new_height);
})
$( "input").each(function(){
$color = "rgb(238, 238, 238)";
if ($(this).css("background-color")===$color){
$(this).addClass("mobile");
}
$("input.mobile").css("background-color","white");
})
$("input[name='cid'],input[name='invoicenr'],input[name='phone'],input[name='email'],input[name='kontoinhaber'],input[name='kreditinstitut'],input[name='kontonummer'],input[name='blz']").css("width","120px");
$("table td").css("padding-right","3px");
$(".linie_bk").children().first().css("padding-bottom","0px");
$("[id^=artnr]").css("width","50px");
$("[id^=quantity]").css("width","20px");
$("[id^=artname]").css("width","93%");
$("[id^=beschreibung]").css("width","93%");
$("select").css("width","140px");
$counter = 1;
$( "[type=checkbox], [type=radio]").each(function(){
if (!$(this).attr("id")){
$(this).attr("id", $(this).attr("name")+"_"+$counter);
$counter++;
}
$label_wrap = "";
$(this).after($label_wrap);
})
$(".nobk td").css("padding-right","0px");
$("#success_box").next().css("padding-left","12px");
$("#success_box").next().find("table").next().css("width","auto").css("padding-right","15px");
$("#success_box").next().find("table td:nth-child(1)").css("padding-right","6px");
$( "input[type=image]").each(function(){
if ($(this).attr("src").indexOf("button_retoure") != -1){
$(this).parent().css("padding-left","28px").css("padding-top","15px");
}
})
$(".produkt_beschreibung").css("visibility","visible");
$( "#content" ).css("min-height","0px");
$( "input" ).css("visibility","visible");
$( "#listing_selects").css("visibility","visible");
$(".product_info.headline2").css("display","block");
$("input[src*='button_quick_find']").one("load", function() {
$(".button input").attr("style","width:33px;visibility:visible !important");
}).each(function() {
if(this.complete) $(this).load();
});
$(".mobile_hidden, .hidden_mobile").remove();
}
else{
$('a[href^="tel:"]').removeAttr("href");
}
$("a[class^=badge_energyclass].fancybox").fancybox({"overlayOpacity":0.3,"overlayColor":"#000"});
$(".in_cart_button").parent().before("");
$(".in_cart_button").click(function(){
$(this).parent().blur();
var item = $(this);
var position = $(this).position();
$(this).parent().prev().css("opacity","0");
$(this).parent().prev().css("display","block");
$(this).parent().prev().css("top",position.top+10);
$(this).parent().prev().css("left",position.left-20);
$(this).parent().prev().animate({
top: position.top-105,
opacity: 1,
filter: ''
},
200
);
$(this).parent().prev().prepend("
");
var link = $(this).parent().attr("href");
$.get(link, {}, function(){;
$.get("update_shopping_cart.php", {}, function(data){
$("#wk_shopping_cart").empty();$("#wk_shopping_cart").prepend(data);
item.parent().prev().children().first().remove();
item.parent().prev().prepend("
");item.parent().prev().append("The item has
been added
successfully to
the
cart!
");
setTimeout(function() {
item.parent().prev().remove();
item.parent().before("");
}, 3000);
});
});
return false;
})
});
-->