/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */
jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;}var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}expires='; expires='+date.toUTCString();}var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}return cookieValue;}};

/**
 * UI
 * 
 * Copyright (c) 2011 Manuel Teuber (memdev.de)
 */
var isMouseOverMenu=false;var isIE=jQuery.browser.msie;var isIElte7=isIE&&(parseInt(jQuery.browser.version)<=7);var max_font_size=20;var min_font_size=6;var animating=false;var accept_cookies=true;var _host=location.host;$.cookie('md_ut99_cookie_test','__TEST__',{path:'/',domain:_host});accept_cookies=$.cookie('md_ut99_cookie_test')=='__TEST__';$.cookie('md_ut99_cookie_test',null,{path:'/',domain:location.host});if($.cookie('md_ut99_curtain')!='true'&&accept_cookies){$('#page-content').hide();$("#main-drape-left").css('margin-left','-1120px');$("#main-drape-right").css('margin-right','-1120px');}else{$('#font-sizer').css('margin-right','-527px').css('z-index','5');}$(document).ready(function(){jQuery('.require-js').removeClass('require-js');if($.cookie('md_ut99_curtain')!='true'&&accept_cookies){window.setTimeout(function(){animating=true;$("#main-drape-left").animate({marginLeft:"-=550"},1500,'swing');$("#main-drape-right").animate({marginRight:"-=550"},1500,'swing',function(){$('#page-content').slideDown(1000,function(){animating=false;});$('#font-sizer').animate({marginRight:"-=32"},250,function(){$(this).css('z-index','5');});});},1000);$.cookie('md_ut99_curtain','true',{path:'/',domain:_host});}var originalFontSize=jQuery('html').css('font-size');jQuery("#font-standard").click(function(){jQuery('html').css('font-size',originalFontSize);return false;});jQuery("#font-increase").click(function(){var currentFontSize=jQuery('html').css('font-size');var currentFontSizeNum=parseFloat(currentFontSize,10);var newFontSize=currentFontSizeNum*1.1;if(newFontSize<=max_font_size){jQuery('html').css('font-size',newFontSize);}return false;});jQuery("#font-decrease").click(function(){var currentFontSize=jQuery('html').css('font-size');var currentFontSizeNum=parseFloat(currentFontSize,10);var newFontSize=currentFontSizeNum/1.1;if(newFontSize>=min_font_size){jQuery('html').css('font-size',newFontSize);}return false;});$('#header ul.menu li.section a').hover(function(){$('#header div.submenu-wrapper div.content-wrapper').slideDown();isMouseOverMenu=true;},function(){isMouseOverMenu=false;window.setTimeout(function(){if(!isMouseOverMenu){$('#header div.submenu-wrapper div.content-wrapper').slideUp();}},500);});$('#header div.submenu-wrapper').hover(function(){isMouseOverMenu=true;},function(){isMouseOverMenu=false;window.setTimeout(function(){if(!isMouseOverMenu){$('#header div.submenu-wrapper div.content-wrapper').slideUp();}},500);});window.setTimeout(function(){if(!isMouseOverMenu){$('#header div.submenu-wrapper div.content-wrapper').slideUp();}},3000);$('a.ajax').live('click',function(event){event.preventDefault();$(this).find('img.time').attr('src','/themes/ut99/images/icons/loading.gif');$.ajax({type:'GET',url:$(this).attr('href'),success:function(data){$('#movie table.screentime-table tr.more-times-link, #movie table.screentime-table tr.table-bottom').remove();$('#movie table.screentime-table tbody').append(data);}});});if(typeof jQuery.fn.scrollable!='undefined'){window.setTimeout(function(){var interval=window.setInterval(function(){if(!animating){var scroller=$(".scrollable").scrollable({circular:true,speed:500,keyboard:false}).autoscroll({interval:1500});scroller.scrollableAddClones();window.api=scroller.data("scrollable");window.clearInterval(interval);(function($){$(function(){$('a.gallery').fancybox({'transitionIn':'elastic','transitionOut':'elastic','speedIn':300,'speedOut':200,'titlePosition':'over','overlayShow':!isIElte7,'overlayOpacity':0.8,'overlayColor':'#444','titleFormat':function(title,currentArray,currentIndex,currentOpts){if(title.indexOf('#')==0)title='';var pre_title='';if(currentArray.length>1){pre_title='Bild '+(currentIndex+1)+' von '+currentArray.length;if(title!='')pre_title+=': ';}if(pre_title==''&&title=='')return false;switch(currentOpts.titlePosition){case'inside':return pre_title+title;case'over':return'<span id="fancybox-title-over">'+pre_title+title+'</span>';default:return'<span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">'+pre_title+title+'</span><span id="fancybox-title-right"></span></span>';}return false;},'onStart':function(selectedArray,selectedIndex,selectedOpts){if(typeof window.api!='undefined'){window.api.stop();}return true;},'onComplete':function(currentArray,currentIndex,currentOpts){if(typeof window.api!='undefined'){window.api.stop();}return true;},'onClosed':function(currentArray,currentIndex,currentOpts){if(typeof window.api!='undefined'){window.api.play();}return true;}});});})(jQuery);}},250);},1000);}});
