﻿function SetTContent(t)
{
    if (t.value == 'Suchen...')
        t.value = '';
    else if(t.value == '')
        t.value = 'Suchen...';
}

$(document).ready(function() {
    $("a[rel^='lightbox']").fancybox({
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'titlePosition': 'over',
        'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Bild ' + (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
        }
    });
});

function acSend(encodedEmail) {
    var email = "";
    for (i = 0; i < encodedEmail.length; ) {
        var letter = "";
        letter = encodedEmail.charAt(i) + encodedEmail.charAt(i + 1)
        email += String.fromCharCode(parseInt(letter, 16));
        i += 2;
    }
    location.href = "mailto:" + email;
}

function acEWrite(text) {
    document.write(text)
}

