var base64s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; function decode(encStr) { var bits; var decOut = ''; var i = 0; for(; i>16, (bits & 0xff00) >>8, bits & 0xff); } if(encStr.charCodeAt(i -2) == 61) { return(decOut.substring(0, decOut.length -2)); } else if(encStr.charCodeAt(i -1) == 61) { return(decOut.substring(0, decOut.length -1)); } else {return(decOut)}; } function tiodtsuj(a,text) { var text=text || 'NULL'; var x=decode(a);temp=x.split('###');document.write(''); if (text=="NULL") { document.write(temp[1]);document.write('@');document.write(temp[0]); } else document.write(text); document.write('');} function getRefs() { $.get("/incs/ajax/getRefs.php", { year: $("#refyearfilter").val(), kat: $("#refkatfilter").val() }, function(data){ $("#content").html(data); }); } function loadVideo(vID) { $('#bertholdVideo').remove(); $('#dialogvideo').remove(); $('#dialogvideoContainer').append('
'); var params = { allowScriptAccess: "always", allowFullScreen: "true"}; var atts = { id: "bertholdVideo" }; swfobject.embedSWF("http://www.youtube.com/v/"+vID, "dialogvideo", "425", "300", "8", null, null, params, atts); } $(document).ready(function(){ /* Zoom CMS */ $('.images a.zoomable').lightBox({ overlayBgColor: '#000', overlayOpacity: 0.6, imageLoading: '/incs/jquery/images/lightbox-ico-loading.gif', imageBtnClose: '/incs/jquery/images/lightbox-btn-close.gif', imageBtnPrev: '/incs/jquery/images/lightbox-btn-prev.gif', imageBtnNext: '/incs/jquery/images/lightbox-btn-next.gif', containerResizeSpeed: 350, txtImage: 'Bild', txtOf: 'von' }); /* MAP OVERLAY */ $("img.mapicon[rel]").overlay({ effect: 'apple', mask: { color: '#455C6F', loadSpeed: 200, opacity: 0.6 }, onLoad: function() { showmap("Bahnstrasse 37, 2486 Pottendorf, Austria","Rudolf Berthold Ges.m.b.H."); }, closeOnClick: true, fixed: false, top: 100 }); $("a.url").click(function() { $.get("/incs/ajax/setLoginSession.php", { set:1 }, function(data){ document.location.href=data; }); }); $(".button-link[rel]").overlay({ effect: 'apple', mask: { color: '#455C6F', loadSpeed: 200, opacity: 0.6 }, closeOnClick: true, fixed: false, top: 200 }); $("#formerror").overlay({ effect: 'apple', mask: { color: '#455C6F', loadSpeed: 200, opacity: 0.6 }, closeOnClick: true, fixed: false, top: 200 }); /* ROLLOVER EFFEKTE */ $("#hauptmenu li, #submenu li, #subsubmenu li, #stage-welcome .item, #welcome-quicklinks .quick-item, .button-link, #cats .category, #years li, #info .item").hover(function() { $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }); /* SUCHFELD SELECTED */ $("form.suchformular input").focus(function() { this.select(); }) /*$("#hauptmenu li").hover(function() { $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }); $("#submenu li").hover(function() { $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }); $("#subsubmenu li").hover(function() { $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }); $("#stage-welcome .item").hover(function() { $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }); $("#welcome-quicklinks .quick-item").hover(function() { $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }); $(".button-link").hover(function() { $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }); $("#cats .category").hover(function() { $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }); $("#years li").hover(function() { $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }); */ /* LOGINBEREICH PROJEKTLISTE */ $("#projektliste .item").click(function() { $("#projektliste .file-container").slideUp('fast', function() { }); $("#projektliste .item").removeClass('open'); $(this).next(".file-container").slideDown('fast'); //$(this).children(".file-container").slideDown('fast'); $(this).addClass('open'); /* $("#years li").removeClass("active"); $(this).addClass("active"); $("#refyearfilter").val($(this).attr('id')); getRefs();*/ }); $('.button-link.external').click(function(){ window.open( $(this).attr('href') , "Berthold" ); return false; }); $("#years li").click(function() { $("#years li").removeClass("active"); $(this).addClass("active"); $("#refyearfilter").val($(this).attr('id')); getRefs(); }); $(".category input").click(function() { $(".category").removeClass("active"); $(this).closest(".category").addClass("active"); $("#refkatfilter").val($(this).val()); getRefs(); }); /* inline labels kommentarformular */ $('input[title], textarea[title]').each(function() { if ($(this).attr("id")!="email" ) { if($(this).val() === '') { $(this).val($(this).attr('title')); } $(this).focus(function() { if($(this).val() === $(this).attr('title')) { $(this).val('').addClass('focused'); } }); $(this).blur(function() { if($(this).val() === '') { $(this).val($(this).attr('title')); // $(this).val($(this).attr('title')).removeClass('focused'); } }); } }); }); function initform() { $("#faxlabel").html('E-Mail'); } function initform2() { $("#fax").attr('title','E-Mail'); } function clickerror() { $("#err_link").click(); } /*function toggleLogin() { $("#logindiv").toggle(); }*/