//HOME LIST POPUP$(document).ready(function() {    $(".home-list a, #ecos_play, #banner_popup, #ecos-flyer a, #latest-popup").not(".noPopup").click(function(){        $("select").css("visibility","hidden");        if( $(this).find("img").attr("src")=="images/banner-5.jpg" ){            $("body").append('<div id="overlay"></div><div id="popup-list" style="width: 555px; height: 330px;"><span class="close">zatvori</span><a href="'+$(this).attr("rel")+'" target="_blank"><img src="'+$(this).attr("href")+'" title="'+$(this).attr("title")+'" /></a></div>');            $("#popup-list .close").css("opacity","0");           } else if( $(this).find("img").attr("src")=="images/banner-8.jpg" ){            $("body").append('<div id="overlay"></div><div id="popup-list" style="width: 555px; height: 331px;"><span class="close">zatvori</span><<img src="'+$(this).attr("href")+'" title="'+$(this).attr("title")+'" /></div>');            $("#popup-list .close").css("opacity","0");           } else {            $("body").append('<div id="overlay"></div><div id="popup-list"><img src="'+$(this).attr("href")+'" title="'+$(this).attr("title")+'" /></div>');        }                 var overlayEl = $("#overlay");        var popupEl = $("#popup-list");                 var left = ($(window).width() - popupEl.width())/2;        var top = $(window).scrollTop()+100;                $(window).resize(function(){ position_popup(overlayEl,popupEl); });                if(  $(this).find("img").attr("src")=="" ){            popupEl.find("close").click(function(){ close_popup(overlayEl,popupEl); });        } else {            overlayEl.click(function(){ close_popup(overlayEl,popupEl); });        }                       popupEl.click(function(){ close_popup(overlayEl,popupEl); });        overlayEl.css({ height:$(document).height(), width:$(document).width(), opacity: "0.7" }).show();        if((top+parseFloat(popupEl.height()))>overlayEl.height()){ overlayEl.height((top+parseFloat(popupEl.height()))+30); }        popupEl.css({ left: left, top: top }).fadeIn("slow");        return false;    });});function position_popup(overlayEl,popupEl){    overlayEl.hide().css({ height:$(document).height(), width:$(document).width(), opacity: "0.8" }).show();    var left = ($(window).width() - popupEl.width())/2;    var top = $(window).scrollTop()+50;    popupEl.css({ left: left, top: top });}function close_popup(overlayEl,popupEl){    popupEl.fadeOut("slow",function(){ popupEl.remove(); });    overlayEl.fadeOut("slow",function(){        $("select").css("visibility","visible");                overlayEl.remove();    });    $(window).unbind("resize");}//DIGITALIZATION PAGE$(document).ready(function() {    if($(".productWrapperDetail div:first").is(".digitalization")||$(".productWrapperDetail div:first").is(".grand-opening")){        $("#sidebar").remove();        $("#content").css({float:"left", width: "100%"});        $(".breadCrumbs").css({margin: "0px"});        $(".productWrapperDetail").css({width: "100%"});    }});//HEARTS/*$(document).ready(function() {    if($(".flash").is(".homepage")){        $("body").append('<div id="flash-hearts" style="position: absolute; top: 0; left: 0; display: none;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%"><param name="movie" value="hearts.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed src="hearts.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed></object></div>');        var overlayEl = $("#flash-hearts");        $(window).resize(function(){            overlayEl.css({ height:$(document).height(), width:$(document).width() });        });        overlayEl.click(function(){ overlayEl.remove() });        $("*").click(function(){ overlayEl.remove() });        overlayEl.css({ height:$(document).height(), width:$(document).width() }).show();    }});*///LOCATION MAP POPUP$(document).ready(function() {    $("#location-map ul a,#location-map ul span").click(function(){        $("#location-popup").remove();        var data="<strong>"+$(this).parents("li:first").attr("title")+"</strong>";        $(this).parents("li:first").find("dl").each(function(){            data = data+"<b>"+$(this).find("dt").text()+"</b>";            $(this).find("dd").each(function(){                data = data+$(this).html()+"<br />";            });        });        $("body").append('<div id="location-popup"><div class="bkg-1"><div class="bkg-2"><img class="close" src="images/close.gif" alt="zatvori" title="zatvori" />'+data+'</div></div></div>');        var offset = $(this).parents("li:first").find("span").offset();               $("#location-popup .close").click(function(){ $("#location-popup").remove(); });                $("#location-popup").css({left: offset.left - 105, top: offset.top-$("#location-popup").height()-10 }).show();    });});