var changedContent = false; var trv_dialogContentChanged = false; var trv_multiContentChanged = new Object(); var trv_core_progressFetch = new Object(); Date.now = Date.now || function() { return +new Date(); }; $(function() { initTooltip();}); /**********************************************************************************************/ function initTooltip() { if ($.isFunction($.fn.tooltip)) { $('.trovarit_tooltip[title]').tooltip({ showURL: false, id: "trovarit_tooltip", showBody: "; ", fade: 250 }); $('.trovarit_tooltip_width[title]').tooltip({ showURL: false, id: "trovarit_tooltip", showBody: "; ", fade: 250, extraClass: "tooltip_width" }); } } /**********************************************************************************************/ function showBockscreenProgressBar(alternativeLable) { if (alternativeLable != null) { $(".trv_uploadProgressbar").parent().prev().text(alternativeLable); } $(".trv_uploadProgressbar").progressbar({ value: false, change: function() { $(".trv_uploadProgressbar .progress-label").text( $(".trv_uploadProgressbar").progressbar( "value" ) + "%" ); } }); $(".trv_uploadProgressbar").append('
'); $("#trv_blockScreenProgress").show(); } /**********************************************************************************************/ function hideBockscreenProgressBar() { $(".trv_uploadProgressbar .ui-progressbar-overlay").remove(); $("#trv_blockScreenProgress").hide(); } /**********************************************************************************************/ function setBockscreenText(text) { if (isScreenBlocked) { $("table td.trovarit_wait_dialog").html(text); } } /**********************************************************************************************/ function setBockscreenProgressValue(setPercent) { if (setPercent >= 0) { if (setPercent == 0 && $(".trv_uploadProgressbar .progress-label").text() == "") { $(".trv_uploadProgressbar .progress-label").text("0%"); } $(".trv_uploadProgressbar .ui-progressbar-overlay").remove(); } else if($(".trv_uploadProgressbar .ui-progressbar-overlay").length == 0) { $(".trv_uploadProgressbar").append(''); } $(".trv_uploadProgressbar").progressbar( "option", {value:setPercent}); } /**********************************************************************************************/ function callOnEnter(e,functionToCall,argArray) { var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if (keycode == 13) { if ((argArray == null) || (argArray == "")) { argArray = new Array(); } functionToCall.apply(this, argArray); return false; } else return true; } /**********************************************************************************************/ function submitEnter(myfield,e) { var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if (keycode == 13) { myfield.form.submit(); return false; } else return true; } /**********************************************************************************************/ function confirmDialog(title, onYesClick, question, height, width, onNoClick, position) { if (height == null) { height="auto"; } if (width == null) { width=350; } if (onNoClick == null) { onNoClick=""; } if (position == null) { position="center"; } var currentTime = Date.now(); $("body").append(""); var dialogContent = ""; dialogContent = dialogContent.replace(/-CurrentTimeID-/g, currentTime); dialogContent = dialogContent.replace(/onYesClick/, onYesClick); dialogContent = dialogContent.replace(/onNoClick/, onNoClick); dialogContent = dialogContent.replace(/question/, question); $("#trv_core_confirm_dialog_"+currentTime).html(dialogContent); $("#trv_core_confirm_dialog_"+currentTime).dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_core_confirm_dialog_"+currentTime).remove(); }, resizable: false, draggable: false, height: height, width: width, bgiframe: true, modal: true, position: position, title: title }); return currentTime; } /**********************************************************************************************/ function infoDialog(title, content, height, width, onCloseClick, position, alternativeButtonText, isErrorInfo) { if (height == null) { height="auto"; } if (width == null) { width=400; } if (onCloseClick == null) { onCloseClick=""; } if (position == null) { position="center"; } var currentTime = Date.now(); $("body").append(""); var dialogContent = "// tag and performs html encoding on the contents. In this case, // we need to pull the original text content from the text node's // nodeValue property to retrieve the unmangled content. // Note that IE6 only understands text/html if (doc.body.firstChild && doc.body.firstChild.nodeName.toUpperCase() == 'PRE') { doc.normalize(); response = doc.body.firstChild.firstChild.nodeValue; } if (response) { response = eval("(" + response + ")"); } else { response = {}; } } } else { // response is a xml document response = doc; } settings.onComplete.call(self, file, response); // Reload blank page, so that reloading main page // does not re-submit the post. Also, remember to // delete the frame toDeleteFlag = true; // Fix IE mixed content issue iframe.src = "javascript:'';"; }); }, /** * Upload file contained in this._input */ submit: function(){ var self = this, settings = this._settings; if ( ! this._input || this._input.value === ''){ return; } var file = fileFromPath(this._input.value); // user returned false to cancel upload if (false === settings.onSubmit.call(this, file, getExt(file))){ this._clearInput(); return; } // sending request var iframe = this._createIframe(); var form = this._createForm(iframe); // assuming following structure // div -> input type='file' removeNode(this._input.parentNode); removeClass(self._button, self._settings.hoverClass); removeClass(self._button, self._settings.focusClass); form.appendChild(this._input); form.submit(); // request set, clean up removeNode(form); form = null; removeNode(this._input); this._input = null; // Get response from iframe and fire onComplete event when ready this._getResponse(iframe, file); // get ready for next request this._createInput(); } }; })(); function trv_download_center_download(articleID, isIFrame) { $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de", { ajax_type: "DOWNLOADCENTER_ENABLED", full_path: "NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,", articleID: articleID }, function(result) { data = JSON.parse(result); if (data.success == 1) { if(data.text!="") { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); confirmDialog("Datenschutzerklärung","trv_download_center_get_file("+articleID+", "+isIFrame+")",data.text); } else { trv_download_center_get_file(articleID, isIFrame) } } else { trv_download_center_open_registration(isIFrame); } }); } function trv_download_center_get_file(articleID, isIFrame) { $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de", { ajax_type: "DOWNLOADCENTER_FILE_CHECK", full_path: "NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,", articleID: articleID }, function(data) { if (data == 1) { if (typeof _paq !== 'undefined') { var parameter = ['trackEvent', 'downloadcenter', 'download article']; parameter.push(articleID); _paq.push(parameter); } location.href = "http://cyberkmu.portal.it-matchmaker.com/core/modules/download_center/components/get_file.php?id="+articleID+"&isIFrame="+isIFrame+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de"; } else { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); infoDialog("FEHLER","Interner Fehler: Das angeforderte Dokument
kann nicht auf dem Server gefunden werden!
Der Fehler wurde an die Trovarit AG automatisch gemeldet.",null,600,null, position); } }); } function trv_download_center_open_registration(isIFrame) { if ($("#trv_module_dialog_download_center_registration").length == 0) { blockScreen(); isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); $("body").append(""); $("#trv_module_dialog_download_center_registration").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/download_center/components/dialog_registration.php?isIFrame="+isIFrame+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { moduleDownloadCenterContentChanged(false); $(this).dialog('destroy'); $("#trv_module_dialog_download_center_registration").remove(); trv_setPiwik(null,"Downloadcenter Registration - Dialog close"); }, beforeClose: function(event, ui) { return closeDownloadCenterDialog(isIFrame); }, closeOnEscape: false, resizable: false, position: position, minHeight: 655, height: 'auto', width: 600, modal: true, bgiframe: true, title: "Downloadfreischaltung" }); } } var moduleDownloadCenterContentChangedVar = false; function moduleDownloadCenterContentChanged(changed) { moduleDownloadCenterContentChangedVar = changed; setUnload(changed, "Die Downloadfreischaltung wurde ausgefüllt aber nicht abgesendet!"); } function closeDownloadCenterDialog(isIFrame) { if (moduleDownloadCenterContentChangedVar) { confirmCloseDownloadCenterDialog(isIFrame); return false; } return true; } function confirmCloseDownloadCenterDialog(isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); confirmDialog("BESTÄTIGUNG","moduleDownloadCenterContentChanged(false);$('#trv_module_dialog_download_center_registration').dialog('close');","Die Downloadfreischaltung wurde ausgefüllt aber nicht abgesendet!
Wollen Sie die Downloadfreischaltung wirklich beenden?",null,500,null,position); } function trv_download_center_toggle_info(articleID, isIFrame) { var source = $("#preview_picture_"+articleID).attr("data"); if (source && !$("#preview_picture_"+articleID).attr("src")) { $("#preview_picture_"+articleID).attr("src", source); } $('div#trv_module_download_center_article_'+articleID).slideToggle(500, function(){ if ($('div#trv_module_download_center_article_'+articleID+':visible').length == 1) { $('#trv_module_download_center_icon_'+articleID).attr({ src: '/homepage/themes/it-matchmaker-2014/core/images/icons/minus.gif'}); } else { $('#trv_module_download_center_icon_'+articleID).attr({ src: '/homepage/themes/it-matchmaker-2014/core/images/icons/plus.gif'}); } if (isIFrame) { setIFrameHeight(); } }); } function trv_download_center_get_set_tags(type) { $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de", { ajax_type: "GET_SET_TAG", type: type, full_path: "NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk," }, function(data) { $('#trv_module_download_center_set_tags').html(data); trv_download_center_get_addable_tags(type); }); } function trv_download_center_get_addable_tags(type) { $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de", { ajax_type: "GET_ADDABLE_TAGS", type: type, full_path: "NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk," }, function(data) { $('#trv_module_download_center_addable_tags').html(data); unblockScreen(); }); } function trv_download_center_get_article_by_tag(tag, action, type, isIFrame) { blockScreen(); $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de", { ajax_type: "GET_ARTICLE_BY_TAG", full_path: "NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,", tag: tag, type: type, action:action }, function(data) { $('#trv_module_download_center_content').html(data); $('input#downloadFilterInput').val(""); trv_download_center_get_set_tags(type); setIframeTop(); if (isIFrame) { setIFrameHeight(); } }); } function trv_download_center_filter(isIFrame) { blockScreen(); setTimeout('trv_download_center_filter_call('+isIFrame+')', 150); } function trv_download_center_filter_call(isIFrame) { var filterText = $('input#downloadFilterInput').val(); if (filterText == null) { filterText = ""; } $('.trovarit_search_text').removeHighlight(); if (filterText.length == 0) { $(".trv_module_download_center_container").show(); } else { $(".trv_module_download_center_container").each( function (column) { var searchText = ""; $(".trovarit_search_text",this).each(function() { searchText += $(this).text()+" "; }); if (searchText.toLowerCase().indexOf(filterText.toLowerCase()) >= 0) { $(this).show(); } else { $(this).hide(); } }); $('.trovarit_search_text').highlight(filterText); } count = $(".trv_module_download_center_container:visible").length; $('#trv_module_download_center_result_count').text(count); if (count == 0) { $('.trv_module_download_center_result').addClass('trv_module_download_center_result_red'); } else { $('.trv_module_download_center_result').removeClass('trv_module_download_center_result_red'); } if (isIFrame) { setIFrameHeight(); } unblockScreen(); } function trv_download_center_filter_reset(isIFrame) { $('input#downloadFilterInput').val(""); trv_download_center_filter(isIFrame); } function trv_download_center_send_registration(isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); if (isFormValid('trv_module_download_center_registration_form',position, isIFrame,'trv_core_input_white_validator_error')) { blockScreen(); var zielgruppe = $('input[name=inputDCZielgruppe]:checked').val(); if ($('#inputDCZielgruppeSonstiges').val().length > 0) { zielgruppe = $('#inputDCZielgruppeSonstiges').val(); } var zweck = ""; $('input[name=inputDCZweck]:checked').each(function(i) { zweck = zweck + $(this).val()+";"; }); if ($('#inputDCZweckSonstiges').val() != "") { zweck = zweck + $('#inputDCZweckSonstiges').val()+";"; } $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de", { ajax_type: "REGISTER_DOWNLOADCENTER", full_path: "NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,", inputDCTitle: $('#inputDCTitle').val(), inputDCFirstName: $('#inputDCFirstName').val(), inputDCName: $('#inputDCName').val(), inputDCCompany: $('#inputDCCompany').val(), inputDCStreet: $('#inputDCStreet').val(), inputDCPLZ: $('#inputDCPLZ').val(), inputDCCity: $('#inputDCCity').val(), inputDCEMail: $('#inputDCEMail').val(), inputDCTelefon: $('#inputDCTelefon').val(), inputDCZielgruppe: zielgruppe, inputDCZweck: zweck, pageLink: location.href }, function(data) { unblockScreen(); if (data == 0) { moduleDownloadCenterContentChanged(false); $("#trv_module_dialog_download_center_registration").dialog("close"); infoDialog("INFORMATION","Ihr Freischaltlink wurde erfolgreich an Sie gesendet.",null,null,null, position); trv_setPiwik(null,"Downloadcenter Registration - Complete"); } else { infoDialog("FEHLER",data,null,600,null, position); } }); } } function trv_dc_page_starter(preselectTagID, preselectDocumentData, type) { if (preselectTagID != "") trv_download_center_get_article_by_tag(preselectTagID,'reset',type); else if (preselectDocumentData != "") { $('#downloadFilterInput').val(preselectDocumentData); trv_download_center_filter(); } } function trv_homepage_admin_save_messe_form() { MesseFormData = $('#trv_module_homepage_admin_messeform_input').serialize(); $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de", { ajax_type: "SAVE_MESSEFORM_DATA", MesseFormData: MesseFormData }, function(data) { unblockScreen(); if(data!=1) { infoDialog("FEHLER","",null,750,null,null,null,true); } else { //close_dialog(); blockScreen(); document.location.reload(); } } ); return false; } function trv_homepage_admin_sendMessetermin(preview) { form_name = "trv_module_homepage_admin_messe_form"; if(preview) { form_name += "_preview"; } if($('#'+form_name).valid()) { blockScreen(); MesseFormData = $('#trv_module_homepage_admin_messe_form').serialize(); $.post("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de", { ajax_type: "SEND_MESSETERMIN", MesseFormData: MesseFormData }, function(data) { unblockScreen(); if (data == 0) { $("#trv_module_homepage_admin_messe_form_box").dialog("close"); infoDialog("INFORMATION","Ihre Nachricht wurde an uns gesendet! Einer unserer Mitarbeiter nimmt in Kürze Kontakt mit Ihnen auf, um den Termin zu bestätigen."); } else { infoDialog("FEHLER",data); } } ); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function trv_homepage_admin_check_form() { if($('#trv_module_homepage_admin_contact_data_form').valid()) { return true; } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); return false; } } function trv_homepage_admin_check_messe_form(preview) { form_name = "trv_module_homepage_admin_messe_form"; if(preview) { form_name += "_preview"; } if($('#'+form_name).valid()) { return true; } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); return false; } } function trv_homepage_admin_open_messe_form() { var title; if ($("#trv_module_homepage_admin_messe_form_box").length == 0) { $("body").append(""); } $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de", { ajax_type: "LOAD_MESSEFORM_TITLE" }, function(data) { title = data; $("#trv_module_homepage_admin_messe_form_box").html(""); $("#trv_module_homepage_admin_messe_form_box").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/MesseForm_loader.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); }, closeOnEscape: false, resizable: false, minHeight:280, height: 'auto', width: 700, modal: true, bgiframe: true, title: title, position: ['center',20] }); }); blockScreen(); } function trv_homepage_admin_edit_guided_tour(guided_tours_ID) { $("#dialog").html(""); $("#dialog").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/guided_tours_editor.php?guided_tours_ID="+guided_tours_ID+"full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 1100, width: 500, modal: true, bgiframe: true }); blockScreen(); } function showHomepageAdminMesseFormStep(id) { //all invisible $("div#trv_module_homepage_messeform_step_1").addClass("trv_module_homepage_admin_invisible") $("div#trv_module_homepage_messeform_step_2").addClass("trv_module_homepage_admin_invisible") $("div#trv_module_homepage_messeform_step_3").addClass("trv_module_homepage_admin_invisible") $("div#trv_module_homepage_messeform_step_"+id).removeClass("trv_module_homepage_admin_invisible") $('html, body').animate({scrollTop:$("#trv_module_homepage_admin_messe_form_box").offset().top-45}); } function showHomepageAdminFormStep(id) { //all invisible $("div#trv_module_homepage_form_step_1").addClass("trv_module_homepage_admin_invisible"); $("div#trv_module_homepage_form_step_2").addClass("trv_module_homepage_admin_invisible"); $("div#trv_module_homepage_form_step_3").addClass("trv_module_homepage_admin_invisible"); $("div#trv_module_homepage_form_step_4").addClass("trv_module_homepage_admin_invisible"); $("div#trv_module_homepage_form_step_5").addClass("trv_module_homepage_admin_invisible"); $("div#trv_module_homepage_form_step_"+id).removeClass("trv_module_homepage_admin_invisible"); $('html, body').animate({scrollTop:$("#trv_module_homepage_admin_dialog_webinar_booking").offset().top-45}); } function trv_module_homepage_admin_open_webinar_editor(webinarID) { if ($("#trv_module_homepage_admin_dialog_webinar_editor").length == 0) { if(webinarID>0) { title = 'Webinar bearbeiten'; } else { title = 'Neues Webinar anlegen'; } $("body").append(""); $("#trv_module_homepage_admin_dialog_webinar_editor").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/webinar_editor.php?webinarID="+webinarID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_webinar_editor").remove(); }, beforeClose: function(event, ui) { if (trv_dialogContentChanged) { return trv_confirmClose("$('#trv_module_homepage_admin_dialog_webinar_editor').dialog('close')",1); } }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 300, width: 550, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } return false; } function trv_module_homepage_admin_open_webinar_booking_editor(bookingID) { if ($("#trv_module_homepage_admin_dialog_webinar_booking_editor").length == 0) { title = ''; $("body").append(""); $("#trv_module_homepage_admin_dialog_webinar_booking_editor").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/webinar_booking_editor.php?bookingID="+bookingID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_webinar_booking_editor").remove(); }, beforeClose: function(event, ui) { if (trv_dialogContentChanged) { return trv_confirmClose("$('#trv_module_homepage_admin_dialog_webinar_booking_editor').dialog('close')",1); } }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 300, width: 550, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } return false; } function trv_module_homepage_admin_open_references_preview() { if ($("#trv_module_homepage_admin_dialog_references_preview").length == 0) { $("body").append(""); $("#trv_module_homepage_admin_dialog_references_preview").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/references_list.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_references_preview").remove(); }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 300, width: 650, modal: true, bgiframe: true, title: 'Vorschau', position: ['center',60] }); unblockScreen(); } return false; } function trv_module_homepage_admin_close_webinar_editor() { $("#trv_module_homepage_admin_dialog_webinar_editor").dialog('close'); } function trv_module_homepage_admin_close_reference_editor() { $("#trv_module_homepage_admin_dialog_reference_editor").dialog('close'); } function trv_module_homepage_admin_save_webinar_editor() { if($('#trv_module_homepage_admin_dialog_webinar_editor_form').valid()) { $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "EDIT_WEBINAR", parameter: { webinarFormData: $('#trv_module_homepage_admin_dialog_webinar_editor_form').serialize() }, onSuccess: function(data) { if ($("#trv_webinar_row_"+data.webinarID).length == 1) { $("#trv_webinar_row_"+data.webinarID).replaceWith(data.tableRow); } else { $('#trv_module_homepage_admin_webinars_table tbody').append(data.tableRow); } reinitTablesorter('trv_module_homepage_admin_webinars_table'); setToolbarInfo("trv_module_homepage_admin_webinars_table", true); dialogContentChanged(false); trv_module_homepage_admin_close_webinar_editor(); } }); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function trv_module_homepage_admin_save_webinar_booking_editor() { if($('#trv_module_homepage_admin_webinar_booking_status_form').valid()) { $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "EDIT_WEBINAR_BOOKING", parameter: { webinarFormData: $('#trv_module_homepage_admin_webinar_booking_status_form').serialize() }, onSuccess: function(data) { if ($("#trv_webinar_row_"+data.bookingID).length == 1) { $("#trv_webinar_row_"+data.bookingID).replaceWith(data.tableRow); } else { $('#trv_module_homepage_admin_webinars_table tbody').append(data.tableRow); } reinitTablesorter('trv_module_homepage_admin_webinar_bookings_table'); dialogContentChanged(false); trv_module_homepage_admin_close_webinar_booking_editor(); } }); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function trv_homepage_admin_open_portale_selector(webinarID) { if ($("#trv_module_homepage_admin_dialog_portals_editor").length == 0) { selectedPortals = $("#trv_module_homepage_admin_selected_portals").val(); $("body").append(""); $("#trv_module_homepage_admin_dialog_portals_editor").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/webinar_portals.php?webinarID="+webinarID+"&selectedPortals="+selectedPortals+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_portals_editor").remove(); }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 300, width: 900, modal: true, bgiframe: true, title: 'Portale wählen', position: ['center',60] }); blockScreen(); } return false; } function trv_homepage_admin_cancel_portal_selection() { $("#trv_module_homepage_admin_dialog_portals_editor").dialog('close'); } function trv_homepage_admin_save_change_portal_selection() { var selectedPortal = ""; $('input[name=productScope]:checked').each(function(i) { selectedPortal += $(this).val()+"-"; }); selectedPortal = selectedPortal.slice(0, - 1); if($("#trv_module_homepage_admin_selected_portals").val()!=selectedPortal) { dialogContentChanged(true); } $("#trv_module_homepage_admin_selected_portals").val(selectedPortal); trv_homepage_admin_cancel_portal_selection(); } var select_alternative_webinar_box_visible = 1; function toggle_select_alternative_webinar_box() { if(select_alternative_webinar_box_visible == 1) { $("tr#select_alternative_webinar_box").removeClass("trv_module_homepage_admin_invisible"); select_alternative_webinar_box_visible = 0; } else { $("tr#select_alternative_webinar_box").addClass("trv_module_homepage_admin_invisible"); select_alternative_webinar_box_visible = 1; } } function trv_module_homepage_admin_open_webinar_preview() { if ($("#trv_module_homepage_admin_dialog_webinar_preview").length == 0) { $("body").append(""); $("#trv_module_homepage_admin_dialog_webinar_preview").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/webinar_list.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_webinar_preview").remove(); $(this).scrollTop(); }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 300, width: 650, modal: true, bgiframe: true, title: 'Vorschau', position: ['top',20] }); blockScreen(); } return false; } function trv_module_homepage_admin_toggle_webinar_box(id) { $("div#trovarit_webinar_box_"+id).slideToggle(); $("div#trovarit_webinar_icon_plus_"+id).slideToggle(0); $("div#trovarit_webinar_icon_minus_"+id).slideToggle(0); } function trv_module_homepage_admin_open_webinar_booking(webinarID, type) { if ($("#trv_module_homepage_admin_dialog_webinar_booking").length == 0) { $("body").append(""); $("#trv_module_homepage_admin_dialog_webinar_booking").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/webinar_booking.php?webinarID="+webinarID+"&type="+type+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_webinar_booking").remove(); $(this).scrollTop(); }, beforeClose: function(event, ui) { if (trv_dialogContentChanged) { return trv_confirmClose("$('#trv_module_homepage_admin_dialog_webinar_booking').dialog('close')",1); } }, closeOnEscape: false, resizable: false, height: 'auto', width: 550, modal: true, bgiframe: true, title: 'Webinar-Anmeldung', position: ['top',20] }); blockScreen(); } return false; } function trv_homepage_admin_book_webinar() { if($('#trv_module_homepage_admin_privacy_form').valid()) { $.trv_postJson({ module_name: "homepage_admin", ajax_type: "BOOK_WEBINAR", parameter: { webinarFormData: $('#trv_module_homepage_admin_contact_data_form').serialize(), additional_webinars: $('#trv_module_homepage_admin_additional_webinars_form').serialize() }, onSuccess: function(data) { dialogContentChanged(false); showHomepageAdminFormStep(5); } }); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); return false; } } function trv_module_homepage_admin_close_webinar_booking() { $("#trv_module_homepage_admin_dialog_webinar_booking").dialog('close'); } function trv_module_homepage_admin_setWebinarFilter() { blockScreen(); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "SET_WEBINAR_FILTER", parameter: {new_filter: $("#webinarFilter").val()}, onSuccess: function(data) { $("#trv_module_homepage_admin_webinars_table").html(data.table); reinitTablesorter("trv_module_homepage_admin_webinars_table"); setToolbarInfo("trv_module_homepage_admin_webinars_table", true); initTooltip(); unblockScreen(); } }); } function trv_module_homepage_admin_setWebinarBookingFilter() { blockScreen(); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "SET_WEBINAR_BOOKING_FILTER", parameter: {new_filter: $("#webinarBookingFilter").val()}, onSuccess: function(data) { $("#trv_module_homepage_admin_webinar_bookings_table").html(data.table); reinitTablesorter("trv_module_homepage_admin_webinar_bookings_table"); setToolbarInfo("trv_module_homepage_admin_webinar_bookings_table", true); initTooltip(); unblockScreen(); } }); } function trv_module_homepage_admin_setReferencesFilter() { blockScreen(); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "SET_REFERENCES_FILTER", parameter: {new_filter: $("#referencesFilter").val()}, onSuccess: function(data) { $("#trv_module_homepage_admin_references_table").html(data.table); reinitTablesorter("trv_module_homepage_admin_references_table"); setToolbarInfo("trv_module_homepage_admin_references_table", true); initTooltip(); unblockScreen(); } }); } function trv_module_homepage_admin_setReferencesListFilter() { blockScreen(); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "SET_REFERENCES_LIST_FILTER", parameter: {new_filter: $("#referencesListFilter").val()}, onSuccess: function(data) { $("#trv_module_homepage_admin_references_list_table").html(data.table); reinitTablesorter("trv_module_homepage_admin_references_table"); setToolbarInfo("trv_module_homepage_admin_references_table", true); initTooltip(); unblockScreen(); } }); } function trv_module_homepage_admin_open_reference_editor(referenceID) { if ($("#trv_module_homepage_admin_dialog_reference_editor").length == 0) { if(referenceID>0) { title = 'Referenz bearbeiten'; } else { title = 'neue Referenz anlegen'; } $("body").append(""); $("#trv_module_homepage_admin_dialog_reference_editor").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/reference_editor.php?referenceID="+referenceID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_reference_editor").remove(); }, beforeClose: function(event, ui) { if (trv_dialogContentChanged) { return trv_confirmClose("$('#trv_module_homepage_admin_dialog_reference_editor').dialog('close')",1); } }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 350, width: 550, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } return false; } function trv_homepage_admin_references_delete_logo(referenceID) { $("#logo_box_"+referenceID).slideToggle(0); $("#trv_module_homepage_admin_reference_delete_logo").val(1); $("#trv_module_homepage_admin_reference_logo_name").val(""); } function trv_homepage_admin_references_delete_logo_support(referenceID) { $("#logo_support_box_"+referenceID).slideToggle(0); $("#trv_module_homepage_admin_reference_delete_logo_support").val(1); $("#trv_module_homepage_admin_reference_logo_support_name").val(""); } function trv_module_homepage_admin_save_reference_editor(referenceID) { if($('#trv_module_homepage_admin_dialog_reference_editor_form').valid()) { new_logo = trv_module_homepage_admin_saveLogo(referenceID); new_support_logo = trv_module_homepage_admin_saveSupportLogo(referenceID); new_info_file = trv_module_homepage_admin_saveInfoFile(referenceID); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "EDIT_REFERENCE", parameter: { referenceFormData: $('#trv_module_homepage_admin_dialog_reference_editor_form').serialize(), logo_name: new_logo, logo_support_name: new_support_logo, new_info_file: new_info_file }, onSuccess: function(data) { if ($("#trv_reference_row_"+data.referenceID).length == 1) { $("#trv_reference_row_"+data.referenceID).replaceWith(data.tableRow); } else { $('#trv_module_homepage_admin_references_table tbody').append(data.tableRow); } reinitTablesorter('trv_module_homepage_admin_references_table'); setToolbarInfo("trv_module_homepage_admin_references_table", true); dialogContentChanged(false); trv_module_homepage_admin_close_reference_editor(); } }); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function trv_module_homepage_admin_saveLogo(referenceID) { logoUpload.setData( { 'deleteBeforeSaveFilename': 1, 'newFilename': $("#input_logoUpload").text() }); logoUpload.submit(); return $("#input_logoUpload").text(); } function trv_module_homepage_admin_saveInfoFile(referenceID) { infoFileUpload.setData( { 'deleteBeforeSaveFilename': 1, 'newFilename': $("#input_infoFileUpload").text() }); infoFileUpload.submit(); return $("#input_infoFileUpload").text(); } function trv_module_homepage_admin_saveSupportLogo(referenceID) { logoSupportUpload.setData( { 'deleteBeforeSaveFilename': 1, 'newFilename': $("#input_logoSupportUpload").text() }); logoSupportUpload.submit(); return $("#input_logoSupportUpload").text(); } function trv_module_homepage_admin_confirmDeleteLogo(referenceID, isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); confirmDialog("BESTÄTIGUNG","trv_module_homepage_admin_deleteLogo("+referenceID+");","Soll das Logo wirklich gelöscht werden?",null,400,null,position); } function trv_module_homepage_admin_deleteLogo(referenceID) { blockScreen(); $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?app_language=de", { full_path: "NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,", referenceID: referenceID, ajax_type: "DELETE_LOGO" }, function(data) { unblockScreen(); $('#logoManagement').html(data); $(".trv_module_references_edit_logo").toggle(); }); } function trv_module_homepage_admin_confirmDeletePreview(downloadcenterID, isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); confirmDialog("BESTÄTIGUNG","trv_module_homepage_admin_deletePreview("+downloadcenterID+");","Wollen Sie diese Vorschau wirklich löschen?",null,400,null,position); } function trv_module_homepage_admin_deletePreview(downloadcenterID) { blockScreen(); $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?app_language=de", { full_path: "NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,", downloadcenterID: downloadcenterID, ajax_type: "DELETE_PREVIEW" }, function(data) { unblockScreen(); $('#previewManagement').html(data); $(".trv_module_downloadcenter_edit_preview").toggle(); }); } function trv_module_homepage_admin_open_downloadcenter_editor(downloadcenterID) { if ($("#trv_module_homepage_admin_dialog_downloadcenter_editor").length == 0) { if(downloadcenterID>0) { title = 'Download bearbeiten'; } else { title = 'neuen Download anlegen'; } $("body").append(""); $("#trv_module_homepage_admin_dialog_downloadcenter_editor").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/downloadcenter_editor.php?downloadcenterID="+downloadcenterID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_downloadcenter_editor").remove(); }, beforeClose: function(event, ui) { if (trv_dialogContentChanged) { return trv_confirmClose("$('#trv_module_homepage_admin_dialog_downloadcenter_editor').dialog('close')",1); } }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 350, width: 550, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } return false; } function trv_module_homepage_admin_setDownloadcenterFilter() { blockScreen(); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "SET_DOWNLOADCENTER_FILTER", parameter: {new_filter: $("#downloadcenterFilter").val()}, onSuccess: function(data) { $("#trv_module_homepage_admin_downloadcenter_table").html(data.table); reinitTablesorter("trv_module_homepage_admin_downloadcenter_table"); setToolbarInfo("trv_module_homepage_admin_downloadcenter_table", true); initTooltip(); unblockScreen(); } }); } function trv_module_homepage_admin_save_downloadcenter_editor(downloadcenterID) { if($('#trv_module_homepage_admin_dialog_downloadcenter_editor_form').valid()) { $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "EDIT_DOWNLOADCENTER", parameter: { downloadcenterFormData: $('#trv_module_homepage_admin_dialog_downloadcenter_editor_form').serialize(), new_download_name: $("#input_fileUpload").text(), new_preview_name: $("#input_previewUpload").text() }, onSuccess: function(data) { new_download = trv_module_homepage_admin_saveDownload(data.downloadcenterID); new_preview = trv_module_homepage_admin_savePreview(data.downloadcenterID); if ($("#trv_download_row_"+data.downloadcenterID).length == 1) { $("#trv_download_row_"+data.downloadcenterID).replaceWith(data.tableRow); } else { $('#trv_module_homepage_admin_downloadcenter_table tbody').append(data.tableRow); } reinitTablesorter('trv_module_homepage_admin_downloadcenter_table'); setToolbarInfo("trv_module_homepage_admin_downloadcenter_table", true); dialogContentChanged(false); trv_module_homepage_admin_close_downloadcenter_editor(); } }); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function trv_module_homepage_admin_saveDownload(downloadcenterID) { fileUpload.setData( { 'deleteBeforeSaveFilename': 1, 'newFilename': downloadcenterID+"_"+$("#input_fileUpload").text() }); fileUpload.submit(); return $("#input_fileUpload").text(); } function trv_module_homepage_admin_savePreview(downloadcenterID) { previewUpload.setData( { 'deleteBeforeSaveFilename': 1, 'newFilename': downloadcenterID+"_"+$("#input_previewUpload").text() }); previewUpload.submit(); return $("#input_previewUpload").text(); } function trv_module_homepage_admin_close_downloadcenter_editor() { $("#trv_module_homepage_admin_dialog_downloadcenter_editor").dialog('close'); } function trv_module_homepage_admin_additional_webinar_selected(webinarID) { $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "ADDITIONAL_WEBINAR_SELECTED", parameter: { additional_webinars_data: $('#trv_module_homepage_admin_additional_webinars_form').serialize(), webinarID: webinarID }, onSuccess: function(data) { $("#privacy_text_box").html(data.privacy_text); } }); } function trv_module_homepage_admin_close_webinar_booking_editor() { $("#trv_module_homepage_admin_dialog_webinar_booking_editor").dialog('close'); } function trv_module_homepage_admin_delete_webinar_booking(bookingID) { if(confirm("Wollen Sie diese Buchung wirklich löschen?")) { $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "DELETE_WEBINAR_BOOKING", parameter: { bookingID: bookingID }, onSuccess: function(data) { $("#trv_webinar_row_"+data.bookingID).remove(); reinitTablesorter('trv_module_homepage_admin_webinar_bookings_table'); setToolbarInfo("trv_module_homepage_admin_webinar_bookings_table", true); dialogContentChanged(false); trv_module_homepage_admin_close_webinar_booking_editor(); } }); } } function trv_module_homepage_admin_download_webinar_bookings(webinarID) { location.href = "http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/export_webinar_booking.php?webinarID="+webinarID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de"; } function trv_homepage_admin_clone_webinar() { webinarID = $("#trv_select_webinar_clone").val(); if(confirm("Wollen Sie dieses Webinar klonen? Bereits eingegebene Daten werden überschrieben!")) { $.trv_postJson({ blockScreen:true, module_name: "homepage_admin", ajax_type: "CLONE_WEBINAR", parameter: { webinarID: webinarID }, onSuccess: function(data) { $("#trv_module_homepage_admin_webinars_title").val(data.TITLE); $("#trv_module_homepage_admin_webinars_subtitle").val(data.SUBTITLE); $("#trv_module_homepage_admin_webinars_thema").val(data.THEMA); $("#trv_module_homepage_admin_webinars_referent").val(data.REFERENT); $("#trv_module_homepage_admin_webinars_short_description").val(data.KURZBESCHREIBUNG); $("#trv_module_homepage_admin_webinars_type").val(data.TYP); $("#trv_module_homepage_admin_webinars_application_area").val(data.ANWENDUNGSBEREICH); $("#trv_module_homepage_admin_webinars_privacy_agreement").val(data.PRIVACY); $("#trv_module_homepage_admin_selected_portals").val(data.PORTALS); unblockScreen(); } }); } } function add_new_keyword() { // add new item to table and get the new ID var new_keyword = $("#new_keyword").val(); if(new_keyword != "") { $.trv_postJson({ blockScreen:true, module_name: "homepage_admin", ajax_type: "ADD_NEW_DC_KEYWORD", parameter: { new_keyword: new_keyword }, onSuccess: function(data) { if(data.success) { $('.trv_module_homepage_downloadcenter_multiselect').append( $('') .val(data.ID) .html(new_keyword) .attr("selected", "selected")); $(".trv_module_homepage_downloadcenter_multiselect").trigger("chosen:updated"); } else { infoDialog("Achtung!","Das eingegebene Schlagwort ist bereits vorhanden!"); $('.trv_module_homepage_downloadcenter_multiselect option[value='+data.ID+']').attr("selected",1).trigger("chosen:updated"); } // clear input field $("#new_keyword").val(""); } }); } } function trv_homepage_admin_open_newsletter_form() { title = 'Trovarit Newsletter Anmeldung'; $("body").append(""); $("#trv_module_homepage_admin_newsletter_form_box").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/newsletter_form.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_newsletter_form_box").remove(); }, closeOnEscape: true, resizable: false, height: 'auto', minHeight: 350, width: 550, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } function trv_homepage_admin_open_newsletter_abo_form() { url = "https://newsabo.it-matchmaker-news.de/comsetting/setting.php?dl=697&iframe=1" var $dialog = $('') .html('') .dialog({ autoOpen: false, modal: true, width:750, height:750, title: "Newsletter Anmeldung" }); $dialog.dialog('open'); } function trv_homepage_admin_cancel_newsletter_form() { $("#trv_module_homepage_admin_newsletter_form_box").remove(); } function trv_homepage_admin_send_newsletter_form() { if($("#trv_module_homepage_admin_newsletter_form").valid()) { $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de", { ajax_type: "SAVE_NEWSLETTER_SUBSCRIPTION_DATA", NewsletterFormData: $('#trv_module_homepage_admin_newsletter_form').serialize() }, function(result) { unblockScreen(); data = JSON.parse(result); if (data.success == 1) { infoDialog("FEHLER","Fehler: Bei der Übermittlung Ihrer Anmeldung ist ein Fehler aufgetreten! Bitte versuchen Sie es noch einmal oder nehmen Sie Kontakt zu unserem Support auf!",null,750,null,null,null,true); } else { infoDialog("Trovarit Newsletter Anmeldung","Ihre Newsletter-Anmeldung wurde erfolgreich gespeichert!",null,750,null,null,null,true); trv_homepage_admin_cancel_newsletter_form(); } } ); } return false; } function trv_homepage_admin_open_guided_tours_anmeldung() { title = 'Anmeldung Guided Tours'; $("body").append(""); $("#trv_module_homepage_admin_guided_tours_anmeldung_box").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/guided_tours_anmeldung.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_guided_tours_anmeldung_box").remove(); }, closeOnEscape: true, resizable: false, height: 'auto', minHeight: 350, width: 850, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } function trv_homepage_admin_send_guided_tours_anmeldung_form() { if($('#trv_module_homepage_admin_guided_tours_anmeldung_form').valid()) { $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de", { ajax_type: "SAVE_GUIDED_TOURS_ANMELDUNG_DATA", GuidedToursFormData: $('#trv_module_homepage_admin_guided_tours_anmeldung_form').serialize() }, function(result) { unblockScreen(); data = JSON.parse(result); if (data.success == 1) { infoDialog("Anmeldung Guided Tours","Ihre Anmeldung wurde erfolgreich abgeschickt!",null,750,null,null,null,true); trv_homepage_admin_cancel_guided_tours_anmeldung_form(); } else { infoDialog("FEHLER","Fehler: Bei der Übermittlung Ihrer Anmeldung ist ein Fehler aufgetreten! Bitte versuchen Sie es noch einmal oder nehmen Sie Kontakt zu unserem Support auf!",null,750,null,null,null,true); } } ); } return false; } function trv_homepage_admin_cancel_guided_tours_anmeldung_form() { $("#trv_module_homepage_admin_guided_tours_anmeldung_box").remove(); } function trv_homepage_admin_open_wordpress_form() { title = 'Anmeldung ERP-Challenge'; $("body").append(""); $("#trv_module_homepage_admin_wordpress_form_box").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/components/wordpress_form.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_wordpress_form_box").remove(); }, closeOnEscape: true, resizable: false, height: 'auto', minHeight: 250, width: 700, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } function trv_homepage_admin_send_wordpress_form() { if($('#trv_module_homepage_admin_wordpress_form').valid()) { $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de", { ajax_type: "SAVE_WORDPRESS_FORM_DATA", GuidedToursFormData: $('#trv_module_homepage_admin_wordpress_form').serialize() }, function(result) { unblockScreen(); data = JSON.parse(result); if (data.success == 1) { infoDialog("Anmeldung erfolgreich","Vielen Dank für Ihre Anmeldung, Sie erhalten umgehend eine Bestätigungsmail!",null,750,null,null,null,true); trv_homepage_admin_cancel_wordpress_form(); } else { infoDialog("FEHLER","Fehler: Bei der Übermittlung Ihrer Anmeldung ist ein Fehler aufgetreten! Bitte versuchen Sie es noch einmal oder nehmen Sie Kontakt zu unserem Support auf!",null,750,null,null,null,true); } } ); } } function trv_homepage_admin_cancel_wordpress_form() { $("#trv_module_homepage_admin_wordpress_form_box").remove(); } /*! jQuery Timepicker Addon - v1.5.2 - 2015-03-15 * http://trentrichardson.com/examples/timepicker * Copyright (c) 2015 Trent Richardson; Licensed MIT */ (function(e){"function"==typeof define&&define.amd?define(["jquery","jquery.ui"],e):e(jQuery)})(function($){if($.ui.timepicker=$.ui.timepicker||{},!$.ui.timepicker.version){$.extend($.ui,{timepicker:{version:"1.5.2"}});var Timepicker=function(){this.regional=[],this.regional[""]={currentText:"Now",closeText:"Done",amNames:["AM","A"],pmNames:["PM","P"],timeFormat:"HH:mm",timeSuffix:"",timeOnlyTitle:"Choose Time",timeText:"Time",hourText:"Hour",minuteText:"Minute",secondText:"Second",millisecText:"Millisecond",microsecText:"Microsecond",timezoneText:"Time Zone",isRTL:!1},this._defaults={showButtonPanel:!0,timeOnly:!1,timeOnlyShowDate:!1,showHour:null,showMinute:null,showSecond:null,showMillisec:null,showMicrosec:null,showTimezone:null,showTime:!0,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,stepMicrosec:1,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,microsecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,microsecMax:999,minDateTime:null,maxDateTime:null,maxTime:null,minTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,microsecGrid:0,alwaysSetTime:!0,separator:" ",altFieldTimeOnly:!0,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,altRedirectFocus:!0,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:!0,timezoneList:null,addSliderAccess:!1,sliderAccessArgs:null,controlType:"slider",oneLine:!1,defaultValue:null,parse:"strict",afterInject:null},$.extend(this._defaults,this.regional[""])};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,microsec_slider:null,timezone_select:null,maxTime:null,minTime:null,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,microsecMinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,microsecMaxOriginal:null,ampm:"",formattedDate:"",formattedTime:"",formattedDateTime:"",timezoneList:null,units:["hour","minute","second","millisec","microsec"],support:{},control:null,setDefaults:function(e){return extendRemove(this._defaults,e||{}),this},_newInst:function($input,opts){var tp_inst=new Timepicker,inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults)if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr("time:"+attrName);if(attrValue)try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}overrides={beforeShow:function(e,t){return $.isFunction(tp_inst._defaults.evnts.beforeShow)?tp_inst._defaults.evnts.beforeShow.call($input[0],e,t,tp_inst):void 0},onChangeMonthYear:function(e,t,i){$.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)&&tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],e,t,i,tp_inst)},onClose:function(e,t){tp_inst.timeDefined===!0&&""!==$input.val()&&tp_inst._updateDateTime(t),$.isFunction(tp_inst._defaults.evnts.onClose)&&tp_inst._defaults.evnts.onClose.call($input[0],e,t,tp_inst)}};for(i in overrides)overrides.hasOwnProperty(i)&&(fns[i]=opts[i]||null);tp_inst._defaults=$.extend({},this._defaults,inlineSettings,opts,overrides,{evnts:fns,timepicker:tp_inst}),tp_inst.amNames=$.map(tp_inst._defaults.amNames,function(e){return e.toUpperCase()}),tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,function(e){return e.toUpperCase()}),tp_inst.support=detectSupport(tp_inst._defaults.timeFormat+(tp_inst._defaults.pickerTimeFormat?tp_inst._defaults.pickerTimeFormat:"")+(tp_inst._defaults.altTimeFormat?tp_inst._defaults.altTimeFormat:"")),"string"==typeof tp_inst._defaults.controlType?("slider"===tp_inst._defaults.controlType&&$.ui.slider===void 0&&(tp_inst._defaults.controlType="select"),tp_inst.control=tp_inst._controls[tp_inst._defaults.controlType]):tp_inst.control=tp_inst._defaults.controlType;var timezoneList=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];null!==tp_inst._defaults.timezoneList&&(timezoneList=tp_inst._defaults.timezoneList);var tzl=timezoneList.length,tzi=0,tzv=null;if(tzl>0&&"object"!=typeof timezoneList[0])for(;tzl>tzi;tzi++)tzv=timezoneList[tzi],timezoneList[tzi]={value:tzv,label:$.timepicker.timezoneOffsetString(tzv,tp_inst.support.iso8601)};return tp_inst._defaults.timezoneList=timezoneList,tp_inst.timezone=null!==tp_inst._defaults.timezone?$.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone):-1*(new Date).getTimezoneOffset(),tp_inst.hour=tp_inst._defaults.hourtp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour,tp_inst.minute=tp_inst._defaults.minute tp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute,tp_inst.second=tp_inst._defaults.second tp_inst._defaults.secondMax?tp_inst._defaults.secondMax:tp_inst._defaults.second,tp_inst.millisec=tp_inst._defaults.millisec tp_inst._defaults.millisecMax?tp_inst._defaults.millisecMax:tp_inst._defaults.millisec,tp_inst.microsec=tp_inst._defaults.microsec tp_inst._defaults.microsecMax?tp_inst._defaults.microsecMax:tp_inst._defaults.microsec,tp_inst.ampm="",tp_inst.$input=$input,tp_inst._defaults.altField&&(tp_inst.$altInput=$(tp_inst._defaults.altField),tp_inst._defaults.altRedirectFocus===!0&&tp_inst.$altInput.css({cursor:"pointer"}).focus(function(){$input.trigger("focus")})),(0===tp_inst._defaults.minDate||0===tp_inst._defaults.minDateTime)&&(tp_inst._defaults.minDate=new Date),(0===tp_inst._defaults.maxDate||0===tp_inst._defaults.maxDateTime)&&(tp_inst._defaults.maxDate=new Date),void 0!==tp_inst._defaults.minDate&&tp_inst._defaults.minDate instanceof Date&&(tp_inst._defaults.minDateTime=new Date(tp_inst._defaults.minDate.getTime())),void 0!==tp_inst._defaults.minDateTime&&tp_inst._defaults.minDateTime instanceof Date&&(tp_inst._defaults.minDate=new Date(tp_inst._defaults.minDateTime.getTime())),void 0!==tp_inst._defaults.maxDate&&tp_inst._defaults.maxDate instanceof Date&&(tp_inst._defaults.maxDateTime=new Date(tp_inst._defaults.maxDate.getTime())),void 0!==tp_inst._defaults.maxDateTime&&tp_inst._defaults.maxDateTime instanceof Date&&(tp_inst._defaults.maxDate=new Date(tp_inst._defaults.maxDateTime.getTime())),tp_inst.$input.bind("focus",function(){tp_inst._onFocus()}),tp_inst},_addTimePicker:function(e){var t=$.trim(this.$altInput&&this._defaults.altFieldTimeOnly?this.$input.val()+" "+this.$altInput.val():this.$input.val());this.timeDefined=this._parseTime(t),this._limitMinMaxDateTime(e,!1),this._injectTimePicker(),this._afterInject()},_parseTime:function(e,t){if(this.inst||(this.inst=$.datepicker._getInst(this.$input[0])),t||!this._defaults.timeOnly){var i=$.datepicker._get(this.inst,"dateFormat");try{var s=parseDateTimeInternal(i,this._defaults.timeFormat,e,$.datepicker._getFormatConfig(this.inst),this._defaults);if(!s.timeObj)return!1;$.extend(this,s.timeObj)}catch(a){return $.timepicker.log("Error parsing the date/time string: "+a+"\ndate/time string = "+e+"\ntimeFormat = "+this._defaults.timeFormat+"\ndateFormat = "+i),!1}return!0}var n=$.datepicker.parseTime(this._defaults.timeFormat,e,this._defaults);return n?($.extend(this,n),!0):!1},_afterInject:function(){var e=this.inst.settings;$.isFunction(e.afterInject)&&e.afterInject.call(this)},_injectTimePicker:function(){var e=this.inst.dpDiv,t=this.inst.settings,i=this,s="",a="",n=null,r={},l={},o=null,c=0,u=0;if(0===e.find("div.ui-timepicker-div").length&&t.showTimepicker){var m=" ui_tpicker_unit_hide",d=' ";var g=$(d);for(t.timeOnly===!0&&(g.prepend(' "),e.find(".ui-datepicker-header, .ui-datepicker-calendar").hide()),c=0,u=i.units.length;u>c;c++)s=i.units[c],a=s.substr(0,1).toUpperCase()+s.substr(1),n=null!==t["show"+a]?t["show"+a]:this.support[s],i[s+"_slider"]=i.control.create(i,g.find(".ui_tpicker_"+s+"_slider"),s,i[s],t[s+"Min"],r[s],t["step"+a]),n&&t[s+"Grid"]>0&&(o=100*l[s]*t[s+"Grid"]/(r[s]-t[s+"Min"]),g.find(".ui_tpicker_"+s+" table").css({width:o+"%",marginLeft:t.isRTL?"0":o/(-2*l[s])+"%",marginRight:t.isRTL?o/(-2*l[s])+"%":"0",borderCollapse:"collapse"}).find("td").click(function(){var e=$(this),t=e.html(),a=parseInt(t.replace(/[^0-9]/g),10),n=t.replace(/[^apm]/gi),r=e.data("for");"hour"===r&&(-1!==n.indexOf("p")&&12>a?a+=12:-1!==n.indexOf("a")&&12===a&&(a=0)),i.control.value(i,i[r+"_slider"],s,a),i._onTimeChange(),i._onSelectHandler()}).css({cursor:"pointer",width:100/l[s]+"%",textAlign:"center",overflow:"hidden"}));if(this.timezone_select=g.find(".ui_tpicker_timezone").append("").find("select"),$.fn.append.apply(this.timezone_select,$.map(t.timezoneList,function(e){return $("").val("object"==typeof e?e.value:e).text("object"==typeof e?e.label:e)})),this.timezone!==void 0&&null!==this.timezone&&""!==this.timezone){var M=-1*new Date(this.inst.selectedYear,this.inst.selectedMonth,this.inst.selectedDay,12).getTimezoneOffset();M===this.timezone?selectLocalTimezone(i):this.timezone_select.val(this.timezone)}else this.hour!==void 0&&null!==this.hour&&""!==this.hour?this.timezone_select.val(t.timezone):selectLocalTimezone(i);this.timezone_select.change(function(){i._onTimeChange(),i._onSelectHandler(),i._afterInject()});var v=e.find(".ui-datepicker-buttonpane");if(v.length?v.before(g):e.append(g),this.$timeObj=g.find(".ui_tpicker_time"),null!==this.inst){var k=this.timeDefined;this._onTimeChange(),this.timeDefined=k}if(this._defaults.addSliderAccess){var T=this._defaults.sliderAccessArgs,D=this._defaults.isRTL;T.isRTL=D,setTimeout(function(){if(0===g.find(".ui-slider-access").length){g.find(".ui-slider:visible").sliderAccess(T);var e=g.find(".ui-slider-access:eq(0)").outerWidth(!0);e&&g.find("table:visible").each(function(){var t=$(this),i=t.outerWidth(),s=(""+t.css(D?"marginRight":"marginLeft")).replace("%",""),a=i-e,n=s*a/i+"%",r={width:a,marginRight:0,marginLeft:0};r[D?"marginRight":"marginLeft"]=n,t.css(r)})}},10)}i._limitMinMaxDateTime(this.inst,!0)}},_limitMinMaxDateTime:function(e,t){var i=this._defaults,s=new Date(e.selectedYear,e.selectedMonth,e.selectedDay);if(this._defaults.showTimepicker){if(null!==$.datepicker._get(e,"minDateTime")&&void 0!==$.datepicker._get(e,"minDateTime")&&s){var a=$.datepicker._get(e,"minDateTime"),n=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0,0);(null===this.hourMinOriginal||null===this.minuteMinOriginal||null===this.secondMinOriginal||null===this.millisecMinOriginal||null===this.microsecMinOriginal)&&(this.hourMinOriginal=i.hourMin,this.minuteMinOriginal=i.minuteMin,this.secondMinOriginal=i.secondMin,this.millisecMinOriginal=i.millisecMin,this.microsecMinOriginal=i.microsecMin),e.settings.timeOnly||n.getTime()===s.getTime()?(this._defaults.hourMin=a.getHours(),this.hour<=this._defaults.hourMin?(this.hour=this._defaults.hourMin,this._defaults.minuteMin=a.getMinutes(),this.minute<=this._defaults.minuteMin?(this.minute=this._defaults.minuteMin,this._defaults.secondMin=a.getSeconds(),this.second<=this._defaults.secondMin?(this.second=this._defaults.secondMin,this._defaults.millisecMin=a.getMilliseconds(),this.millisec<=this._defaults.millisecMin?(this.millisec=this._defaults.millisecMin,this._defaults.microsecMin=a.getMicroseconds()):(this.microsec'+'
- "+t.timeText+"
"+'';for(c=0,u=this.units.length;u>c;c++){if(s=this.units[c],a=s.substr(0,1).toUpperCase()+s.substr(1),n=null!==t["show"+a]?t["show"+a]:this.support[s],r[s]=parseInt(t[s+"Max"]-(t[s+"Max"]-t[s+"Min"])%t["step"+a],10),l[s]=0,d+='- '+t[s+"Text"]+"
"+'- ',n&&t[s+"Grid"]>0){if(d+='
"}var f=null!==t.showTimezone?t.showTimezone:this.support.timezone;d+='"}d+="
',"hour"===s)for(var h=t[s+"Min"];r[s]>=h;h+=parseInt(t[s+"Grid"],10)){l[s]++;var p=$.datepicker.formatTime(this.support.ampm?"hht":"HH",{hour:h},t);d+=' '+p+" "}else for(var _=t[s+"Min"];r[s]>=_;_+=parseInt(t[s+"Grid"],10))l[s]++,d+=''+(10>_?"0":"")+_+" ";d+="- '+t.timezoneText+"
",d+='',d+="=this._defaults.hourMax?(this.hour=this._defaults.hourMax,this._defaults.minuteMax=r.getMinutes(),this.minute>=this._defaults.minuteMax?(this.minute=this._defaults.minuteMax,this._defaults.secondMax=r.getSeconds(),this.second>=this._defaults.secondMax?(this.second=this._defaults.secondMax,this._defaults.millisecMax=r.getMilliseconds(),this.millisec>=this._defaults.millisecMax?(this.millisec=this._defaults.millisecMax,this._defaults.microsecMax=r.getMicroseconds()):(this.microsec>this._defaults.microsecMax&&(this.microsec=this._defaults.microsecMax),this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.secondMax=this.secondMaxOriginal,this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.minuteMax=this.minuteMaxOriginal,this._defaults.secondMax=this.secondMaxOriginal,this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.hourMax=this.hourMaxOriginal,this._defaults.minuteMax=this.minuteMaxOriginal,this._defaults.secondMax=this.secondMaxOriginal,this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)}if(null!==e.settings.minTime){var o=new Date("01/01/1970 "+e.settings.minTime);this.hour c.getHours()?(this.hour=this._defaults.hourMax=c.getHours(),this.minute=this._defaults.minuteMax=c.getMinutes()):this.hour===c.getHours()&&this.minute>c.getMinutes()?this.minute=this._defaults.minuteMax=c.getMinutes():this._defaults.hourMax>c.getHours()?(this._defaults.hourMax=c.getHours(),this._defaults.minuteMax=c.getMinutes()):this._defaults.minuteMax=this._defaults.hourMax===c.getHours()===this.hour&&this._defaults.minuteMax>c.getMinutes()?c.getMinutes():59}if(void 0!==t&&t===!0){var u=parseInt(this._defaults.hourMax-(this._defaults.hourMax-this._defaults.hourMin)%this._defaults.stepHour,10),m=parseInt(this._defaults.minuteMax-(this._defaults.minuteMax-this._defaults.minuteMin)%this._defaults.stepMinute,10),d=parseInt(this._defaults.secondMax-(this._defaults.secondMax-this._defaults.secondMin)%this._defaults.stepSecond,10),h=parseInt(this._defaults.millisecMax-(this._defaults.millisecMax-this._defaults.millisecMin)%this._defaults.stepMillisec,10),p=parseInt(this._defaults.microsecMax-(this._defaults.microsecMax-this._defaults.microsecMin)%this._defaults.stepMicrosec,10);this.hour_slider&&(this.control.options(this,this.hour_slider,"hour",{min:this._defaults.hourMin,max:u,step:this._defaults.stepHour}),this.control.value(this,this.hour_slider,"hour",this.hour-this.hour%this._defaults.stepHour)),this.minute_slider&&(this.control.options(this,this.minute_slider,"minute",{min:this._defaults.minuteMin,max:m,step:this._defaults.stepMinute}),this.control.value(this,this.minute_slider,"minute",this.minute-this.minute%this._defaults.stepMinute)),this.second_slider&&(this.control.options(this,this.second_slider,"second",{min:this._defaults.secondMin,max:d,step:this._defaults.stepSecond}),this.control.value(this,this.second_slider,"second",this.second-this.second%this._defaults.stepSecond)),this.millisec_slider&&(this.control.options(this,this.millisec_slider,"millisec",{min:this._defaults.millisecMin,max:h,step:this._defaults.stepMillisec}),this.control.value(this,this.millisec_slider,"millisec",this.millisec-this.millisec%this._defaults.stepMillisec)),this.microsec_slider&&(this.control.options(this,this.microsec_slider,"microsec",{min:this._defaults.microsecMin,max:p,step:this._defaults.stepMicrosec}),this.control.value(this,this.microsec_slider,"microsec",this.microsec-this.microsec%this._defaults.stepMicrosec))}}},_onTimeChange:function(){if(this._defaults.showTimepicker){var e=this.hour_slider?this.control.value(this,this.hour_slider,"hour"):!1,t=this.minute_slider?this.control.value(this,this.minute_slider,"minute"):!1,i=this.second_slider?this.control.value(this,this.second_slider,"second"):!1,s=this.millisec_slider?this.control.value(this,this.millisec_slider,"millisec"):!1,a=this.microsec_slider?this.control.value(this,this.microsec_slider,"microsec"):!1,n=this.timezone_select?this.timezone_select.val():!1,r=this._defaults,l=r.pickerTimeFormat||r.timeFormat,o=r.pickerTimeSuffix||r.timeSuffix;"object"==typeof e&&(e=!1),"object"==typeof t&&(t=!1),"object"==typeof i&&(i=!1),"object"==typeof s&&(s=!1),"object"==typeof a&&(a=!1),"object"==typeof n&&(n=!1),e!==!1&&(e=parseInt(e,10)),t!==!1&&(t=parseInt(t,10)),i!==!1&&(i=parseInt(i,10)),s!==!1&&(s=parseInt(s,10)),a!==!1&&(a=parseInt(a,10)),n!==!1&&(n=""+n);var c=r[12>e?"amNames":"pmNames"][0],u=e!==parseInt(this.hour,10)||t!==parseInt(this.minute,10)||i!==parseInt(this.second,10)||s!==parseInt(this.millisec,10)||a!==parseInt(this.microsec,10)||this.ampm.length>0&&12>e!=(-1!==$.inArray(this.ampm.toUpperCase(),this.amNames))||null!==this.timezone&&n!==""+this.timezone;u&&(e!==!1&&(this.hour=e),t!==!1&&(this.minute=t),i!==!1&&(this.second=i),s!==!1&&(this.millisec=s),a!==!1&&(this.microsec=a),n!==!1&&(this.timezone=n),this.inst||(this.inst=$.datepicker._getInst(this.$input[0])),this._limitMinMaxDateTime(this.inst,!0)),this.support.ampm&&(this.ampm=c),this.formattedTime=$.datepicker.formatTime(r.timeFormat,this,r),this.$timeObj&&(l===r.timeFormat?this.$timeObj.text(this.formattedTime+o):this.$timeObj.text($.datepicker.formatTime(l,this,r)+o)),this.timeDefined=!0,u&&this._updateDateTime()}},_onSelectHandler:function(){var e=this._defaults.onSelect||this.inst.settings.onSelect,t=this.$input?this.$input[0]:null;e&&t&&e.apply(t,[this.formattedDateTime,this])},_updateDateTime:function(e){e=this.inst||e;var t=e.currentYear>0?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(e.selectedYear,e.selectedMonth,e.selectedDay),i=$.datepicker._daylightSavingAdjust(t),s=$.datepicker._get(e,"dateFormat"),a=$.datepicker._getFormatConfig(e),n=null!==i&&this.timeDefined;this.formattedDate=$.datepicker.formatDate(s,null===i?new Date:i,a);var r=this.formattedDate;if(""===e.lastVal&&(e.currentYear=e.selectedYear,e.currentMonth=e.selectedMonth,e.currentDay=e.selectedDay),this._defaults.timeOnly===!0&&this._defaults.timeOnlyShowDate===!1?r=this.formattedTime:(this._defaults.timeOnly!==!0&&(this._defaults.alwaysSetTime||n)||this._defaults.timeOnly===!0&&this._defaults.timeOnlyShowDate===!0)&&(r+=this._defaults.separator+this.formattedTime+this._defaults.timeSuffix),this.formattedDateTime=r,this._defaults.showTimepicker)if(this.$altInput&&this._defaults.timeOnly===!1&&this._defaults.altFieldTimeOnly===!0)this.$altInput.val(this.formattedTime),this.$input.val(this.formattedDate);else if(this.$altInput){this.$input.val(r);var l="",o=null!==this._defaults.altSeparator?this._defaults.altSeparator:this._defaults.separator,c=null!==this._defaults.altTimeSuffix?this._defaults.altTimeSuffix:this._defaults.timeSuffix;this._defaults.timeOnly||(l=this._defaults.altFormat?$.datepicker.formatDate(this._defaults.altFormat,null===i?new Date:i,a):this.formattedDate,l&&(l+=o)),l+=null!==this._defaults.altTimeFormat?$.datepicker.formatTime(this._defaults.altTimeFormat,this,this._defaults)+c:this.formattedTime+c,this.$altInput.val(l)}else this.$input.val(r);else this.$input.val(this.formattedDate);this.$input.trigger("change")},_onFocus:function(){if(!this.$input.val()&&this._defaults.defaultValue){this.$input.val(this._defaults.defaultValue);var e=$.datepicker._getInst(this.$input.get(0)),t=$.datepicker._get(e,"timepicker");if(t&&t._defaults.timeOnly&&e.input.val()!==e.lastVal)try{$.datepicker._updateDatepicker(e)}catch(i){$.timepicker.log(i)}}},_controls:{slider:{create:function(e,t,i,s,a,n,r){var l=e._defaults.isRTL;return t.prop("slide",null).slider({orientation:"horizontal",value:l?-1*s:s,min:l?-1*n:a,max:l?-1*a:n,step:r,slide:function(t,s){e.control.value(e,$(this),i,l?-1*s.value:s.value),e._onTimeChange()},stop:function(){e._onSelectHandler()}})},options:function(e,t,i,s,a){if(e._defaults.isRTL){if("string"==typeof s)return"min"===s||"max"===s?void 0!==a?t.slider(s,-1*a):Math.abs(t.slider(s)):t.slider(s);var n=s.min,r=s.max;return s.min=s.max=null,void 0!==n&&(s.max=-1*n),void 0!==r&&(s.min=-1*r),t.slider(s)}return"string"==typeof s&&void 0!==a?t.slider(s,a):t.slider(s)},value:function(e,t,i,s){return e._defaults.isRTL?void 0!==s?t.slider("value",-1*s):Math.abs(t.slider("value")):void 0!==s?t.slider("value",s):t.slider("value")}},select:{create:function(e,t,i,s,a,n,r){for(var l='",t.children("select").remove(),$(l).appendTo(t).change(function(){e._onTimeChange(),e._onSelectHandler(),e._afterInject()}),t},options:function(e,t,i,s,a){var n={},r=t.children("select");if("string"==typeof s){if(void 0===a)return r.data(s);n[s]=a}else n=s;return e.control.create(e,t,r.data("unit"),r.val(),n.min>=0?n.min:r.data("min"),n.max||r.data("max"),n.step||r.data("step"))},value:function(e,t,i,s){var a=t.children("select");return void 0!==s?a.val(s):a.val()}}}}),$.fn.extend({timepicker:function(e){e=e||{};var t=Array.prototype.slice.call(arguments);return"object"==typeof e&&(t[0]=$.extend(e,{timeOnly:!0})),$(this).each(function(){$.fn.datetimepicker.apply($(this),t)})},datetimepicker:function(e){e=e||{};var t=arguments;return"string"==typeof e?"getDate"===e||"option"===e&&2===t.length&&"string"==typeof t[1]?$.fn.datepicker.apply($(this[0]),t):this.each(function(){var e=$(this);e.datepicker.apply(e,t)}):this.each(function(){var t=$(this);t.datepicker($.timepicker._newInst(t,e)._defaults)})}}),$.datepicker.parseDateTime=function(e,t,i,s,a){var n=parseDateTimeInternal(e,t,i,s,a);if(n.timeObj){var r=n.timeObj;n.date.setHours(r.hour,r.minute,r.second,r.millisec),n.date.setMicroseconds(r.microsec)}return n.date},$.datepicker.parseTime=function(e,t,i){var s=extendRemove(extendRemove({},$.timepicker._defaults),i||{});-1!==e.replace(/\'.*?\'/g,"").indexOf("Z");var a=function(e,t,i){var s,a=function(e,t){var i=[];return e&&$.merge(i,e),t&&$.merge(i,t),i=$.map(i,function(e){return e.replace(/[.*+?|()\[\]{}\\]/g,"\\$&")}),"("+i.join("|")+")?"},n=function(e){var t=e.toLowerCase().match(/(h{1,2}|m{1,2}|s{1,2}|l{1}|c{1}|t{1,2}|z|'.*?')/g),i={h:-1,m:-1,s:-1,l:-1,c:-1,t:-1,z:-1};if(t)for(var s=0;t.length>s;s++)-1===i[(""+t[s]).charAt(0)]&&(i[(""+t[s]).charAt(0)]=s+1);return i},r="^"+(""+e).replace(/([hH]{1,2}|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(e){var t=e.length;switch(e.charAt(0).toLowerCase()){case"h":return 1===t?"(\\d?\\d)":"(\\d{"+t+"})";case"m":return 1===t?"(\\d?\\d)":"(\\d{"+t+"})";case"s":return 1===t?"(\\d?\\d)":"(\\d{"+t+"})";case"l":return"(\\d?\\d?\\d)";case"c":return"(\\d?\\d?\\d)";case"z":return"(z|[-+]\\d\\d:?\\d\\d|\\S+)?";case"t":return a(i.amNames,i.pmNames);default:return"("+e.replace(/\'/g,"").replace(/(\.|\$|\^|\\|\/|\(|\)|\[|\]|\?|\+|\*)/g,function(e){return"\\"+e})+")?"}}).replace(/\s/g,"\\s?")+i.timeSuffix+"$",l=n(e),o="";s=t.match(RegExp(r,"i"));var c={hour:0,minute:0,second:0,millisec:0,microsec:0};return s?(-1!==l.t&&(void 0===s[l.t]||0===s[l.t].length?(o="",c.ampm=""):(o=-1!==$.inArray(s[l.t].toUpperCase(),$.map(i.amNames,function(e){return e.toUpperCase()}))?"AM":"PM",c.ampm=i["AM"===o?"amNames":"pmNames"][0])),-1!==l.h&&(c.hour="AM"===o&&"12"===s[l.h]?0:"PM"===o&&"12"!==s[l.h]?parseInt(s[l.h],10)+12:Number(s[l.h])),-1!==l.m&&(c.minute=Number(s[l.m])),-1!==l.s&&(c.second=Number(s[l.s])),-1!==l.l&&(c.millisec=Number(s[l.l])),-1!==l.c&&(c.microsec=Number(s[l.c])),-1!==l.z&&void 0!==s[l.z]&&(c.timezone=$.timepicker.timezoneOffsetNumber(s[l.z])),c):!1},n=function(e,t,i){try{var s=new Date("2012-01-01 "+t);if(isNaN(s.getTime())&&(s=new Date("2012-01-01T"+t),isNaN(s.getTime())&&(s=new Date("01/01/2012 "+t),isNaN(s.getTime()))))throw"Unable to parse time with native Date: "+t;return{hour:s.getHours(),minute:s.getMinutes(),second:s.getSeconds(),millisec:s.getMilliseconds(),microsec:s.getMicroseconds(),timezone:-1*s.getTimezoneOffset()}}catch(n){try{return a(e,t,i)}catch(r){$.timepicker.log("Unable to parse \ntimeString: "+t+"\ntimeFormat: "+e)}}return!1};return"function"==typeof s.parse?s.parse(e,t,s):"loose"===s.parse?n(e,t,s):a(e,t,s)},$.datepicker.formatTime=function(e,t,i){i=i||{},i=$.extend({},$.timepicker._defaults,i),t=$.extend({hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null},t);var s=e,a=i.amNames[0],n=parseInt(t.hour,10);return n>11&&(a=i.pmNames[0]),s=s.replace(/(?:HH?|hh?|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(e){switch(e){case"HH":return("0"+n).slice(-2);case"H":return n;case"hh":return("0"+convert24to12(n)).slice(-2);case"h":return convert24to12(n);case"mm":return("0"+t.minute).slice(-2);case"m":return t.minute;case"ss":return("0"+t.second).slice(-2);case"s":return t.second;case"l":return("00"+t.millisec).slice(-3);case"c":return("00"+t.microsec).slice(-3);case"z":return $.timepicker.timezoneOffsetString(null===t.timezone?i.timezone:t.timezone,!1);case"Z":return $.timepicker.timezoneOffsetString(null===t.timezone?i.timezone:t.timezone,!0);case"T":return a.charAt(0).toUpperCase();case"TT":return a.toUpperCase();case"t":return a.charAt(0).toLowerCase();case"tt":return a.toLowerCase();default:return e.replace(/'/g,"")}})},$.datepicker._base_selectDate=$.datepicker._selectDate,$.datepicker._selectDate=function(e,t){var i,s=this._getInst($(e)[0]),a=this._get(s,"timepicker");a&&s.settings.showTimepicker?(a._limitMinMaxDateTime(s,!0),i=s.inline,s.inline=s.stay_open=!0,this._base_selectDate(e,t),s.inline=i,s.stay_open=!1,this._notifyChange(s),this._updateDatepicker(s)):this._base_selectDate(e,t)},$.datepicker._base_updateDatepicker=$.datepicker._updateDatepicker,$.datepicker._updateDatepicker=function(e){var t=e.input[0];if(!($.datepicker._curInst&&$.datepicker._curInst!==e&&$.datepicker._datepickerShowing&&$.datepicker._lastInput!==t||"boolean"==typeof e.stay_open&&e.stay_open!==!1)){this._base_updateDatepicker(e);var i=this._get(e,"timepicker");i&&i._addTimePicker(e)}},$.datepicker._base_doKeyPress=$.datepicker._doKeyPress,$.datepicker._doKeyPress=function(e){var t=$.datepicker._getInst(e.target),i=$.datepicker._get(t,"timepicker");if(i&&$.datepicker._get(t,"constrainInput")){var s=i.support.ampm,a=null!==i._defaults.showTimezone?i._defaults.showTimezone:i.support.timezone,n=$.datepicker._possibleChars($.datepicker._get(t,"dateFormat")),r=(""+i._defaults.timeFormat).replace(/[hms]/g,"").replace(/TT/g,s?"APM":"").replace(/Tt/g,s?"AaPpMm":"").replace(/tT/g,s?"AaPpMm":"").replace(/T/g,s?"AP":"").replace(/tt/g,s?"apm":"").replace(/t/g,s?"ap":"")+" "+i._defaults.separator+i._defaults.timeSuffix+(a?i._defaults.timezoneList.join(""):"")+i._defaults.amNames.join("")+i._defaults.pmNames.join("")+n,l=String.fromCharCode(void 0===e.charCode?e.keyCode:e.charCode);return e.ctrlKey||" ">l||!n||r.indexOf(l)>-1}return $.datepicker._base_doKeyPress(e)},$.datepicker._base_updateAlternate=$.datepicker._updateAlternate,$.datepicker._updateAlternate=function(e){var t=this._get(e,"timepicker");if(t){var i=t._defaults.altField;if(i){var s=(t._defaults.altFormat||t._defaults.dateFormat,this._getDate(e)),a=$.datepicker._getFormatConfig(e),n="",r=t._defaults.altSeparator?t._defaults.altSeparator:t._defaults.separator,l=t._defaults.altTimeSuffix?t._defaults.altTimeSuffix:t._defaults.timeSuffix,o=null!==t._defaults.altTimeFormat?t._defaults.altTimeFormat:t._defaults.timeFormat;n+=$.datepicker.formatTime(o,t,t._defaults)+l,t._defaults.timeOnly||t._defaults.altFieldTimeOnly||null===s||(n=t._defaults.altFormat?$.datepicker.formatDate(t._defaults.altFormat,s,a)+r+n:t.formattedDate+r+n),$(i).val(e.input.val()?n:"")}}else $.datepicker._base_updateAlternate(e)},$.datepicker._base_doKeyUp=$.datepicker._doKeyUp,$.datepicker._doKeyUp=function(e){var t=$.datepicker._getInst(e.target),i=$.datepicker._get(t,"timepicker");if(i&&i._defaults.timeOnly&&t.input.val()!==t.lastVal)try{$.datepicker._updateDatepicker(t)}catch(s){$.timepicker.log(s)}return $.datepicker._base_doKeyUp(e)},$.datepicker._base_gotoToday=$.datepicker._gotoToday,$.datepicker._gotoToday=function(e){var t=this._getInst($(e)[0]);t.dpDiv,this._base_gotoToday(e);var i=this._get(t,"timepicker");selectLocalTimezone(i);var s=new Date;this._setTime(t,s),this._setDate(t,s)},$.datepicker._disableTimepickerDatepicker=function(e){var t=this._getInst(e);if(t){var i=this._get(t,"timepicker");$(e).datepicker("getDate"),i&&(t.settings.showTimepicker=!1,i._defaults.showTimepicker=!1,i._updateDateTime(t)) }},$.datepicker._enableTimepickerDatepicker=function(e){var t=this._getInst(e);if(t){var i=this._get(t,"timepicker");$(e).datepicker("getDate"),i&&(t.settings.showTimepicker=!0,i._defaults.showTimepicker=!0,i._addTimePicker(t),i._updateDateTime(t))}},$.datepicker._setTime=function(e,t){var i=this._get(e,"timepicker");if(i){var s=i._defaults;i.hour=t?t.getHours():s.hour,i.minute=t?t.getMinutes():s.minute,i.second=t?t.getSeconds():s.second,i.millisec=t?t.getMilliseconds():s.millisec,i.microsec=t?t.getMicroseconds():s.microsec,i._limitMinMaxDateTime(e,!0),i._onTimeChange(),i._updateDateTime(e)}},$.datepicker._setTimeDatepicker=function(e,t,i){var s=this._getInst(e);if(s){var a=this._get(s,"timepicker");if(a){this._setDateFromField(s);var n;t&&("string"==typeof t?(a._parseTime(t,i),n=new Date,n.setHours(a.hour,a.minute,a.second,a.millisec),n.setMicroseconds(a.microsec)):(n=new Date(t.getTime()),n.setMicroseconds(t.getMicroseconds())),"Invalid Date"==""+n&&(n=void 0),this._setTime(s,n))}}},$.datepicker._base_setDateDatepicker=$.datepicker._setDateDatepicker,$.datepicker._setDateDatepicker=function(e,t){var i=this._getInst(e),s=t;if(i){"string"==typeof t&&(s=new Date(t),s.getTime()||(this._base_setDateDatepicker.apply(this,arguments),s=$(e).datepicker("getDate")));var a,n=this._get(i,"timepicker");s instanceof Date?(a=new Date(s.getTime()),a.setMicroseconds(s.getMicroseconds())):a=s,n&&a&&(n.support.timezone||null!==n._defaults.timezone||(n.timezone=-1*a.getTimezoneOffset()),s=$.timepicker.timezoneAdjust(s,n.timezone),a=$.timepicker.timezoneAdjust(a,n.timezone)),this._updateDatepicker(i),this._base_setDateDatepicker.apply(this,arguments),this._setTimeDatepicker(e,a,!0)}},$.datepicker._base_getDateDatepicker=$.datepicker._getDateDatepicker,$.datepicker._getDateDatepicker=function(e,t){var i=this._getInst(e);if(i){var s=this._get(i,"timepicker");if(s){void 0===i.lastVal&&this._setDateFromField(i,t);var a=this._getDate(i);return a&&s._parseTime($(e).val(),s.timeOnly)&&(a.setHours(s.hour,s.minute,s.second,s.millisec),a.setMicroseconds(s.microsec),null!=s.timezone&&(s.support.timezone||null!==s._defaults.timezone||(s.timezone=-1*a.getTimezoneOffset()),a=$.timepicker.timezoneAdjust(a,s.timezone))),a}return this._base_getDateDatepicker(e,t)}},$.datepicker._base_parseDate=$.datepicker.parseDate,$.datepicker.parseDate=function(e,t,i){var s;try{s=this._base_parseDate(e,t,i)}catch(a){if(!(a.indexOf(":")>=0))throw a;s=this._base_parseDate(e,t.substring(0,t.length-(a.length-a.indexOf(":")-2)),i),$.timepicker.log("Error parsing the date string: "+a+"\ndate string = "+t+"\ndate format = "+e)}return s},$.datepicker._base_formatDate=$.datepicker._formatDate,$.datepicker._formatDate=function(e){var t=this._get(e,"timepicker");return t?(t._updateDateTime(e),t.$input.val()):this._base_formatDate(e)},$.datepicker._base_optionDatepicker=$.datepicker._optionDatepicker,$.datepicker._optionDatepicker=function(e,t,i){var s,a=this._getInst(e);if(!a)return null;var n=this._get(a,"timepicker");if(n){var r,l,o,c,u=null,m=null,d=null,h=n._defaults.evnts,p={};if("string"==typeof t){if("minDate"===t||"minDateTime"===t)u=i;else if("maxDate"===t||"maxDateTime"===t)m=i;else if("onSelect"===t)d=i;else if(h.hasOwnProperty(t)){if(i===void 0)return h[t];p[t]=i,s={}}}else if("object"==typeof t){t.minDate?u=t.minDate:t.minDateTime?u=t.minDateTime:t.maxDate?m=t.maxDate:t.maxDateTime&&(m=t.maxDateTime);for(r in h)h.hasOwnProperty(r)&&t[r]&&(p[r]=t[r])}for(r in p)p.hasOwnProperty(r)&&(h[r]=p[r],s||(s=$.extend({},t)),delete s[r]);if(s&&isEmptyObject(s))return;if(u?(u=0===u?new Date:new Date(u),n._defaults.minDate=u,n._defaults.minDateTime=u):m?(m=0===m?new Date:new Date(m),n._defaults.maxDate=m,n._defaults.maxDateTime=m):d&&(n._defaults.onSelect=d),u||m)return c=$(e),o=c.datetimepicker("getDate"),l=this._base_optionDatepicker.call($.datepicker,e,s||t,i),c.datetimepicker("setDate",o),l}return void 0===i?this._base_optionDatepicker.call($.datepicker,e,t):this._base_optionDatepicker.call($.datepicker,e,s||t,i)};var isEmptyObject=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0},extendRemove=function(e,t){$.extend(e,t);for(var i in t)(null===t[i]||void 0===t[i])&&(e[i]=t[i]);return e},detectSupport=function(e){var t=e.replace(/'.*?'/g,"").toLowerCase(),i=function(e,t){return-1!==e.indexOf(t)?!0:!1};return{hour:i(t,"h"),minute:i(t,"m"),second:i(t,"s"),millisec:i(t,"l"),microsec:i(t,"c"),timezone:i(t,"z"),ampm:i(t,"t")&&i(e,"h"),iso8601:i(e,"Z")}},convert24to12=function(e){return e%=12,0===e&&(e=12),e+""},computeEffectiveSetting=function(e,t){return e&&e[t]?e[t]:$.timepicker._defaults[t]},splitDateTime=function(e,t){var i=computeEffectiveSetting(t,"separator"),s=computeEffectiveSetting(t,"timeFormat"),a=s.split(i),n=a.length,r=e.split(i),l=r.length;return l>1?{dateString:r.splice(0,l-n).join(i),timeString:r.splice(0,n).join(i)}:{dateString:e,timeString:""}},parseDateTimeInternal=function(e,t,i,s,a){var n,r,l;if(r=splitDateTime(i,a),n=$.datepicker._base_parseDate(e,r.dateString,s),""===r.timeString)return{date:n};if(l=$.datepicker.parseTime(t,r.timeString,a),!l)throw"Wrong time format";return{date:n,timeObj:l}},selectLocalTimezone=function(e,t){if(e&&e.timezone_select){var i=t||new Date;e.timezone_select.val(-i.getTimezoneOffset())}};$.timepicker=new Timepicker,$.timepicker.timezoneOffsetString=function(e,t){if(isNaN(e)||e>840||-720>e)return e;var i=e,s=i%60,a=(i-s)/60,n=t?":":"",r=(i>=0?"+":"-")+("0"+Math.abs(a)).slice(-2)+n+("0"+Math.abs(s)).slice(-2);return"+00:00"===r?"Z":r},$.timepicker.timezoneOffsetNumber=function(e){var t=(""+e).replace(":","");return"Z"===t.toUpperCase()?0:/^(\-|\+)\d{4}$/.test(t)?("-"===t.substr(0,1)?-1:1)*(60*parseInt(t.substr(1,2),10)+parseInt(t.substr(3,2),10)):e},$.timepicker.timezoneAdjust=function(e,t){var i=$.timepicker.timezoneOffsetNumber(t);return isNaN(i)||e.setMinutes(e.getMinutes()+-e.getTimezoneOffset()-i),e},$.timepicker.timeRange=function(e,t,i){return $.timepicker.handleRange("timepicker",e,t,i)},$.timepicker.datetimeRange=function(e,t,i){$.timepicker.handleRange("datetimepicker",e,t,i)},$.timepicker.dateRange=function(e,t,i){$.timepicker.handleRange("datepicker",e,t,i)},$.timepicker.handleRange=function(e,t,i,s){function a(a,n){var r=t[e]("getDate"),l=i[e]("getDate"),o=a[e]("getDate");if(null!==r){var c=new Date(r.getTime()),u=new Date(r.getTime());c.setMilliseconds(c.getMilliseconds()+s.minInterval),u.setMilliseconds(u.getMilliseconds()+s.maxInterval),s.minInterval>0&&c>l?i[e]("setDate",c):s.maxInterval>0&&l>u?i[e]("setDate",u):r>l&&n[e]("setDate",o)}}function n(t,i,a){if(t.val()){var n=t[e].call(t,"getDate");null!==n&&s.minInterval>0&&("minDate"===a&&n.setMilliseconds(n.getMilliseconds()+s.minInterval),"maxDate"===a&&n.setMilliseconds(n.getMilliseconds()-s.minInterval)),n.getTime&&i[e].call(i,"option",a,n)}}s=$.extend({},{minInterval:0,maxInterval:0,start:{},end:{}},s);var r=!1;return"timepicker"===e&&(r=!0,e="datetimepicker"),$.fn[e].call(t,$.extend({timeOnly:r,onClose:function(){a($(this),i)},onSelect:function(){n($(this),i,"minDate")}},s,s.start)),$.fn[e].call(i,$.extend({timeOnly:r,onClose:function(){a($(this),t)},onSelect:function(){n($(this),t,"maxDate")}},s,s.end)),a(t,i),n(t,i,"minDate"),n(i,t,"maxDate"),$([t.get(0),i.get(0)])},$.timepicker.log=function(){window.console&&window.console.log.apply(window.console,Array.prototype.slice.call(arguments))},$.timepicker._util={_extendRemove:extendRemove,_isEmptyObject:isEmptyObject,_convert24to12:convert24to12,_detectSupport:detectSupport,_selectLocalTimezone:selectLocalTimezone,_computeEffectiveSetting:computeEffectiveSetting,_splitDateTime:splitDateTime,_parseDateTimeInternal:parseDateTimeInternal},Date.prototype.getMicroseconds||(Date.prototype.microseconds=0,Date.prototype.getMicroseconds=function(){return this.microseconds},Date.prototype.setMicroseconds=function(e){return this.setMilliseconds(this.getMilliseconds()+Math.floor(e/1e3)),this.microseconds=e%1e3,this}),$.timepicker.version="1.5.2"}}); /* German translation for the jQuery Timepicker Addon */ /* Written by Marvin */ (function($) { $.timepicker.regional['de'] = { timeOnlyTitle: 'Zeit wählen', timeText: 'Zeit', hourText: 'Stunde', minuteText: 'Minute', secondText: 'Sekunde', millisecText: 'Millisekunde', microsecText: 'Mikrosekunde', timezoneText: 'Zeitzone', currentText: 'Jetzt', closeText: 'Fertig', timeFormat: 'HH:mm', timeSuffix: '', amNames: ['vorm.', 'AM', 'A'], pmNames: ['nachm.', 'PM', 'P'], isRTL: false }; $.timepicker.setDefaults($.timepicker.regional['de']); })(jQuery); function setModuleMatchmakerLightProfileInput(element, itemID, inputTyp, forceValue, isIFrame) { if ($(element).length > 0) { blockScreen(true); var vorgaengerID = 0; if (inputTyp == "TMP_MEMO") { var value = $(element).val(); } else { var value = $(element).is(":checked")?1:0; } if (inputTyp == "TMP_RADIO") { vorgaengerID = itemID; itemID = $(element).val(); value = forceValue; } $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/matchmaker_light/ajax/ajax.php?app_language=de", { full_path: "NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,", ajax_type: "SET_PROFILE_INPUT", inputTyp: inputTyp, itemID: itemID, value: value, vorgaengerID: vorgaengerID }, function(data) { if ((data == 1) || (data == 0)) { getModuleMatchmakerLightResultCount(); if (inputTyp != "TMP_MEMO") { if (data == 1) { $(element).each(function(){ this.checked = true; }); } else { $(element).each(function(){ this.checked = false; }); } } unblockScreen(true); } else { unblockScreen(true); var position = getIFramePosition(isIFrame); infoDialog("FEHLER", data, null,600, null, position); } }); } } function getModuleMatchmakerLightResultCount() { blockScreen(true); $.post( "http://cyberkmu.portal.it-matchmaker.com/core/modules/matchmaker_light/ajax/ajax.php?app_language=de", { full_path: "NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,", ajax_type: "GET_RESULT_COUNT" }, function(data) { $(".trv_module_matchmaker_light_profile_count").text(data); unblockScreen(true); }); } function openSelectLanguageDialog(isIFrame) { if ($("#trv_module_dialog_select_language").length == 0) { blockScreen(); isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); $("body").append(""); $("#trv_module_dialog_select_language").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/matchmaker_light/components/dialog_select_language.php?full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_dialog_select_language").remove(); }, closeOnEscape: true, resizable: false, position: position, minHeight: 240, height: 'auto', width: 250, modal: true, bgiframe: true, title: "Land wechseln" }); } } function trvToggleFavorit(companyID, productID, isIFrame) { $.post( "http://cyberkmu.portal.it-matchmaker.com/core/ajax/ajax.php?app_language=de", { full_path: "NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,", ajax_type: "TOGGLE_ITM_FAVORITE", productID: productID, companyID: companyID }, function(data) { if ((data == 1) || (data == 0)) { if (data == 1) { $("#trv_favorite_"+companyID+"_"+productID).attr("src","/homepage/themes/it-matchmaker-2014/core/images/icons/star.png"); } else { $("#trv_favorite_"+companyID+"_"+productID).attr("src","/homepage/themes/it-matchmaker-2014/core/images/icons/star_off.png"); } trvSetFavoriteCount(isIFrame); } else { var position = getIFramePosition(isIFrame); infoDialog("FEHLER", data, null,600, null, position); } }); } function trvSetFavoriteCount(isIFrame) { $.post( "http://cyberkmu.portal.it-matchmaker.com/core/ajax/ajax.php?app_language=de", { full_path: "NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,", ajax_type: "GET_ITM_FAVORITE_COUNT" }, function(data) { if (isNaN(data)) { var position = getIFramePosition(isIFrame); infoDialog("FEHLER", data, null,600, null, position); } else { if ($(".trv_module_product_list_button_order_report").length > 0) { if ((data == 0) && ($(".trv_module_product_list_button_order_report .trv_itm_favcount").length > 0)) { $(".trv_module_product_list_button_order_report").replaceWith(" "); $(".trv_module_matchmaker_light_search_button").attr("href","#"); } else if ((data > 0) && ($(".trv_module_product_list_button_order_report .trv_itm_favcount").length == 0)) { $(".trv_module_product_list_button_order_report").replaceWith(" "); $(".trv_module_matchmaker_light_search_button").attr("href",trvSavedReportOrderLink); } } $(".trv_itm_favcount").text(data); if(0) { changeNaviIconFavorite(data); } } }); } function openImpressum(isIFrame) { if ($("#trv_module_dialog_impressum_matchmaker").length == 0) { registrationTitle = "Impressum"; isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); dialogWidth = 700; dialogMinHeight = 730; $("body").append(""); $("#trv_module_dialog_impressum_matchmaker").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/matchmaker_light/components/dialog_impressum.php?isIFrame="+isIFrame+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { trv_setPiwik(null,"Registrierung - Dialog closed"); $(this).dialog('destroy'); $("#trv_module_dialog_impressum_matchmaker").remove(); }, closeOnEscape: false, resizable: false, position: position, minHeight: dialogMinHeight, height: 'auto', width: dialogWidth, modal: true, bgiframe: true, title: registrationTitle }); } } var trvSavedReportOrderLink = "#"; $(document).ready( function() { if ($(".trv_module_product_list_button_order_report").length > 0) { trvSavedReportOrderLink = $(".trv_module_matchmaker_light_search_button").attr("href"); } }); function changeNaviIconFavorite(anzFav) { if(anzFav > 0) { $(".trv_module_matchmaker_light_navi_icon").attr("src", "/homepage/themes/it-matchmaker-2014/core/images/icons/star.png"); } else { $(".trv_module_matchmaker_light_navi_icon").attr("src","/homepage/themes/it-matchmaker-2014/core/images/icons/star_off.png"); } } function openModuleLoginDialog(isIFrame) { if ($("#trv_module_dialog_login:visible").length == 0) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); $("#trv_module_dialog_login").dialog({ close: function(event, ui) { $(this).dialog('destroy'); moduleLoginClearForwardLoginUrl(); }, open: function(event, ui) { var loginValidator = initFormValidator('trv_module_login_form','trv_core_input_white_validator_error'); loginValidator.resetForm(); $('#moduleLoginInputUsername').select(); }, closeOnEscape: true, resizable: false, position: position, minHeight: 210, height: 'auto', width: 350, modal: true, bgiframe: true, title: "Login" }); } } function openModulePasswordForgotDialog(isIFrame) { if ($("#trv_module_dialog_password_forgot").length != 0) { $('#trv_module_dialog_login').dialog('close'); } if ($("#trv_module_dialog_password_forgot").length == 0) { blockScreen(); isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); $("body").append(""); $("#trv_module_dialog_password_forgot").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/matchmaker_login/components/dialog_password_forgot.php?isIFrame="+isIFrame+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_dialog_password_forgot").remove(); }, closeOnEscape: true, resizable: false, position: position, minHeight: 250, height: 'auto', width: 400, modal: true, bgiframe: true, title: "Passwort vergessen?" }); } } function moduleLoginSend(isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); if (isFormValid('trv_module_login_form',position, isIFrame,'trv_core_input_white_validator_error')) { blockScreen(); $.trv_postJson({ blockScreen: false, module_name: "matchmaker_login", errorDailogPosition: position, errorDailogCenterText: true, ajax_type: "LOGIN", parameter: { userName: $('input#moduleLoginInputUsername').val(), userPassword: $('input#moduleLoginInputPassword').val() }, onSuccess: function(data) { if (data.code == 0) { if (data.domainSwitchLogin != null) { $("form#trv_module_login_form").attr("action", "http://cyberkmu.portal.it-matchmaker.com/homepage/quick_login.php?md5="+data.message+"&fromDomain="+data.domainSwitchLogin); } else if (data.forwardLoginUrl != null) { if (data.hasForwardUrlParams) { $("form#trv_module_login_form").attr("action", data.forwardLoginUrl+""); } else { $("form#trv_module_login_form").attr("action", data.forwardLoginUrl+""); } } else { $("form#trv_module_login_form").attr("action", "http://cyberkmu.portal.it-matchmaker.com/matchmaker/login_switcher.php"); } $("form#trv_module_login_form").submit(); } else if ((data.code == 20) || (data.code == 21)) { unblockScreen(); $("#trv_module_dialog_login").dialog("close"); var infoText = "Sie werden automatisch auf Ihren Hersteller- bzw. Vertriebspartner-Account auf dem IT-Matchmaker weitergeleitet!"; if (data.code == 21) { infoText = "Sie werden automatisch zu Ihrem Professional-Account auf dem IT-Matchmaker weitergeleitet!"; } infoDialog("INFORMATION",infoText,null,null,"moduleLoginVendorLogin('"+data.message+"')", position, "WEITER"); } } }); } } function moduleLoginVendorLogin(md5) { var newWindow = window.open("http://cyberkmu.portal.it-matchmaker.com/homepage/quick_login.php?md5="+md5, "itmatchmaker"); newWindow.focus(); } function moduleLoginPasswordSend(isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); if (isFormValid('trv_module_login_password_forgoten_form',position, isIFrame,'trv_core_input_white_validator_error')) { $.trv_postJson({ module_name: "matchmaker_login", ajax_type: "NEW_PASSWORD", errorDailogPosition: position, errorDailogCenterText: true, parameter: { userName: $('input#moduleLoginForgotenInputUsername').val(), userEmail: $('input#moduleLoginInputEMail').val() }, onSuccess: function(data) { $("#trv_module_dialog_password_forgot").dialog("close"); infoDialog("INFORMATION","Das Passwort wurde ihnen per E-Mail zugestellt.",null,null,null, position); } }); } } function moduleLoginClearForwardLoginUrl() { $.trv_postJson({ blockScreen: false, module_name: "matchmaker_login", ajax_type: "CLEAR_FORWARD_LOGIN" }); } function moduleProductListToggleDetails(id) { if ($('#trv_module_product_list_products_'+id).css("display") == "none") { $('#trv_module_product_list_products_'+id).slideDown(500, function(){ $('#trv_module_product_list_button_'+id).addClass("trv_module_product_list_link_close"); }); } else { $('#trv_module_product_list_products_'+id).slideUp(500, function(){ $('#trv_module_product_list_button_'+id).removeClass("trv_module_product_list_link_close"); }); } } function moduleProductListFilter(isIFrame) { blockScreen(); setTimeout("callModuleProductListFilter("+isIFrame+")", 150); } function callModuleProductListFilter(isIFrame) { var filterText = $('input#trv_module_product_list_input_filter').val().trim(); $('.trv_module_product_list_search_text').removeHighlight(); if (filterText.length == 0) { $(".trv_module_product_list_box_container").show(); $('.trv_module_product_list_teaser').show(); } else { $(".trv_module_product_list_box_container").each( function (column) { var searchText = ""; $(".trv_module_product_list_search_text",this).each(function() { searchText += $(this).text()+" "; }); if (searchText.toLowerCase().indexOf(filterText.toLowerCase()) >= 0) { $(this).show(); } else { $(this).hide(); } }); $('.trv_module_product_list_search_text').highlight(filterText); $('.trv_module_product_list_teaser:not(:first)').hide(); } count = $(".trv_module_product_list_box_container:visible").length; $('.trv_module_product_list_result_systems').text(count); $('.trv_module_product_list_result_products').text($(".trv_module_product_list_box_container:visible .trv_module_product_list_count").length); if (count == 0) { $('.trv_module_product_list_result').addClass('trv_module_product_list_result_red'); } else { $('.trv_module_product_list_result').removeClass('trv_module_product_list_result_red'); } if (isIFrame) { setIframeTop(); } unblockScreen(); } function moduleProductListFilterReset(isIFrame) { $('input#trv_module_product_list_input_filter').val(""); moduleProductListFilter(isIFrame); } function moduleProductListSetProductLable() { $('.trv_module_product_list_product_count').each(function(){ $(this).html($(this).text()+" Produkte"); }); } function toogleHelpWindow(element, name) { var toggleElement = $(element).next(); if ($(toggleElement).is(":visible")) { $(toggleElement).hide(); $(element).parent().addClass("trv_help_container_hidden"); $(element).addClass("trv_help_container_navi_closed"); } else { $(toggleElement).show(); $(element).parent().removeClass("trv_help_container_hidden"); $(element).removeClass("trv_help_container_navi_closed"); } $.trv_postJson({ blockScreen: false, url: "http://cyberkmu.portal.it-matchmaker.com/core/ajax/ajax.php?app_language=de", ajax_type: "SET_HELP_HIDDEN", parameter: { page_charset: "utf-8", appName: "homepage_de", hidden: $(toggleElement).is(":visible")?0:1, helpName: name }, onSuccess: function(data) { } }); } /************************************************************************ ************************************************************************* @Name : jRating - jQuery Plugin @Revison : 3.0 @Date : 28/01/2013 @Author: ALPIXEL - (www.myjqueryplugins.com - www.alpixel.fr) @License : Open Source - MIT License : http://www.opensource.org/licenses/mit-license.php ************************************************************************** *************************************************************************/ (function($) { $.fn.jRating = function(op) { var defaults = { /** String vars **/ bigStarsPath : 'jquery/icons/stars.png', // path of the icon stars.png smallStarsPath : 'jquery/icons/small.png', // path of the icon small.png phpPath : 'php/jRating.php', // path of the php file jRating.php type : 'big', // can be set to 'small' or 'big' /** Boolean vars **/ step:false, // if true, mouseover binded star by star, isDisabled:false, showRateInfo: true, canRateAgain : false, /** Integer vars **/ length:5, // number of star to display decimalLength : 0, // number of decimals.. Max 3, but you can complete the function 'getNote' rateMax : 20, // maximal rate - integer from 0 to 9999 (or more) rateInfosX : -45, // relative position in X axis of the info box when mouseover rateInfosY : 5, // relative position in Y axis of the info box when mouseover nbRates : 1, /** Functions **/ onSuccess : null, onError : null }; if(this.length>0) return this.each(function() { /*vars*/ var opts = $.extend(defaults, op), newWidth = 0, starWidth = 0, starHeight = 0, bgPath = '', hasRated = false, globalWidth = 0, nbOfRates = opts.nbRates; if($(this).hasClass('jDisabled') || opts.isDisabled) var jDisabled = true; else var jDisabled = false; getStarWidth(); $(this).height(starHeight); var average = parseFloat($(this).attr('data-average')), // get the average of all rates idBox = parseInt($(this).attr('data-id')), // get the id of the box widthRatingContainer = starWidth*opts.length, // Width of the Container widthColor = average/opts.rateMax*widthRatingContainer, // Width of the color Container quotient = $('', { 'class' : 'jRatingColor', css:{ width:widthColor } }).appendTo($(this)), average = $('', { 'class' : 'jRatingAverage', css:{ width:0, top:- starHeight } }).appendTo($(this)), jstar = $('',image:'',iframe:'",error:'', { 'class' : 'jStar', css:{ width:widthRatingContainer, height:starHeight, top:- (starHeight*2), background: 'url('+bgPath+') repeat-x' } }).appendTo($(this)); $(this).css({width: widthRatingContainer,overflow:'hidden',zIndex:1,position:'relative'}); if(!jDisabled) $(this).unbind().bind({ mouseenter : function(e){ var realOffsetLeft = findRealLeft(this); var relativeX = e.pageX - realOffsetLeft; if (opts.showRateInfo) var tooltip = $('"); $("#trv_module_dialog_template_display").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/template_dialog_display/components/dialog_template_display.php?enablePrint="+enablePrint+"&isIFrame="+isIFrame+"&templateName="+encodeURI(templateName)+"&showContentFromID="+encodeURI(showContentFromID)+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language="+language+"").dialog({ close: function(event, ui) { shortcut.remove("Return"); if (enablePrint) { shortcut.remove("Alt+d"); } $(this).dialog('destroy'); $("#trv_module_dialog_template_display").remove(); }, closeOnEscape: true, resizable: false, position: position, minHeight: 500, height: 'auto', width: 622, modal: true, bgiframe: true, title: title }); } } /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ (function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0',{ 'class' : 'jRatingInfos', html : getNote(relativeX)+' / '+opts.rateMax+'', css : { top: (e.pageY + opts.rateInfosY), left: (e.pageX + opts.rateInfosX) } }).appendTo('body').show(); }, mouseover : function(e){ $(this).css('cursor','pointer'); }, mouseout : function(){ $(this).css('cursor','default'); if(hasRated) average.width(globalWidth); else average.width(0); }, mousemove : function(e){ var realOffsetLeft = findRealLeft(this); var relativeX = e.pageX - realOffsetLeft; if(opts.step) newWidth = Math.floor(relativeX/starWidth)*starWidth + starWidth; else newWidth = relativeX; average.width(newWidth); if (opts.showRateInfo) $("p.jRatingInfos") .css({ left: (e.pageX + opts.rateInfosX) }) .html(getNote(newWidth) +' / '+opts.rateMax+''); }, mouseleave : function(){ $("p.jRatingInfos").remove(); }, click : function(e){ var element = this; /*set vars*/ hasRated = true; globalWidth = newWidth; nbOfRates--; if(!opts.canRateAgain || parseInt(nbOfRates) <= 0) $(this).unbind().css('cursor','default').addClass('jDisabled'); if (opts.showRateInfo) $("p.jRatingInfos").fadeOut('fast',function(){$(this).remove();}); e.preventDefault(); var rate = getNote(newWidth); average.width(newWidth); /** ONLY FOR THE DEMO, YOU CAN REMOVE THIS CODE **/ $('.datasSent p').html('idBox : '+idBox+'
"); $("#trv_module_dialog_registration_matchmaker").load("http://cyberkmu.portal.it-matchmaker.com/core/modules/registration_matchmaker/components/dialog_register.php?isIFrame="+isIFrame+"®istrationType="+registrationType+"&md5="+md5+"&full_path=NVlFXzhjbUlsYDx5b3JMaH0zY15zejVrLi9eWVU4cXlnS1tWJXwpLVFbWChQYVoxT29mdmN3en1GW0VDYGVRdjpUTillRX1zbldDT3ZpU0krU2pKaVFJKHVYUjk,&app_language=de").dialog({ close: function(event, ui) { trv_setPiwik(null,"Registrierung - Dialog closed"); registrationMatchmakerContentChanged(false); shortcut.remove("Alt+r"); shortcut.remove("Alt+a"); shortcut.remove("Alt+w"); $(this).dialog('destroy'); $("#trv_module_dialog_registration_matchmaker").remove(); }, beforeClose: function(event, ui) { return closeRegistrationMatchmakerDialog(); }, closeOnEscape: false, resizable: false, position: position, minHeight: dialogMinHeight, height: 'auto', width: dialogWidth, modal: true, bgiframe: true, title: registrationTitle }); } } var changedRegistrationMatchmakerContent = false; function registrationMatchmakerContentChanged(changed) { changedRegistrationMatchmakerContent = changed; setUnload(changed, "Die Registrierung wurde ausgefüllt aber nicht abgesendet!"); } /* ========================================================= // jquery.innerfade.js // Datum: 2008-02-14 // Firma: Medienfreunde Hofmann & Baldes GbR // Author: Torsten Baldes // Mail: t.baldes@medienfreunde.com // Web: http://medienfreunde.com // based on the work of Matt Oakes http://portfolio.gizone.co.uk/applications/slideshow/ // and Ralf S. Engelschall http://trainofthoughts.org/ // ========================================================= */ (function($){$.fn.innerfade=function(a){return this.each(function(){$.innerfade(this,a)})};$.innerfade=function(a,b){var c={'animationtype':'fade','speed':'normal','type':'sequence','timeout':2000,'containerheight':'auto','runningclass':'innerfade','children':null};if(b)$.extend(c,b);if(c.children===null)var d=$(a).children();else var d=$(a).children(c.children);if(d.length>1){$(a).css('position','relative').css('height',c.containerheight).addClass(c.runningclass);for(var i=0;i
rate : '+rate+'
action : rating'); $('.serverResponse p').html('Loading...'); /** END ONLY FOR THE DEMO **/ $.post(opts.phpPath,{ idBox : idBox, rate : rate, action : 'rating' }, function(data) { if(!data.error) { /** ONLY FOR THE DEMO, YOU CAN REMOVE THIS CODE **/ $('.serverResponse p').html(data.server); /** END ONLY FOR THE DEMO **/ /** Here you can display an alert box, or use the jNotify Plugin :) http://www.myqjqueryplugins.com/jNotify exemple : */ if(opts.onSuccess) opts.onSuccess( element, rate ); } else { /** ONLY FOR THE DEMO, YOU CAN REMOVE THIS CODE **/ $('.serverResponse p').html(data.server); /** END ONLY FOR THE DEMO **/ /** Here you can display an alert box, or use the jNotify Plugin :) http://www.myqjqueryplugins.com/jNotify exemple : */ if(opts.onError) opts.onError( element, rate ); } }, 'json' ); } }); function getNote(relativeX) { var noteBrut = parseFloat((relativeX*100/widthRatingContainer)*opts.rateMax/100); switch(opts.decimalLength) { case 1 : var note = Math.round(noteBrut*10)/10; break; case 2 : var note = Math.round(noteBrut*100)/100; break; case 3 : var note = Math.round(noteBrut*1000)/1000; break; default : var note = Math.round(noteBrut*1)/1; } return note; }; function getStarWidth(){ switch(opts.type) { case 'small' : starWidth = 12; // width of the picture small.png starHeight = 10; // height of the picture small.png bgPath = opts.smallStarsPath; break; default : starWidth = 23; // width of the picture stars.png starHeight = 20; // height of the picture stars.png bgPath = opts.bigStarsPath; } }; function findRealLeft(obj) { if( !obj ) return 0; return obj.offsetLeft + findRealLeft( obj.offsetParent ); }; }); } })(jQuery); function openRegistrationModule(registrationType, isIFrame, md5) { if ($("#trv_module_dialog_registration_matchmaker").length == 0) { if (($(".trv_itm_favcount:first").text() == "0") && (registrationType == "report")) { return; } blockScreen(); registrationTitle = "Registrierung"; if (registrationType == null) { registrationType = 'light'; registrationType = 'dsgvo'; } else if (registrationType == 'pro') { registrationTitle = "Registrierung Professional Lizenz"; } else if (registrationType == 'report') { registrationTitle = "Registrierung / Bestellung Top 20 Report"; } else if (registrationType == 'vendor') { registrationTitle = "Registrierung für Anbieter einer Business Software"; } isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); if (md5 == null) { md5 = 0; } dialogWidth = 600; dialogMinHeight = 545; if(registrationType == 'dsgvo') dialogMinHeight = 500; $("body").append("The requested content cannot be loaded.
',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0, openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1, isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k, c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&& k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current|| b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer= setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index
Please try again later.=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d= a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")), b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f(' ').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(), y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement; if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1 g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0, {},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1, mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio= !0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href"); "image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload= this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href); f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload, e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin, outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f(" ").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}", g);break;case "swf":e='"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll": "no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside? h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth|| h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive? b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth), p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"=== f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d= b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('z||y>r)&&(c>m&&j>u)&&!(19 n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&jz||y>r)&&c>m&&j>u;c=h.aspectRatio?c u&&j '+e+"");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner(''),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d, e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+ ":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('').appendTo("body");var e=20=== d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("").appendTo("head")})})(window,document,jQuery);