jQuery(document).ready(function() { var absImgPath = 'SiteGlobals/StyleBundles/Bilder/Wiedereinstiegsportal/Layout/'; if (true) { if($.browser.msie && $.browser.version == "6.0") { //no datepicker for ie6 } else { try { var options = { buttonText: 'Datumsauswahl', showOn: 'both', altFormat: 'dd.mm.yy', buttonImageOnly: true, buttonImage: absImgPath + 'input_kalender.gif.gif?__blob=normal', changeMonth: false, changeYear: false, clearText: 'Datum', closeText: 'Schließen', prevText: 'Zurück', nextText: 'Nächste', hideIfNoPrevNext: true, minDate: '-10Y', maxDate: '+1Y', firstDay : 1, mandatory: true, showButtonPanel: false, dateFormat : "dd.mm.yy", currentText : "Heute", dayNames : ["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"], dayNamesMin : ["So","Mo","Di","Mi","Do","Fr","Sa"], monthNames : ["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"], beforeShow: function(input, inst) { var x = $(input).width()/2; //add offset var y = 80; var field = $(input); try { var left = field.offset().left + 83; var top = field.offset().top + 50; } catch(e) {} setTimeout(function(){ $('#ui-datepicker-div').css({'top':'', 'top':top + 'px', 'left': left + 'px'}); $('.ui-datepicker-calendar thead th').attr('scope', 'col'); },1); } }; var optionsFuture = { buttonText: 'Datumsauswahl', showOn: 'both', altFormat: 'dd.mm.yy', buttonImageOnly: true, buttonImage: absImgPath + 'input_kalender.gif.gif?__blob=normal', changeMonth: false, changeYear: false, clearText: 'Datum', closeText: 'Schließen', prevText: 'Zurück', nextText: 'Nächste', hideIfNoPrevNext: true, minDate: '+0D', maxDate: '+1Y', firstDay : 1, mandatory: true, showButtonPanel: false, dateFormat : "dd.mm.yy", currentText : "Heute", dayNames : ["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"], dayNamesMin : ["So","Mo","Di","Mi","Do","Fr","Sa"], monthNames : ["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"], beforeShow: function(input, inst) { var x = $(input).width()/2; //add offset var y = 80; var field = $(input); try { var left = field.offset().left + 83; var top = field.offset().top + 50; } catch(e) {} setTimeout(function(){ $('#ui-datepicker-div').css({'top':'', 'top':top + 'px', 'left': left + 'px'}); $('.ui-datepicker-calendar thead th').attr('scope', 'col'); },1); } }; $('#f6934d154586').datepicker(options); $('#f6934d154594').datepicker(options); $('#f17242d17252').datepicker(optionsFuture); $('#f17242d17256').datepicker(optionsFuture); } catch(err) { alert("Datepicker not loaded: " + err); } } } new InputPlaceholder({ "inputElement" : "#f6904d6936", "debug" : "InputPlaceHolder", "defaultText" : "Suchen" }); new InputPlaceholder({ "inputElement" : "#form_beratungplz", "debug" : "InputPlaceHolder", "defaultText" : "PLZ" }); new InputPlaceholder({ "inputElement" : "#f154918d154610", "debug" : "InputPlaceHolder", "defaultText" : "PLZ" }); new InputPlaceholder({ "inputElement" : "#f154918d154608", "debug" : "InputPlaceHolder", "defaultText" : "Von" }); new InputPlaceholder({ "inputElement" : "#f154918d154606", "debug" : "InputPlaceHolder", "defaultText" : "Bis" }); new SelectFieldRedirector({ "selectElement" : "#f154948d154574", "specialValues" : "*", "callback" : function(option) { if (option.value == "#") { return false; } var parent = $(option).parent().parent(); parent.get(0).submit(); } }); new InfomappeItemCounter({ "infomappeCounterSelector" : ".docCount", "infomappeElement" : ".infomappeCounter", "urlStub" : "SiteGlobals/Functions/Infomappe/Infomappe.html;jsessionid=4455CE427B8892B6E0D992AE34C46E20?view=countDocumentsInInfomap&nn=8702" }); new InfomappeItemAdder({ "infomappeAddButtonSelector" : ".infomappeLink", "infomappeTitle" : "Infomappe", "popupUrl" : "https://www.perspektive-wiedereinstieg.de/Navigation/DE/Wiedereinstieg/Wiedereinstieg_Entscheidungshilfen/Wiedereinstiegscheck/Teaser/Popupfenster.html;jsessionid=4455CE427B8892B6E0D992AE34C46E20?view=render[Popup]", "popupOptions" : "width=320,height=302,status=yes,scrollbars=no,resizable=yes", }); new InfomappeItemAdder({ "infomappeAddButtonSelector" : ".contextBox .infomappe p a", "infomappeTitle" : "Infomappe", "popupUrl" : "https://www.perspektive-wiedereinstieg.de/Navigation/DE/Wiedereinstieg/Wiedereinstieg_Entscheidungshilfen/Wiedereinstiegscheck/Teaser/Popupfenster.html;jsessionid=4455CE427B8892B6E0D992AE34C46E20?view=render[Popup]", "popupOptions" : "width=320,height=302,status=yes,scrollbars=no,resizable=yes", }); new AutocompleteComponent({ "event": { "enter": { "elements": ".lesezeichenLink" } }, "content": { "inputFieldSelector": "#f6904d6936", "autocompleteConfig" : { source: function(request, response) { $.get('https://www.perspektive-wiedereinstieg.de/Navigation/DE/Service/Suche/ServiceSucheIntegrator.html;jsessionid=4455CE427B8892B6E0D992AE34C46E20?view=render[AutocompleteResults]', { key:request.term }, function(data) { response(data); }); }, minLength: 3, appendTo: "#autocomplete", dataType: "json" } }, "debug" : "autocomplete" }); if($(".karte img").length > 0){ images = [ "/SiteGlobals/StyleBundles/Bilder/Karte/schleswig_holstein.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/mecklenburg_vorpommern.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/hamburg.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/bremen.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/niedersachsen.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/sachsen_anhalt.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/brandenburg.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/berlin.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/nordrhein_westfalen.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/hessen.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/thueringen.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/rheinland_pfalz.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/saarland.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/bayern.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/baden_wuerttemberg.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "/SiteGlobals/StyleBundles/Bilder/Karte/sachsen.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal" ]; var picswitcherOptions = { "targetImage" : ".karte img", "items" : [ { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/schleswig_holstein.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Schleswig-Holstein']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/mecklenburg_vorpommern.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Mecklenburg-Vorpommern']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/hamburg.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Hamburg']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/bremen.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Bremen']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/niedersachsen.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Niedersachsen']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/sachsen_anhalt.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Sachsen-Anhalt']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/brandenburg.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Brandenburg']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/berlin.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Berlin']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/nordrhein_westfalen.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Nordrhein-Westfalen']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/hessen.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Hessen']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/thueringen.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Thüringen']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/rheinland_pfalz.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Rheinland-Pfalz']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/saarland.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Saarland']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/baden_wuerttemberg.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Baden-Württemberg']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/bayern.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Bayern']" }, { "imageUrl" : "/SiteGlobals/StyleBundles/Bilder/Karte/sachsen.png.png;jsessionid=4455CE427B8892B6E0D992AE34C46E20?__blob=normal", "trigger" : "#deutschland area[alt='Sachsen']" } ] }; var picSwitcher; jQuery.imgpreload(images, { "each" : function() { }, "all" : function() { picSwitcher = new PicSwitcher(picswitcherOptions); } }); } });