/** * * Print Preview * */ var truePrint = false; function PrintOrNot() { var myPrint = location.search; if (myPrint.indexOf("print=true") > -1) { truePrint = true; } } PrintOrNot(); function printWindow(x,y) { window.open(x+"?print=true"+y,"_new","width=600px,height=600px,toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes"); } if (truePrint == true) { document.write(''); } /** * * Reads all a Elements within col2 and rewrites it in the footer div * */ var oldBrowser = navigator.appVersion.indexOf("MSIE 5"); if (oldBrowser == -1) { if (truePrint == true) { jQuery(document).ready(function() { var links = new Array(); var content = ""; var dateAndTime = new Date(); var day = dateAndTime.getDate(); var month = dateAndTime.getMonth() + 1; var year = dateAndTime.getFullYear(); var hours = dateAndTime.getHours(); var minutes = dateAndTime.getMinutes(); if (minutes < 10) { minutes = "0" + String(minutes); } var dateString = "
Erzeugt am: "+day+"."+month+"."+year+" um " + hours + ":"+minutes+"
"; jQuery("#footer").html(dateString); // links = $("#col2:visible a[@href]").get(); links = jQuery("#col2:visible a.tbl").get(); if (links.length > 0) { var content = "" + links[i] + "
"; } content += dateString; jQuery("#footer").html(content); window.print(); }); } else { jQuery(document).ready(function() { var blendStatus = true; jQuery("a.blend").click(function() { if (blendStatus == true) { jQuery("a.ausblenden").css({ background: "#551285", color: "#FFFFFF" }); jQuery("a.einblenden").css({ background: "#FFFFFF", color: "#005EC2" }); jQuery("ul.sitemap").find("ul:visible").slideUp("slow"); jQuery("a.blend").text("Dritte Ebene einblenden"); blendStatus = false; return; } if (blendStatus == false) { jQuery("a.blend").css({ background: "#551285", color: "#FFFFFF" }); jQuery("a.blend").css({ background: "#FFFFFF", color: "#005EC2" }); jQuery("ul.sitemap").find("ul:hidden").slideDown("slow"); jQuery("a.blend").text("Dritte Ebene ausblenden"); blendStatus = true; return; } }); }); } }