");
jQuery(".load-img img").css("opacity","0");
jQuery(window).load(function()
{
"use strict";
jQuery(".load-img img").animate({opacity:1}).unwrap();
});
jQuery(document).ready(function ()
{
"use strict";
(function(c){c.fn.visible=function(e){var a=c(this),b=c(window),f=b.scrollTop();b=f+b.height();var d=a.offset().top;a=d+a.height();var g=e===true?a:d;return(e===true?d:a)<=b&&g>=f}})(jQuery);
jQuery("body").addClass("loaded");
jQuery(".skill, .sc_skill").addClass("bringmein");
var win = jQuery(window);
var allMods = jQuery(".bringmein");
allMods.each(function(i, el)
{
var el = jQuery(el);
if (el.visible(true))
{
el.addClass("already-visible").removeClass("bringmein");
var te=jQuery(this);
var newp=te.find(".skillsprogress").data("progress");
te.find(".skillsprogress").animate({"width":newp+"%"},2000, "easeInOutBack");
}
});
win.scroll(function(event)
{
var co=0;
var allMods = jQuery(".bringmein");
allMods.each(function(i, el)
{
var el = jQuery(el);
if (el.visible(true))
{
jQuery(el).each(function()
{
var te=jQuery(this);
setTimeout(function()
{
te.removeClass("come-in").removeClass("bringmein").addClass("already-visible");
var newp=te.find(".skillsprogress").data("progress");
te.find(".skillsprogress").animate({"width":newp+"%"},2000, "easeInOutBack");
},co);
co=co+100;
});
}
});
});
jQuery("#menu").meanmenu({'meanMenu':'#navleft nav'});
jQuery(function()
{
jQuery(".adipoli").adipoli({'startEffect' : 'transparent','hoverEffect' : 'boxRandom'});
});
jQuery("#big_headline_header p").slabText({ "viewportBreakpoint":380});
jQuery(".slab_text").slabText({ "viewportBreakpoint":380});
jQuery("html").niceScroll();
jQuery("#pgrid").click(function(){
jQuery('.portfolio-nav-right').show();
jQuery('.item').parent().cycle('destroy');
jQuery('.item').removeAttr('style');
jQuery('.cycle-nav-arrows-portfolio').hide();
jQuery('.item').fadeOut(500,function()
{
jQuery('.item').removeClass('portfolio-list').removeClass('portfolio-slider');
jQuery('.item').addClass('portfolio-grid').css('opacity','1');
}).fadeIn('500');
jQuery('.item').css('opacity','1');
return false;
});
jQuery("#plist").click(function()
{
jQuery('.portfolio-nav-right').show();
jQuery('.item').parent().cycle('destroy');
jQuery('.item').removeAttr('style');
jQuery('.cycle-nav-arrows-portfolio').hide();
jQuery('.item').fadeOut(500, function()
{
jQuery('.item').removeClass('portfolio-grid').removeClass('portfolio-slider');
jQuery('.item').addClass('portfolio-list').css('opacity','1');
}).fadeIn('500');
jQuery('.item').css('opacity','1');
return false;
});
jQuery("#pslider").click(function()
{
jQuery('.portfolio-nav-right').hide();
jQuery('.item').fadeOut(500,function()
{
jQuery('.item').removeClass('portfolio-grid').removeClass('portfolio-list');
jQuery('.cycle-nav-arrows-portfolio').show();
jQuery('.item').addClass('portfolio-slider');
jQuery('.portfolio-slider').parent().cycle({fx:'fade' , prev: '#cycle-prev', next: '#cycle-next', pause:true });
}).fadeIn('500');
return false;
});
jQuery("a.portfolio-filter").click(function()
{
var pgoal=jQuery(this).data("pfilter");
jQuery(".portfolio-lists-item").animate({"opacity":"1"});
jQuery(".portfolio-lists-item").not("."+pgoal).animate({"opacity":"0.1"});
return false;
});
jQuery(function()
{
jQuery('.portfolio-lists-item').each( function() { jQuery(this).hoverdir(); } );
});
jQuery(function()
{
jQuery('.sf-menu').superfish({delay:300, autoArrows:false});
});
jQuery(function(){
jQuery('.top, .scroller').click(function()
{
jQuery('html, body').animate({scrollTop:0}, 'slow');
return false;
});
});
jQuery(function() {
jQuery( ".accordion" ).accordion({autoHeight: false,navigation: true,collapsible: true, active:false });
});
jQuery(function()
{
jQuery(".ui-tabs").tabs();
jQuery(".ui-tabs-slide").tabs();
});
jQuery(function()
{
jQuery(".ui-tabs-fade").tabs({ fx: {height: 'toggle', opacity:'toggle' } });
});
jQuery('.attachment-thumbnail').parent().attr('rel', 'prettyPhoto[group]');
jQuery(function()
{
jQuery("a[rel^='prettyPhoto'], a.prettyPhoto").prettyPhoto();
});
jQuery(function()
{
jQuery('#contactForm input#ajaxType').val("ajaxTrue");
jQuery('#contactForm').ajaxForm(function(responseText)
{
if(responseText==="1")
{
jQuery("form#contactForm").slideUp();
jQuery("#success").addClass("alert alert_green").text(" Thanks, your email was sent successfully. ");
jQuery("#success").slideDown();
}
if(responseText==="2")
{
jQuery("#success").addClass("alert alert_red").text("Sorry, an error occured. Please fill in all details corretly.");
jQuery("#success").slideDown();
}
});
jQuery('#contactFormWigget input#ajaxType').val("ajaxTrue");
jQuery('#contactFormWidget').ajaxForm(function(responseText)
{
if(responseText==="1")
{
jQuery("form#contactFormWidget").slideUp();
jQuery("#successWidget").addClass("alert contact_widget_alert_green alert_green").text(" Thanks, your email was sent successfully. ");
jQuery("#successWidget").slideDown();
}
if(responseText==="2")
{
jQuery("#successWidget").addClass("alert contact_widget_alert_red alert_red").text("Sorry, an error occured. Please fill in all details corretly.");
jQuery("#successWidget").slideDown();
}
});
});
/*
jQuery(".opacity-hover, a[rel^=prettyPhoto] img").hover(function()
{
jQuery(this).stop().animate({opacity: 0.1}, 500); },
function ()
{
jQuery(this).stop().animate({opacity: 1.0}, 500);
});
*/
jQuery("h3.toggle-trigger, h3.accordion-trigger").next().hide();
jQuery("h3.toggle-trigger-fade").click(function()
{
if(jQuery(this).hasClass('toggle-active'))
{
jQuery(this).removeClass('toggle-active');
}
else
{
jQuery(this).addClass('toggle-active');
}
jQuery(this).next().fadeToggle(); return false;
});
jQuery("h3.toggle-trigger-slide").click(function()
{
if(jQuery(this).hasClass('toggle-active'))
{
jQuery(this).removeClass('toggle-active');
}
else
{
jQuery(this).addClass('toggle-active');
}
jQuery(this).next().slideToggle(); return false;
});
jQuery('[rel=tooltip], a.tooltip').mouseover(function(e)
{
var tip = jQuery(this).attr('title');
jQuery(this).attr('title','');
jQuery(this).append('
');
jQuery('#tooltip').css('top', e.pageY +30 );
jQuery('#tooltip').css('left', e.pageX - 80 );
jQuery('#tooltip').animate({'marginTop':'-8px', 'opacity':'1'});
}).mousemove(function(e)
{
//
}).mouseout(function()
{
jQuery(this).attr('title',jQuery('.tipBody').html());
jQuery(this).children('div#tooltip').remove();
});
jQuery("#main img, ul#menu > li > a, ul#menu_2 > li > a").removeAttr("title");
jQuery("#cycle-nav-2").fadeIn();
jQuery(".slideshow_cycle").hover(function()
{
jQuery("#cycle-nav-2").fadeIn(),function slideshow_fade_out()
{
jQuery("#cycle-nav-2").fadeOut();
}
});
jQuery(".map_overlay").hover(function()
{
jQuery(this).stop().animate({"right":"0px"});
}, function()
{
jQuery(this).stop().animate({"right":"-300px"});
}
);
jQuery(".moverlay_trigger").click(function()
{
jQuery(this).parent().animate({"right":"-300px"});
});
jQuery(".map_container_outer img").css("opacity","0");
jQuery(".map_container_outer").waitForImages(function()
{
jQuery(".map_container_outer img").animate({"opacity":"1"});
var mapone=jQuery(".map_container_outer > div:first-child").attr("id");
load_map(mapone);
map_centro(mapone);
var myCode = 'map_path_'+jQuery(".map_container_outer > div:first-child").data("mapid")+'();';
jQuery(".map_container_outer").removeClass("map_wait");
var myFucn1 = new Function(myCode);
myFucn1();
});
jQuery(".mapchanger").click(function()
{
jQuery(".mapchanger").removeClass("active");
jQuery(this).addClass("active");
var tgoal=jQuery(this).data("goal");
set_anim_out(tgoal);
break_animation=1;
if(jQuery("#map_"+tgoal).hasClass("activeMap"))
{
var a_map_active="1";
}
else
{
load_map("map_"+jQuery(this).data("goal"));
map_centro("map_"+jQuery(this).data("goal"));
}
var myCode = 'map_path_'+jQuery(this).data("goal")+'();';
var myFucn = new Function(myCode);
myFucn();
jQuery(this).find(".play_path_span").hide();
jQuery(this).next().css("display","inline-block");
return false;
});
jQuery(".show_stopper").click(function()
{
var oid=("map_"+jQuery(this).prev().data("goal"));
set_anim_out(oid, "Click auf Stopper");
var mapone=jQuery(this).data("id");
jQuery("map_"+jQuery(this).data("id")).find(".map-content").stop();
jQuery(this).hide();
jQuery(this).parent().find(".play_path_span").css("display","inline-block");
});
jQuery(".close_pin").click(function()
{
jQuery(this).parent().parent().fadeOut();
});
jQuery('input#submit').addClass('sc_button custom medium square');
setTimeout(function() { jQuery(".scrollableArea").css("width",jQuery(".scrollableArea").width()+2+"px");},1000);
jQuery(".room_slideshow").cycle({
'prev' : '.room_prev',
'next' : '.room_next',
'pager' : '#roomslider_nav',
'pagerAnchorBuilder': pagerImages
});
function pagerImages(idx, slide)
{
var sl=jQuery(slide).data("slicon");
return '
';
}
jQuery(".cycle_slider_sc").cycle({
'prev' : '.cycle_prev',
'next' : '.cycle_next',
});
jQuery('.cycle_slider_sc').hover(
function()
{
jQuery(this).cycle('pause');
},
function()
{
jQuery(this).cycle('resume');
});
jQuery(function($)
{
var items = $('#portfolio li'),
itemsByTags = {};
items.each(function(i)
{
var elem = $(this),
tags = elem.data('tags').split(',');
elem.attr('data-id',i);
$.each(tags,function(key,value)
{
value = $.trim(value);
if(!(value in itemsByTags))
{
itemsByTags[value] = [];
}
itemsByTags[value].push(elem);
});
});
createList('All',items);
$.each(itemsByTags,function(k,v)
{
createList(k,v);
});
$('#filter a').live('click',function(e)
{
var link = $(this);
link.addClass('active').siblings().removeClass('active');
$('#portfolio').quicksand(link.data('list').find('li'));
e.preventDefault();
});
$('#filter a:first').click();
function createList(text,items)
{
var ul = $('
',{'class':'hidden'});
$.each(items,function()
{
$(this).clone().appendTo(ul);
});
ul.appendTo('#container');
var a = $('',
{
'class': 'sc_button custom small square',
html: text,
href:'#',
data: {list:ul}
}).appendTo('#filter');
}
});
jQuery("#open_loc").click(function()
{
jQuery(this).parent().toggleClass('active');
jQuery("#info_map").toggleClass('activeMap');
});
jQuery(".responsive_video").fitVids();
(function(c){c.fn.visible=function(e){var a=c(this),b=c(window),f=b.scrollTop();b=f+b.height();var d=a.offset().top;a=d+a.height();var g=e===true?a:d;return(e===true?d:a)<=b&&g>=f}})(jQuery);
var win = jQuery(window);
var allMods = jQuery(".bringmein");
allMods.each(function(i, el)
{
var el = jQuery(el);
var effect="";
effect=jQuery(this).data("animation");
if (el.visible(true))
{
el.addClass("already-visible animated " + effect).removeClass("bringmein");
}
});
win.scroll(function(event)
{
var co=0;
var allMods = jQuery(".bringmein");
allMods.each(function(i, el)
{
var el = jQuery(el);
var effect="";
effect=jQuery(this).data("animation");
if (el.visible(true))
{
jQuery(el).each(function()
{
var te=jQuery(this);
setTimeout(function()
{
te.removeClass("come-in").removeClass("bringmein").addClass("already-visible animated " + effect);
},co);
co=co+100;
});
}
});
});
}); // FINAL JQUERY CLOSE
jQuery(window).load(function()
{
"use strict";
var filter = '';
var handler;
var options =
{
autoResize: true,
container: jQuery('#masonry'),
offset: 10,
outerOffset: 0,
};
var refresh = function()
{
if(handler)
{
handler = null;
}
jQuery('#tiles li').addClass('inactive');
handler = jQuery(filter);
handler.removeClass("inactive");
handler.wookmark(options);
jQuery("#filter li:first-child").trigger("click");
};
var updateFilters = function()
{
var oldFilter = filter;
filter = '';
var filters = [];
var lis = jQuery('#filters li');
var i=0, length=lis.length, li;
for(; i