// JavaScript Document function show_site_map_container(link_reference) { if(site_map_is_visible) { hide_site_map_container(); } else { content_url = link_reference.href; $("#SiteMapMainContainer").show("blind", {direction: "up"}); site_map_is_visible = 1; } } function hide_site_map_container() { $("#SiteMapMainContainer").hide("blind", {direction: "up"}); site_map_is_visible = 0; } function show_general_content(link_reference) { content_url = link_reference.href; $.get(content_url, function(data) { $('#GeneralContentOverlay').empty(); $('#GeneralContentOverlay').append(data); $('#GeneralContentOverlayBackground').fadeIn(); $('#GeneralContentOverlay').show("slide", 1000); }); } function hide_general_content() { $('#GeneralContentOverlay').hide("slide"); $('#GeneralContentOverlayBackground').fadeOut(1000); } function sh_show_shopping_cart_info(link_reference, empty_cart_url) { cart_count = $(".cartCount a span").text(); if(cart_count == 0) { sh_show_dialog_info_url(empty_cart_url); } else { sh_show_customer_info(link_reference); } } function show_shopping_cart_information(link_reference, empty_cart_url) { cart_count = $(".cartCount a").text(); //if(this_cart_count != 0) //{ //cart_count = this_cart_count; //} if(cart_count == 0) { show_dialog_information_url(empty_cart_url); } else { show_customer_information(link_reference); } } function sh_show_order_history(link_reference) { content_url = link_reference.href; $.get(content_url, function(data) { if(data == 0) { content_url = website_url + '?display=NoOrderHistoryInformation'; sh_show_dialog_information_url(content_url); } else { $('#sh_map_modal').empty(); $('#sh_map_modal').append(data); $('#sh_map_modal').modal('show'); } }); } function show_order_history(link_reference) { content_url = link_reference.href; $.get(content_url, function(data) { if(data == 0) { content_url = website_url + '?display=NoOrderHistoryInformation'; show_dialog_information_url(content_url); } else { $('#CustomerInformation').empty(); $('#CustomerInformation').append(data); $('#CustomerInformationOverlayBackground').fadeIn(); $('#CustomerInformationOverlay').show("clip", 1000); } }); } function swap_order_history_url(content_url) { $.get(content_url, function(data) { $('#CustomerInformation').empty(); $('#CustomerInformation').append(data); }); } function sh_show_customer_info(link_reference) { content_url = link_reference.href; $.get(content_url, function(data) { $('#sh_map_modal').empty(); $('#sh_map_modal').append(data); $('#sh_map_modal').modal('show'); }); } function show_customer_information(link_reference) { content_url = link_reference.href; $.get(content_url, function(data) { $('#CustomerInformation').empty(); $('#CustomerInformation').append(data); $('#CustomerInformationOverlayBackground').fadeIn(); $('#CustomerInformationOverlay').show("clip", 1000); }); } function sh_show_customer_info_url(content_url) { $.get(content_url, function(data) { $('#sh_map_modal').empty(); $('#sh_map_modal').append(data); $('#sh_map_modal').modal('show'); }); } function show_customer_information_url(content_url) { $.get(content_url, function(data) { $('#CustomerInformation').empty(); $('#CustomerInformation').append(data); $('#CustomerInformationOverlayBackground').fadeIn(); $('#CustomerInformationOverlay').show("clip", 1000); }); } function sh_load_customer_info(link_reference) { content_url = link_reference.href; $.get(content_url, function(data) { $('#sh_map_modal').empty(); $('#sh_map_modal').append(data); //$('#sh_map_modal').modal('show'); }); } function load_customer_information(link_reference) { content_url = link_reference.href; $.get(content_url, function(data) { $('#CustomerInformation').empty(); $('#CustomerInformation').append(data); }); } function sh_load_customer_info_url(content_url) { $.get(content_url, function(data) { $('#sh_map_modal').empty(); $('#sh_map_modal').append(data); //$('#sh_map_modal').modal('show'); }); } function load_customer_information_url(content_url) { $.get(content_url, function(data) { $('#CustomerInformation').empty(); $('#CustomerInformation').append(data); }); } function sh_hide_customer_info() { $('#sh_map_modal').empty(); $('#sh_map_modal').modal('hide'); } function hide_customer_information() { $('#CustomerInformationOverlay').hide("clip"); $('#CustomerInformationOverlayBackground').fadeOut(1000); } function show_fotofolio_zoom() { $('#FotofolioZoomOverlayBackground').show(); } function hide_fotofolio_zoom() { $('#FotofolioZoomOverlayBackground').hide(); } var mouse_is_inside = false; $("body").on('mouseenter', '#CustomerInformationOverlay', function(){ mouse_is_inside=true; }).on('mouseleave', '#CustomerInformationOverlay', function() { mouse_is_inside=false; }); $("body").on("click", "#CustomerInformationOverlayBackground", function() { if ( mouse_is_inside == true ) { } else { hide_customer_information(); } }); function sh_show_dialog_info(link_reference) { content_url = link_reference.href; $.get(content_url, function(data) { $('#sh_map_modal').empty(); $('#sh_map_modal').append(data); $('#sh_map_modal').modal('show'); }); } function show_dialog_information(link_reference) { content_url = link_reference.href; $.get(content_url, function(data) { $('#DialogInformation').empty(); $('#DialogInformation').append(data); $('#DialogInformationOverlayBackground').fadeIn(); $('#DialogInformationOverlay').show("clip", 1000); }); } function sh_show_dialog_info_url(content_url) { $.get(content_url, function(data) { $('#sh_map_modal').empty(); $('#sh_map_modal').append(data); $('#sh_map_modal').modal('show'); }); } function show_dialog_information_url(content_url) { $.get(content_url, function(data) { $('#sh_map_modal').empty(); $('#sh_map_modal').append(data); $('#sh_map_modal').fadeIn(); $('#sh_map_modal').show("clip", 1000); }); } function load_dialog_information(link_reference) { content_url = link_reference.href; $.get(content_url, function(data) { $('#DialogInformation').empty(); $('#DialogInformation').append(data); }); } function load_dialog_information_url(content_url) { $.get(content_url, function(data) { $('#DialogInformation').empty(); $('#DialogInformation').append(data); }); } function sh_hide_dialog_info() { $('#sh_map_modal').modal('hide'); $('#sh_map_modal').on('hidden.bs.modal', function () { $('#sh_map_modal').empty(); }) } function hide_dialog_information() { $('#DialogInformationOverlay').hide("clip"); $('#DialogInformationOverlayBackground').fadeOut(1000); }