2012-07-16 22:33:46 +02:00
|
|
|
function Mailto(mail,nameli,nachnameli,domainli,landli) {
|
|
|
|
var mimimail;
|
|
|
|
if(mail == "ab231cb") {
|
2012-07-16 22:45:20 +02:00
|
|
|
var nn = "";
|
|
|
|
if(nachnameli != '') {
|
|
|
|
nn = "." + nachnameli;
|
|
|
|
}
|
|
|
|
mimimail = "mailto:" + nameli + nn + "\@" + domainli + "." + landli;
|
2012-07-16 22:33:46 +02:00
|
|
|
}
|
|
|
|
mail.href = mimimail;
|
|
|
|
return (1);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Jquery with no conflict
|
|
|
|
jQuery(document).ready(function($) {
|
|
|
|
|
|
|
|
//##########################################
|
|
|
|
// Superfish
|
|
|
|
//##########################################
|
|
|
|
|
|
|
|
$("ul.sf-menu").superfish({
|
|
|
|
animation: {height:'show'}, // slide-down effect without fade-in
|
|
|
|
delay: 200 , // 1.2 second delay on mouseout
|
|
|
|
autoArrows: false,
|
|
|
|
speed: 200
|
|
|
|
});
|
|
|
|
|
|
|
|
//##########################################
|
|
|
|
// HOME SLIDER
|
|
|
|
//##########################################
|
|
|
|
|
|
|
|
$('.home-slider').flexslider({
|
|
|
|
animation: "fade",
|
|
|
|
controlNav: false,
|
|
|
|
keyboardNav: true
|
|
|
|
});
|
|
|
|
|
|
|
|
//##########################################
|
|
|
|
// PROJECT SLIDER
|
|
|
|
//##########################################
|
|
|
|
|
|
|
|
$('.project-slider').flexslider({
|
|
|
|
animation: "fade",
|
|
|
|
controlNav: true,
|
|
|
|
directionNav: false,
|
|
|
|
keyboardNav: true
|
|
|
|
});
|
|
|
|
|
|
|
|
//##########################################
|
|
|
|
// Top Widget
|
|
|
|
//##########################################
|
|
|
|
|
|
|
|
var topContainer = $("#top-widget");
|
|
|
|
var topTrigger = $("#top-open");
|
|
|
|
|
|
|
|
topTrigger.click(function(){
|
|
|
|
topContainer.animate({
|
|
|
|
height: 'toggle'
|
|
|
|
});
|
|
|
|
|
|
|
|
if( topTrigger.hasClass('tab-closed')){
|
|
|
|
topTrigger.removeClass('tab-closed');
|
|
|
|
}else{
|
|
|
|
topTrigger.addClass('tab-closed');
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//##########################################
|
|
|
|
// Tool tips
|
|
|
|
//##########################################
|
|
|
|
|
|
|
|
|
|
|
|
$('.poshytip').poshytip({
|
|
|
|
className: 'tip-twitter',
|
|
|
|
showTimeout: 1,
|
|
|
|
alignTo: 'target',
|
|
|
|
alignX: 'center',
|
|
|
|
offsetY: 5,
|
|
|
|
allowTipHover: false
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.form-poshytip').poshytip({
|
|
|
|
className: 'tip-twitter',
|
|
|
|
showOn: 'focus',
|
|
|
|
alignTo: 'target',
|
|
|
|
alignX: 'right',
|
|
|
|
alignY: 'center',
|
|
|
|
offsetX: 5
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//##########################################
|
|
|
|
// PrettyPhoto
|
|
|
|
//##########################################
|
|
|
|
|
|
|
|
$('a[data-rel]').each(function() {
|
|
|
|
$(this).attr('rel', $(this).data('rel'));
|
|
|
|
});
|
|
|
|
|
|
|
|
$("a[rel^='prettyPhoto']").prettyPhoto();
|
|
|
|
|
|
|
|
|
|
|
|
//##########################################
|
|
|
|
// Create Combo Navi
|
|
|
|
//##########################################
|
|
|
|
|
|
|
|
// Create the dropdown base
|
|
|
|
$("<select id='comboNav' />").appendTo("#combo-holder");
|
|
|
|
|
|
|
|
// Create default option "Go to..."
|
|
|
|
$("<option />", {
|
|
|
|
"selected": "selected",
|
|
|
|
"value" : "",
|
|
|
|
"text" : "Navigation"
|
|
|
|
}).appendTo("#combo-holder select");
|
|
|
|
|
|
|
|
// Populate dropdown with menu items
|
|
|
|
$("#nav a").each(function() {
|
|
|
|
var el = $(this);
|
|
|
|
var label = $(this).parent().parent().attr('id');
|
|
|
|
var sub = (label == 'nav') ? '' : '- ';
|
|
|
|
|
|
|
|
$("<option />", {
|
|
|
|
"value" : el.attr("href"),
|
|
|
|
"text" : sub + el.text()
|
|
|
|
}).appendTo("#combo-holder select");
|
|
|
|
});
|
|
|
|
|
|
|
|
//##########################################
|
|
|
|
// Combo Navigation action
|
|
|
|
//##########################################
|
|
|
|
|
|
|
|
$("#comboNav").change(function() {
|
|
|
|
location = this.options[this.selectedIndex].value;
|
|
|
|
});
|
|
|
|
|
|
|
|
//##########################################
|
|
|
|
// PLUS-MINUS
|
|
|
|
//##########################################
|
|
|
|
|
|
|
|
var topContainer = $('#yc-player');
|
|
|
|
|
|
|
|
$('#yc-toggle-player').click(function(){
|
|
|
|
if($('#yc-toggle-player').hasClass('yc-plus-button') == false){
|
|
|
|
$('#yc-toggle-player').removeClass('yc-minus-button');
|
|
|
|
$('#yc-toggle-player').addClass('yc-plus-button');
|
|
|
|
}else{
|
|
|
|
$('#yc-toggle-player').removeClass('yc-plus-button');
|
|
|
|
$('#yc-toggle-player').addClass('yc-minus-button');
|
|
|
|
}
|
|
|
|
|
|
|
|
topContainer.animate({
|
|
|
|
height: 'toggle'
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//##########################################
|
|
|
|
// NEW VIDEO
|
|
|
|
//##########################################
|
|
|
|
|
|
|
|
var topTrigger = $('#yc-newvideo-button');
|
|
|
|
var topContainer = $('#yc-player');
|
|
|
|
|
|
|
|
topTrigger.click(function(){
|
|
|
|
$('#yc-status').slideUp('normal', function() {
|
|
|
|
$("#url").val("");
|
|
|
|
$(".yc-newvideo").hide();
|
|
|
|
$('#yc-urlform').slideDown('normal');
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//close
|
|
|
|
});
|
|
|
|
|