function cloneMore(selector,type){var newElement=$(selector).clone(true);var total=$('#id_'+type+'-TOTAL_FORMS').val();newElement.find(':input').each(function(){var name=$(this).attr('name').replace('-'+(total-1)+'-','-'+total+'-');var id='id_'+name;$(this).attr({'name':name,'id':id}).val('').removeAttr('checked');});newElement.find('label').each(function(){var newFor=$(this).attr('for').replace('-'+(total-1)+'-','-'+total+'-');$(this).attr('for',newFor);});total++;$('#id_'+type+'-TOTAL_FORMS').val(total);$(selector).after(newElement);}
$(function(){window.defaultStatus="Design + Programming by FEINHEIT kreativ studio · www.feinheit.ch";$('.movie-listitem').click(function(){window.location=$(this).data('href');});function showMoviePoster(movieData){if($('.movie-poster.'+movieData+' img').attr('src')!=""){$('.movie-poster.default').hide();$('.movie-poster.current').removeClass('current').hide();$('.movie-poster.'+movieData).addClass('current').show();}}
function hiliteNavItem(){$(this).addClass('hover');showMoviePoster($(this).data('movie'));$('.movie-link.'+$(this).data('movie')).addClass('hover');}
function loliteNavItem(){$(this).removeClass('hover');$('.movie-link.'+$(this).data('movie')).removeClass('hover');}
$('.movie-listitem').hover(hiliteNavItem,loliteNavItem);function hiliteMovieListItem(){$(this).addClass('hover');showMoviePoster($(this).data('movie'));$('.movie-listitem.'+$(this).data('movie')).addClass('hover');}
function loliteMovieListItem(){$(this).removeClass('hover');$('.movie-listitem.'+$(this).data('movie')).removeClass('hover');}
$('.movie-link').hover(hiliteMovieListItem,loliteMovieListItem);});window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){console.log(Array.prototype.slice.call(arguments));}};(function($){$.fn.slideshow=function(options){var settings={'duration':6000,'shuffle':false};return this.each(function(){if(options){$.extend(settings,options);}
var element=$(this);function timer(){var active=element.children('div.active');if(active.length==0)active=element.children('div:last');var next=active.next().length?active.next():element.children('div:first');if(settings.shuffle){var sibs=active.siblings();var rndNum=Math.floor(Math.random()*sibs.length);next=$(sibs[rndNum]);}
active.addClass('last-active');next.css({opacity:0.0}).addClass('active').animate({opacity:1.0},1000,function(){active.removeClass('active last-active');});}
element.timer=setInterval(timer,settings.duration);});};})(jQuery);SQ.run()
