/** * @author Sascha Quasthoff */ if (typeof ps == 'undefined') { var ps = { /** * Der Pfad zum Root-Verzeichnis der Webseite */ root_path : '/', to_root : '', /** * Startet die Verarbeitung der Seite */ InitPage : function () { if (typeof layout == 'object') return; self.location.pathname.sub(ps.root_path,'').scan (/\//, function () { ps.to_root += '../' }); if (!!$$('.print')[0]) ps.Print(); if (!!$$('.seite_empfehlen')[0]) ps.Empfehlen(); this.galleryInit(); this.lightboxInit(); this.golfweltweitInit(); if (typeof this.ShoppingCart != 'undefined') this.ShoppingCart.initialize(); if (typeof this.Fairplay != 'undefined') this.Fairplay.Init(); if ( $('highlight_gallery') ) this.HighlightGallery.initialize(); this.fixIE(); }, /** * Blendet eine Meldung ein. */ showMessage : function (text, clss, fx) { if (!$('message')) return; if (!!text && text != '') { if (fx == 'fade') { new Effect.Opacity('message', { duration : 4.0, from : 1.0, to : 0, beforeStart : function () { $('message').show().addClassName(clss).update(text); }, afterFinish : function () { $('message').hide().removeClassName(clss).update(''); } } ); } else { $('message').show().addClassName(clss).update(text); } } else { $('message').hide().removeClassName(clss).update(''); } }, /** * Print-Funktion */ Print : function () { $$('.print').each ( function (n) { Event.observe( n, 'click', function (event) { window.print(); Event.stop(event); } ); } ); }, /** * */ Empfehlen : function () { $$('.seite_empfehlen').each ( function (n) { var my_url = String(self.location); n.setAttribute('href', n.readAttribute('href').replace('###url###', my_url)); } ); }, /** * */ galleryInit : function () { if (!$$('.picture.gallery')[0]) return; // welche Sprache haben wir? if ($$('html')[0].readAttribute('xml:lang') == 'de') { var tab_menu = '

Die schönsten Bilder